File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
cuda_core/cuda/core/experimental Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -49,15 +49,16 @@ def libname():
4949 _nvjitlink = importlib .import_module ("cuda.bindings.nvjitlink" )
5050 except ModuleNotFoundError :
5151 problem = "cuda.bindings.nvjitlink is not available, therefore"
52- except RuntimeError :
53- problem = libname () + " is not available" + therefore_not_usable
5452 else :
5553 from cuda .bindings ._internal import nvjitlink as inner_nvjitlink
5654
57- if inner_nvjitlink ._inspect_function_pointer ("__nvJitLinkVersion" ):
58- return False # Use nvjitlink
59-
60- problem = libname () + " is is too old (<12.3)" + therefore_not_usable
55+ try :
56+ if inner_nvjitlink ._inspect_function_pointer ("__nvJitLinkVersion" ):
57+ return False # Use nvjitlink
58+ except RuntimeError :
59+ problem = libname () + " is not available" + therefore_not_usable
60+ else :
61+ problem = libname () + " is is too old (<12.3)" + therefore_not_usable
6162 _nvjitlink = None
6263
6364 warn (
You can’t perform that action at this time.
0 commit comments