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:
parent
c05fa25057
commit
c064088cf3
@ -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 = []
|
||||
|
Loading…
Reference in New Issue
Block a user