summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Balos <balos1@llnl.gov>2024-11-18 11:48:16 -0800
committerGitHub <noreply@github.com>2024-11-18 11:48:16 -0800
commit1ffd7125a666c2d45a3706751a8c1e56ec96b714 (patch)
treefc867d26c6b34c64902a6042c0d15b79f6a6d6c7
parentd1166fd31680f32876ab5ee27afe0a13d9889f5c (diff)
downloadspack-1ffd7125a666c2d45a3706751a8c1e56ec96b714.tar.gz
spack-1ffd7125a666c2d45a3706751a8c1e56ec96b714.tar.bz2
spack-1ffd7125a666c2d45a3706751a8c1e56ec96b714.tar.xz
spack-1ffd7125a666c2d45a3706751a8c1e56ec96b714.zip
sundials: set CUDAToolkit_ROOT (#47601)
* sundials: specify CUDAToolkit_ROOT
-rw-r--r--var/spack/repos/builtin/packages/sundials/package.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/sundials/package.py b/var/spack/repos/builtin/packages/sundials/package.py
index 3708e34d49..8f02572430 100644
--- a/var/spack/repos/builtin/packages/sundials/package.py
+++ b/var/spack/repos/builtin/packages/sundials/package.py
@@ -398,6 +398,7 @@ class Sundials(CMakePackage, CudaPackage, ROCmPackage):
if "+cuda" in spec:
args.append(define("CMAKE_CUDA_ARCHITECTURES", spec.variants["cuda_arch"].value))
+ args.append(define("CUDAToolkit_ROOT", self.spec["cuda"].prefix))
if "+rocm" in spec:
args.extend(