From f73141c6af58d3d82f1daf69eb64501e50d452bc Mon Sep 17 00:00:00 2001 From: Robert Blake Date: Wed, 12 Aug 2020 04:13:57 -0700 Subject: [PATCH] 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 ff708f9a6cf..adf7bf89005 100644 --- a/var/spack/repos/builtin/packages/cuda/package.py +++ b/var/spack/repos/builtin/packages/cuda/package.py @@ -132,7 +132,7 @@ def install(self, spec, prefix): @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 = []