File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
cuda_bindings/cuda/bindings Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -1898,20 +1898,18 @@ cdef cudaError_t getLocalRuntimeVersion(int* runtimeVersion) except ?cudaErrorCa
18981898 with gil:
18991899 lib = load_nvidia_dynamic_lib("cudart")
19001900 filename = Path(lib.abs_path).name
1901- handle = <void *><uintptr_t>lib._handle_uint
1901+ handle = <void *><uintptr_t>( lib._handle_uint)
19021902
1903- {{if 'Windows' == platform.system()}}
1904- with gil:
1903+ {{if 'Windows' == platform.system()}}
19051904 try:
19061905 __cudaRuntimeGetVersion = <void*><unsigned long long>win32api.GetProcAddress(<uintptr_t>handle, 'cudaRuntimeGetVersion')
19071906 except:
19081907 pass
1909- {{else}}
1910- __cudaRuntimeGetVersion = dlfcn.dlsym(handle, 'cudaRuntimeGetVersion')
1911- {{endif}}
1908+ {{else}}
1909+ __cudaRuntimeGetVersion = dlfcn.dlsym(handle, 'cudaRuntimeGetVersion')
1910+ {{endif}}
19121911
1913- if __cudaRuntimeGetVersion == NULL:
1914- with gil:
1912+ if __cudaRuntimeGetVersion == NULL:
19151913 raise RuntimeError(f'Function "cudaRuntimeGetVersion" not found in {filename}')
19161914
19171915 cdef cudaError_t err = cudaSuccess
You can’t perform that action at this time.
0 commit comments