We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 495ffb9 commit 8a9941aCopy full SHA for 8a9941a
cuda_bindings/cuda/bindings/cyruntime.pyx.in
@@ -1901,10 +1901,11 @@ cdef cudaError_t getLocalRuntimeVersion(int* runtimeVersion) except ?cudaErrorCa
1901
handle = <void *><uintptr_t>lib._handle_uint
1902
1903
{{if 'Windows' == platform.system()}}
1904
- try:
1905
- __cudaRuntimeGetVersion = <void*><unsigned long long>win32api.GetProcAddress(<uintptr_t>handle, 'cudaRuntimeGetVersion')
1906
- except:
1907
- pass
+ with gil:
+ try:
+ __cudaRuntimeGetVersion = <void*><unsigned long long>win32api.GetProcAddress(<uintptr_t>handle, 'cudaRuntimeGetVersion')
+ except:
1908
+ pass
1909
{{else}}
1910
__cudaRuntimeGetVersion = dlfcn.dlsym(handle, 'cudaRuntimeGetVersion')
1911
{{endif}}
0 commit comments