Skip to content

Commit e2bd835

Browse files
committed
Handle backport correctly
1 parent 2060af5 commit e2bd835

7 files changed

Lines changed: 3882 additions & 1459 deletions

File tree

cuda_bindings/cuda/bindings/_internal/_nvml.pxd

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
44
#
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.
66

77
from ..cy_nvml cimport *
88

@@ -168,6 +168,7 @@ cdef nvmlReturn_t _nvmlSystemSetConfComputeKeyRotationThresholdInfo(nvmlConfComp
168168
cdef nvmlReturn_t _nvmlSystemGetConfComputeSettings(nvmlSystemConfComputeSettings_t* settings) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil
169169
cdef nvmlReturn_t _nvmlDeviceGetGspFirmwareVersion(nvmlDevice_t device, char* version) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil
170170
cdef nvmlReturn_t _nvmlDeviceGetGspFirmwareMode(nvmlDevice_t device, unsigned int* isEnabled, unsigned int* defaultMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil
171+
cdef nvmlReturn_t _nvmlDeviceGetSramEccErrorStatus(nvmlDevice_t device, nvmlEccSramErrorStatus_t* status) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil
171172
cdef nvmlReturn_t _nvmlDeviceGetAccountingMode(nvmlDevice_t device, nvmlEnableState_t* mode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil
172173
cdef nvmlReturn_t _nvmlDeviceGetAccountingStats(nvmlDevice_t device, unsigned int pid, nvmlAccountingStats_t* stats) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil
173174
cdef nvmlReturn_t _nvmlDeviceGetAccountingPids(nvmlDevice_t device, unsigned int* count, unsigned int* pids) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil
@@ -346,3 +347,14 @@ cdef nvmlReturn_t _nvmlDeviceWorkloadPowerProfileClearRequestedProfiles(nvmlDevi
346347
cdef nvmlReturn_t _nvmlDevicePowerSmoothingActivatePresetProfile(nvmlDevice_t device, nvmlPowerSmoothingProfile_t* profile) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil
347348
cdef nvmlReturn_t _nvmlDevicePowerSmoothingUpdatePresetProfileParam(nvmlDevice_t device, nvmlPowerSmoothingProfile_t* profile) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil
348349
cdef nvmlReturn_t _nvmlDevicePowerSmoothingSetState(nvmlDevice_t device, nvmlPowerSmoothingState_t* state) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil
350+
cdef nvmlReturn_t _nvmlDeviceGetAddressingMode(nvmlDevice_t device, nvmlDeviceAddressingMode_t* mode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil
351+
cdef nvmlReturn_t _nvmlDeviceGetRepairStatus(nvmlDevice_t device, nvmlRepairStatus_t* repairStatus) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil
352+
cdef nvmlReturn_t _nvmlDeviceGetPowerMizerMode_v1(nvmlDevice_t device, nvmlDevicePowerMizerModes_v1_t* powerMizerMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil
353+
cdef nvmlReturn_t _nvmlDeviceSetPowerMizerMode_v1(nvmlDevice_t device, nvmlDevicePowerMizerModes_v1_t* powerMizerMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil
354+
cdef nvmlReturn_t _nvmlDeviceGetPdi(nvmlDevice_t device, nvmlPdi_t* pdi) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil
355+
cdef nvmlReturn_t _nvmlDeviceSetHostname_v1(nvmlDevice_t device, nvmlHostname_v1_t* hostname) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil
356+
cdef nvmlReturn_t _nvmlDeviceGetHostname_v1(nvmlDevice_t device, nvmlHostname_v1_t* hostname) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil
357+
cdef nvmlReturn_t _nvmlDeviceGetNvLinkInfo(nvmlDevice_t device, nvmlNvLinkInfo_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil
358+
cdef nvmlReturn_t _nvmlDeviceReadWritePRM_v1(nvmlDevice_t device, nvmlPRMTLV_v1_t* buffer) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil
359+
cdef nvmlReturn_t _nvmlDeviceGetGpuInstanceProfileInfoByIdV(nvmlDevice_t device, unsigned int profileId, nvmlGpuInstanceProfileInfo_v2_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil
360+
cdef nvmlReturn_t _nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts(nvmlDevice_t device, nvmlEccSramUniqueUncorrectedErrorCounts_t* errorCounts) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil

cuda_bindings/cuda/bindings/_internal/_nvml_linux.pyx

Lines changed: 253 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
44
#
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.
66

77
from libc.stdint cimport intptr_t, uintptr_t
88

@@ -217,6 +217,7 @@ cdef void* __nvmlSystemSetConfComputeKeyRotationThresholdInfo = NULL
217217
cdef void* __nvmlSystemGetConfComputeSettings = NULL
218218
cdef void* __nvmlDeviceGetGspFirmwareVersion = NULL
219219
cdef void* __nvmlDeviceGetGspFirmwareMode = NULL
220+
cdef void* __nvmlDeviceGetSramEccErrorStatus = NULL
220221
cdef void* __nvmlDeviceGetAccountingMode = NULL
221222
cdef void* __nvmlDeviceGetAccountingStats = NULL
222223
cdef void* __nvmlDeviceGetAccountingPids = NULL
@@ -395,6 +396,17 @@ cdef void* __nvmlDeviceWorkloadPowerProfileClearRequestedProfiles = NULL
395396
cdef void* __nvmlDevicePowerSmoothingActivatePresetProfile = NULL
396397
cdef void* __nvmlDevicePowerSmoothingUpdatePresetProfileParam = NULL
397398
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
398410

399411

400412
cdef void* load_library() except* with gil:
@@ -1510,6 +1522,13 @@ cdef int _init_nvml() except -1 nogil:
15101522
handle = load_library()
15111523
__nvmlDeviceGetGspFirmwareMode = dlsym(handle, 'nvmlDeviceGetGspFirmwareMode')
15121524

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+
15131532
global __nvmlDeviceGetAccountingMode
15141533
__nvmlDeviceGetAccountingMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetAccountingMode')
15151534
if __nvmlDeviceGetAccountingMode == NULL:
@@ -2756,6 +2775,83 @@ cdef int _init_nvml() except -1 nogil:
27562775
handle = load_library()
27572776
__nvmlDevicePowerSmoothingSetState = dlsym(handle, 'nvmlDevicePowerSmoothingSetState')
27582777

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+
27592855
__py_nvml_init = True
27602856
return 0
27612857

@@ -3249,6 +3345,9 @@ cpdef dict _inspect_function_pointers():
32493345
global __nvmlDeviceGetGspFirmwareMode
32503346
data["__nvmlDeviceGetGspFirmwareMode"] = <intptr_t>__nvmlDeviceGetGspFirmwareMode
32513347

3348+
global __nvmlDeviceGetSramEccErrorStatus
3349+
data["__nvmlDeviceGetSramEccErrorStatus"] = <intptr_t>__nvmlDeviceGetSramEccErrorStatus
3350+
32523351
global __nvmlDeviceGetAccountingMode
32533352
data["__nvmlDeviceGetAccountingMode"] = <intptr_t>__nvmlDeviceGetAccountingMode
32543353

@@ -3783,6 +3882,39 @@ cpdef dict _inspect_function_pointers():
37833882
global __nvmlDevicePowerSmoothingSetState
37843883
data["__nvmlDevicePowerSmoothingSetState"] = <intptr_t>__nvmlDevicePowerSmoothingSetState
37853884

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+
37863918
func_ptrs = data
37873919
return data
37883920

@@ -5368,6 +5500,16 @@ cdef nvmlReturn_t _nvmlDeviceGetGspFirmwareMode(nvmlDevice_t device, unsigned in
53685500
device, isEnabled, defaultMode)
53695501

53705502

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+
53715513
cdef nvmlReturn_t _nvmlDeviceGetAccountingMode(nvmlDevice_t device, nvmlEnableState_t* mode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
53725514
global __nvmlDeviceGetAccountingMode
53735515
_check_or_init_nvml()
@@ -7146,3 +7288,113 @@ cdef nvmlReturn_t _nvmlDevicePowerSmoothingSetState(nvmlDevice_t device, nvmlPow
71467288
raise FunctionNotFoundError("function nvmlDevicePowerSmoothingSetState is not found")
71477289
return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPowerSmoothingState_t*) noexcept nogil>__nvmlDevicePowerSmoothingSetState)(
71487290
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

Comments
 (0)