From c064088cf3ab23f74791f49c587a301144b5c3a3 Mon Sep 17 00:00:00 2001 From: Robert Blake Date: Wed, 12 Aug 2020 04:13:57 -0700 Subject: Bugfix for #17999: use cudart instead of cuda. (#18000) This is needed because libcuda is used by the driver, whereas libcudart is used by the runtime. CMake searches for cudart instead of cuda. On LLNL LC systems, libcuda is only found in compat and stubs directories, meaning that the lookup of libraries fails. --- var/spack/repos/builtin/packages/cuda/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/cuda/package.py b/var/spack/repos/builtin/packages/cuda/package.py index 90a8cba788..6d1332c9ad 100644 --- a/var/spack/repos/builtin/packages/cuda/package.py +++ b/var/spack/repos/builtin/packages/cuda/package.py @@ -129,7 +129,7 @@ class Cuda(Package): @property def libs(self): - libs = find_libraries('libcuda', root=self.prefix, shared=True, + libs = find_libraries('libcudart', root=self.prefix, shared=True, recursive=True) filtered_libs = [] -- cgit v1.2.3-60-g2f50