Skip to content

Commit da417da

Browse files
committed
Add void* return type to load_library() implementations in _internal/nvjitlink_windows.pyx, nvvm_windows.pyx
1 parent a140f5b commit da417da

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cuda_bindings/cuda/bindings/_internal/nvjitlink_windows.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ cdef void* __nvJitLinkGetInfoLog = NULL
4242
cdef void* __nvJitLinkVersion = NULL
4343

4444

45-
cdef load_library(const int driver_ver):
45+
cdef void* load_library(int driver_ver) except* with gil:
4646
cdef uintptr_t handle = path_finder.load_nvidia_dynamic_library("nvJitLink")
4747
return <void*>handle
4848

cuda_bindings/cuda/bindings/_internal/nvvm_windows.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ cdef void* __nvvmGetProgramLogSize = NULL
4040
cdef void* __nvvmGetProgramLog = NULL
4141

4242

43-
cdef load_library(const int driver_ver):
43+
cdef void* load_library(int driver_ver) except* with gil:
4444
cdef uintptr_t handle = path_finder.load_nvidia_dynamic_library("nvvm")
4545
return <void*>handle
4646

0 commit comments

Comments
 (0)