From 1ffd7125a666c2d45a3706751a8c1e56ec96b714 Mon Sep 17 00:00:00 2001 From: Cody Balos Date: Mon, 18 Nov 2024 11:48:16 -0800 Subject: sundials: set CUDAToolkit_ROOT (#47601) * sundials: specify CUDAToolkit_ROOT --- var/spack/repos/builtin/packages/sundials/package.py | 1 + 1 file changed, 1 insertion(+) 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( -- cgit v1.2.3-70-g09d2