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 Todd Gamblin
parent c05fa25057
commit c064088cf3

View File

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