summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorStephen Sachs <stephenmsachs@gmail.com>2022-09-12 10:40:19 +0200
committerGitHub <noreply@github.com>2022-09-12 10:40:19 +0200
commit40ee78f6e84075a8a93d783f23afe5ca190d2c45 (patch)
tree3e631fc96c70319a46e06dd38919e93917638997 /var
parent34a7df9ea05a39b1a53d16baad2a1f35c430b011 (diff)
downloadspack-40ee78f6e84075a8a93d783f23afe5ca190d2c45.tar.gz
spack-40ee78f6e84075a8a93d783f23afe5ca190d2c45.tar.bz2
spack-40ee78f6e84075a8a93d783f23afe5ca190d2c45.tar.xz
spack-40ee78f6e84075a8a93d783f23afe5ca190d2c45.zip
GPCNeT: add new package (#32593)
Co-authored-by: Stephen Sachs <stesachs@amazon.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/gpcnet/package.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/gpcnet/package.py b/var/spack/repos/builtin/packages/gpcnet/package.py
new file mode 100644
index 0000000000..b97f9a8979
--- /dev/null
+++ b/var/spack/repos/builtin/packages/gpcnet/package.py
@@ -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)