|
2 | 2 | # |
3 | 3 | # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE |
4 | 4 | # |
5 | | -# This code was automatically generated across versions from 12.9.1 to 13.0.1. Do not modify it directly. |
| 5 | +# This code was automatically generated across versions from 12.9.1 to 13.1.0. Do not modify it directly. |
6 | 6 |
|
7 | 7 | from libc.stdint cimport intptr_t, uintptr_t |
8 | 8 |
|
@@ -407,6 +407,9 @@ cdef void* __nvmlDeviceGetNvLinkInfo = NULL |
407 | 407 | cdef void* __nvmlDeviceReadWritePRM_v1 = NULL |
408 | 408 | cdef void* __nvmlDeviceGetGpuInstanceProfileInfoByIdV = NULL |
409 | 409 | cdef void* __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts = NULL |
| 410 | +cdef void* __nvmlDeviceGetUnrepairableMemoryFlag_v1 = NULL |
| 411 | +cdef void* __nvmlDeviceReadPRMCounters_v1 = NULL |
| 412 | +cdef void* __nvmlDeviceSetRusdSettings_v1 = NULL |
410 | 413 |
|
411 | 414 |
|
412 | 415 | cdef void* load_library() except* with gil: |
@@ -2852,6 +2855,27 @@ cdef int _init_nvml() except -1 nogil: |
2852 | 2855 | handle = load_library() |
2853 | 2856 | __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts = dlsym(handle, 'nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts') |
2854 | 2857 |
|
| 2858 | + global __nvmlDeviceGetUnrepairableMemoryFlag_v1 |
| 2859 | + __nvmlDeviceGetUnrepairableMemoryFlag_v1 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetUnrepairableMemoryFlag_v1') |
| 2860 | + if __nvmlDeviceGetUnrepairableMemoryFlag_v1 == NULL: |
| 2861 | + if handle == NULL: |
| 2862 | + handle = load_library() |
| 2863 | + __nvmlDeviceGetUnrepairableMemoryFlag_v1 = dlsym(handle, 'nvmlDeviceGetUnrepairableMemoryFlag_v1') |
| 2864 | + |
| 2865 | + global __nvmlDeviceReadPRMCounters_v1 |
| 2866 | + __nvmlDeviceReadPRMCounters_v1 = dlsym(RTLD_DEFAULT, 'nvmlDeviceReadPRMCounters_v1') |
| 2867 | + if __nvmlDeviceReadPRMCounters_v1 == NULL: |
| 2868 | + if handle == NULL: |
| 2869 | + handle = load_library() |
| 2870 | + __nvmlDeviceReadPRMCounters_v1 = dlsym(handle, 'nvmlDeviceReadPRMCounters_v1') |
| 2871 | + |
| 2872 | + global __nvmlDeviceSetRusdSettings_v1 |
| 2873 | + __nvmlDeviceSetRusdSettings_v1 = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetRusdSettings_v1') |
| 2874 | + if __nvmlDeviceSetRusdSettings_v1 == NULL: |
| 2875 | + if handle == NULL: |
| 2876 | + handle = load_library() |
| 2877 | + __nvmlDeviceSetRusdSettings_v1 = dlsym(handle, 'nvmlDeviceSetRusdSettings_v1') |
| 2878 | + |
2855 | 2879 | __py_nvml_init = True |
2856 | 2880 | return 0 |
2857 | 2881 |
|
@@ -3915,6 +3939,15 @@ cpdef dict _inspect_function_pointers(): |
3915 | 3939 | global __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts |
3916 | 3940 | data["__nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts"] = <intptr_t>__nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts |
3917 | 3941 |
|
| 3942 | + global __nvmlDeviceGetUnrepairableMemoryFlag_v1 |
| 3943 | + data["__nvmlDeviceGetUnrepairableMemoryFlag_v1"] = <intptr_t>__nvmlDeviceGetUnrepairableMemoryFlag_v1 |
| 3944 | + |
| 3945 | + global __nvmlDeviceReadPRMCounters_v1 |
| 3946 | + data["__nvmlDeviceReadPRMCounters_v1"] = <intptr_t>__nvmlDeviceReadPRMCounters_v1 |
| 3947 | + |
| 3948 | + global __nvmlDeviceSetRusdSettings_v1 |
| 3949 | + data["__nvmlDeviceSetRusdSettings_v1"] = <intptr_t>__nvmlDeviceSetRusdSettings_v1 |
| 3950 | + |
3918 | 3951 | func_ptrs = data |
3919 | 3952 | return data |
3920 | 3953 |
|
@@ -7398,3 +7431,33 @@ cdef nvmlReturn_t _nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts(nvmlDevice_t |
7398 | 7431 | raise FunctionNotFoundError("function nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts is not found") |
7399 | 7432 | return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEccSramUniqueUncorrectedErrorCounts_t*) noexcept nogil>__nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts)( |
7400 | 7433 | device, errorCounts) |
| 7434 | + |
| 7435 | + |
| 7436 | +cdef nvmlReturn_t _nvmlDeviceGetUnrepairableMemoryFlag_v1(nvmlDevice_t device, nvmlUnrepairableMemoryStatus_v1_t* unrepairableMemoryStatus) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: |
| 7437 | + global __nvmlDeviceGetUnrepairableMemoryFlag_v1 |
| 7438 | + _check_or_init_nvml() |
| 7439 | + if __nvmlDeviceGetUnrepairableMemoryFlag_v1 == NULL: |
| 7440 | + with gil: |
| 7441 | + raise FunctionNotFoundError("function nvmlDeviceGetUnrepairableMemoryFlag_v1 is not found") |
| 7442 | + return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlUnrepairableMemoryStatus_v1_t*) noexcept nogil>__nvmlDeviceGetUnrepairableMemoryFlag_v1)( |
| 7443 | + device, unrepairableMemoryStatus) |
| 7444 | + |
| 7445 | + |
| 7446 | +cdef nvmlReturn_t _nvmlDeviceReadPRMCounters_v1(nvmlDevice_t device, nvmlPRMCounterList_v1_t* counterList) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: |
| 7447 | + global __nvmlDeviceReadPRMCounters_v1 |
| 7448 | + _check_or_init_nvml() |
| 7449 | + if __nvmlDeviceReadPRMCounters_v1 == NULL: |
| 7450 | + with gil: |
| 7451 | + raise FunctionNotFoundError("function nvmlDeviceReadPRMCounters_v1 is not found") |
| 7452 | + return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPRMCounterList_v1_t*) noexcept nogil>__nvmlDeviceReadPRMCounters_v1)( |
| 7453 | + device, counterList) |
| 7454 | + |
| 7455 | + |
| 7456 | +cdef nvmlReturn_t _nvmlDeviceSetRusdSettings_v1(nvmlDevice_t device, nvmlRusdSettings_v1_t* settings) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: |
| 7457 | + global __nvmlDeviceSetRusdSettings_v1 |
| 7458 | + _check_or_init_nvml() |
| 7459 | + if __nvmlDeviceSetRusdSettings_v1 == NULL: |
| 7460 | + with gil: |
| 7461 | + raise FunctionNotFoundError("function nvmlDeviceSetRusdSettings_v1 is not found") |
| 7462 | + return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlRusdSettings_v1_t*) noexcept nogil>__nvmlDeviceSetRusdSettings_v1)( |
| 7463 | + device, settings) |
0 commit comments