|
4 | 4 | # |
5 | 5 | # This code was automatically generated across versions from 12.9.0 to 13.5.0. Do not modify it directly. |
6 | 6 | # !!! WARNING: THIS FILE CONTAINS PRERELEASE APIs !!! |
7 | | -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=4cb5d4dc3795831a0f50a8ecf92dbe9b963a2cb908cb657db98e7f14d7164512 |
| 7 | +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=bcb0306e1a5e714a98ec08dcce8b16f01459e21d6d2df027c1e7b5df0e392198 |
8 | 8 |
|
9 | 9 |
|
10 | 10 | # <<<< PREAMBLE CONTENT >>>> |
@@ -2203,11 +2203,7 @@ cdef inline int _check_or_init_driver() except -1 nogil: |
2203 | 2203 | return _init_driver() |
2204 | 2204 |
|
2205 | 2205 |
|
2206 | | -cpdef dict _inspect_function_pointers(): |
2207 | | - global _cyb_func_ptrs |
2208 | | - if _cyb_func_ptrs is not None: |
2209 | | - return _cyb_func_ptrs |
2210 | | - |
| 2206 | +cdef dict _build_function_pointers(): |
2211 | 2207 | _check_or_init_driver() |
2212 | 2208 | cdef dict data = {} |
2213 | 2209 | global __cuGetErrorString |
@@ -3787,17 +3783,20 @@ cpdef dict _inspect_function_pointers(): |
3787 | 3783 |
|
3788 | 3784 | global __cuTensorMapSetAllocationClass |
3789 | 3785 | data["__cuTensorMapSetAllocationClass"] = <intptr_t>__cuTensorMapSetAllocationClass |
3790 | | - _cyb_func_ptrs = data |
3791 | 3786 | return data |
3792 | 3787 |
|
3793 | 3788 |
|
3794 | | -cpdef _inspect_function_pointer(str name): |
| 3789 | +cpdef dict _inspect_function_pointers(): |
3795 | 3790 | global _cyb_func_ptrs |
3796 | 3791 | if _cyb_func_ptrs is None: |
3797 | 3792 | with _cyb_func_ptrs_lock: |
3798 | 3793 | if _cyb_func_ptrs is None: |
3799 | | - _cyb_func_ptrs = _inspect_function_pointers() |
3800 | | - return _cyb_func_ptrs[name] |
| 3794 | + _cyb_func_ptrs = _build_function_pointers() |
| 3795 | + return _cyb_func_ptrs |
| 3796 | + |
| 3797 | + |
| 3798 | +cpdef _inspect_function_pointer(str name): |
| 3799 | + return _inspect_function_pointers()[name] |
3801 | 3800 |
|
3802 | 3801 |
|
3803 | 3802 |
|
|
0 commit comments