|
2 | 2 | # |
3 | 3 | # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE |
4 | 4 | # |
5 | | -# This code was automatically generated across versions from 12.9.0 to 13.3.0, generator version 0.3.1.dev1752+g89e531539. Do not modify it directly. |
| 5 | +# This code was automatically generated with version 12.9.0, generator version 0.3.1.dev1752+g89e531539. Do not modify it directly. |
6 | 6 |
|
7 | 7 | from libc.stdint cimport intptr_t, uintptr_t |
8 | 8 |
|
@@ -83,11 +83,6 @@ cdef void* __nvrtcSetPCHHeapSize = NULL |
83 | 83 | cdef void* __nvrtcGetPCHCreateStatus = NULL |
84 | 84 | cdef void* __nvrtcGetPCHHeapSizeRequired = NULL |
85 | 85 | cdef void* __nvrtcSetFlowCallback = NULL |
86 | | -cdef void* __nvrtcGetTileIRSize = NULL |
87 | | -cdef void* __nvrtcGetTileIR = NULL |
88 | | -cdef void* __nvrtcInstallBundledHeaders = NULL |
89 | | -cdef void* __nvrtcGetBundledHeadersInfo = NULL |
90 | | -cdef void* __nvrtcRemoveBundledHeaders = NULL |
91 | 86 |
|
92 | 87 |
|
93 | 88 | cdef void* load_library() except* with gil: |
@@ -274,41 +269,6 @@ cdef int _init_nvrtc() except -1 nogil: |
274 | 269 | handle = load_library() |
275 | 270 | __nvrtcSetFlowCallback = dlsym(handle, 'nvrtcSetFlowCallback') |
276 | 271 |
|
277 | | - global __nvrtcGetTileIRSize |
278 | | - __nvrtcGetTileIRSize = dlsym(RTLD_DEFAULT, 'nvrtcGetTileIRSize') |
279 | | - if __nvrtcGetTileIRSize == NULL: |
280 | | - if handle == NULL: |
281 | | - handle = load_library() |
282 | | - __nvrtcGetTileIRSize = dlsym(handle, 'nvrtcGetTileIRSize') |
283 | | - |
284 | | - global __nvrtcGetTileIR |
285 | | - __nvrtcGetTileIR = dlsym(RTLD_DEFAULT, 'nvrtcGetTileIR') |
286 | | - if __nvrtcGetTileIR == NULL: |
287 | | - if handle == NULL: |
288 | | - handle = load_library() |
289 | | - __nvrtcGetTileIR = dlsym(handle, 'nvrtcGetTileIR') |
290 | | - |
291 | | - global __nvrtcInstallBundledHeaders |
292 | | - __nvrtcInstallBundledHeaders = dlsym(RTLD_DEFAULT, 'nvrtcInstallBundledHeaders') |
293 | | - if __nvrtcInstallBundledHeaders == NULL: |
294 | | - if handle == NULL: |
295 | | - handle = load_library() |
296 | | - __nvrtcInstallBundledHeaders = dlsym(handle, 'nvrtcInstallBundledHeaders') |
297 | | - |
298 | | - global __nvrtcGetBundledHeadersInfo |
299 | | - __nvrtcGetBundledHeadersInfo = dlsym(RTLD_DEFAULT, 'nvrtcGetBundledHeadersInfo') |
300 | | - if __nvrtcGetBundledHeadersInfo == NULL: |
301 | | - if handle == NULL: |
302 | | - handle = load_library() |
303 | | - __nvrtcGetBundledHeadersInfo = dlsym(handle, 'nvrtcGetBundledHeadersInfo') |
304 | | - |
305 | | - global __nvrtcRemoveBundledHeaders |
306 | | - __nvrtcRemoveBundledHeaders = dlsym(RTLD_DEFAULT, 'nvrtcRemoveBundledHeaders') |
307 | | - if __nvrtcRemoveBundledHeaders == NULL: |
308 | | - if handle == NULL: |
309 | | - handle = load_library() |
310 | | - __nvrtcRemoveBundledHeaders = dlsym(handle, 'nvrtcRemoveBundledHeaders') |
311 | | - |
312 | 272 | __py_nvrtc_init = True |
313 | 273 | return 0 |
314 | 274 |
|
@@ -402,21 +362,6 @@ cpdef dict _inspect_function_pointers(): |
402 | 362 | global __nvrtcSetFlowCallback |
403 | 363 | data["__nvrtcSetFlowCallback"] = <intptr_t>__nvrtcSetFlowCallback |
404 | 364 |
|
405 | | - global __nvrtcGetTileIRSize |
406 | | - data["__nvrtcGetTileIRSize"] = <intptr_t>__nvrtcGetTileIRSize |
407 | | - |
408 | | - global __nvrtcGetTileIR |
409 | | - data["__nvrtcGetTileIR"] = <intptr_t>__nvrtcGetTileIR |
410 | | - |
411 | | - global __nvrtcInstallBundledHeaders |
412 | | - data["__nvrtcInstallBundledHeaders"] = <intptr_t>__nvrtcInstallBundledHeaders |
413 | | - |
414 | | - global __nvrtcGetBundledHeadersInfo |
415 | | - data["__nvrtcGetBundledHeadersInfo"] = <intptr_t>__nvrtcGetBundledHeadersInfo |
416 | | - |
417 | | - global __nvrtcRemoveBundledHeaders |
418 | | - data["__nvrtcRemoveBundledHeaders"] = <intptr_t>__nvrtcRemoveBundledHeaders |
419 | | - |
420 | 365 | func_ptrs = data |
421 | 366 | return data |
422 | 367 |
|
@@ -670,53 +615,3 @@ cdef nvrtcResult _nvrtcSetFlowCallback(nvrtcProgram prog, void * callback, void* |
670 | 615 | raise FunctionNotFoundError("function nvrtcSetFlowCallback is not found") |
671 | 616 | return (<nvrtcResult (*)(nvrtcProgram, void *, void*) noexcept nogil>__nvrtcSetFlowCallback)( |
672 | 617 | prog, callback, payload) |
673 | | - |
674 | | - |
675 | | -cdef nvrtcResult _nvrtcGetTileIRSize(nvrtcProgram prog, size_t* TileIRSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil: |
676 | | - global __nvrtcGetTileIRSize |
677 | | - _check_or_init_nvrtc() |
678 | | - if __nvrtcGetTileIRSize == NULL: |
679 | | - with gil: |
680 | | - raise FunctionNotFoundError("function nvrtcGetTileIRSize is not found") |
681 | | - return (<nvrtcResult (*)(nvrtcProgram, size_t*) noexcept nogil>__nvrtcGetTileIRSize)( |
682 | | - prog, TileIRSizeRet) |
683 | | - |
684 | | - |
685 | | -cdef nvrtcResult _nvrtcGetTileIR(nvrtcProgram prog, char* TileIR) except ?NVRTC_ERROR_INVALID_INPUT nogil: |
686 | | - global __nvrtcGetTileIR |
687 | | - _check_or_init_nvrtc() |
688 | | - if __nvrtcGetTileIR == NULL: |
689 | | - with gil: |
690 | | - raise FunctionNotFoundError("function nvrtcGetTileIR is not found") |
691 | | - return (<nvrtcResult (*)(nvrtcProgram, char*) noexcept nogil>__nvrtcGetTileIR)( |
692 | | - prog, TileIR) |
693 | | - |
694 | | - |
695 | | -cdef nvrtcResult _nvrtcInstallBundledHeaders(const char* installPath, unsigned int flags, const char** errorLog) except ?NVRTC_ERROR_INVALID_INPUT nogil: |
696 | | - global __nvrtcInstallBundledHeaders |
697 | | - _check_or_init_nvrtc() |
698 | | - if __nvrtcInstallBundledHeaders == NULL: |
699 | | - with gil: |
700 | | - raise FunctionNotFoundError("function nvrtcInstallBundledHeaders is not found") |
701 | | - return (<nvrtcResult (*)(const char*, unsigned int, const char**) noexcept nogil>__nvrtcInstallBundledHeaders)( |
702 | | - installPath, flags, errorLog) |
703 | | - |
704 | | - |
705 | | -cdef nvrtcResult _nvrtcGetBundledHeadersInfo(nvrtcBundledHeadersInfo* info, const char** errorLog) except ?NVRTC_ERROR_INVALID_INPUT nogil: |
706 | | - global __nvrtcGetBundledHeadersInfo |
707 | | - _check_or_init_nvrtc() |
708 | | - if __nvrtcGetBundledHeadersInfo == NULL: |
709 | | - with gil: |
710 | | - raise FunctionNotFoundError("function nvrtcGetBundledHeadersInfo is not found") |
711 | | - return (<nvrtcResult (*)(nvrtcBundledHeadersInfo*, const char**) noexcept nogil>__nvrtcGetBundledHeadersInfo)( |
712 | | - info, errorLog) |
713 | | - |
714 | | - |
715 | | -cdef nvrtcResult _nvrtcRemoveBundledHeaders(const char* installPath, const char** errorLog) except ?NVRTC_ERROR_INVALID_INPUT nogil: |
716 | | - global __nvrtcRemoveBundledHeaders |
717 | | - _check_or_init_nvrtc() |
718 | | - if __nvrtcRemoveBundledHeaders == NULL: |
719 | | - with gil: |
720 | | - raise FunctionNotFoundError("function nvrtcRemoveBundledHeaders is not found") |
721 | | - return (<nvrtcResult (*)(const char*, const char**) noexcept nogil>__nvrtcRemoveBundledHeaders)( |
722 | | - installPath, errorLog) |
0 commit comments