Skip to content

Commit 349d16b

Browse files
committed
Don't need try/except on Windows
1 parent 55c8039 commit 349d16b

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

cuda_bindings/cuda/bindings/cyruntime.pyx.in

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1901,10 +1901,7 @@ cdef cudaError_t getLocalRuntimeVersion(int* runtimeVersion) except ?cudaErrorCa
19011901
handle = <void *><uintptr_t>(lib._handle_uint)
19021902

19031903
{{if 'Windows' == platform.system()}}
1904-
try:
1905-
__cudaRuntimeGetVersion = <void*><unsigned long long>win32api.GetProcAddress(<uintptr_t>handle, 'cudaRuntimeGetVersion')
1906-
except:
1907-
pass
1904+
__cudaRuntimeGetVersion = <void*><unsigned long long>win32api.GetProcAddress(<uintptr_t>handle, 'cudaRuntimeGetVersion')
19081905
{{else}}
19091906
__cudaRuntimeGetVersion = dlfcn.dlsym(handle, 'cudaRuntimeGetVersion')
19101907
{{endif}}

0 commit comments

Comments
 (0)