summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorrfbgo <109985755+rfbgo@users.noreply.github.com>2024-01-11 10:13:21 -0700
committerGitHub <noreply@github.com>2024-01-11 10:13:21 -0700
commit49307b6cb21107085ef55147a87f2a0f9f7aeb9a (patch)
tree128d45bdad9ba1c19c03d8ac5dab7d34e3afcfcd /var
parent566ef43d5b0fde98267bfffd8b0c92615fe259d7 (diff)
downloadspack-49307b6cb21107085ef55147a87f2a0f9f7aeb9a.tar.gz
spack-49307b6cb21107085ef55147a87f2a0f9f7aeb9a.tar.bz2
spack-49307b6cb21107085ef55147a87f2a0f9f7aeb9a.tar.xz
spack-49307b6cb21107085ef55147a87f2a0f9f7aeb9a.zip
Add `nvbandwidth` package definition (#42021)
* Add nvbandwidth package definition * Add recently added upstream tags
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/nvbandwidth/package.py50
1 files changed, 50 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/nvbandwidth/package.py b/var/spack/repos/builtin/packages/nvbandwidth/package.py
new file mode 100644
index 0000000000..64f4fa5eee
--- /dev/null
+++ b/var/spack/repos/builtin/packages/nvbandwidth/package.py
@@ -0,0 +1,50 @@
+# 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 Nvbandwidth(CMakePackage, CudaPackage):
+ """
+ nvbandwidth: A tool for bandwidth measurements on NVIDIA GPUs.
+ """
+
+ git = "https://github.com/NVIDIA/nvbandwidth"
+
+ license("Apache-2.0")
+
+ version("main", branch="main")
+
+ version(
+ "v0.4",
+ url="https://github.com/NVIDIA/nvbandwidth/archive/refs/tags/v0.4.tar.gz",
+ sha256="c87eda04d5909d26c0d8756dd1a66ab048cf015dbb0d2719971dee182aa69212",
+ preferred=True,
+ )
+
+ version(
+ "v0.3",
+ url="https://github.com/NVIDIA/nvbandwidth/archive/refs/tags/v0.3.tar.gz",
+ sha256="744bcf9fbd007f4f71f7b5c2295aa223fe39eb5f048e6b1b6a3d0f942a19b3cc",
+ )
+
+ version(
+ "v0.2",
+ url="https://github.com/NVIDIA/nvbandwidth/archive/refs/tags/v0.2.tar.gz",
+ sha256="d41a45dc03dd2baf37b6c4ecdbca442c5e9f6f989fd3ffa90852e50ba9ded26c",
+ )
+
+ version(
+ "v0.1",
+ url="https://github.com/NVIDIA/nvbandwidth/archive/refs/tags/v0.1.tar.gz",
+ sha256="ce164f91e35d1b28ebb1f83b22f38199e430d18ebfb8e21fa8c5e53c38d82daf",
+ )
+
+ depends_on("boost@1.66.0 +program_options")
+
+ def install(self, spec, prefix):
+ # We have no `make install` target, so move the files over explicitly
+ mkdirp(prefix.bin)
+ install(join_path(self.build_directory, "nvbandwidth"), join_path(prefix.bin))