|
2 | 2 | # |
3 | 3 | # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE |
4 | 4 | # |
5 | | -# This code was automatically generated with version 12.9.1. Do not modify it directly. |
| 5 | +# This code was automatically generated across versions from 12.9.1 to 13.0.1. Do not modify it directly. |
6 | 6 |
|
7 | 7 | from libc.stdint cimport intptr_t, uintptr_t |
8 | 8 |
|
@@ -217,6 +217,7 @@ cdef void* __nvmlSystemSetConfComputeKeyRotationThresholdInfo = NULL |
217 | 217 | cdef void* __nvmlSystemGetConfComputeSettings = NULL |
218 | 218 | cdef void* __nvmlDeviceGetGspFirmwareVersion = NULL |
219 | 219 | cdef void* __nvmlDeviceGetGspFirmwareMode = NULL |
| 220 | +cdef void* __nvmlDeviceGetSramEccErrorStatus = NULL |
220 | 221 | cdef void* __nvmlDeviceGetAccountingMode = NULL |
221 | 222 | cdef void* __nvmlDeviceGetAccountingStats = NULL |
222 | 223 | cdef void* __nvmlDeviceGetAccountingPids = NULL |
@@ -395,6 +396,17 @@ cdef void* __nvmlDeviceWorkloadPowerProfileClearRequestedProfiles = NULL |
395 | 396 | cdef void* __nvmlDevicePowerSmoothingActivatePresetProfile = NULL |
396 | 397 | cdef void* __nvmlDevicePowerSmoothingUpdatePresetProfileParam = NULL |
397 | 398 | cdef void* __nvmlDevicePowerSmoothingSetState = NULL |
| 399 | +cdef void* __nvmlDeviceGetAddressingMode = NULL |
| 400 | +cdef void* __nvmlDeviceGetRepairStatus = NULL |
| 401 | +cdef void* __nvmlDeviceGetPowerMizerMode_v1 = NULL |
| 402 | +cdef void* __nvmlDeviceSetPowerMizerMode_v1 = NULL |
| 403 | +cdef void* __nvmlDeviceGetPdi = NULL |
| 404 | +cdef void* __nvmlDeviceSetHostname_v1 = NULL |
| 405 | +cdef void* __nvmlDeviceGetHostname_v1 = NULL |
| 406 | +cdef void* __nvmlDeviceGetNvLinkInfo = NULL |
| 407 | +cdef void* __nvmlDeviceReadWritePRM_v1 = NULL |
| 408 | +cdef void* __nvmlDeviceGetGpuInstanceProfileInfoByIdV = NULL |
| 409 | +cdef void* __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts = NULL |
398 | 410 |
|
399 | 411 |
|
400 | 412 | cdef void* load_library() except* with gil: |
@@ -1510,6 +1522,13 @@ cdef int _init_nvml() except -1 nogil: |
1510 | 1522 | handle = load_library() |
1511 | 1523 | __nvmlDeviceGetGspFirmwareMode = dlsym(handle, 'nvmlDeviceGetGspFirmwareMode') |
1512 | 1524 |
|
| 1525 | + global __nvmlDeviceGetSramEccErrorStatus |
| 1526 | + __nvmlDeviceGetSramEccErrorStatus = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetSramEccErrorStatus') |
| 1527 | + if __nvmlDeviceGetSramEccErrorStatus == NULL: |
| 1528 | + if handle == NULL: |
| 1529 | + handle = load_library() |
| 1530 | + __nvmlDeviceGetSramEccErrorStatus = dlsym(handle, 'nvmlDeviceGetSramEccErrorStatus') |
| 1531 | + |
1513 | 1532 | global __nvmlDeviceGetAccountingMode |
1514 | 1533 | __nvmlDeviceGetAccountingMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetAccountingMode') |
1515 | 1534 | if __nvmlDeviceGetAccountingMode == NULL: |
@@ -2756,6 +2775,83 @@ cdef int _init_nvml() except -1 nogil: |
2756 | 2775 | handle = load_library() |
2757 | 2776 | __nvmlDevicePowerSmoothingSetState = dlsym(handle, 'nvmlDevicePowerSmoothingSetState') |
2758 | 2777 |
|
| 2778 | + global __nvmlDeviceGetAddressingMode |
| 2779 | + __nvmlDeviceGetAddressingMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetAddressingMode') |
| 2780 | + if __nvmlDeviceGetAddressingMode == NULL: |
| 2781 | + if handle == NULL: |
| 2782 | + handle = load_library() |
| 2783 | + __nvmlDeviceGetAddressingMode = dlsym(handle, 'nvmlDeviceGetAddressingMode') |
| 2784 | + |
| 2785 | + global __nvmlDeviceGetRepairStatus |
| 2786 | + __nvmlDeviceGetRepairStatus = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetRepairStatus') |
| 2787 | + if __nvmlDeviceGetRepairStatus == NULL: |
| 2788 | + if handle == NULL: |
| 2789 | + handle = load_library() |
| 2790 | + __nvmlDeviceGetRepairStatus = dlsym(handle, 'nvmlDeviceGetRepairStatus') |
| 2791 | + |
| 2792 | + global __nvmlDeviceGetPowerMizerMode_v1 |
| 2793 | + __nvmlDeviceGetPowerMizerMode_v1 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPowerMizerMode_v1') |
| 2794 | + if __nvmlDeviceGetPowerMizerMode_v1 == NULL: |
| 2795 | + if handle == NULL: |
| 2796 | + handle = load_library() |
| 2797 | + __nvmlDeviceGetPowerMizerMode_v1 = dlsym(handle, 'nvmlDeviceGetPowerMizerMode_v1') |
| 2798 | + |
| 2799 | + global __nvmlDeviceSetPowerMizerMode_v1 |
| 2800 | + __nvmlDeviceSetPowerMizerMode_v1 = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetPowerMizerMode_v1') |
| 2801 | + if __nvmlDeviceSetPowerMizerMode_v1 == NULL: |
| 2802 | + if handle == NULL: |
| 2803 | + handle = load_library() |
| 2804 | + __nvmlDeviceSetPowerMizerMode_v1 = dlsym(handle, 'nvmlDeviceSetPowerMizerMode_v1') |
| 2805 | + |
| 2806 | + global __nvmlDeviceGetPdi |
| 2807 | + __nvmlDeviceGetPdi = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPdi') |
| 2808 | + if __nvmlDeviceGetPdi == NULL: |
| 2809 | + if handle == NULL: |
| 2810 | + handle = load_library() |
| 2811 | + __nvmlDeviceGetPdi = dlsym(handle, 'nvmlDeviceGetPdi') |
| 2812 | + |
| 2813 | + global __nvmlDeviceSetHostname_v1 |
| 2814 | + __nvmlDeviceSetHostname_v1 = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetHostname_v1') |
| 2815 | + if __nvmlDeviceSetHostname_v1 == NULL: |
| 2816 | + if handle == NULL: |
| 2817 | + handle = load_library() |
| 2818 | + __nvmlDeviceSetHostname_v1 = dlsym(handle, 'nvmlDeviceSetHostname_v1') |
| 2819 | + |
| 2820 | + global __nvmlDeviceGetHostname_v1 |
| 2821 | + __nvmlDeviceGetHostname_v1 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetHostname_v1') |
| 2822 | + if __nvmlDeviceGetHostname_v1 == NULL: |
| 2823 | + if handle == NULL: |
| 2824 | + handle = load_library() |
| 2825 | + __nvmlDeviceGetHostname_v1 = dlsym(handle, 'nvmlDeviceGetHostname_v1') |
| 2826 | + |
| 2827 | + global __nvmlDeviceGetNvLinkInfo |
| 2828 | + __nvmlDeviceGetNvLinkInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNvLinkInfo') |
| 2829 | + if __nvmlDeviceGetNvLinkInfo == NULL: |
| 2830 | + if handle == NULL: |
| 2831 | + handle = load_library() |
| 2832 | + __nvmlDeviceGetNvLinkInfo = dlsym(handle, 'nvmlDeviceGetNvLinkInfo') |
| 2833 | + |
| 2834 | + global __nvmlDeviceReadWritePRM_v1 |
| 2835 | + __nvmlDeviceReadWritePRM_v1 = dlsym(RTLD_DEFAULT, 'nvmlDeviceReadWritePRM_v1') |
| 2836 | + if __nvmlDeviceReadWritePRM_v1 == NULL: |
| 2837 | + if handle == NULL: |
| 2838 | + handle = load_library() |
| 2839 | + __nvmlDeviceReadWritePRM_v1 = dlsym(handle, 'nvmlDeviceReadWritePRM_v1') |
| 2840 | + |
| 2841 | + global __nvmlDeviceGetGpuInstanceProfileInfoByIdV |
| 2842 | + __nvmlDeviceGetGpuInstanceProfileInfoByIdV = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpuInstanceProfileInfoByIdV') |
| 2843 | + if __nvmlDeviceGetGpuInstanceProfileInfoByIdV == NULL: |
| 2844 | + if handle == NULL: |
| 2845 | + handle = load_library() |
| 2846 | + __nvmlDeviceGetGpuInstanceProfileInfoByIdV = dlsym(handle, 'nvmlDeviceGetGpuInstanceProfileInfoByIdV') |
| 2847 | + |
| 2848 | + global __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts |
| 2849 | + __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts') |
| 2850 | + if __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts == NULL: |
| 2851 | + if handle == NULL: |
| 2852 | + handle = load_library() |
| 2853 | + __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts = dlsym(handle, 'nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts') |
| 2854 | + |
2759 | 2855 | __py_nvml_init = True |
2760 | 2856 | return 0 |
2761 | 2857 |
|
@@ -3249,6 +3345,9 @@ cpdef dict _inspect_function_pointers(): |
3249 | 3345 | global __nvmlDeviceGetGspFirmwareMode |
3250 | 3346 | data["__nvmlDeviceGetGspFirmwareMode"] = <intptr_t>__nvmlDeviceGetGspFirmwareMode |
3251 | 3347 |
|
| 3348 | + global __nvmlDeviceGetSramEccErrorStatus |
| 3349 | + data["__nvmlDeviceGetSramEccErrorStatus"] = <intptr_t>__nvmlDeviceGetSramEccErrorStatus |
| 3350 | + |
3252 | 3351 | global __nvmlDeviceGetAccountingMode |
3253 | 3352 | data["__nvmlDeviceGetAccountingMode"] = <intptr_t>__nvmlDeviceGetAccountingMode |
3254 | 3353 |
|
@@ -3783,6 +3882,39 @@ cpdef dict _inspect_function_pointers(): |
3783 | 3882 | global __nvmlDevicePowerSmoothingSetState |
3784 | 3883 | data["__nvmlDevicePowerSmoothingSetState"] = <intptr_t>__nvmlDevicePowerSmoothingSetState |
3785 | 3884 |
|
| 3885 | + global __nvmlDeviceGetAddressingMode |
| 3886 | + data["__nvmlDeviceGetAddressingMode"] = <intptr_t>__nvmlDeviceGetAddressingMode |
| 3887 | + |
| 3888 | + global __nvmlDeviceGetRepairStatus |
| 3889 | + data["__nvmlDeviceGetRepairStatus"] = <intptr_t>__nvmlDeviceGetRepairStatus |
| 3890 | + |
| 3891 | + global __nvmlDeviceGetPowerMizerMode_v1 |
| 3892 | + data["__nvmlDeviceGetPowerMizerMode_v1"] = <intptr_t>__nvmlDeviceGetPowerMizerMode_v1 |
| 3893 | + |
| 3894 | + global __nvmlDeviceSetPowerMizerMode_v1 |
| 3895 | + data["__nvmlDeviceSetPowerMizerMode_v1"] = <intptr_t>__nvmlDeviceSetPowerMizerMode_v1 |
| 3896 | + |
| 3897 | + global __nvmlDeviceGetPdi |
| 3898 | + data["__nvmlDeviceGetPdi"] = <intptr_t>__nvmlDeviceGetPdi |
| 3899 | + |
| 3900 | + global __nvmlDeviceSetHostname_v1 |
| 3901 | + data["__nvmlDeviceSetHostname_v1"] = <intptr_t>__nvmlDeviceSetHostname_v1 |
| 3902 | + |
| 3903 | + global __nvmlDeviceGetHostname_v1 |
| 3904 | + data["__nvmlDeviceGetHostname_v1"] = <intptr_t>__nvmlDeviceGetHostname_v1 |
| 3905 | + |
| 3906 | + global __nvmlDeviceGetNvLinkInfo |
| 3907 | + data["__nvmlDeviceGetNvLinkInfo"] = <intptr_t>__nvmlDeviceGetNvLinkInfo |
| 3908 | + |
| 3909 | + global __nvmlDeviceReadWritePRM_v1 |
| 3910 | + data["__nvmlDeviceReadWritePRM_v1"] = <intptr_t>__nvmlDeviceReadWritePRM_v1 |
| 3911 | + |
| 3912 | + global __nvmlDeviceGetGpuInstanceProfileInfoByIdV |
| 3913 | + data["__nvmlDeviceGetGpuInstanceProfileInfoByIdV"] = <intptr_t>__nvmlDeviceGetGpuInstanceProfileInfoByIdV |
| 3914 | + |
| 3915 | + global __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts |
| 3916 | + data["__nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts"] = <intptr_t>__nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts |
| 3917 | + |
3786 | 3918 | func_ptrs = data |
3787 | 3919 | return data |
3788 | 3920 |
|
@@ -5368,6 +5500,16 @@ cdef nvmlReturn_t _nvmlDeviceGetGspFirmwareMode(nvmlDevice_t device, unsigned in |
5368 | 5500 | device, isEnabled, defaultMode) |
5369 | 5501 |
|
5370 | 5502 |
|
| 5503 | +cdef nvmlReturn_t _nvmlDeviceGetSramEccErrorStatus(nvmlDevice_t device, nvmlEccSramErrorStatus_t* status) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: |
| 5504 | + global __nvmlDeviceGetSramEccErrorStatus |
| 5505 | + _check_or_init_nvml() |
| 5506 | + if __nvmlDeviceGetSramEccErrorStatus == NULL: |
| 5507 | + with gil: |
| 5508 | + raise FunctionNotFoundError("function nvmlDeviceGetSramEccErrorStatus is not found") |
| 5509 | + return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEccSramErrorStatus_t*) noexcept nogil>__nvmlDeviceGetSramEccErrorStatus)( |
| 5510 | + device, status) |
| 5511 | + |
| 5512 | + |
5371 | 5513 | cdef nvmlReturn_t _nvmlDeviceGetAccountingMode(nvmlDevice_t device, nvmlEnableState_t* mode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: |
5372 | 5514 | global __nvmlDeviceGetAccountingMode |
5373 | 5515 | _check_or_init_nvml() |
@@ -7146,3 +7288,113 @@ cdef nvmlReturn_t _nvmlDevicePowerSmoothingSetState(nvmlDevice_t device, nvmlPow |
7146 | 7288 | raise FunctionNotFoundError("function nvmlDevicePowerSmoothingSetState is not found") |
7147 | 7289 | return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPowerSmoothingState_t*) noexcept nogil>__nvmlDevicePowerSmoothingSetState)( |
7148 | 7290 | device, state) |
| 7291 | + |
| 7292 | + |
| 7293 | +cdef nvmlReturn_t _nvmlDeviceGetAddressingMode(nvmlDevice_t device, nvmlDeviceAddressingMode_t* mode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: |
| 7294 | + global __nvmlDeviceGetAddressingMode |
| 7295 | + _check_or_init_nvml() |
| 7296 | + if __nvmlDeviceGetAddressingMode == NULL: |
| 7297 | + with gil: |
| 7298 | + raise FunctionNotFoundError("function nvmlDeviceGetAddressingMode is not found") |
| 7299 | + return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlDeviceAddressingMode_t*) noexcept nogil>__nvmlDeviceGetAddressingMode)( |
| 7300 | + device, mode) |
| 7301 | + |
| 7302 | + |
| 7303 | +cdef nvmlReturn_t _nvmlDeviceGetRepairStatus(nvmlDevice_t device, nvmlRepairStatus_t* repairStatus) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: |
| 7304 | + global __nvmlDeviceGetRepairStatus |
| 7305 | + _check_or_init_nvml() |
| 7306 | + if __nvmlDeviceGetRepairStatus == NULL: |
| 7307 | + with gil: |
| 7308 | + raise FunctionNotFoundError("function nvmlDeviceGetRepairStatus is not found") |
| 7309 | + return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlRepairStatus_t*) noexcept nogil>__nvmlDeviceGetRepairStatus)( |
| 7310 | + device, repairStatus) |
| 7311 | + |
| 7312 | + |
| 7313 | +cdef nvmlReturn_t _nvmlDeviceGetPowerMizerMode_v1(nvmlDevice_t device, nvmlDevicePowerMizerModes_v1_t* powerMizerMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: |
| 7314 | + global __nvmlDeviceGetPowerMizerMode_v1 |
| 7315 | + _check_or_init_nvml() |
| 7316 | + if __nvmlDeviceGetPowerMizerMode_v1 == NULL: |
| 7317 | + with gil: |
| 7318 | + raise FunctionNotFoundError("function nvmlDeviceGetPowerMizerMode_v1 is not found") |
| 7319 | + return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlDevicePowerMizerModes_v1_t*) noexcept nogil>__nvmlDeviceGetPowerMizerMode_v1)( |
| 7320 | + device, powerMizerMode) |
| 7321 | + |
| 7322 | + |
| 7323 | +cdef nvmlReturn_t _nvmlDeviceSetPowerMizerMode_v1(nvmlDevice_t device, nvmlDevicePowerMizerModes_v1_t* powerMizerMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: |
| 7324 | + global __nvmlDeviceSetPowerMizerMode_v1 |
| 7325 | + _check_or_init_nvml() |
| 7326 | + if __nvmlDeviceSetPowerMizerMode_v1 == NULL: |
| 7327 | + with gil: |
| 7328 | + raise FunctionNotFoundError("function nvmlDeviceSetPowerMizerMode_v1 is not found") |
| 7329 | + return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlDevicePowerMizerModes_v1_t*) noexcept nogil>__nvmlDeviceSetPowerMizerMode_v1)( |
| 7330 | + device, powerMizerMode) |
| 7331 | + |
| 7332 | + |
| 7333 | +cdef nvmlReturn_t _nvmlDeviceGetPdi(nvmlDevice_t device, nvmlPdi_t* pdi) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: |
| 7334 | + global __nvmlDeviceGetPdi |
| 7335 | + _check_or_init_nvml() |
| 7336 | + if __nvmlDeviceGetPdi == NULL: |
| 7337 | + with gil: |
| 7338 | + raise FunctionNotFoundError("function nvmlDeviceGetPdi is not found") |
| 7339 | + return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPdi_t*) noexcept nogil>__nvmlDeviceGetPdi)( |
| 7340 | + device, pdi) |
| 7341 | + |
| 7342 | + |
| 7343 | +cdef nvmlReturn_t _nvmlDeviceSetHostname_v1(nvmlDevice_t device, nvmlHostname_v1_t* hostname) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: |
| 7344 | + global __nvmlDeviceSetHostname_v1 |
| 7345 | + _check_or_init_nvml() |
| 7346 | + if __nvmlDeviceSetHostname_v1 == NULL: |
| 7347 | + with gil: |
| 7348 | + raise FunctionNotFoundError("function nvmlDeviceSetHostname_v1 is not found") |
| 7349 | + return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlHostname_v1_t*) noexcept nogil>__nvmlDeviceSetHostname_v1)( |
| 7350 | + device, hostname) |
| 7351 | + |
| 7352 | + |
| 7353 | +cdef nvmlReturn_t _nvmlDeviceGetHostname_v1(nvmlDevice_t device, nvmlHostname_v1_t* hostname) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: |
| 7354 | + global __nvmlDeviceGetHostname_v1 |
| 7355 | + _check_or_init_nvml() |
| 7356 | + if __nvmlDeviceGetHostname_v1 == NULL: |
| 7357 | + with gil: |
| 7358 | + raise FunctionNotFoundError("function nvmlDeviceGetHostname_v1 is not found") |
| 7359 | + return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlHostname_v1_t*) noexcept nogil>__nvmlDeviceGetHostname_v1)( |
| 7360 | + device, hostname) |
| 7361 | + |
| 7362 | + |
| 7363 | +cdef nvmlReturn_t _nvmlDeviceGetNvLinkInfo(nvmlDevice_t device, nvmlNvLinkInfo_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: |
| 7364 | + global __nvmlDeviceGetNvLinkInfo |
| 7365 | + _check_or_init_nvml() |
| 7366 | + if __nvmlDeviceGetNvLinkInfo == NULL: |
| 7367 | + with gil: |
| 7368 | + raise FunctionNotFoundError("function nvmlDeviceGetNvLinkInfo is not found") |
| 7369 | + return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlNvLinkInfo_t*) noexcept nogil>__nvmlDeviceGetNvLinkInfo)( |
| 7370 | + device, info) |
| 7371 | + |
| 7372 | + |
| 7373 | +cdef nvmlReturn_t _nvmlDeviceReadWritePRM_v1(nvmlDevice_t device, nvmlPRMTLV_v1_t* buffer) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: |
| 7374 | + global __nvmlDeviceReadWritePRM_v1 |
| 7375 | + _check_or_init_nvml() |
| 7376 | + if __nvmlDeviceReadWritePRM_v1 == NULL: |
| 7377 | + with gil: |
| 7378 | + raise FunctionNotFoundError("function nvmlDeviceReadWritePRM_v1 is not found") |
| 7379 | + return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPRMTLV_v1_t*) noexcept nogil>__nvmlDeviceReadWritePRM_v1)( |
| 7380 | + device, buffer) |
| 7381 | + |
| 7382 | + |
| 7383 | +cdef nvmlReturn_t _nvmlDeviceGetGpuInstanceProfileInfoByIdV(nvmlDevice_t device, unsigned int profileId, nvmlGpuInstanceProfileInfo_v2_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: |
| 7384 | + global __nvmlDeviceGetGpuInstanceProfileInfoByIdV |
| 7385 | + _check_or_init_nvml() |
| 7386 | + if __nvmlDeviceGetGpuInstanceProfileInfoByIdV == NULL: |
| 7387 | + with gil: |
| 7388 | + raise FunctionNotFoundError("function nvmlDeviceGetGpuInstanceProfileInfoByIdV is not found") |
| 7389 | + return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlGpuInstanceProfileInfo_v2_t*) noexcept nogil>__nvmlDeviceGetGpuInstanceProfileInfoByIdV)( |
| 7390 | + device, profileId, info) |
| 7391 | + |
| 7392 | + |
| 7393 | +cdef nvmlReturn_t _nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts(nvmlDevice_t device, nvmlEccSramUniqueUncorrectedErrorCounts_t* errorCounts) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: |
| 7394 | + global __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts |
| 7395 | + _check_or_init_nvml() |
| 7396 | + if __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts == NULL: |
| 7397 | + with gil: |
| 7398 | + raise FunctionNotFoundError("function nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts is not found") |
| 7399 | + return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEccSramUniqueUncorrectedErrorCounts_t*) noexcept nogil>__nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts)( |
| 7400 | + device, errorCounts) |
0 commit comments