GPCNeT: add new package (#32593)

Co-authored-by: Stephen Sachs <stesachs@amazon.com>
This commit is contained in:
Stephen Sachs 2022-09-12 10:40:19 +02:00 committed by GitHub
parent 34a7df9ea0
commit 40ee78f6e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,27 @@
# Copyright 2013-2022 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 Gpcnet(MakefilePackage):
"""Global Performance and Congestion Network Test - GPCNeT."""
homepage = "https://github.com/netbench/GPCNET"
git = "https://github.com/netbench/GPCNET.git"
version("master")
depends_on("mpi", type=("build", "run"))
@property
def build_targets(self):
spec = self.spec
return ["all", "CC={}".format(spec["mpi"].mpicc)]
def install(self, spec, prefix):
mkdir(prefix.bin)
install("network_load_test", prefix.bin)
install("network_test", prefix.bin)