hp2p: new package (#47950)

* Add hp2p app definition
* update homepage
   Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
* update to fstring

---------

Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
This commit is contained in:
rfbgo 2024-12-10 14:03:54 -07:00 committed by GitHub
parent b6e4ff0242
commit 84ea7dbddf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,28 @@
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class Hp2p(AutotoolsPackage):
"""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.
"""
homepage = "https://github.com/cea-hpc/hp2p"
url = "https://github.com/cea-hpc/hp2p/releases/download/4.1/hp2p-4.1.tar.gz"
git = "https://github.com/cea-hpc/hp2p.git"
version("4.1", sha256="e74fa1d442f4378a31f4b875760aaad98e23f6942f7de4cc1702ed9e95585c5e")
depends_on("mpi", type=("build", "link", "run"))
def configure_args(self):
mpi = self.spec["mpi"]
args = [f"CC={mpi.mpicc}", f"CXX={mpi.mpicxx}"]
return args