We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6b200a commit a13cd73Copy full SHA for a13cd73
cmake/nvidiacc.py
@@ -24,6 +24,8 @@
24
25
26
def CommaSeparatedCCString():
27
+ unknown_cc = 'UnknownCC'
28
+
29
libnames = ('libcuda.so', 'libcuda.dylib', 'nvcuda.dll', 'cuda.dll')
30
for libname in libnames:
31
try:
@@ -33,7 +35,7 @@ def CommaSeparatedCCString():
33
35
else:
34
36
break
37
- raise OSError('could not load any of: ' + ' '.join(libnames))
38
+ return unknown_cc
39
40
############################################################
41
@@ -83,8 +85,8 @@ def checkCall(f, *args):
83
85
cc_str = cc_str + ',{}'.format(cc_list[i])
84
86
return cc_str
87
- return ''
88
89
90
91
if __name__ == '__main__':
- print(CommaSeparatedCCString())
92
+ print(CommaSeparatedCCString(), end='')
0 commit comments