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 d240e09 commit eb9fdb4Copy full SHA for eb9fdb4
1 file changed
cuda_bindings/cuda/bindings/cyruntime.pyx.in
@@ -1898,10 +1898,14 @@ cdef cudaError_t getLocalRuntimeVersion(int* runtimeVersion) except ?cudaErrorCa
1898
# Load
1899
with gil:
1900
lib = load_nvidia_dynamic_lib("cudart")
1901
+ {{if 'Windows' == platform.system()}}
1902
+ handle = lib._handle_uint
1903
+ {{else}}
1904
handle = <void *><uintptr_t>lib._handle_uint
1905
+ {{endif}}
1906
1907
{{if 'Windows' == platform.system()}}
- __cudaRuntimeGetVersion = windll.GetProcAddress(<uintptr_t>handle, b'cudaRuntimeGetVersion')
1908
+ __cudaRuntimeGetVersion = windll.GetProcAddress(handle, b'cudaRuntimeGetVersion')
1909
{{else}}
1910
__cudaRuntimeGetVersion = dlfcn.dlsym(handle, 'cudaRuntimeGetVersion')
1911
{{endif}}
0 commit comments