sundials: set CUDAToolkit_ROOT (#47601)

* sundials: specify CUDAToolkit_ROOT
This commit is contained in:
Cody Balos 2024-11-18 11:48:16 -08:00 committed by GitHub
parent d1166fd316
commit 1ffd7125a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -398,6 +398,7 @@ def cmake_args(self):
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(