ziatest: add new package (#48809)

This commit is contained in:
Mosè Giordano 2025-02-03 14:41:38 +01:00 committed by GitHub
parent 61b1586c51
commit 7f30502297
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,31 @@
# Copyright Spack Project Developers. See COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class Ziatest(MakefilePackage):
"""Realistic assessment of both launch and wireup requirements of MPI applications"""
homepage = "https://gitlab.com/NERSC/N10-benchmarks/ziatest"
git = "https://gitlab.com/NERSC/N10-benchmarks/ziatest"
maintainers("giordano")
license("custom")
executables = ["^ziatest$", "^ziaprobe$"]
version("main", branch="main")
depends_on("c", type="build")
depends_on("mpi")
@property
def build_targets(self):
spec = self.spec
return [f"MPICC={spec['mpi'].mpicc}"]
def install(self, spec, prefix):
mkdir(prefix.bin)
install("ziatest", prefix.bin)
install("ziaprobe", prefix.bin)