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.
This commit is contained in:
Robert Blake
2020-08-12 04:13:57 -07:00
committed by GitHub
parent 041e21802e
commit f73141c6af

View File

@@ -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 = []