summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Blake <blake14@llnl.gov>2020-08-12 04:13:57 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2020-08-12 23:58:10 -0700
commitc064088cf3ab23f74791f49c587a301144b5c3a3 (patch)
tree669b1d37575ad32e2a22be062d4f228bc0f681a0
parentc05fa25057d400566017681c4d992a29550d3f4d (diff)
downloadspack-c064088cf3ab23f74791f49c587a301144b5c3a3.tar.gz
spack-c064088cf3ab23f74791f49c587a301144b5c3a3.tar.bz2
spack-c064088cf3ab23f74791f49c587a301144b5c3a3.tar.xz
spack-c064088cf3ab23f74791f49c587a301144b5c3a3.zip
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.
-rw-r--r--var/spack/repos/builtin/packages/cuda/package.py2
1 files changed, 1 insertions, 1 deletions
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 = []