Skip to content

Commit

Permalink
Merge pull request #795 from rfbgo/hp2p
Browse files Browse the repository at this point in the history
Add hp2p app definition
  • Loading branch information
douglasjacobsen authored Dec 10, 2024
2 parents 0e0f5b1 + 0e57558 commit 8f1fa37
Showing 1 changed file with 86 additions and 0 deletions.
86 changes: 86 additions & 0 deletions var/ramble/repos/builtin/applications/hp2p/application.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# Copyright 2022-2024 The Ramble Authors
#
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
# https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
# <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
# option. This file may not be copied, modified, or distributed
# except according to those terms.

from ramble.appkit import *


class Hp2p(ExecutableApplication):
"""
HP2P (Heavy Peer To Peer) benchmark is a test which performs MPI Point-to-Point non-blocking communications between all MPI processes. Its goal is to measure the bandwidths and the latencies in a situation where the network is busy. This benchmark can help to detect network problems like congestions or problems with switches or links.
"""

name = "hp2p"

tags("benchmark", "mpi")
maintainers("rfbgo")

software_spec("hp2p", pkg_spec="[email protected]", package_manager="spack*")
software_spec(
"openmpi412", pkg_spec="[email protected]", package_manager="spack*"
)

executable(
"execute",
"hp2p.exe -n {iter} -s {msg_size} -m {nb_msg} -b 1",
use_mpi=True,
)

workload("standard", executables=["execute"])

workload_variable(
"iter",
default="1000",
description="Number of iterations",
workloads=["standard"],
)

workload_variable(
"msg_size",
default="1024",
description="Message size",
workloads=["standard"],
)

workload_variable(
"nb_msg",
default="10",
description="Number of msg per comm",
workloads=["standard"],
)

success_criteria(
"prints_done", mode="string", match=r".*=== SUMMARY ===.*"
)

foms = [
"Number of iteration",
"Min bandwidth",
"Max bandwidth",
"Avg bandwidth",
"Std bandwidth",
"Min latency",
"Max latency",
"Avg latency",
"Std latency",
"Min bisection bandwidth",
"Max bisection bandwidth",
"Avg bisection bandwidth",
"Std bisection bandwidth",
"Min bisection efficiency",
"Max bisection efficiency",
"Avg bisection efficiency",
]

for fom in foms:
fom_regex = rf"\s*{fom}\s+\:\s(?P<val>\d+\.*\d*)\s*(?P<unit>.*)"
figure_of_merit(
fom,
fom_regex=fom_regex,
group_name="val",
units="{unit}",
)

0 comments on commit 8f1fa37

Please sign in to comment.