Skip to content

Commit 7a46173

Browse files
committed
Remove APIs
1 parent e0e868a commit 7a46173

2 files changed

Lines changed: 0 additions & 32 deletions

File tree

cuda_bindings/cuda/bindings/_internal/nvjitlink_windows.pyx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,8 @@ cdef extern from "windows.h" nogil:
3535
DWORD dwFlags
3636
)
3737

38-
HMODULE _LoadLibraryW "LoadLibraryW"(LPCWSTR lpLibFileName)
39-
4038
FARPROC _GetProcAddress "GetProcAddress"(HMODULE hModule, LPCSTR lpProcName)
4139

42-
HMODULE _GetModuleHandleW "GetModuleHandleW"(LPCWSTR lpModuleName)
43-
4440
cdef inline uintptr_t LoadLibraryExW(str path, HANDLE hFile, DWORD dwFlags):
4541
cdef uintptr_t result
4642
cdef wchar_t* wpath = PyUnicode_AsWideCharString(path, NULL)
@@ -55,21 +51,9 @@ cdef inline uintptr_t LoadLibraryExW(str path, HANDLE hFile, DWORD dwFlags):
5551
PyMem_Free(wpath)
5652
return result
5753

58-
cdef inline uintptr_t LoadLibraryW(str path) nogil:
59-
cdef wchar_t* wpath
60-
with gil:
61-
wpath = PyUnicode_AsWideCharString(path, NULL)
62-
return <uintptr_t>_LoadLibraryW(wpath)
63-
6454
cdef inline void *GetProcAddress(uintptr_t hModule, const char* lpProcName) nogil:
6555
return _GetProcAddress(<HMODULE>hModule, lpProcName)
6656

67-
cdef inline uintptr_t GetModuleHandleW(str path) nogil:
68-
cdef wchar_t* wpath
69-
with gil:
70-
wpath = PyUnicode_AsWideCharString(path, NULL)
71-
return <uintptr_t>_GetModuleHandleW(wpath)
72-
7357
cdef int get_cuda_version():
7458
cdef int err, driver_ver = 0
7559

cuda_bindings/cuda/bindings/_internal/nvvm_windows.pyx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,8 @@ cdef extern from "windows.h" nogil:
3535
DWORD dwFlags
3636
)
3737

38-
HMODULE _LoadLibraryW "LoadLibraryW"(LPCWSTR lpLibFileName)
39-
4038
FARPROC _GetProcAddress "GetProcAddress"(HMODULE hModule, LPCSTR lpProcName)
4139

42-
HMODULE _GetModuleHandleW "GetModuleHandleW"(LPCWSTR lpModuleName)
43-
4440
cdef inline uintptr_t LoadLibraryExW(str path, HANDLE hFile, DWORD dwFlags):
4541
cdef uintptr_t result
4642
cdef wchar_t* wpath = PyUnicode_AsWideCharString(path, NULL)
@@ -55,21 +51,9 @@ cdef inline uintptr_t LoadLibraryExW(str path, HANDLE hFile, DWORD dwFlags):
5551
PyMem_Free(wpath)
5652
return result
5753

58-
cdef inline uintptr_t LoadLibraryW(str path) nogil:
59-
cdef wchar_t* wpath
60-
with gil:
61-
wpath = PyUnicode_AsWideCharString(path, NULL)
62-
return <uintptr_t>_LoadLibraryW(wpath)
63-
6454
cdef inline void *GetProcAddress(uintptr_t hModule, const char* lpProcName) nogil:
6555
return _GetProcAddress(<HMODULE>hModule, lpProcName)
6656

67-
cdef inline uintptr_t GetModuleHandleW(str path) nogil:
68-
cdef wchar_t* wpath
69-
with gil:
70-
wpath = PyUnicode_AsWideCharString(path, NULL)
71-
return <uintptr_t>_GetModuleHandleW(wpath)
72-
7357
cdef int get_cuda_version():
7458
cdef int err, driver_ver = 0
7559

0 commit comments

Comments
 (0)