summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorHenri Menke <henri@henrimenke.de>2024-10-07 09:59:37 +0200
committerGitHub <noreply@github.com>2024-10-07 09:59:37 +0200
commit170e3227011cfe747b98e415a2d67b286dad4af8 (patch)
tree3e1276b9b0848f57bad37dbfef18fe6602618d51 /var
parentcb673862d1a3200549885e737acbe4772a876a83 (diff)
downloadspack-170e3227011cfe747b98e415a2d67b286dad4af8.tar.gz
spack-170e3227011cfe747b98e415a2d67b286dad4af8.tar.bz2
spack-170e3227011cfe747b98e415a2d67b286dad4af8.tar.xz
spack-170e3227011cfe747b98e415a2d67b286dad4af8.zip
gdrcopy: allow tests to build against libcuda.so stub (#46500)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/gdrcopy/package.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/gdrcopy/package.py b/var/spack/repos/builtin/packages/gdrcopy/package.py
index 9b99a81319..c9b9640c62 100644
--- a/var/spack/repos/builtin/packages/gdrcopy/package.py
+++ b/var/spack/repos/builtin/packages/gdrcopy/package.py
@@ -30,7 +30,14 @@ class Gdrcopy(MakefilePackage, CudaPackage):
# Don't call ldconfig: https://github.com/NVIDIA/gdrcopy/pull/229
patch("ldconfig.patch", when="@2.0:2.3")
-
+ # Allow tests to build against libcuda.so stub
+ patch(
+ "https://github.com/NVIDIA/gdrcopy/commit/508dd6179dcb04ba7720e2da5124b77bbdb615b0.patch?full_index=1",
+ sha256="cc18b13b6ea5512959464a85a43cdfda0bee5522a471e98ca76ba379bf582b5a",
+ when="@2.0:2.3",
+ )
+
+ depends_on("pkgconfig", type="build", when="@2.0:2.3")
depends_on("check")
requires("+cuda")