Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hp2p app definition #795

Merged
merged 1 commit into from
Dec 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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")

douglasjacobsen marked this conversation as resolved.
Show resolved Hide resolved
software_spec("hp2p", pkg_spec="hp2p@4.1", package_manager="spack*")
software_spec(
"openmpi412", pkg_spec="openmpi@4.1.2", 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}",
)
Loading