Coverage for cuda / bindings / _internal / _nvml.pyx: 33%
4556 statements
« prev ^ index » next coverage.py v7.13.0, created at 2025-12-10 01:19 +0000
« prev ^ index » next coverage.py v7.13.0, created at 2025-12-10 01:19 +0000
1# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2#
3# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
4#
5# This code was automatically generated across versions from 12.9.1 to 13.0.1. Do not modify it directly.
7from libc.stdint cimport intptr_t, uintptr_t
9import threading
11from .utils import FunctionNotFoundError, NotSupportedError
13from cuda.pathfinder import load_nvidia_dynamic_lib
16###############################################################################
17# Extern
18###############################################################################
20# You must 'from .utils import NotSupportedError' before using this template
22cdef extern from "<dlfcn.h>" nogil:
23 void* dlopen(const char*, int)
24 char* dlerror()
25 void* dlsym(void*, const char*)
26 int dlclose(void*)
28 enum:
29 RTLD_LAZY
30 RTLD_NOW
31 RTLD_GLOBAL
32 RTLD_LOCAL
34 const void* RTLD_DEFAULT 'RTLD_DEFAULT'
36cdef int get_cuda_version():
37 cdef void* handle = NULL
38 cdef int err, driver_ver = 0
40 # Load driver to check version
41 handle = dlopen('libcuda.so.1', RTLD_NOW | RTLD_GLOBAL)
42 if handle == NULL:
43 err_msg = dlerror()
44 raise NotSupportedError(f'CUDA driver is not found ({err_msg.decode()})')
45 cuDriverGetVersion = dlsym(handle, "cuDriverGetVersion")
46 if cuDriverGetVersion == NULL:
47 raise RuntimeError('Did not find cuDriverGetVersion symbol in libcuda.so.1')
48 err = (<int (*)(int*) noexcept nogil>cuDriverGetVersion)(&driver_ver)
49 if err != 0:
50 raise RuntimeError(f'cuDriverGetVersion returned error code {err}')
52 return driver_ver
56###############################################################################
57# Wrapper init
58###############################################################################
60cdef object __symbol_lock = threading.Lock()
61cdef bint __py_nvml_init = False
63cdef void* __nvmlInit_v2 = NULL
64cdef void* __nvmlInitWithFlags = NULL
65cdef void* __nvmlShutdown = NULL
66cdef void* __nvmlErrorString = NULL
67cdef void* __nvmlSystemGetDriverVersion = NULL
68cdef void* __nvmlSystemGetNVMLVersion = NULL
69cdef void* __nvmlSystemGetCudaDriverVersion = NULL
70cdef void* __nvmlSystemGetCudaDriverVersion_v2 = NULL
71cdef void* __nvmlSystemGetProcessName = NULL
72cdef void* __nvmlSystemGetHicVersion = NULL
73cdef void* __nvmlSystemGetTopologyGpuSet = NULL
74cdef void* __nvmlSystemGetDriverBranch = NULL
75cdef void* __nvmlUnitGetCount = NULL
76cdef void* __nvmlUnitGetHandleByIndex = NULL
77cdef void* __nvmlUnitGetUnitInfo = NULL
78cdef void* __nvmlUnitGetLedState = NULL
79cdef void* __nvmlUnitGetPsuInfo = NULL
80cdef void* __nvmlUnitGetTemperature = NULL
81cdef void* __nvmlUnitGetFanSpeedInfo = NULL
82cdef void* __nvmlUnitGetDevices = NULL
83cdef void* __nvmlDeviceGetCount_v2 = NULL
84cdef void* __nvmlDeviceGetAttributes_v2 = NULL
85cdef void* __nvmlDeviceGetHandleByIndex_v2 = NULL
86cdef void* __nvmlDeviceGetHandleBySerial = NULL
87cdef void* __nvmlDeviceGetHandleByUUID = NULL
88cdef void* __nvmlDeviceGetHandleByUUIDV = NULL
89cdef void* __nvmlDeviceGetHandleByPciBusId_v2 = NULL
90cdef void* __nvmlDeviceGetName = NULL
91cdef void* __nvmlDeviceGetBrand = NULL
92cdef void* __nvmlDeviceGetIndex = NULL
93cdef void* __nvmlDeviceGetSerial = NULL
94cdef void* __nvmlDeviceGetModuleId = NULL
95cdef void* __nvmlDeviceGetC2cModeInfoV = NULL
96cdef void* __nvmlDeviceGetMemoryAffinity = NULL
97cdef void* __nvmlDeviceGetCpuAffinityWithinScope = NULL
98cdef void* __nvmlDeviceGetCpuAffinity = NULL
99cdef void* __nvmlDeviceSetCpuAffinity = NULL
100cdef void* __nvmlDeviceClearCpuAffinity = NULL
101cdef void* __nvmlDeviceGetNumaNodeId = NULL
102cdef void* __nvmlDeviceGetTopologyCommonAncestor = NULL
103cdef void* __nvmlDeviceGetTopologyNearestGpus = NULL
104cdef void* __nvmlDeviceGetP2PStatus = NULL
105cdef void* __nvmlDeviceGetUUID = NULL
106cdef void* __nvmlDeviceGetMinorNumber = NULL
107cdef void* __nvmlDeviceGetBoardPartNumber = NULL
108cdef void* __nvmlDeviceGetInforomVersion = NULL
109cdef void* __nvmlDeviceGetInforomImageVersion = NULL
110cdef void* __nvmlDeviceGetInforomConfigurationChecksum = NULL
111cdef void* __nvmlDeviceValidateInforom = NULL
112cdef void* __nvmlDeviceGetLastBBXFlushTime = NULL
113cdef void* __nvmlDeviceGetDisplayMode = NULL
114cdef void* __nvmlDeviceGetDisplayActive = NULL
115cdef void* __nvmlDeviceGetPersistenceMode = NULL
116cdef void* __nvmlDeviceGetPciInfoExt = NULL
117cdef void* __nvmlDeviceGetPciInfo_v3 = NULL
118cdef void* __nvmlDeviceGetMaxPcieLinkGeneration = NULL
119cdef void* __nvmlDeviceGetGpuMaxPcieLinkGeneration = NULL
120cdef void* __nvmlDeviceGetMaxPcieLinkWidth = NULL
121cdef void* __nvmlDeviceGetCurrPcieLinkGeneration = NULL
122cdef void* __nvmlDeviceGetCurrPcieLinkWidth = NULL
123cdef void* __nvmlDeviceGetPcieThroughput = NULL
124cdef void* __nvmlDeviceGetPcieReplayCounter = NULL
125cdef void* __nvmlDeviceGetClockInfo = NULL
126cdef void* __nvmlDeviceGetMaxClockInfo = NULL
127cdef void* __nvmlDeviceGetGpcClkVfOffset = NULL
128cdef void* __nvmlDeviceGetClock = NULL
129cdef void* __nvmlDeviceGetMaxCustomerBoostClock = NULL
130cdef void* __nvmlDeviceGetSupportedMemoryClocks = NULL
131cdef void* __nvmlDeviceGetSupportedGraphicsClocks = NULL
132cdef void* __nvmlDeviceGetAutoBoostedClocksEnabled = NULL
133cdef void* __nvmlDeviceGetFanSpeed = NULL
134cdef void* __nvmlDeviceGetFanSpeed_v2 = NULL
135cdef void* __nvmlDeviceGetFanSpeedRPM = NULL
136cdef void* __nvmlDeviceGetTargetFanSpeed = NULL
137cdef void* __nvmlDeviceGetMinMaxFanSpeed = NULL
138cdef void* __nvmlDeviceGetFanControlPolicy_v2 = NULL
139cdef void* __nvmlDeviceGetNumFans = NULL
140cdef void* __nvmlDeviceGetCoolerInfo = NULL
141cdef void* __nvmlDeviceGetTemperatureV = NULL
142cdef void* __nvmlDeviceGetTemperatureThreshold = NULL
143cdef void* __nvmlDeviceGetMarginTemperature = NULL
144cdef void* __nvmlDeviceGetThermalSettings = NULL
145cdef void* __nvmlDeviceGetPerformanceState = NULL
146cdef void* __nvmlDeviceGetCurrentClocksEventReasons = NULL
147cdef void* __nvmlDeviceGetSupportedClocksEventReasons = NULL
148cdef void* __nvmlDeviceGetPowerState = NULL
149cdef void* __nvmlDeviceGetDynamicPstatesInfo = NULL
150cdef void* __nvmlDeviceGetMemClkVfOffset = NULL
151cdef void* __nvmlDeviceGetMinMaxClockOfPState = NULL
152cdef void* __nvmlDeviceGetSupportedPerformanceStates = NULL
153cdef void* __nvmlDeviceGetGpcClkMinMaxVfOffset = NULL
154cdef void* __nvmlDeviceGetMemClkMinMaxVfOffset = NULL
155cdef void* __nvmlDeviceGetClockOffsets = NULL
156cdef void* __nvmlDeviceSetClockOffsets = NULL
157cdef void* __nvmlDeviceGetPerformanceModes = NULL
158cdef void* __nvmlDeviceGetCurrentClockFreqs = NULL
159cdef void* __nvmlDeviceGetPowerManagementLimit = NULL
160cdef void* __nvmlDeviceGetPowerManagementLimitConstraints = NULL
161cdef void* __nvmlDeviceGetPowerManagementDefaultLimit = NULL
162cdef void* __nvmlDeviceGetPowerUsage = NULL
163cdef void* __nvmlDeviceGetTotalEnergyConsumption = NULL
164cdef void* __nvmlDeviceGetEnforcedPowerLimit = NULL
165cdef void* __nvmlDeviceGetGpuOperationMode = NULL
166cdef void* __nvmlDeviceGetMemoryInfo_v2 = NULL
167cdef void* __nvmlDeviceGetComputeMode = NULL
168cdef void* __nvmlDeviceGetCudaComputeCapability = NULL
169cdef void* __nvmlDeviceGetDramEncryptionMode = NULL
170cdef void* __nvmlDeviceSetDramEncryptionMode = NULL
171cdef void* __nvmlDeviceGetEccMode = NULL
172cdef void* __nvmlDeviceGetDefaultEccMode = NULL
173cdef void* __nvmlDeviceGetBoardId = NULL
174cdef void* __nvmlDeviceGetMultiGpuBoard = NULL
175cdef void* __nvmlDeviceGetTotalEccErrors = NULL
176cdef void* __nvmlDeviceGetMemoryErrorCounter = NULL
177cdef void* __nvmlDeviceGetUtilizationRates = NULL
178cdef void* __nvmlDeviceGetEncoderUtilization = NULL
179cdef void* __nvmlDeviceGetEncoderCapacity = NULL
180cdef void* __nvmlDeviceGetEncoderStats = NULL
181cdef void* __nvmlDeviceGetEncoderSessions = NULL
182cdef void* __nvmlDeviceGetDecoderUtilization = NULL
183cdef void* __nvmlDeviceGetJpgUtilization = NULL
184cdef void* __nvmlDeviceGetOfaUtilization = NULL
185cdef void* __nvmlDeviceGetFBCStats = NULL
186cdef void* __nvmlDeviceGetFBCSessions = NULL
187cdef void* __nvmlDeviceGetDriverModel_v2 = NULL
188cdef void* __nvmlDeviceGetVbiosVersion = NULL
189cdef void* __nvmlDeviceGetBridgeChipInfo = NULL
190cdef void* __nvmlDeviceGetComputeRunningProcesses_v3 = NULL
191cdef void* __nvmlDeviceGetMPSComputeRunningProcesses_v3 = NULL
192cdef void* __nvmlDeviceGetRunningProcessDetailList = NULL
193cdef void* __nvmlDeviceOnSameBoard = NULL
194cdef void* __nvmlDeviceGetAPIRestriction = NULL
195cdef void* __nvmlDeviceGetSamples = NULL
196cdef void* __nvmlDeviceGetBAR1MemoryInfo = NULL
197cdef void* __nvmlDeviceGetIrqNum = NULL
198cdef void* __nvmlDeviceGetNumGpuCores = NULL
199cdef void* __nvmlDeviceGetPowerSource = NULL
200cdef void* __nvmlDeviceGetMemoryBusWidth = NULL
201cdef void* __nvmlDeviceGetPcieLinkMaxSpeed = NULL
202cdef void* __nvmlDeviceGetPcieSpeed = NULL
203cdef void* __nvmlDeviceGetAdaptiveClockInfoStatus = NULL
204cdef void* __nvmlDeviceGetBusType = NULL
205cdef void* __nvmlDeviceGetGpuFabricInfoV = NULL
206cdef void* __nvmlSystemGetConfComputeCapabilities = NULL
207cdef void* __nvmlSystemGetConfComputeState = NULL
208cdef void* __nvmlDeviceGetConfComputeMemSizeInfo = NULL
209cdef void* __nvmlSystemGetConfComputeGpusReadyState = NULL
210cdef void* __nvmlDeviceGetConfComputeProtectedMemoryUsage = NULL
211cdef void* __nvmlDeviceGetConfComputeGpuCertificate = NULL
212cdef void* __nvmlDeviceGetConfComputeGpuAttestationReport = NULL
213cdef void* __nvmlSystemGetConfComputeKeyRotationThresholdInfo = NULL
214cdef void* __nvmlDeviceSetConfComputeUnprotectedMemSize = NULL
215cdef void* __nvmlSystemSetConfComputeGpusReadyState = NULL
216cdef void* __nvmlSystemSetConfComputeKeyRotationThresholdInfo = NULL
217cdef void* __nvmlSystemGetConfComputeSettings = NULL
218cdef void* __nvmlDeviceGetGspFirmwareVersion = NULL
219cdef void* __nvmlDeviceGetGspFirmwareMode = NULL
220cdef void* __nvmlDeviceGetSramEccErrorStatus = NULL
221cdef void* __nvmlDeviceGetAccountingMode = NULL
222cdef void* __nvmlDeviceGetAccountingStats = NULL
223cdef void* __nvmlDeviceGetAccountingPids = NULL
224cdef void* __nvmlDeviceGetAccountingBufferSize = NULL
225cdef void* __nvmlDeviceGetRetiredPages = NULL
226cdef void* __nvmlDeviceGetRetiredPages_v2 = NULL
227cdef void* __nvmlDeviceGetRetiredPagesPendingStatus = NULL
228cdef void* __nvmlDeviceGetRemappedRows = NULL
229cdef void* __nvmlDeviceGetRowRemapperHistogram = NULL
230cdef void* __nvmlDeviceGetArchitecture = NULL
231cdef void* __nvmlDeviceGetClkMonStatus = NULL
232cdef void* __nvmlDeviceGetProcessUtilization = NULL
233cdef void* __nvmlDeviceGetProcessesUtilizationInfo = NULL
234cdef void* __nvmlDeviceGetPlatformInfo = NULL
235cdef void* __nvmlUnitSetLedState = NULL
236cdef void* __nvmlDeviceSetPersistenceMode = NULL
237cdef void* __nvmlDeviceSetComputeMode = NULL
238cdef void* __nvmlDeviceSetEccMode = NULL
239cdef void* __nvmlDeviceClearEccErrorCounts = NULL
240cdef void* __nvmlDeviceSetDriverModel = NULL
241cdef void* __nvmlDeviceSetGpuLockedClocks = NULL
242cdef void* __nvmlDeviceResetGpuLockedClocks = NULL
243cdef void* __nvmlDeviceSetMemoryLockedClocks = NULL
244cdef void* __nvmlDeviceResetMemoryLockedClocks = NULL
245cdef void* __nvmlDeviceSetAutoBoostedClocksEnabled = NULL
246cdef void* __nvmlDeviceSetDefaultAutoBoostedClocksEnabled = NULL
247cdef void* __nvmlDeviceSetDefaultFanSpeed_v2 = NULL
248cdef void* __nvmlDeviceSetFanControlPolicy = NULL
249cdef void* __nvmlDeviceSetTemperatureThreshold = NULL
250cdef void* __nvmlDeviceSetPowerManagementLimit = NULL
251cdef void* __nvmlDeviceSetGpuOperationMode = NULL
252cdef void* __nvmlDeviceSetAPIRestriction = NULL
253cdef void* __nvmlDeviceSetFanSpeed_v2 = NULL
254cdef void* __nvmlDeviceSetAccountingMode = NULL
255cdef void* __nvmlDeviceClearAccountingPids = NULL
256cdef void* __nvmlDeviceSetPowerManagementLimit_v2 = NULL
257cdef void* __nvmlDeviceGetNvLinkState = NULL
258cdef void* __nvmlDeviceGetNvLinkVersion = NULL
259cdef void* __nvmlDeviceGetNvLinkCapability = NULL
260cdef void* __nvmlDeviceGetNvLinkRemotePciInfo_v2 = NULL
261cdef void* __nvmlDeviceGetNvLinkErrorCounter = NULL
262cdef void* __nvmlDeviceResetNvLinkErrorCounters = NULL
263cdef void* __nvmlDeviceGetNvLinkRemoteDeviceType = NULL
264cdef void* __nvmlDeviceSetNvLinkDeviceLowPowerThreshold = NULL
265cdef void* __nvmlSystemSetNvlinkBwMode = NULL
266cdef void* __nvmlSystemGetNvlinkBwMode = NULL
267cdef void* __nvmlDeviceGetNvlinkSupportedBwModes = NULL
268cdef void* __nvmlDeviceGetNvlinkBwMode = NULL
269cdef void* __nvmlDeviceSetNvlinkBwMode = NULL
270cdef void* __nvmlEventSetCreate = NULL
271cdef void* __nvmlDeviceRegisterEvents = NULL
272cdef void* __nvmlDeviceGetSupportedEventTypes = NULL
273cdef void* __nvmlEventSetWait_v2 = NULL
274cdef void* __nvmlEventSetFree = NULL
275cdef void* __nvmlSystemEventSetCreate = NULL
276cdef void* __nvmlSystemEventSetFree = NULL
277cdef void* __nvmlSystemRegisterEvents = NULL
278cdef void* __nvmlSystemEventSetWait = NULL
279cdef void* __nvmlDeviceModifyDrainState = NULL
280cdef void* __nvmlDeviceQueryDrainState = NULL
281cdef void* __nvmlDeviceRemoveGpu_v2 = NULL
282cdef void* __nvmlDeviceDiscoverGpus = NULL
283cdef void* __nvmlDeviceGetFieldValues = NULL
284cdef void* __nvmlDeviceClearFieldValues = NULL
285cdef void* __nvmlDeviceGetVirtualizationMode = NULL
286cdef void* __nvmlDeviceGetHostVgpuMode = NULL
287cdef void* __nvmlDeviceSetVirtualizationMode = NULL
288cdef void* __nvmlDeviceGetVgpuHeterogeneousMode = NULL
289cdef void* __nvmlDeviceSetVgpuHeterogeneousMode = NULL
290cdef void* __nvmlVgpuInstanceGetPlacementId = NULL
291cdef void* __nvmlDeviceGetVgpuTypeSupportedPlacements = NULL
292cdef void* __nvmlDeviceGetVgpuTypeCreatablePlacements = NULL
293cdef void* __nvmlVgpuTypeGetGspHeapSize = NULL
294cdef void* __nvmlVgpuTypeGetFbReservation = NULL
295cdef void* __nvmlVgpuInstanceGetRuntimeStateSize = NULL
296cdef void* __nvmlDeviceSetVgpuCapabilities = NULL
297cdef void* __nvmlDeviceGetGridLicensableFeatures_v4 = NULL
298cdef void* __nvmlGetVgpuDriverCapabilities = NULL
299cdef void* __nvmlDeviceGetVgpuCapabilities = NULL
300cdef void* __nvmlDeviceGetSupportedVgpus = NULL
301cdef void* __nvmlDeviceGetCreatableVgpus = NULL
302cdef void* __nvmlVgpuTypeGetClass = NULL
303cdef void* __nvmlVgpuTypeGetName = NULL
304cdef void* __nvmlVgpuTypeGetGpuInstanceProfileId = NULL
305cdef void* __nvmlVgpuTypeGetDeviceID = NULL
306cdef void* __nvmlVgpuTypeGetFramebufferSize = NULL
307cdef void* __nvmlVgpuTypeGetNumDisplayHeads = NULL
308cdef void* __nvmlVgpuTypeGetResolution = NULL
309cdef void* __nvmlVgpuTypeGetLicense = NULL
310cdef void* __nvmlVgpuTypeGetFrameRateLimit = NULL
311cdef void* __nvmlVgpuTypeGetMaxInstances = NULL
312cdef void* __nvmlVgpuTypeGetMaxInstancesPerVm = NULL
313cdef void* __nvmlVgpuTypeGetBAR1Info = NULL
314cdef void* __nvmlDeviceGetActiveVgpus = NULL
315cdef void* __nvmlVgpuInstanceGetVmID = NULL
316cdef void* __nvmlVgpuInstanceGetUUID = NULL
317cdef void* __nvmlVgpuInstanceGetVmDriverVersion = NULL
318cdef void* __nvmlVgpuInstanceGetFbUsage = NULL
319cdef void* __nvmlVgpuInstanceGetLicenseStatus = NULL
320cdef void* __nvmlVgpuInstanceGetType = NULL
321cdef void* __nvmlVgpuInstanceGetFrameRateLimit = NULL
322cdef void* __nvmlVgpuInstanceGetEccMode = NULL
323cdef void* __nvmlVgpuInstanceGetEncoderCapacity = NULL
324cdef void* __nvmlVgpuInstanceSetEncoderCapacity = NULL
325cdef void* __nvmlVgpuInstanceGetEncoderStats = NULL
326cdef void* __nvmlVgpuInstanceGetEncoderSessions = NULL
327cdef void* __nvmlVgpuInstanceGetFBCStats = NULL
328cdef void* __nvmlVgpuInstanceGetFBCSessions = NULL
329cdef void* __nvmlVgpuInstanceGetGpuInstanceId = NULL
330cdef void* __nvmlVgpuInstanceGetGpuPciId = NULL
331cdef void* __nvmlVgpuTypeGetCapabilities = NULL
332cdef void* __nvmlVgpuInstanceGetMdevUUID = NULL
333cdef void* __nvmlGpuInstanceGetCreatableVgpus = NULL
334cdef void* __nvmlVgpuTypeGetMaxInstancesPerGpuInstance = NULL
335cdef void* __nvmlGpuInstanceGetActiveVgpus = NULL
336cdef void* __nvmlGpuInstanceSetVgpuSchedulerState = NULL
337cdef void* __nvmlGpuInstanceGetVgpuSchedulerState = NULL
338cdef void* __nvmlGpuInstanceGetVgpuSchedulerLog = NULL
339cdef void* __nvmlGpuInstanceGetVgpuTypeCreatablePlacements = NULL
340cdef void* __nvmlGpuInstanceGetVgpuHeterogeneousMode = NULL
341cdef void* __nvmlGpuInstanceSetVgpuHeterogeneousMode = NULL
342cdef void* __nvmlVgpuInstanceGetMetadata = NULL
343cdef void* __nvmlDeviceGetVgpuMetadata = NULL
344cdef void* __nvmlGetVgpuCompatibility = NULL
345cdef void* __nvmlDeviceGetPgpuMetadataString = NULL
346cdef void* __nvmlDeviceGetVgpuSchedulerLog = NULL
347cdef void* __nvmlDeviceGetVgpuSchedulerState = NULL
348cdef void* __nvmlDeviceGetVgpuSchedulerCapabilities = NULL
349cdef void* __nvmlDeviceSetVgpuSchedulerState = NULL
350cdef void* __nvmlGetVgpuVersion = NULL
351cdef void* __nvmlSetVgpuVersion = NULL
352cdef void* __nvmlDeviceGetVgpuUtilization = NULL
353cdef void* __nvmlDeviceGetVgpuInstancesUtilizationInfo = NULL
354cdef void* __nvmlDeviceGetVgpuProcessUtilization = NULL
355cdef void* __nvmlDeviceGetVgpuProcessesUtilizationInfo = NULL
356cdef void* __nvmlVgpuInstanceGetAccountingMode = NULL
357cdef void* __nvmlVgpuInstanceGetAccountingPids = NULL
358cdef void* __nvmlVgpuInstanceGetAccountingStats = NULL
359cdef void* __nvmlVgpuInstanceClearAccountingPids = NULL
360cdef void* __nvmlVgpuInstanceGetLicenseInfo_v2 = NULL
361cdef void* __nvmlGetExcludedDeviceCount = NULL
362cdef void* __nvmlGetExcludedDeviceInfoByIndex = NULL
363cdef void* __nvmlDeviceSetMigMode = NULL
364cdef void* __nvmlDeviceGetMigMode = NULL
365cdef void* __nvmlDeviceGetGpuInstanceProfileInfoV = NULL
366cdef void* __nvmlDeviceGetGpuInstancePossiblePlacements_v2 = NULL
367cdef void* __nvmlDeviceGetGpuInstanceRemainingCapacity = NULL
368cdef void* __nvmlDeviceCreateGpuInstance = NULL
369cdef void* __nvmlDeviceCreateGpuInstanceWithPlacement = NULL
370cdef void* __nvmlGpuInstanceDestroy = NULL
371cdef void* __nvmlDeviceGetGpuInstances = NULL
372cdef void* __nvmlDeviceGetGpuInstanceById = NULL
373cdef void* __nvmlGpuInstanceGetInfo = NULL
374cdef void* __nvmlGpuInstanceGetComputeInstanceProfileInfoV = NULL
375cdef void* __nvmlGpuInstanceGetComputeInstanceRemainingCapacity = NULL
376cdef void* __nvmlGpuInstanceGetComputeInstancePossiblePlacements = NULL
377cdef void* __nvmlGpuInstanceCreateComputeInstance = NULL
378cdef void* __nvmlGpuInstanceCreateComputeInstanceWithPlacement = NULL
379cdef void* __nvmlComputeInstanceDestroy = NULL
380cdef void* __nvmlGpuInstanceGetComputeInstances = NULL
381cdef void* __nvmlGpuInstanceGetComputeInstanceById = NULL
382cdef void* __nvmlComputeInstanceGetInfo_v2 = NULL
383cdef void* __nvmlDeviceIsMigDeviceHandle = NULL
384cdef void* __nvmlDeviceGetGpuInstanceId = NULL
385cdef void* __nvmlDeviceGetComputeInstanceId = NULL
386cdef void* __nvmlDeviceGetMaxMigDeviceCount = NULL
387cdef void* __nvmlDeviceGetMigDeviceHandleByIndex = NULL
388cdef void* __nvmlDeviceGetDeviceHandleFromMigDeviceHandle = NULL
389cdef void* __nvmlGpmSampleGet = NULL
390cdef void* __nvmlGpmMigSampleGet = NULL
391cdef void* __nvmlGpmQueryDeviceSupport = NULL
392cdef void* __nvmlGpmQueryIfStreamingEnabled = NULL
393cdef void* __nvmlGpmSetStreamingEnabled = NULL
394cdef void* __nvmlDeviceGetCapabilities = NULL
395cdef void* __nvmlDeviceWorkloadPowerProfileClearRequestedProfiles = NULL
396cdef void* __nvmlDevicePowerSmoothingActivatePresetProfile = NULL
397cdef void* __nvmlDevicePowerSmoothingUpdatePresetProfileParam = NULL
398cdef void* __nvmlDevicePowerSmoothingSetState = NULL
399cdef void* __nvmlDeviceGetAddressingMode = NULL
400cdef void* __nvmlDeviceGetRepairStatus = NULL
401cdef void* __nvmlDeviceGetPowerMizerMode_v1 = NULL
402cdef void* __nvmlDeviceSetPowerMizerMode_v1 = NULL
403cdef void* __nvmlDeviceGetPdi = NULL
404cdef void* __nvmlDeviceSetHostname_v1 = NULL
405cdef void* __nvmlDeviceGetHostname_v1 = NULL
406cdef void* __nvmlDeviceGetNvLinkInfo = NULL
407cdef void* __nvmlDeviceReadWritePRM_v1 = NULL
408cdef void* __nvmlDeviceGetGpuInstanceProfileInfoByIdV = NULL
409cdef void* __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts = NULL
412cdef void* load_library() except* with gil:
413 return dlopen("libnvidia-ml.so.1", RTLD_NOW | RTLD_GLOBAL)
416cdef int _init_nvml() except -1 nogil:
417 global __py_nvml_init
418 cdef void* handle = NULL
420 with gil, __symbol_lock:
421 # Recheck the flag after obtaining the locks
422 if __py_nvml_init:
423 return 0
425 # Load function
426 global __nvmlInit_v2
427 __nvmlInit_v2 = dlsym(RTLD_DEFAULT, 'nvmlInit_v2')
428 if __nvmlInit_v2 == NULL:
429 if handle == NULL:
430 handle = load_library()
431 __nvmlInit_v2 = dlsym(handle, 'nvmlInit_v2')
433 global __nvmlInitWithFlags
434 __nvmlInitWithFlags = dlsym(RTLD_DEFAULT, 'nvmlInitWithFlags')
435 if __nvmlInitWithFlags == NULL:
436 if handle == NULL:
437 handle = load_library()
438 __nvmlInitWithFlags = dlsym(handle, 'nvmlInitWithFlags')
440 global __nvmlShutdown
441 __nvmlShutdown = dlsym(RTLD_DEFAULT, 'nvmlShutdown')
442 if __nvmlShutdown == NULL:
443 if handle == NULL:
444 handle = load_library()
445 __nvmlShutdown = dlsym(handle, 'nvmlShutdown')
447 global __nvmlErrorString
448 __nvmlErrorString = dlsym(RTLD_DEFAULT, 'nvmlErrorString')
449 if __nvmlErrorString == NULL:
450 if handle == NULL:
451 handle = load_library()
452 __nvmlErrorString = dlsym(handle, 'nvmlErrorString')
454 global __nvmlSystemGetDriverVersion
455 __nvmlSystemGetDriverVersion = dlsym(RTLD_DEFAULT, 'nvmlSystemGetDriverVersion')
456 if __nvmlSystemGetDriverVersion == NULL:
457 if handle == NULL:
458 handle = load_library()
459 __nvmlSystemGetDriverVersion = dlsym(handle, 'nvmlSystemGetDriverVersion')
461 global __nvmlSystemGetNVMLVersion
462 __nvmlSystemGetNVMLVersion = dlsym(RTLD_DEFAULT, 'nvmlSystemGetNVMLVersion')
463 if __nvmlSystemGetNVMLVersion == NULL:
464 if handle == NULL:
465 handle = load_library()
466 __nvmlSystemGetNVMLVersion = dlsym(handle, 'nvmlSystemGetNVMLVersion')
468 global __nvmlSystemGetCudaDriverVersion
469 __nvmlSystemGetCudaDriverVersion = dlsym(RTLD_DEFAULT, 'nvmlSystemGetCudaDriverVersion')
470 if __nvmlSystemGetCudaDriverVersion == NULL:
471 if handle == NULL:
472 handle = load_library()
473 __nvmlSystemGetCudaDriverVersion = dlsym(handle, 'nvmlSystemGetCudaDriverVersion')
475 global __nvmlSystemGetCudaDriverVersion_v2
476 __nvmlSystemGetCudaDriverVersion_v2 = dlsym(RTLD_DEFAULT, 'nvmlSystemGetCudaDriverVersion_v2')
477 if __nvmlSystemGetCudaDriverVersion_v2 == NULL:
478 if handle == NULL:
479 handle = load_library()
480 __nvmlSystemGetCudaDriverVersion_v2 = dlsym(handle, 'nvmlSystemGetCudaDriverVersion_v2')
482 global __nvmlSystemGetProcessName
483 __nvmlSystemGetProcessName = dlsym(RTLD_DEFAULT, 'nvmlSystemGetProcessName')
484 if __nvmlSystemGetProcessName == NULL:
485 if handle == NULL:
486 handle = load_library()
487 __nvmlSystemGetProcessName = dlsym(handle, 'nvmlSystemGetProcessName')
489 global __nvmlSystemGetHicVersion
490 __nvmlSystemGetHicVersion = dlsym(RTLD_DEFAULT, 'nvmlSystemGetHicVersion')
491 if __nvmlSystemGetHicVersion == NULL:
492 if handle == NULL:
493 handle = load_library()
494 __nvmlSystemGetHicVersion = dlsym(handle, 'nvmlSystemGetHicVersion')
496 global __nvmlSystemGetTopologyGpuSet
497 __nvmlSystemGetTopologyGpuSet = dlsym(RTLD_DEFAULT, 'nvmlSystemGetTopologyGpuSet')
498 if __nvmlSystemGetTopologyGpuSet == NULL:
499 if handle == NULL:
500 handle = load_library()
501 __nvmlSystemGetTopologyGpuSet = dlsym(handle, 'nvmlSystemGetTopologyGpuSet')
503 global __nvmlSystemGetDriverBranch
504 __nvmlSystemGetDriverBranch = dlsym(RTLD_DEFAULT, 'nvmlSystemGetDriverBranch')
505 if __nvmlSystemGetDriverBranch == NULL:
506 if handle == NULL:
507 handle = load_library()
508 __nvmlSystemGetDriverBranch = dlsym(handle, 'nvmlSystemGetDriverBranch')
510 global __nvmlUnitGetCount
511 __nvmlUnitGetCount = dlsym(RTLD_DEFAULT, 'nvmlUnitGetCount')
512 if __nvmlUnitGetCount == NULL:
513 if handle == NULL:
514 handle = load_library()
515 __nvmlUnitGetCount = dlsym(handle, 'nvmlUnitGetCount')
517 global __nvmlUnitGetHandleByIndex
518 __nvmlUnitGetHandleByIndex = dlsym(RTLD_DEFAULT, 'nvmlUnitGetHandleByIndex')
519 if __nvmlUnitGetHandleByIndex == NULL:
520 if handle == NULL:
521 handle = load_library()
522 __nvmlUnitGetHandleByIndex = dlsym(handle, 'nvmlUnitGetHandleByIndex')
524 global __nvmlUnitGetUnitInfo
525 __nvmlUnitGetUnitInfo = dlsym(RTLD_DEFAULT, 'nvmlUnitGetUnitInfo')
526 if __nvmlUnitGetUnitInfo == NULL:
527 if handle == NULL:
528 handle = load_library()
529 __nvmlUnitGetUnitInfo = dlsym(handle, 'nvmlUnitGetUnitInfo')
531 global __nvmlUnitGetLedState
532 __nvmlUnitGetLedState = dlsym(RTLD_DEFAULT, 'nvmlUnitGetLedState')
533 if __nvmlUnitGetLedState == NULL:
534 if handle == NULL:
535 handle = load_library()
536 __nvmlUnitGetLedState = dlsym(handle, 'nvmlUnitGetLedState')
538 global __nvmlUnitGetPsuInfo
539 __nvmlUnitGetPsuInfo = dlsym(RTLD_DEFAULT, 'nvmlUnitGetPsuInfo')
540 if __nvmlUnitGetPsuInfo == NULL:
541 if handle == NULL:
542 handle = load_library()
543 __nvmlUnitGetPsuInfo = dlsym(handle, 'nvmlUnitGetPsuInfo')
545 global __nvmlUnitGetTemperature
546 __nvmlUnitGetTemperature = dlsym(RTLD_DEFAULT, 'nvmlUnitGetTemperature')
547 if __nvmlUnitGetTemperature == NULL:
548 if handle == NULL:
549 handle = load_library()
550 __nvmlUnitGetTemperature = dlsym(handle, 'nvmlUnitGetTemperature')
552 global __nvmlUnitGetFanSpeedInfo
553 __nvmlUnitGetFanSpeedInfo = dlsym(RTLD_DEFAULT, 'nvmlUnitGetFanSpeedInfo')
554 if __nvmlUnitGetFanSpeedInfo == NULL:
555 if handle == NULL:
556 handle = load_library()
557 __nvmlUnitGetFanSpeedInfo = dlsym(handle, 'nvmlUnitGetFanSpeedInfo')
559 global __nvmlUnitGetDevices
560 __nvmlUnitGetDevices = dlsym(RTLD_DEFAULT, 'nvmlUnitGetDevices')
561 if __nvmlUnitGetDevices == NULL:
562 if handle == NULL:
563 handle = load_library()
564 __nvmlUnitGetDevices = dlsym(handle, 'nvmlUnitGetDevices')
566 global __nvmlDeviceGetCount_v2
567 __nvmlDeviceGetCount_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetCount_v2')
568 if __nvmlDeviceGetCount_v2 == NULL:
569 if handle == NULL:
570 handle = load_library()
571 __nvmlDeviceGetCount_v2 = dlsym(handle, 'nvmlDeviceGetCount_v2')
573 global __nvmlDeviceGetAttributes_v2
574 __nvmlDeviceGetAttributes_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetAttributes_v2')
575 if __nvmlDeviceGetAttributes_v2 == NULL:
576 if handle == NULL:
577 handle = load_library()
578 __nvmlDeviceGetAttributes_v2 = dlsym(handle, 'nvmlDeviceGetAttributes_v2')
580 global __nvmlDeviceGetHandleByIndex_v2
581 __nvmlDeviceGetHandleByIndex_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetHandleByIndex_v2')
582 if __nvmlDeviceGetHandleByIndex_v2 == NULL:
583 if handle == NULL:
584 handle = load_library()
585 __nvmlDeviceGetHandleByIndex_v2 = dlsym(handle, 'nvmlDeviceGetHandleByIndex_v2')
587 global __nvmlDeviceGetHandleBySerial
588 __nvmlDeviceGetHandleBySerial = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetHandleBySerial')
589 if __nvmlDeviceGetHandleBySerial == NULL:
590 if handle == NULL:
591 handle = load_library()
592 __nvmlDeviceGetHandleBySerial = dlsym(handle, 'nvmlDeviceGetHandleBySerial')
594 global __nvmlDeviceGetHandleByUUID
595 __nvmlDeviceGetHandleByUUID = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetHandleByUUID')
596 if __nvmlDeviceGetHandleByUUID == NULL:
597 if handle == NULL:
598 handle = load_library()
599 __nvmlDeviceGetHandleByUUID = dlsym(handle, 'nvmlDeviceGetHandleByUUID')
601 global __nvmlDeviceGetHandleByUUIDV
602 __nvmlDeviceGetHandleByUUIDV = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetHandleByUUIDV')
603 if __nvmlDeviceGetHandleByUUIDV == NULL:
604 if handle == NULL:
605 handle = load_library()
606 __nvmlDeviceGetHandleByUUIDV = dlsym(handle, 'nvmlDeviceGetHandleByUUIDV')
608 global __nvmlDeviceGetHandleByPciBusId_v2
609 __nvmlDeviceGetHandleByPciBusId_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetHandleByPciBusId_v2')
610 if __nvmlDeviceGetHandleByPciBusId_v2 == NULL:
611 if handle == NULL:
612 handle = load_library()
613 __nvmlDeviceGetHandleByPciBusId_v2 = dlsym(handle, 'nvmlDeviceGetHandleByPciBusId_v2')
615 global __nvmlDeviceGetName
616 __nvmlDeviceGetName = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetName')
617 if __nvmlDeviceGetName == NULL:
618 if handle == NULL:
619 handle = load_library()
620 __nvmlDeviceGetName = dlsym(handle, 'nvmlDeviceGetName')
622 global __nvmlDeviceGetBrand
623 __nvmlDeviceGetBrand = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetBrand')
624 if __nvmlDeviceGetBrand == NULL:
625 if handle == NULL:
626 handle = load_library()
627 __nvmlDeviceGetBrand = dlsym(handle, 'nvmlDeviceGetBrand')
629 global __nvmlDeviceGetIndex
630 __nvmlDeviceGetIndex = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetIndex')
631 if __nvmlDeviceGetIndex == NULL:
632 if handle == NULL:
633 handle = load_library()
634 __nvmlDeviceGetIndex = dlsym(handle, 'nvmlDeviceGetIndex')
636 global __nvmlDeviceGetSerial
637 __nvmlDeviceGetSerial = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetSerial')
638 if __nvmlDeviceGetSerial == NULL:
639 if handle == NULL:
640 handle = load_library()
641 __nvmlDeviceGetSerial = dlsym(handle, 'nvmlDeviceGetSerial')
643 global __nvmlDeviceGetModuleId
644 __nvmlDeviceGetModuleId = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetModuleId')
645 if __nvmlDeviceGetModuleId == NULL:
646 if handle == NULL:
647 handle = load_library()
648 __nvmlDeviceGetModuleId = dlsym(handle, 'nvmlDeviceGetModuleId')
650 global __nvmlDeviceGetC2cModeInfoV
651 __nvmlDeviceGetC2cModeInfoV = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetC2cModeInfoV')
652 if __nvmlDeviceGetC2cModeInfoV == NULL:
653 if handle == NULL:
654 handle = load_library()
655 __nvmlDeviceGetC2cModeInfoV = dlsym(handle, 'nvmlDeviceGetC2cModeInfoV')
657 global __nvmlDeviceGetMemoryAffinity
658 __nvmlDeviceGetMemoryAffinity = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMemoryAffinity')
659 if __nvmlDeviceGetMemoryAffinity == NULL:
660 if handle == NULL:
661 handle = load_library()
662 __nvmlDeviceGetMemoryAffinity = dlsym(handle, 'nvmlDeviceGetMemoryAffinity')
664 global __nvmlDeviceGetCpuAffinityWithinScope
665 __nvmlDeviceGetCpuAffinityWithinScope = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetCpuAffinityWithinScope')
666 if __nvmlDeviceGetCpuAffinityWithinScope == NULL:
667 if handle == NULL:
668 handle = load_library()
669 __nvmlDeviceGetCpuAffinityWithinScope = dlsym(handle, 'nvmlDeviceGetCpuAffinityWithinScope')
671 global __nvmlDeviceGetCpuAffinity
672 __nvmlDeviceGetCpuAffinity = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetCpuAffinity')
673 if __nvmlDeviceGetCpuAffinity == NULL:
674 if handle == NULL:
675 handle = load_library()
676 __nvmlDeviceGetCpuAffinity = dlsym(handle, 'nvmlDeviceGetCpuAffinity')
678 global __nvmlDeviceSetCpuAffinity
679 __nvmlDeviceSetCpuAffinity = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetCpuAffinity')
680 if __nvmlDeviceSetCpuAffinity == NULL:
681 if handle == NULL:
682 handle = load_library()
683 __nvmlDeviceSetCpuAffinity = dlsym(handle, 'nvmlDeviceSetCpuAffinity')
685 global __nvmlDeviceClearCpuAffinity
686 __nvmlDeviceClearCpuAffinity = dlsym(RTLD_DEFAULT, 'nvmlDeviceClearCpuAffinity')
687 if __nvmlDeviceClearCpuAffinity == NULL:
688 if handle == NULL:
689 handle = load_library()
690 __nvmlDeviceClearCpuAffinity = dlsym(handle, 'nvmlDeviceClearCpuAffinity')
692 global __nvmlDeviceGetNumaNodeId
693 __nvmlDeviceGetNumaNodeId = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNumaNodeId')
694 if __nvmlDeviceGetNumaNodeId == NULL:
695 if handle == NULL:
696 handle = load_library()
697 __nvmlDeviceGetNumaNodeId = dlsym(handle, 'nvmlDeviceGetNumaNodeId')
699 global __nvmlDeviceGetTopologyCommonAncestor
700 __nvmlDeviceGetTopologyCommonAncestor = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetTopologyCommonAncestor')
701 if __nvmlDeviceGetTopologyCommonAncestor == NULL:
702 if handle == NULL:
703 handle = load_library()
704 __nvmlDeviceGetTopologyCommonAncestor = dlsym(handle, 'nvmlDeviceGetTopologyCommonAncestor')
706 global __nvmlDeviceGetTopologyNearestGpus
707 __nvmlDeviceGetTopologyNearestGpus = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetTopologyNearestGpus')
708 if __nvmlDeviceGetTopologyNearestGpus == NULL:
709 if handle == NULL:
710 handle = load_library()
711 __nvmlDeviceGetTopologyNearestGpus = dlsym(handle, 'nvmlDeviceGetTopologyNearestGpus')
713 global __nvmlDeviceGetP2PStatus
714 __nvmlDeviceGetP2PStatus = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetP2PStatus')
715 if __nvmlDeviceGetP2PStatus == NULL:
716 if handle == NULL:
717 handle = load_library()
718 __nvmlDeviceGetP2PStatus = dlsym(handle, 'nvmlDeviceGetP2PStatus')
720 global __nvmlDeviceGetUUID
721 __nvmlDeviceGetUUID = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetUUID')
722 if __nvmlDeviceGetUUID == NULL:
723 if handle == NULL:
724 handle = load_library()
725 __nvmlDeviceGetUUID = dlsym(handle, 'nvmlDeviceGetUUID')
727 global __nvmlDeviceGetMinorNumber
728 __nvmlDeviceGetMinorNumber = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMinorNumber')
729 if __nvmlDeviceGetMinorNumber == NULL:
730 if handle == NULL:
731 handle = load_library()
732 __nvmlDeviceGetMinorNumber = dlsym(handle, 'nvmlDeviceGetMinorNumber')
734 global __nvmlDeviceGetBoardPartNumber
735 __nvmlDeviceGetBoardPartNumber = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetBoardPartNumber')
736 if __nvmlDeviceGetBoardPartNumber == NULL:
737 if handle == NULL:
738 handle = load_library()
739 __nvmlDeviceGetBoardPartNumber = dlsym(handle, 'nvmlDeviceGetBoardPartNumber')
741 global __nvmlDeviceGetInforomVersion
742 __nvmlDeviceGetInforomVersion = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetInforomVersion')
743 if __nvmlDeviceGetInforomVersion == NULL:
744 if handle == NULL:
745 handle = load_library()
746 __nvmlDeviceGetInforomVersion = dlsym(handle, 'nvmlDeviceGetInforomVersion')
748 global __nvmlDeviceGetInforomImageVersion
749 __nvmlDeviceGetInforomImageVersion = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetInforomImageVersion')
750 if __nvmlDeviceGetInforomImageVersion == NULL:
751 if handle == NULL:
752 handle = load_library()
753 __nvmlDeviceGetInforomImageVersion = dlsym(handle, 'nvmlDeviceGetInforomImageVersion')
755 global __nvmlDeviceGetInforomConfigurationChecksum
756 __nvmlDeviceGetInforomConfigurationChecksum = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetInforomConfigurationChecksum')
757 if __nvmlDeviceGetInforomConfigurationChecksum == NULL:
758 if handle == NULL:
759 handle = load_library()
760 __nvmlDeviceGetInforomConfigurationChecksum = dlsym(handle, 'nvmlDeviceGetInforomConfigurationChecksum')
762 global __nvmlDeviceValidateInforom
763 __nvmlDeviceValidateInforom = dlsym(RTLD_DEFAULT, 'nvmlDeviceValidateInforom')
764 if __nvmlDeviceValidateInforom == NULL:
765 if handle == NULL:
766 handle = load_library()
767 __nvmlDeviceValidateInforom = dlsym(handle, 'nvmlDeviceValidateInforom')
769 global __nvmlDeviceGetLastBBXFlushTime
770 __nvmlDeviceGetLastBBXFlushTime = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetLastBBXFlushTime')
771 if __nvmlDeviceGetLastBBXFlushTime == NULL:
772 if handle == NULL:
773 handle = load_library()
774 __nvmlDeviceGetLastBBXFlushTime = dlsym(handle, 'nvmlDeviceGetLastBBXFlushTime')
776 global __nvmlDeviceGetDisplayMode
777 __nvmlDeviceGetDisplayMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetDisplayMode')
778 if __nvmlDeviceGetDisplayMode == NULL:
779 if handle == NULL:
780 handle = load_library()
781 __nvmlDeviceGetDisplayMode = dlsym(handle, 'nvmlDeviceGetDisplayMode')
783 global __nvmlDeviceGetDisplayActive
784 __nvmlDeviceGetDisplayActive = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetDisplayActive')
785 if __nvmlDeviceGetDisplayActive == NULL:
786 if handle == NULL:
787 handle = load_library()
788 __nvmlDeviceGetDisplayActive = dlsym(handle, 'nvmlDeviceGetDisplayActive')
790 global __nvmlDeviceGetPersistenceMode
791 __nvmlDeviceGetPersistenceMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPersistenceMode')
792 if __nvmlDeviceGetPersistenceMode == NULL:
793 if handle == NULL:
794 handle = load_library()
795 __nvmlDeviceGetPersistenceMode = dlsym(handle, 'nvmlDeviceGetPersistenceMode')
797 global __nvmlDeviceGetPciInfoExt
798 __nvmlDeviceGetPciInfoExt = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPciInfoExt')
799 if __nvmlDeviceGetPciInfoExt == NULL:
800 if handle == NULL:
801 handle = load_library()
802 __nvmlDeviceGetPciInfoExt = dlsym(handle, 'nvmlDeviceGetPciInfoExt')
804 global __nvmlDeviceGetPciInfo_v3
805 __nvmlDeviceGetPciInfo_v3 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPciInfo_v3')
806 if __nvmlDeviceGetPciInfo_v3 == NULL:
807 if handle == NULL:
808 handle = load_library()
809 __nvmlDeviceGetPciInfo_v3 = dlsym(handle, 'nvmlDeviceGetPciInfo_v3')
811 global __nvmlDeviceGetMaxPcieLinkGeneration
812 __nvmlDeviceGetMaxPcieLinkGeneration = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMaxPcieLinkGeneration')
813 if __nvmlDeviceGetMaxPcieLinkGeneration == NULL:
814 if handle == NULL:
815 handle = load_library()
816 __nvmlDeviceGetMaxPcieLinkGeneration = dlsym(handle, 'nvmlDeviceGetMaxPcieLinkGeneration')
818 global __nvmlDeviceGetGpuMaxPcieLinkGeneration
819 __nvmlDeviceGetGpuMaxPcieLinkGeneration = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpuMaxPcieLinkGeneration')
820 if __nvmlDeviceGetGpuMaxPcieLinkGeneration == NULL:
821 if handle == NULL:
822 handle = load_library()
823 __nvmlDeviceGetGpuMaxPcieLinkGeneration = dlsym(handle, 'nvmlDeviceGetGpuMaxPcieLinkGeneration')
825 global __nvmlDeviceGetMaxPcieLinkWidth
826 __nvmlDeviceGetMaxPcieLinkWidth = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMaxPcieLinkWidth')
827 if __nvmlDeviceGetMaxPcieLinkWidth == NULL:
828 if handle == NULL:
829 handle = load_library()
830 __nvmlDeviceGetMaxPcieLinkWidth = dlsym(handle, 'nvmlDeviceGetMaxPcieLinkWidth')
832 global __nvmlDeviceGetCurrPcieLinkGeneration
833 __nvmlDeviceGetCurrPcieLinkGeneration = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetCurrPcieLinkGeneration')
834 if __nvmlDeviceGetCurrPcieLinkGeneration == NULL:
835 if handle == NULL:
836 handle = load_library()
837 __nvmlDeviceGetCurrPcieLinkGeneration = dlsym(handle, 'nvmlDeviceGetCurrPcieLinkGeneration')
839 global __nvmlDeviceGetCurrPcieLinkWidth
840 __nvmlDeviceGetCurrPcieLinkWidth = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetCurrPcieLinkWidth')
841 if __nvmlDeviceGetCurrPcieLinkWidth == NULL:
842 if handle == NULL:
843 handle = load_library()
844 __nvmlDeviceGetCurrPcieLinkWidth = dlsym(handle, 'nvmlDeviceGetCurrPcieLinkWidth')
846 global __nvmlDeviceGetPcieThroughput
847 __nvmlDeviceGetPcieThroughput = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPcieThroughput')
848 if __nvmlDeviceGetPcieThroughput == NULL:
849 if handle == NULL:
850 handle = load_library()
851 __nvmlDeviceGetPcieThroughput = dlsym(handle, 'nvmlDeviceGetPcieThroughput')
853 global __nvmlDeviceGetPcieReplayCounter
854 __nvmlDeviceGetPcieReplayCounter = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPcieReplayCounter')
855 if __nvmlDeviceGetPcieReplayCounter == NULL:
856 if handle == NULL:
857 handle = load_library()
858 __nvmlDeviceGetPcieReplayCounter = dlsym(handle, 'nvmlDeviceGetPcieReplayCounter')
860 global __nvmlDeviceGetClockInfo
861 __nvmlDeviceGetClockInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetClockInfo')
862 if __nvmlDeviceGetClockInfo == NULL:
863 if handle == NULL:
864 handle = load_library()
865 __nvmlDeviceGetClockInfo = dlsym(handle, 'nvmlDeviceGetClockInfo')
867 global __nvmlDeviceGetMaxClockInfo
868 __nvmlDeviceGetMaxClockInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMaxClockInfo')
869 if __nvmlDeviceGetMaxClockInfo == NULL:
870 if handle == NULL:
871 handle = load_library()
872 __nvmlDeviceGetMaxClockInfo = dlsym(handle, 'nvmlDeviceGetMaxClockInfo')
874 global __nvmlDeviceGetGpcClkVfOffset
875 __nvmlDeviceGetGpcClkVfOffset = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpcClkVfOffset')
876 if __nvmlDeviceGetGpcClkVfOffset == NULL:
877 if handle == NULL:
878 handle = load_library()
879 __nvmlDeviceGetGpcClkVfOffset = dlsym(handle, 'nvmlDeviceGetGpcClkVfOffset')
881 global __nvmlDeviceGetClock
882 __nvmlDeviceGetClock = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetClock')
883 if __nvmlDeviceGetClock == NULL:
884 if handle == NULL:
885 handle = load_library()
886 __nvmlDeviceGetClock = dlsym(handle, 'nvmlDeviceGetClock')
888 global __nvmlDeviceGetMaxCustomerBoostClock
889 __nvmlDeviceGetMaxCustomerBoostClock = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMaxCustomerBoostClock')
890 if __nvmlDeviceGetMaxCustomerBoostClock == NULL:
891 if handle == NULL:
892 handle = load_library()
893 __nvmlDeviceGetMaxCustomerBoostClock = dlsym(handle, 'nvmlDeviceGetMaxCustomerBoostClock')
895 global __nvmlDeviceGetSupportedMemoryClocks
896 __nvmlDeviceGetSupportedMemoryClocks = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetSupportedMemoryClocks')
897 if __nvmlDeviceGetSupportedMemoryClocks == NULL:
898 if handle == NULL:
899 handle = load_library()
900 __nvmlDeviceGetSupportedMemoryClocks = dlsym(handle, 'nvmlDeviceGetSupportedMemoryClocks')
902 global __nvmlDeviceGetSupportedGraphicsClocks
903 __nvmlDeviceGetSupportedGraphicsClocks = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetSupportedGraphicsClocks')
904 if __nvmlDeviceGetSupportedGraphicsClocks == NULL:
905 if handle == NULL:
906 handle = load_library()
907 __nvmlDeviceGetSupportedGraphicsClocks = dlsym(handle, 'nvmlDeviceGetSupportedGraphicsClocks')
909 global __nvmlDeviceGetAutoBoostedClocksEnabled
910 __nvmlDeviceGetAutoBoostedClocksEnabled = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetAutoBoostedClocksEnabled')
911 if __nvmlDeviceGetAutoBoostedClocksEnabled == NULL:
912 if handle == NULL:
913 handle = load_library()
914 __nvmlDeviceGetAutoBoostedClocksEnabled = dlsym(handle, 'nvmlDeviceGetAutoBoostedClocksEnabled')
916 global __nvmlDeviceGetFanSpeed
917 __nvmlDeviceGetFanSpeed = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetFanSpeed')
918 if __nvmlDeviceGetFanSpeed == NULL:
919 if handle == NULL:
920 handle = load_library()
921 __nvmlDeviceGetFanSpeed = dlsym(handle, 'nvmlDeviceGetFanSpeed')
923 global __nvmlDeviceGetFanSpeed_v2
924 __nvmlDeviceGetFanSpeed_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetFanSpeed_v2')
925 if __nvmlDeviceGetFanSpeed_v2 == NULL:
926 if handle == NULL:
927 handle = load_library()
928 __nvmlDeviceGetFanSpeed_v2 = dlsym(handle, 'nvmlDeviceGetFanSpeed_v2')
930 global __nvmlDeviceGetFanSpeedRPM
931 __nvmlDeviceGetFanSpeedRPM = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetFanSpeedRPM')
932 if __nvmlDeviceGetFanSpeedRPM == NULL:
933 if handle == NULL:
934 handle = load_library()
935 __nvmlDeviceGetFanSpeedRPM = dlsym(handle, 'nvmlDeviceGetFanSpeedRPM')
937 global __nvmlDeviceGetTargetFanSpeed
938 __nvmlDeviceGetTargetFanSpeed = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetTargetFanSpeed')
939 if __nvmlDeviceGetTargetFanSpeed == NULL:
940 if handle == NULL:
941 handle = load_library()
942 __nvmlDeviceGetTargetFanSpeed = dlsym(handle, 'nvmlDeviceGetTargetFanSpeed')
944 global __nvmlDeviceGetMinMaxFanSpeed
945 __nvmlDeviceGetMinMaxFanSpeed = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMinMaxFanSpeed')
946 if __nvmlDeviceGetMinMaxFanSpeed == NULL:
947 if handle == NULL:
948 handle = load_library()
949 __nvmlDeviceGetMinMaxFanSpeed = dlsym(handle, 'nvmlDeviceGetMinMaxFanSpeed')
951 global __nvmlDeviceGetFanControlPolicy_v2
952 __nvmlDeviceGetFanControlPolicy_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetFanControlPolicy_v2')
953 if __nvmlDeviceGetFanControlPolicy_v2 == NULL:
954 if handle == NULL:
955 handle = load_library()
956 __nvmlDeviceGetFanControlPolicy_v2 = dlsym(handle, 'nvmlDeviceGetFanControlPolicy_v2')
958 global __nvmlDeviceGetNumFans
959 __nvmlDeviceGetNumFans = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNumFans')
960 if __nvmlDeviceGetNumFans == NULL:
961 if handle == NULL:
962 handle = load_library()
963 __nvmlDeviceGetNumFans = dlsym(handle, 'nvmlDeviceGetNumFans')
965 global __nvmlDeviceGetCoolerInfo
966 __nvmlDeviceGetCoolerInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetCoolerInfo')
967 if __nvmlDeviceGetCoolerInfo == NULL:
968 if handle == NULL:
969 handle = load_library()
970 __nvmlDeviceGetCoolerInfo = dlsym(handle, 'nvmlDeviceGetCoolerInfo')
972 global __nvmlDeviceGetTemperatureV
973 __nvmlDeviceGetTemperatureV = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetTemperatureV')
974 if __nvmlDeviceGetTemperatureV == NULL:
975 if handle == NULL:
976 handle = load_library()
977 __nvmlDeviceGetTemperatureV = dlsym(handle, 'nvmlDeviceGetTemperatureV')
979 global __nvmlDeviceGetTemperatureThreshold
980 __nvmlDeviceGetTemperatureThreshold = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetTemperatureThreshold')
981 if __nvmlDeviceGetTemperatureThreshold == NULL:
982 if handle == NULL:
983 handle = load_library()
984 __nvmlDeviceGetTemperatureThreshold = dlsym(handle, 'nvmlDeviceGetTemperatureThreshold')
986 global __nvmlDeviceGetMarginTemperature
987 __nvmlDeviceGetMarginTemperature = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMarginTemperature')
988 if __nvmlDeviceGetMarginTemperature == NULL:
989 if handle == NULL:
990 handle = load_library()
991 __nvmlDeviceGetMarginTemperature = dlsym(handle, 'nvmlDeviceGetMarginTemperature')
993 global __nvmlDeviceGetThermalSettings
994 __nvmlDeviceGetThermalSettings = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetThermalSettings')
995 if __nvmlDeviceGetThermalSettings == NULL:
996 if handle == NULL:
997 handle = load_library()
998 __nvmlDeviceGetThermalSettings = dlsym(handle, 'nvmlDeviceGetThermalSettings')
1000 global __nvmlDeviceGetPerformanceState
1001 __nvmlDeviceGetPerformanceState = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPerformanceState')
1002 if __nvmlDeviceGetPerformanceState == NULL:
1003 if handle == NULL:
1004 handle = load_library()
1005 __nvmlDeviceGetPerformanceState = dlsym(handle, 'nvmlDeviceGetPerformanceState')
1007 global __nvmlDeviceGetCurrentClocksEventReasons
1008 __nvmlDeviceGetCurrentClocksEventReasons = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetCurrentClocksEventReasons')
1009 if __nvmlDeviceGetCurrentClocksEventReasons == NULL:
1010 if handle == NULL:
1011 handle = load_library()
1012 __nvmlDeviceGetCurrentClocksEventReasons = dlsym(handle, 'nvmlDeviceGetCurrentClocksEventReasons')
1014 global __nvmlDeviceGetSupportedClocksEventReasons
1015 __nvmlDeviceGetSupportedClocksEventReasons = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetSupportedClocksEventReasons')
1016 if __nvmlDeviceGetSupportedClocksEventReasons == NULL:
1017 if handle == NULL:
1018 handle = load_library()
1019 __nvmlDeviceGetSupportedClocksEventReasons = dlsym(handle, 'nvmlDeviceGetSupportedClocksEventReasons')
1021 global __nvmlDeviceGetPowerState
1022 __nvmlDeviceGetPowerState = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPowerState')
1023 if __nvmlDeviceGetPowerState == NULL:
1024 if handle == NULL:
1025 handle = load_library()
1026 __nvmlDeviceGetPowerState = dlsym(handle, 'nvmlDeviceGetPowerState')
1028 global __nvmlDeviceGetDynamicPstatesInfo
1029 __nvmlDeviceGetDynamicPstatesInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetDynamicPstatesInfo')
1030 if __nvmlDeviceGetDynamicPstatesInfo == NULL:
1031 if handle == NULL:
1032 handle = load_library()
1033 __nvmlDeviceGetDynamicPstatesInfo = dlsym(handle, 'nvmlDeviceGetDynamicPstatesInfo')
1035 global __nvmlDeviceGetMemClkVfOffset
1036 __nvmlDeviceGetMemClkVfOffset = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMemClkVfOffset')
1037 if __nvmlDeviceGetMemClkVfOffset == NULL:
1038 if handle == NULL:
1039 handle = load_library()
1040 __nvmlDeviceGetMemClkVfOffset = dlsym(handle, 'nvmlDeviceGetMemClkVfOffset')
1042 global __nvmlDeviceGetMinMaxClockOfPState
1043 __nvmlDeviceGetMinMaxClockOfPState = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMinMaxClockOfPState')
1044 if __nvmlDeviceGetMinMaxClockOfPState == NULL:
1045 if handle == NULL:
1046 handle = load_library()
1047 __nvmlDeviceGetMinMaxClockOfPState = dlsym(handle, 'nvmlDeviceGetMinMaxClockOfPState')
1049 global __nvmlDeviceGetSupportedPerformanceStates
1050 __nvmlDeviceGetSupportedPerformanceStates = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetSupportedPerformanceStates')
1051 if __nvmlDeviceGetSupportedPerformanceStates == NULL:
1052 if handle == NULL:
1053 handle = load_library()
1054 __nvmlDeviceGetSupportedPerformanceStates = dlsym(handle, 'nvmlDeviceGetSupportedPerformanceStates')
1056 global __nvmlDeviceGetGpcClkMinMaxVfOffset
1057 __nvmlDeviceGetGpcClkMinMaxVfOffset = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpcClkMinMaxVfOffset')
1058 if __nvmlDeviceGetGpcClkMinMaxVfOffset == NULL:
1059 if handle == NULL:
1060 handle = load_library()
1061 __nvmlDeviceGetGpcClkMinMaxVfOffset = dlsym(handle, 'nvmlDeviceGetGpcClkMinMaxVfOffset')
1063 global __nvmlDeviceGetMemClkMinMaxVfOffset
1064 __nvmlDeviceGetMemClkMinMaxVfOffset = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMemClkMinMaxVfOffset')
1065 if __nvmlDeviceGetMemClkMinMaxVfOffset == NULL:
1066 if handle == NULL:
1067 handle = load_library()
1068 __nvmlDeviceGetMemClkMinMaxVfOffset = dlsym(handle, 'nvmlDeviceGetMemClkMinMaxVfOffset')
1070 global __nvmlDeviceGetClockOffsets
1071 __nvmlDeviceGetClockOffsets = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetClockOffsets')
1072 if __nvmlDeviceGetClockOffsets == NULL:
1073 if handle == NULL:
1074 handle = load_library()
1075 __nvmlDeviceGetClockOffsets = dlsym(handle, 'nvmlDeviceGetClockOffsets')
1077 global __nvmlDeviceSetClockOffsets
1078 __nvmlDeviceSetClockOffsets = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetClockOffsets')
1079 if __nvmlDeviceSetClockOffsets == NULL:
1080 if handle == NULL:
1081 handle = load_library()
1082 __nvmlDeviceSetClockOffsets = dlsym(handle, 'nvmlDeviceSetClockOffsets')
1084 global __nvmlDeviceGetPerformanceModes
1085 __nvmlDeviceGetPerformanceModes = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPerformanceModes')
1086 if __nvmlDeviceGetPerformanceModes == NULL:
1087 if handle == NULL:
1088 handle = load_library()
1089 __nvmlDeviceGetPerformanceModes = dlsym(handle, 'nvmlDeviceGetPerformanceModes')
1091 global __nvmlDeviceGetCurrentClockFreqs
1092 __nvmlDeviceGetCurrentClockFreqs = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetCurrentClockFreqs')
1093 if __nvmlDeviceGetCurrentClockFreqs == NULL:
1094 if handle == NULL:
1095 handle = load_library()
1096 __nvmlDeviceGetCurrentClockFreqs = dlsym(handle, 'nvmlDeviceGetCurrentClockFreqs')
1098 global __nvmlDeviceGetPowerManagementLimit
1099 __nvmlDeviceGetPowerManagementLimit = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPowerManagementLimit')
1100 if __nvmlDeviceGetPowerManagementLimit == NULL:
1101 if handle == NULL:
1102 handle = load_library()
1103 __nvmlDeviceGetPowerManagementLimit = dlsym(handle, 'nvmlDeviceGetPowerManagementLimit')
1105 global __nvmlDeviceGetPowerManagementLimitConstraints
1106 __nvmlDeviceGetPowerManagementLimitConstraints = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPowerManagementLimitConstraints')
1107 if __nvmlDeviceGetPowerManagementLimitConstraints == NULL:
1108 if handle == NULL:
1109 handle = load_library()
1110 __nvmlDeviceGetPowerManagementLimitConstraints = dlsym(handle, 'nvmlDeviceGetPowerManagementLimitConstraints')
1112 global __nvmlDeviceGetPowerManagementDefaultLimit
1113 __nvmlDeviceGetPowerManagementDefaultLimit = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPowerManagementDefaultLimit')
1114 if __nvmlDeviceGetPowerManagementDefaultLimit == NULL:
1115 if handle == NULL:
1116 handle = load_library()
1117 __nvmlDeviceGetPowerManagementDefaultLimit = dlsym(handle, 'nvmlDeviceGetPowerManagementDefaultLimit')
1119 global __nvmlDeviceGetPowerUsage
1120 __nvmlDeviceGetPowerUsage = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPowerUsage')
1121 if __nvmlDeviceGetPowerUsage == NULL:
1122 if handle == NULL:
1123 handle = load_library()
1124 __nvmlDeviceGetPowerUsage = dlsym(handle, 'nvmlDeviceGetPowerUsage')
1126 global __nvmlDeviceGetTotalEnergyConsumption
1127 __nvmlDeviceGetTotalEnergyConsumption = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetTotalEnergyConsumption')
1128 if __nvmlDeviceGetTotalEnergyConsumption == NULL:
1129 if handle == NULL:
1130 handle = load_library()
1131 __nvmlDeviceGetTotalEnergyConsumption = dlsym(handle, 'nvmlDeviceGetTotalEnergyConsumption')
1133 global __nvmlDeviceGetEnforcedPowerLimit
1134 __nvmlDeviceGetEnforcedPowerLimit = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetEnforcedPowerLimit')
1135 if __nvmlDeviceGetEnforcedPowerLimit == NULL:
1136 if handle == NULL:
1137 handle = load_library()
1138 __nvmlDeviceGetEnforcedPowerLimit = dlsym(handle, 'nvmlDeviceGetEnforcedPowerLimit')
1140 global __nvmlDeviceGetGpuOperationMode
1141 __nvmlDeviceGetGpuOperationMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpuOperationMode')
1142 if __nvmlDeviceGetGpuOperationMode == NULL:
1143 if handle == NULL:
1144 handle = load_library()
1145 __nvmlDeviceGetGpuOperationMode = dlsym(handle, 'nvmlDeviceGetGpuOperationMode')
1147 global __nvmlDeviceGetMemoryInfo_v2
1148 __nvmlDeviceGetMemoryInfo_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMemoryInfo_v2')
1149 if __nvmlDeviceGetMemoryInfo_v2 == NULL:
1150 if handle == NULL:
1151 handle = load_library()
1152 __nvmlDeviceGetMemoryInfo_v2 = dlsym(handle, 'nvmlDeviceGetMemoryInfo_v2')
1154 global __nvmlDeviceGetComputeMode
1155 __nvmlDeviceGetComputeMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetComputeMode')
1156 if __nvmlDeviceGetComputeMode == NULL:
1157 if handle == NULL:
1158 handle = load_library()
1159 __nvmlDeviceGetComputeMode = dlsym(handle, 'nvmlDeviceGetComputeMode')
1161 global __nvmlDeviceGetCudaComputeCapability
1162 __nvmlDeviceGetCudaComputeCapability = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetCudaComputeCapability')
1163 if __nvmlDeviceGetCudaComputeCapability == NULL:
1164 if handle == NULL:
1165 handle = load_library()
1166 __nvmlDeviceGetCudaComputeCapability = dlsym(handle, 'nvmlDeviceGetCudaComputeCapability')
1168 global __nvmlDeviceGetDramEncryptionMode
1169 __nvmlDeviceGetDramEncryptionMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetDramEncryptionMode')
1170 if __nvmlDeviceGetDramEncryptionMode == NULL:
1171 if handle == NULL:
1172 handle = load_library()
1173 __nvmlDeviceGetDramEncryptionMode = dlsym(handle, 'nvmlDeviceGetDramEncryptionMode')
1175 global __nvmlDeviceSetDramEncryptionMode
1176 __nvmlDeviceSetDramEncryptionMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetDramEncryptionMode')
1177 if __nvmlDeviceSetDramEncryptionMode == NULL:
1178 if handle == NULL:
1179 handle = load_library()
1180 __nvmlDeviceSetDramEncryptionMode = dlsym(handle, 'nvmlDeviceSetDramEncryptionMode')
1182 global __nvmlDeviceGetEccMode
1183 __nvmlDeviceGetEccMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetEccMode')
1184 if __nvmlDeviceGetEccMode == NULL:
1185 if handle == NULL:
1186 handle = load_library()
1187 __nvmlDeviceGetEccMode = dlsym(handle, 'nvmlDeviceGetEccMode')
1189 global __nvmlDeviceGetDefaultEccMode
1190 __nvmlDeviceGetDefaultEccMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetDefaultEccMode')
1191 if __nvmlDeviceGetDefaultEccMode == NULL:
1192 if handle == NULL:
1193 handle = load_library()
1194 __nvmlDeviceGetDefaultEccMode = dlsym(handle, 'nvmlDeviceGetDefaultEccMode')
1196 global __nvmlDeviceGetBoardId
1197 __nvmlDeviceGetBoardId = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetBoardId')
1198 if __nvmlDeviceGetBoardId == NULL:
1199 if handle == NULL:
1200 handle = load_library()
1201 __nvmlDeviceGetBoardId = dlsym(handle, 'nvmlDeviceGetBoardId')
1203 global __nvmlDeviceGetMultiGpuBoard
1204 __nvmlDeviceGetMultiGpuBoard = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMultiGpuBoard')
1205 if __nvmlDeviceGetMultiGpuBoard == NULL:
1206 if handle == NULL:
1207 handle = load_library()
1208 __nvmlDeviceGetMultiGpuBoard = dlsym(handle, 'nvmlDeviceGetMultiGpuBoard')
1210 global __nvmlDeviceGetTotalEccErrors
1211 __nvmlDeviceGetTotalEccErrors = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetTotalEccErrors')
1212 if __nvmlDeviceGetTotalEccErrors == NULL:
1213 if handle == NULL:
1214 handle = load_library()
1215 __nvmlDeviceGetTotalEccErrors = dlsym(handle, 'nvmlDeviceGetTotalEccErrors')
1217 global __nvmlDeviceGetMemoryErrorCounter
1218 __nvmlDeviceGetMemoryErrorCounter = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMemoryErrorCounter')
1219 if __nvmlDeviceGetMemoryErrorCounter == NULL:
1220 if handle == NULL:
1221 handle = load_library()
1222 __nvmlDeviceGetMemoryErrorCounter = dlsym(handle, 'nvmlDeviceGetMemoryErrorCounter')
1224 global __nvmlDeviceGetUtilizationRates
1225 __nvmlDeviceGetUtilizationRates = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetUtilizationRates')
1226 if __nvmlDeviceGetUtilizationRates == NULL:
1227 if handle == NULL:
1228 handle = load_library()
1229 __nvmlDeviceGetUtilizationRates = dlsym(handle, 'nvmlDeviceGetUtilizationRates')
1231 global __nvmlDeviceGetEncoderUtilization
1232 __nvmlDeviceGetEncoderUtilization = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetEncoderUtilization')
1233 if __nvmlDeviceGetEncoderUtilization == NULL:
1234 if handle == NULL:
1235 handle = load_library()
1236 __nvmlDeviceGetEncoderUtilization = dlsym(handle, 'nvmlDeviceGetEncoderUtilization')
1238 global __nvmlDeviceGetEncoderCapacity
1239 __nvmlDeviceGetEncoderCapacity = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetEncoderCapacity')
1240 if __nvmlDeviceGetEncoderCapacity == NULL:
1241 if handle == NULL:
1242 handle = load_library()
1243 __nvmlDeviceGetEncoderCapacity = dlsym(handle, 'nvmlDeviceGetEncoderCapacity')
1245 global __nvmlDeviceGetEncoderStats
1246 __nvmlDeviceGetEncoderStats = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetEncoderStats')
1247 if __nvmlDeviceGetEncoderStats == NULL:
1248 if handle == NULL:
1249 handle = load_library()
1250 __nvmlDeviceGetEncoderStats = dlsym(handle, 'nvmlDeviceGetEncoderStats')
1252 global __nvmlDeviceGetEncoderSessions
1253 __nvmlDeviceGetEncoderSessions = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetEncoderSessions')
1254 if __nvmlDeviceGetEncoderSessions == NULL:
1255 if handle == NULL:
1256 handle = load_library()
1257 __nvmlDeviceGetEncoderSessions = dlsym(handle, 'nvmlDeviceGetEncoderSessions')
1259 global __nvmlDeviceGetDecoderUtilization
1260 __nvmlDeviceGetDecoderUtilization = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetDecoderUtilization')
1261 if __nvmlDeviceGetDecoderUtilization == NULL:
1262 if handle == NULL:
1263 handle = load_library()
1264 __nvmlDeviceGetDecoderUtilization = dlsym(handle, 'nvmlDeviceGetDecoderUtilization')
1266 global __nvmlDeviceGetJpgUtilization
1267 __nvmlDeviceGetJpgUtilization = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetJpgUtilization')
1268 if __nvmlDeviceGetJpgUtilization == NULL:
1269 if handle == NULL:
1270 handle = load_library()
1271 __nvmlDeviceGetJpgUtilization = dlsym(handle, 'nvmlDeviceGetJpgUtilization')
1273 global __nvmlDeviceGetOfaUtilization
1274 __nvmlDeviceGetOfaUtilization = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetOfaUtilization')
1275 if __nvmlDeviceGetOfaUtilization == NULL:
1276 if handle == NULL:
1277 handle = load_library()
1278 __nvmlDeviceGetOfaUtilization = dlsym(handle, 'nvmlDeviceGetOfaUtilization')
1280 global __nvmlDeviceGetFBCStats
1281 __nvmlDeviceGetFBCStats = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetFBCStats')
1282 if __nvmlDeviceGetFBCStats == NULL:
1283 if handle == NULL:
1284 handle = load_library()
1285 __nvmlDeviceGetFBCStats = dlsym(handle, 'nvmlDeviceGetFBCStats')
1287 global __nvmlDeviceGetFBCSessions
1288 __nvmlDeviceGetFBCSessions = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetFBCSessions')
1289 if __nvmlDeviceGetFBCSessions == NULL:
1290 if handle == NULL:
1291 handle = load_library()
1292 __nvmlDeviceGetFBCSessions = dlsym(handle, 'nvmlDeviceGetFBCSessions')
1294 global __nvmlDeviceGetDriverModel_v2
1295 __nvmlDeviceGetDriverModel_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetDriverModel_v2')
1296 if __nvmlDeviceGetDriverModel_v2 == NULL:
1297 if handle == NULL:
1298 handle = load_library()
1299 __nvmlDeviceGetDriverModel_v2 = dlsym(handle, 'nvmlDeviceGetDriverModel_v2')
1301 global __nvmlDeviceGetVbiosVersion
1302 __nvmlDeviceGetVbiosVersion = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVbiosVersion')
1303 if __nvmlDeviceGetVbiosVersion == NULL:
1304 if handle == NULL:
1305 handle = load_library()
1306 __nvmlDeviceGetVbiosVersion = dlsym(handle, 'nvmlDeviceGetVbiosVersion')
1308 global __nvmlDeviceGetBridgeChipInfo
1309 __nvmlDeviceGetBridgeChipInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetBridgeChipInfo')
1310 if __nvmlDeviceGetBridgeChipInfo == NULL:
1311 if handle == NULL:
1312 handle = load_library()
1313 __nvmlDeviceGetBridgeChipInfo = dlsym(handle, 'nvmlDeviceGetBridgeChipInfo')
1315 global __nvmlDeviceGetComputeRunningProcesses_v3
1316 __nvmlDeviceGetComputeRunningProcesses_v3 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetComputeRunningProcesses_v3')
1317 if __nvmlDeviceGetComputeRunningProcesses_v3 == NULL:
1318 if handle == NULL:
1319 handle = load_library()
1320 __nvmlDeviceGetComputeRunningProcesses_v3 = dlsym(handle, 'nvmlDeviceGetComputeRunningProcesses_v3')
1322 global __nvmlDeviceGetMPSComputeRunningProcesses_v3
1323 __nvmlDeviceGetMPSComputeRunningProcesses_v3 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMPSComputeRunningProcesses_v3')
1324 if __nvmlDeviceGetMPSComputeRunningProcesses_v3 == NULL:
1325 if handle == NULL:
1326 handle = load_library()
1327 __nvmlDeviceGetMPSComputeRunningProcesses_v3 = dlsym(handle, 'nvmlDeviceGetMPSComputeRunningProcesses_v3')
1329 global __nvmlDeviceGetRunningProcessDetailList
1330 __nvmlDeviceGetRunningProcessDetailList = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetRunningProcessDetailList')
1331 if __nvmlDeviceGetRunningProcessDetailList == NULL:
1332 if handle == NULL:
1333 handle = load_library()
1334 __nvmlDeviceGetRunningProcessDetailList = dlsym(handle, 'nvmlDeviceGetRunningProcessDetailList')
1336 global __nvmlDeviceOnSameBoard
1337 __nvmlDeviceOnSameBoard = dlsym(RTLD_DEFAULT, 'nvmlDeviceOnSameBoard')
1338 if __nvmlDeviceOnSameBoard == NULL:
1339 if handle == NULL:
1340 handle = load_library()
1341 __nvmlDeviceOnSameBoard = dlsym(handle, 'nvmlDeviceOnSameBoard')
1343 global __nvmlDeviceGetAPIRestriction
1344 __nvmlDeviceGetAPIRestriction = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetAPIRestriction')
1345 if __nvmlDeviceGetAPIRestriction == NULL:
1346 if handle == NULL:
1347 handle = load_library()
1348 __nvmlDeviceGetAPIRestriction = dlsym(handle, 'nvmlDeviceGetAPIRestriction')
1350 global __nvmlDeviceGetSamples
1351 __nvmlDeviceGetSamples = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetSamples')
1352 if __nvmlDeviceGetSamples == NULL:
1353 if handle == NULL:
1354 handle = load_library()
1355 __nvmlDeviceGetSamples = dlsym(handle, 'nvmlDeviceGetSamples')
1357 global __nvmlDeviceGetBAR1MemoryInfo
1358 __nvmlDeviceGetBAR1MemoryInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetBAR1MemoryInfo')
1359 if __nvmlDeviceGetBAR1MemoryInfo == NULL:
1360 if handle == NULL:
1361 handle = load_library()
1362 __nvmlDeviceGetBAR1MemoryInfo = dlsym(handle, 'nvmlDeviceGetBAR1MemoryInfo')
1364 global __nvmlDeviceGetIrqNum
1365 __nvmlDeviceGetIrqNum = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetIrqNum')
1366 if __nvmlDeviceGetIrqNum == NULL:
1367 if handle == NULL:
1368 handle = load_library()
1369 __nvmlDeviceGetIrqNum = dlsym(handle, 'nvmlDeviceGetIrqNum')
1371 global __nvmlDeviceGetNumGpuCores
1372 __nvmlDeviceGetNumGpuCores = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNumGpuCores')
1373 if __nvmlDeviceGetNumGpuCores == NULL:
1374 if handle == NULL:
1375 handle = load_library()
1376 __nvmlDeviceGetNumGpuCores = dlsym(handle, 'nvmlDeviceGetNumGpuCores')
1378 global __nvmlDeviceGetPowerSource
1379 __nvmlDeviceGetPowerSource = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPowerSource')
1380 if __nvmlDeviceGetPowerSource == NULL:
1381 if handle == NULL:
1382 handle = load_library()
1383 __nvmlDeviceGetPowerSource = dlsym(handle, 'nvmlDeviceGetPowerSource')
1385 global __nvmlDeviceGetMemoryBusWidth
1386 __nvmlDeviceGetMemoryBusWidth = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMemoryBusWidth')
1387 if __nvmlDeviceGetMemoryBusWidth == NULL:
1388 if handle == NULL:
1389 handle = load_library()
1390 __nvmlDeviceGetMemoryBusWidth = dlsym(handle, 'nvmlDeviceGetMemoryBusWidth')
1392 global __nvmlDeviceGetPcieLinkMaxSpeed
1393 __nvmlDeviceGetPcieLinkMaxSpeed = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPcieLinkMaxSpeed')
1394 if __nvmlDeviceGetPcieLinkMaxSpeed == NULL:
1395 if handle == NULL:
1396 handle = load_library()
1397 __nvmlDeviceGetPcieLinkMaxSpeed = dlsym(handle, 'nvmlDeviceGetPcieLinkMaxSpeed')
1399 global __nvmlDeviceGetPcieSpeed
1400 __nvmlDeviceGetPcieSpeed = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPcieSpeed')
1401 if __nvmlDeviceGetPcieSpeed == NULL:
1402 if handle == NULL:
1403 handle = load_library()
1404 __nvmlDeviceGetPcieSpeed = dlsym(handle, 'nvmlDeviceGetPcieSpeed')
1406 global __nvmlDeviceGetAdaptiveClockInfoStatus
1407 __nvmlDeviceGetAdaptiveClockInfoStatus = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetAdaptiveClockInfoStatus')
1408 if __nvmlDeviceGetAdaptiveClockInfoStatus == NULL:
1409 if handle == NULL:
1410 handle = load_library()
1411 __nvmlDeviceGetAdaptiveClockInfoStatus = dlsym(handle, 'nvmlDeviceGetAdaptiveClockInfoStatus')
1413 global __nvmlDeviceGetBusType
1414 __nvmlDeviceGetBusType = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetBusType')
1415 if __nvmlDeviceGetBusType == NULL:
1416 if handle == NULL:
1417 handle = load_library()
1418 __nvmlDeviceGetBusType = dlsym(handle, 'nvmlDeviceGetBusType')
1420 global __nvmlDeviceGetGpuFabricInfoV
1421 __nvmlDeviceGetGpuFabricInfoV = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpuFabricInfoV')
1422 if __nvmlDeviceGetGpuFabricInfoV == NULL:
1423 if handle == NULL:
1424 handle = load_library()
1425 __nvmlDeviceGetGpuFabricInfoV = dlsym(handle, 'nvmlDeviceGetGpuFabricInfoV')
1427 global __nvmlSystemGetConfComputeCapabilities
1428 __nvmlSystemGetConfComputeCapabilities = dlsym(RTLD_DEFAULT, 'nvmlSystemGetConfComputeCapabilities')
1429 if __nvmlSystemGetConfComputeCapabilities == NULL:
1430 if handle == NULL:
1431 handle = load_library()
1432 __nvmlSystemGetConfComputeCapabilities = dlsym(handle, 'nvmlSystemGetConfComputeCapabilities')
1434 global __nvmlSystemGetConfComputeState
1435 __nvmlSystemGetConfComputeState = dlsym(RTLD_DEFAULT, 'nvmlSystemGetConfComputeState')
1436 if __nvmlSystemGetConfComputeState == NULL:
1437 if handle == NULL:
1438 handle = load_library()
1439 __nvmlSystemGetConfComputeState = dlsym(handle, 'nvmlSystemGetConfComputeState')
1441 global __nvmlDeviceGetConfComputeMemSizeInfo
1442 __nvmlDeviceGetConfComputeMemSizeInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetConfComputeMemSizeInfo')
1443 if __nvmlDeviceGetConfComputeMemSizeInfo == NULL:
1444 if handle == NULL:
1445 handle = load_library()
1446 __nvmlDeviceGetConfComputeMemSizeInfo = dlsym(handle, 'nvmlDeviceGetConfComputeMemSizeInfo')
1448 global __nvmlSystemGetConfComputeGpusReadyState
1449 __nvmlSystemGetConfComputeGpusReadyState = dlsym(RTLD_DEFAULT, 'nvmlSystemGetConfComputeGpusReadyState')
1450 if __nvmlSystemGetConfComputeGpusReadyState == NULL:
1451 if handle == NULL:
1452 handle = load_library()
1453 __nvmlSystemGetConfComputeGpusReadyState = dlsym(handle, 'nvmlSystemGetConfComputeGpusReadyState')
1455 global __nvmlDeviceGetConfComputeProtectedMemoryUsage
1456 __nvmlDeviceGetConfComputeProtectedMemoryUsage = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetConfComputeProtectedMemoryUsage')
1457 if __nvmlDeviceGetConfComputeProtectedMemoryUsage == NULL:
1458 if handle == NULL:
1459 handle = load_library()
1460 __nvmlDeviceGetConfComputeProtectedMemoryUsage = dlsym(handle, 'nvmlDeviceGetConfComputeProtectedMemoryUsage')
1462 global __nvmlDeviceGetConfComputeGpuCertificate
1463 __nvmlDeviceGetConfComputeGpuCertificate = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetConfComputeGpuCertificate')
1464 if __nvmlDeviceGetConfComputeGpuCertificate == NULL:
1465 if handle == NULL:
1466 handle = load_library()
1467 __nvmlDeviceGetConfComputeGpuCertificate = dlsym(handle, 'nvmlDeviceGetConfComputeGpuCertificate')
1469 global __nvmlDeviceGetConfComputeGpuAttestationReport
1470 __nvmlDeviceGetConfComputeGpuAttestationReport = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetConfComputeGpuAttestationReport')
1471 if __nvmlDeviceGetConfComputeGpuAttestationReport == NULL:
1472 if handle == NULL:
1473 handle = load_library()
1474 __nvmlDeviceGetConfComputeGpuAttestationReport = dlsym(handle, 'nvmlDeviceGetConfComputeGpuAttestationReport')
1476 global __nvmlSystemGetConfComputeKeyRotationThresholdInfo
1477 __nvmlSystemGetConfComputeKeyRotationThresholdInfo = dlsym(RTLD_DEFAULT, 'nvmlSystemGetConfComputeKeyRotationThresholdInfo')
1478 if __nvmlSystemGetConfComputeKeyRotationThresholdInfo == NULL:
1479 if handle == NULL:
1480 handle = load_library()
1481 __nvmlSystemGetConfComputeKeyRotationThresholdInfo = dlsym(handle, 'nvmlSystemGetConfComputeKeyRotationThresholdInfo')
1483 global __nvmlDeviceSetConfComputeUnprotectedMemSize
1484 __nvmlDeviceSetConfComputeUnprotectedMemSize = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetConfComputeUnprotectedMemSize')
1485 if __nvmlDeviceSetConfComputeUnprotectedMemSize == NULL:
1486 if handle == NULL:
1487 handle = load_library()
1488 __nvmlDeviceSetConfComputeUnprotectedMemSize = dlsym(handle, 'nvmlDeviceSetConfComputeUnprotectedMemSize')
1490 global __nvmlSystemSetConfComputeGpusReadyState
1491 __nvmlSystemSetConfComputeGpusReadyState = dlsym(RTLD_DEFAULT, 'nvmlSystemSetConfComputeGpusReadyState')
1492 if __nvmlSystemSetConfComputeGpusReadyState == NULL:
1493 if handle == NULL:
1494 handle = load_library()
1495 __nvmlSystemSetConfComputeGpusReadyState = dlsym(handle, 'nvmlSystemSetConfComputeGpusReadyState')
1497 global __nvmlSystemSetConfComputeKeyRotationThresholdInfo
1498 __nvmlSystemSetConfComputeKeyRotationThresholdInfo = dlsym(RTLD_DEFAULT, 'nvmlSystemSetConfComputeKeyRotationThresholdInfo')
1499 if __nvmlSystemSetConfComputeKeyRotationThresholdInfo == NULL:
1500 if handle == NULL:
1501 handle = load_library()
1502 __nvmlSystemSetConfComputeKeyRotationThresholdInfo = dlsym(handle, 'nvmlSystemSetConfComputeKeyRotationThresholdInfo')
1504 global __nvmlSystemGetConfComputeSettings
1505 __nvmlSystemGetConfComputeSettings = dlsym(RTLD_DEFAULT, 'nvmlSystemGetConfComputeSettings')
1506 if __nvmlSystemGetConfComputeSettings == NULL:
1507 if handle == NULL:
1508 handle = load_library()
1509 __nvmlSystemGetConfComputeSettings = dlsym(handle, 'nvmlSystemGetConfComputeSettings')
1511 global __nvmlDeviceGetGspFirmwareVersion
1512 __nvmlDeviceGetGspFirmwareVersion = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGspFirmwareVersion')
1513 if __nvmlDeviceGetGspFirmwareVersion == NULL:
1514 if handle == NULL:
1515 handle = load_library()
1516 __nvmlDeviceGetGspFirmwareVersion = dlsym(handle, 'nvmlDeviceGetGspFirmwareVersion')
1518 global __nvmlDeviceGetGspFirmwareMode
1519 __nvmlDeviceGetGspFirmwareMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGspFirmwareMode')
1520 if __nvmlDeviceGetGspFirmwareMode == NULL:
1521 if handle == NULL:
1522 handle = load_library()
1523 __nvmlDeviceGetGspFirmwareMode = dlsym(handle, 'nvmlDeviceGetGspFirmwareMode')
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')
1532 global __nvmlDeviceGetAccountingMode
1533 __nvmlDeviceGetAccountingMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetAccountingMode')
1534 if __nvmlDeviceGetAccountingMode == NULL:
1535 if handle == NULL:
1536 handle = load_library()
1537 __nvmlDeviceGetAccountingMode = dlsym(handle, 'nvmlDeviceGetAccountingMode')
1539 global __nvmlDeviceGetAccountingStats
1540 __nvmlDeviceGetAccountingStats = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetAccountingStats')
1541 if __nvmlDeviceGetAccountingStats == NULL:
1542 if handle == NULL:
1543 handle = load_library()
1544 __nvmlDeviceGetAccountingStats = dlsym(handle, 'nvmlDeviceGetAccountingStats')
1546 global __nvmlDeviceGetAccountingPids
1547 __nvmlDeviceGetAccountingPids = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetAccountingPids')
1548 if __nvmlDeviceGetAccountingPids == NULL:
1549 if handle == NULL:
1550 handle = load_library()
1551 __nvmlDeviceGetAccountingPids = dlsym(handle, 'nvmlDeviceGetAccountingPids')
1553 global __nvmlDeviceGetAccountingBufferSize
1554 __nvmlDeviceGetAccountingBufferSize = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetAccountingBufferSize')
1555 if __nvmlDeviceGetAccountingBufferSize == NULL:
1556 if handle == NULL:
1557 handle = load_library()
1558 __nvmlDeviceGetAccountingBufferSize = dlsym(handle, 'nvmlDeviceGetAccountingBufferSize')
1560 global __nvmlDeviceGetRetiredPages
1561 __nvmlDeviceGetRetiredPages = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetRetiredPages')
1562 if __nvmlDeviceGetRetiredPages == NULL:
1563 if handle == NULL:
1564 handle = load_library()
1565 __nvmlDeviceGetRetiredPages = dlsym(handle, 'nvmlDeviceGetRetiredPages')
1567 global __nvmlDeviceGetRetiredPages_v2
1568 __nvmlDeviceGetRetiredPages_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetRetiredPages_v2')
1569 if __nvmlDeviceGetRetiredPages_v2 == NULL:
1570 if handle == NULL:
1571 handle = load_library()
1572 __nvmlDeviceGetRetiredPages_v2 = dlsym(handle, 'nvmlDeviceGetRetiredPages_v2')
1574 global __nvmlDeviceGetRetiredPagesPendingStatus
1575 __nvmlDeviceGetRetiredPagesPendingStatus = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetRetiredPagesPendingStatus')
1576 if __nvmlDeviceGetRetiredPagesPendingStatus == NULL:
1577 if handle == NULL:
1578 handle = load_library()
1579 __nvmlDeviceGetRetiredPagesPendingStatus = dlsym(handle, 'nvmlDeviceGetRetiredPagesPendingStatus')
1581 global __nvmlDeviceGetRemappedRows
1582 __nvmlDeviceGetRemappedRows = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetRemappedRows')
1583 if __nvmlDeviceGetRemappedRows == NULL:
1584 if handle == NULL:
1585 handle = load_library()
1586 __nvmlDeviceGetRemappedRows = dlsym(handle, 'nvmlDeviceGetRemappedRows')
1588 global __nvmlDeviceGetRowRemapperHistogram
1589 __nvmlDeviceGetRowRemapperHistogram = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetRowRemapperHistogram')
1590 if __nvmlDeviceGetRowRemapperHistogram == NULL:
1591 if handle == NULL:
1592 handle = load_library()
1593 __nvmlDeviceGetRowRemapperHistogram = dlsym(handle, 'nvmlDeviceGetRowRemapperHistogram')
1595 global __nvmlDeviceGetArchitecture
1596 __nvmlDeviceGetArchitecture = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetArchitecture')
1597 if __nvmlDeviceGetArchitecture == NULL:
1598 if handle == NULL:
1599 handle = load_library()
1600 __nvmlDeviceGetArchitecture = dlsym(handle, 'nvmlDeviceGetArchitecture')
1602 global __nvmlDeviceGetClkMonStatus
1603 __nvmlDeviceGetClkMonStatus = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetClkMonStatus')
1604 if __nvmlDeviceGetClkMonStatus == NULL:
1605 if handle == NULL:
1606 handle = load_library()
1607 __nvmlDeviceGetClkMonStatus = dlsym(handle, 'nvmlDeviceGetClkMonStatus')
1609 global __nvmlDeviceGetProcessUtilization
1610 __nvmlDeviceGetProcessUtilization = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetProcessUtilization')
1611 if __nvmlDeviceGetProcessUtilization == NULL:
1612 if handle == NULL:
1613 handle = load_library()
1614 __nvmlDeviceGetProcessUtilization = dlsym(handle, 'nvmlDeviceGetProcessUtilization')
1616 global __nvmlDeviceGetProcessesUtilizationInfo
1617 __nvmlDeviceGetProcessesUtilizationInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetProcessesUtilizationInfo')
1618 if __nvmlDeviceGetProcessesUtilizationInfo == NULL:
1619 if handle == NULL:
1620 handle = load_library()
1621 __nvmlDeviceGetProcessesUtilizationInfo = dlsym(handle, 'nvmlDeviceGetProcessesUtilizationInfo')
1623 global __nvmlDeviceGetPlatformInfo
1624 __nvmlDeviceGetPlatformInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPlatformInfo')
1625 if __nvmlDeviceGetPlatformInfo == NULL:
1626 if handle == NULL:
1627 handle = load_library()
1628 __nvmlDeviceGetPlatformInfo = dlsym(handle, 'nvmlDeviceGetPlatformInfo')
1630 global __nvmlUnitSetLedState
1631 __nvmlUnitSetLedState = dlsym(RTLD_DEFAULT, 'nvmlUnitSetLedState')
1632 if __nvmlUnitSetLedState == NULL:
1633 if handle == NULL:
1634 handle = load_library()
1635 __nvmlUnitSetLedState = dlsym(handle, 'nvmlUnitSetLedState')
1637 global __nvmlDeviceSetPersistenceMode
1638 __nvmlDeviceSetPersistenceMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetPersistenceMode')
1639 if __nvmlDeviceSetPersistenceMode == NULL:
1640 if handle == NULL:
1641 handle = load_library()
1642 __nvmlDeviceSetPersistenceMode = dlsym(handle, 'nvmlDeviceSetPersistenceMode')
1644 global __nvmlDeviceSetComputeMode
1645 __nvmlDeviceSetComputeMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetComputeMode')
1646 if __nvmlDeviceSetComputeMode == NULL:
1647 if handle == NULL:
1648 handle = load_library()
1649 __nvmlDeviceSetComputeMode = dlsym(handle, 'nvmlDeviceSetComputeMode')
1651 global __nvmlDeviceSetEccMode
1652 __nvmlDeviceSetEccMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetEccMode')
1653 if __nvmlDeviceSetEccMode == NULL:
1654 if handle == NULL:
1655 handle = load_library()
1656 __nvmlDeviceSetEccMode = dlsym(handle, 'nvmlDeviceSetEccMode')
1658 global __nvmlDeviceClearEccErrorCounts
1659 __nvmlDeviceClearEccErrorCounts = dlsym(RTLD_DEFAULT, 'nvmlDeviceClearEccErrorCounts')
1660 if __nvmlDeviceClearEccErrorCounts == NULL:
1661 if handle == NULL:
1662 handle = load_library()
1663 __nvmlDeviceClearEccErrorCounts = dlsym(handle, 'nvmlDeviceClearEccErrorCounts')
1665 global __nvmlDeviceSetDriverModel
1666 __nvmlDeviceSetDriverModel = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetDriverModel')
1667 if __nvmlDeviceSetDriverModel == NULL:
1668 if handle == NULL:
1669 handle = load_library()
1670 __nvmlDeviceSetDriverModel = dlsym(handle, 'nvmlDeviceSetDriverModel')
1672 global __nvmlDeviceSetGpuLockedClocks
1673 __nvmlDeviceSetGpuLockedClocks = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetGpuLockedClocks')
1674 if __nvmlDeviceSetGpuLockedClocks == NULL:
1675 if handle == NULL:
1676 handle = load_library()
1677 __nvmlDeviceSetGpuLockedClocks = dlsym(handle, 'nvmlDeviceSetGpuLockedClocks')
1679 global __nvmlDeviceResetGpuLockedClocks
1680 __nvmlDeviceResetGpuLockedClocks = dlsym(RTLD_DEFAULT, 'nvmlDeviceResetGpuLockedClocks')
1681 if __nvmlDeviceResetGpuLockedClocks == NULL:
1682 if handle == NULL:
1683 handle = load_library()
1684 __nvmlDeviceResetGpuLockedClocks = dlsym(handle, 'nvmlDeviceResetGpuLockedClocks')
1686 global __nvmlDeviceSetMemoryLockedClocks
1687 __nvmlDeviceSetMemoryLockedClocks = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetMemoryLockedClocks')
1688 if __nvmlDeviceSetMemoryLockedClocks == NULL:
1689 if handle == NULL:
1690 handle = load_library()
1691 __nvmlDeviceSetMemoryLockedClocks = dlsym(handle, 'nvmlDeviceSetMemoryLockedClocks')
1693 global __nvmlDeviceResetMemoryLockedClocks
1694 __nvmlDeviceResetMemoryLockedClocks = dlsym(RTLD_DEFAULT, 'nvmlDeviceResetMemoryLockedClocks')
1695 if __nvmlDeviceResetMemoryLockedClocks == NULL:
1696 if handle == NULL:
1697 handle = load_library()
1698 __nvmlDeviceResetMemoryLockedClocks = dlsym(handle, 'nvmlDeviceResetMemoryLockedClocks')
1700 global __nvmlDeviceSetAutoBoostedClocksEnabled
1701 __nvmlDeviceSetAutoBoostedClocksEnabled = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetAutoBoostedClocksEnabled')
1702 if __nvmlDeviceSetAutoBoostedClocksEnabled == NULL:
1703 if handle == NULL:
1704 handle = load_library()
1705 __nvmlDeviceSetAutoBoostedClocksEnabled = dlsym(handle, 'nvmlDeviceSetAutoBoostedClocksEnabled')
1707 global __nvmlDeviceSetDefaultAutoBoostedClocksEnabled
1708 __nvmlDeviceSetDefaultAutoBoostedClocksEnabled = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetDefaultAutoBoostedClocksEnabled')
1709 if __nvmlDeviceSetDefaultAutoBoostedClocksEnabled == NULL:
1710 if handle == NULL:
1711 handle = load_library()
1712 __nvmlDeviceSetDefaultAutoBoostedClocksEnabled = dlsym(handle, 'nvmlDeviceSetDefaultAutoBoostedClocksEnabled')
1714 global __nvmlDeviceSetDefaultFanSpeed_v2
1715 __nvmlDeviceSetDefaultFanSpeed_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetDefaultFanSpeed_v2')
1716 if __nvmlDeviceSetDefaultFanSpeed_v2 == NULL:
1717 if handle == NULL:
1718 handle = load_library()
1719 __nvmlDeviceSetDefaultFanSpeed_v2 = dlsym(handle, 'nvmlDeviceSetDefaultFanSpeed_v2')
1721 global __nvmlDeviceSetFanControlPolicy
1722 __nvmlDeviceSetFanControlPolicy = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetFanControlPolicy')
1723 if __nvmlDeviceSetFanControlPolicy == NULL:
1724 if handle == NULL:
1725 handle = load_library()
1726 __nvmlDeviceSetFanControlPolicy = dlsym(handle, 'nvmlDeviceSetFanControlPolicy')
1728 global __nvmlDeviceSetTemperatureThreshold
1729 __nvmlDeviceSetTemperatureThreshold = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetTemperatureThreshold')
1730 if __nvmlDeviceSetTemperatureThreshold == NULL:
1731 if handle == NULL:
1732 handle = load_library()
1733 __nvmlDeviceSetTemperatureThreshold = dlsym(handle, 'nvmlDeviceSetTemperatureThreshold')
1735 global __nvmlDeviceSetPowerManagementLimit
1736 __nvmlDeviceSetPowerManagementLimit = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetPowerManagementLimit')
1737 if __nvmlDeviceSetPowerManagementLimit == NULL:
1738 if handle == NULL:
1739 handle = load_library()
1740 __nvmlDeviceSetPowerManagementLimit = dlsym(handle, 'nvmlDeviceSetPowerManagementLimit')
1742 global __nvmlDeviceSetGpuOperationMode
1743 __nvmlDeviceSetGpuOperationMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetGpuOperationMode')
1744 if __nvmlDeviceSetGpuOperationMode == NULL:
1745 if handle == NULL:
1746 handle = load_library()
1747 __nvmlDeviceSetGpuOperationMode = dlsym(handle, 'nvmlDeviceSetGpuOperationMode')
1749 global __nvmlDeviceSetAPIRestriction
1750 __nvmlDeviceSetAPIRestriction = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetAPIRestriction')
1751 if __nvmlDeviceSetAPIRestriction == NULL:
1752 if handle == NULL:
1753 handle = load_library()
1754 __nvmlDeviceSetAPIRestriction = dlsym(handle, 'nvmlDeviceSetAPIRestriction')
1756 global __nvmlDeviceSetFanSpeed_v2
1757 __nvmlDeviceSetFanSpeed_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetFanSpeed_v2')
1758 if __nvmlDeviceSetFanSpeed_v2 == NULL:
1759 if handle == NULL:
1760 handle = load_library()
1761 __nvmlDeviceSetFanSpeed_v2 = dlsym(handle, 'nvmlDeviceSetFanSpeed_v2')
1763 global __nvmlDeviceSetAccountingMode
1764 __nvmlDeviceSetAccountingMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetAccountingMode')
1765 if __nvmlDeviceSetAccountingMode == NULL:
1766 if handle == NULL:
1767 handle = load_library()
1768 __nvmlDeviceSetAccountingMode = dlsym(handle, 'nvmlDeviceSetAccountingMode')
1770 global __nvmlDeviceClearAccountingPids
1771 __nvmlDeviceClearAccountingPids = dlsym(RTLD_DEFAULT, 'nvmlDeviceClearAccountingPids')
1772 if __nvmlDeviceClearAccountingPids == NULL:
1773 if handle == NULL:
1774 handle = load_library()
1775 __nvmlDeviceClearAccountingPids = dlsym(handle, 'nvmlDeviceClearAccountingPids')
1777 global __nvmlDeviceSetPowerManagementLimit_v2
1778 __nvmlDeviceSetPowerManagementLimit_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetPowerManagementLimit_v2')
1779 if __nvmlDeviceSetPowerManagementLimit_v2 == NULL:
1780 if handle == NULL:
1781 handle = load_library()
1782 __nvmlDeviceSetPowerManagementLimit_v2 = dlsym(handle, 'nvmlDeviceSetPowerManagementLimit_v2')
1784 global __nvmlDeviceGetNvLinkState
1785 __nvmlDeviceGetNvLinkState = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNvLinkState')
1786 if __nvmlDeviceGetNvLinkState == NULL:
1787 if handle == NULL:
1788 handle = load_library()
1789 __nvmlDeviceGetNvLinkState = dlsym(handle, 'nvmlDeviceGetNvLinkState')
1791 global __nvmlDeviceGetNvLinkVersion
1792 __nvmlDeviceGetNvLinkVersion = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNvLinkVersion')
1793 if __nvmlDeviceGetNvLinkVersion == NULL:
1794 if handle == NULL:
1795 handle = load_library()
1796 __nvmlDeviceGetNvLinkVersion = dlsym(handle, 'nvmlDeviceGetNvLinkVersion')
1798 global __nvmlDeviceGetNvLinkCapability
1799 __nvmlDeviceGetNvLinkCapability = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNvLinkCapability')
1800 if __nvmlDeviceGetNvLinkCapability == NULL:
1801 if handle == NULL:
1802 handle = load_library()
1803 __nvmlDeviceGetNvLinkCapability = dlsym(handle, 'nvmlDeviceGetNvLinkCapability')
1805 global __nvmlDeviceGetNvLinkRemotePciInfo_v2
1806 __nvmlDeviceGetNvLinkRemotePciInfo_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNvLinkRemotePciInfo_v2')
1807 if __nvmlDeviceGetNvLinkRemotePciInfo_v2 == NULL:
1808 if handle == NULL:
1809 handle = load_library()
1810 __nvmlDeviceGetNvLinkRemotePciInfo_v2 = dlsym(handle, 'nvmlDeviceGetNvLinkRemotePciInfo_v2')
1812 global __nvmlDeviceGetNvLinkErrorCounter
1813 __nvmlDeviceGetNvLinkErrorCounter = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNvLinkErrorCounter')
1814 if __nvmlDeviceGetNvLinkErrorCounter == NULL:
1815 if handle == NULL:
1816 handle = load_library()
1817 __nvmlDeviceGetNvLinkErrorCounter = dlsym(handle, 'nvmlDeviceGetNvLinkErrorCounter')
1819 global __nvmlDeviceResetNvLinkErrorCounters
1820 __nvmlDeviceResetNvLinkErrorCounters = dlsym(RTLD_DEFAULT, 'nvmlDeviceResetNvLinkErrorCounters')
1821 if __nvmlDeviceResetNvLinkErrorCounters == NULL:
1822 if handle == NULL:
1823 handle = load_library()
1824 __nvmlDeviceResetNvLinkErrorCounters = dlsym(handle, 'nvmlDeviceResetNvLinkErrorCounters')
1826 global __nvmlDeviceGetNvLinkRemoteDeviceType
1827 __nvmlDeviceGetNvLinkRemoteDeviceType = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNvLinkRemoteDeviceType')
1828 if __nvmlDeviceGetNvLinkRemoteDeviceType == NULL:
1829 if handle == NULL:
1830 handle = load_library()
1831 __nvmlDeviceGetNvLinkRemoteDeviceType = dlsym(handle, 'nvmlDeviceGetNvLinkRemoteDeviceType')
1833 global __nvmlDeviceSetNvLinkDeviceLowPowerThreshold
1834 __nvmlDeviceSetNvLinkDeviceLowPowerThreshold = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetNvLinkDeviceLowPowerThreshold')
1835 if __nvmlDeviceSetNvLinkDeviceLowPowerThreshold == NULL:
1836 if handle == NULL:
1837 handle = load_library()
1838 __nvmlDeviceSetNvLinkDeviceLowPowerThreshold = dlsym(handle, 'nvmlDeviceSetNvLinkDeviceLowPowerThreshold')
1840 global __nvmlSystemSetNvlinkBwMode
1841 __nvmlSystemSetNvlinkBwMode = dlsym(RTLD_DEFAULT, 'nvmlSystemSetNvlinkBwMode')
1842 if __nvmlSystemSetNvlinkBwMode == NULL:
1843 if handle == NULL:
1844 handle = load_library()
1845 __nvmlSystemSetNvlinkBwMode = dlsym(handle, 'nvmlSystemSetNvlinkBwMode')
1847 global __nvmlSystemGetNvlinkBwMode
1848 __nvmlSystemGetNvlinkBwMode = dlsym(RTLD_DEFAULT, 'nvmlSystemGetNvlinkBwMode')
1849 if __nvmlSystemGetNvlinkBwMode == NULL:
1850 if handle == NULL:
1851 handle = load_library()
1852 __nvmlSystemGetNvlinkBwMode = dlsym(handle, 'nvmlSystemGetNvlinkBwMode')
1854 global __nvmlDeviceGetNvlinkSupportedBwModes
1855 __nvmlDeviceGetNvlinkSupportedBwModes = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNvlinkSupportedBwModes')
1856 if __nvmlDeviceGetNvlinkSupportedBwModes == NULL:
1857 if handle == NULL:
1858 handle = load_library()
1859 __nvmlDeviceGetNvlinkSupportedBwModes = dlsym(handle, 'nvmlDeviceGetNvlinkSupportedBwModes')
1861 global __nvmlDeviceGetNvlinkBwMode
1862 __nvmlDeviceGetNvlinkBwMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNvlinkBwMode')
1863 if __nvmlDeviceGetNvlinkBwMode == NULL:
1864 if handle == NULL:
1865 handle = load_library()
1866 __nvmlDeviceGetNvlinkBwMode = dlsym(handle, 'nvmlDeviceGetNvlinkBwMode')
1868 global __nvmlDeviceSetNvlinkBwMode
1869 __nvmlDeviceSetNvlinkBwMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetNvlinkBwMode')
1870 if __nvmlDeviceSetNvlinkBwMode == NULL:
1871 if handle == NULL:
1872 handle = load_library()
1873 __nvmlDeviceSetNvlinkBwMode = dlsym(handle, 'nvmlDeviceSetNvlinkBwMode')
1875 global __nvmlEventSetCreate
1876 __nvmlEventSetCreate = dlsym(RTLD_DEFAULT, 'nvmlEventSetCreate')
1877 if __nvmlEventSetCreate == NULL:
1878 if handle == NULL:
1879 handle = load_library()
1880 __nvmlEventSetCreate = dlsym(handle, 'nvmlEventSetCreate')
1882 global __nvmlDeviceRegisterEvents
1883 __nvmlDeviceRegisterEvents = dlsym(RTLD_DEFAULT, 'nvmlDeviceRegisterEvents')
1884 if __nvmlDeviceRegisterEvents == NULL:
1885 if handle == NULL:
1886 handle = load_library()
1887 __nvmlDeviceRegisterEvents = dlsym(handle, 'nvmlDeviceRegisterEvents')
1889 global __nvmlDeviceGetSupportedEventTypes
1890 __nvmlDeviceGetSupportedEventTypes = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetSupportedEventTypes')
1891 if __nvmlDeviceGetSupportedEventTypes == NULL:
1892 if handle == NULL:
1893 handle = load_library()
1894 __nvmlDeviceGetSupportedEventTypes = dlsym(handle, 'nvmlDeviceGetSupportedEventTypes')
1896 global __nvmlEventSetWait_v2
1897 __nvmlEventSetWait_v2 = dlsym(RTLD_DEFAULT, 'nvmlEventSetWait_v2')
1898 if __nvmlEventSetWait_v2 == NULL:
1899 if handle == NULL:
1900 handle = load_library()
1901 __nvmlEventSetWait_v2 = dlsym(handle, 'nvmlEventSetWait_v2')
1903 global __nvmlEventSetFree
1904 __nvmlEventSetFree = dlsym(RTLD_DEFAULT, 'nvmlEventSetFree')
1905 if __nvmlEventSetFree == NULL:
1906 if handle == NULL:
1907 handle = load_library()
1908 __nvmlEventSetFree = dlsym(handle, 'nvmlEventSetFree')
1910 global __nvmlSystemEventSetCreate
1911 __nvmlSystemEventSetCreate = dlsym(RTLD_DEFAULT, 'nvmlSystemEventSetCreate')
1912 if __nvmlSystemEventSetCreate == NULL:
1913 if handle == NULL:
1914 handle = load_library()
1915 __nvmlSystemEventSetCreate = dlsym(handle, 'nvmlSystemEventSetCreate')
1917 global __nvmlSystemEventSetFree
1918 __nvmlSystemEventSetFree = dlsym(RTLD_DEFAULT, 'nvmlSystemEventSetFree')
1919 if __nvmlSystemEventSetFree == NULL:
1920 if handle == NULL:
1921 handle = load_library()
1922 __nvmlSystemEventSetFree = dlsym(handle, 'nvmlSystemEventSetFree')
1924 global __nvmlSystemRegisterEvents
1925 __nvmlSystemRegisterEvents = dlsym(RTLD_DEFAULT, 'nvmlSystemRegisterEvents')
1926 if __nvmlSystemRegisterEvents == NULL:
1927 if handle == NULL:
1928 handle = load_library()
1929 __nvmlSystemRegisterEvents = dlsym(handle, 'nvmlSystemRegisterEvents')
1931 global __nvmlSystemEventSetWait
1932 __nvmlSystemEventSetWait = dlsym(RTLD_DEFAULT, 'nvmlSystemEventSetWait')
1933 if __nvmlSystemEventSetWait == NULL:
1934 if handle == NULL:
1935 handle = load_library()
1936 __nvmlSystemEventSetWait = dlsym(handle, 'nvmlSystemEventSetWait')
1938 global __nvmlDeviceModifyDrainState
1939 __nvmlDeviceModifyDrainState = dlsym(RTLD_DEFAULT, 'nvmlDeviceModifyDrainState')
1940 if __nvmlDeviceModifyDrainState == NULL:
1941 if handle == NULL:
1942 handle = load_library()
1943 __nvmlDeviceModifyDrainState = dlsym(handle, 'nvmlDeviceModifyDrainState')
1945 global __nvmlDeviceQueryDrainState
1946 __nvmlDeviceQueryDrainState = dlsym(RTLD_DEFAULT, 'nvmlDeviceQueryDrainState')
1947 if __nvmlDeviceQueryDrainState == NULL:
1948 if handle == NULL:
1949 handle = load_library()
1950 __nvmlDeviceQueryDrainState = dlsym(handle, 'nvmlDeviceQueryDrainState')
1952 global __nvmlDeviceRemoveGpu_v2
1953 __nvmlDeviceRemoveGpu_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceRemoveGpu_v2')
1954 if __nvmlDeviceRemoveGpu_v2 == NULL:
1955 if handle == NULL:
1956 handle = load_library()
1957 __nvmlDeviceRemoveGpu_v2 = dlsym(handle, 'nvmlDeviceRemoveGpu_v2')
1959 global __nvmlDeviceDiscoverGpus
1960 __nvmlDeviceDiscoverGpus = dlsym(RTLD_DEFAULT, 'nvmlDeviceDiscoverGpus')
1961 if __nvmlDeviceDiscoverGpus == NULL:
1962 if handle == NULL:
1963 handle = load_library()
1964 __nvmlDeviceDiscoverGpus = dlsym(handle, 'nvmlDeviceDiscoverGpus')
1966 global __nvmlDeviceGetFieldValues
1967 __nvmlDeviceGetFieldValues = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetFieldValues')
1968 if __nvmlDeviceGetFieldValues == NULL:
1969 if handle == NULL:
1970 handle = load_library()
1971 __nvmlDeviceGetFieldValues = dlsym(handle, 'nvmlDeviceGetFieldValues')
1973 global __nvmlDeviceClearFieldValues
1974 __nvmlDeviceClearFieldValues = dlsym(RTLD_DEFAULT, 'nvmlDeviceClearFieldValues')
1975 if __nvmlDeviceClearFieldValues == NULL:
1976 if handle == NULL:
1977 handle = load_library()
1978 __nvmlDeviceClearFieldValues = dlsym(handle, 'nvmlDeviceClearFieldValues')
1980 global __nvmlDeviceGetVirtualizationMode
1981 __nvmlDeviceGetVirtualizationMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVirtualizationMode')
1982 if __nvmlDeviceGetVirtualizationMode == NULL:
1983 if handle == NULL:
1984 handle = load_library()
1985 __nvmlDeviceGetVirtualizationMode = dlsym(handle, 'nvmlDeviceGetVirtualizationMode')
1987 global __nvmlDeviceGetHostVgpuMode
1988 __nvmlDeviceGetHostVgpuMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetHostVgpuMode')
1989 if __nvmlDeviceGetHostVgpuMode == NULL:
1990 if handle == NULL:
1991 handle = load_library()
1992 __nvmlDeviceGetHostVgpuMode = dlsym(handle, 'nvmlDeviceGetHostVgpuMode')
1994 global __nvmlDeviceSetVirtualizationMode
1995 __nvmlDeviceSetVirtualizationMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetVirtualizationMode')
1996 if __nvmlDeviceSetVirtualizationMode == NULL:
1997 if handle == NULL:
1998 handle = load_library()
1999 __nvmlDeviceSetVirtualizationMode = dlsym(handle, 'nvmlDeviceSetVirtualizationMode')
2001 global __nvmlDeviceGetVgpuHeterogeneousMode
2002 __nvmlDeviceGetVgpuHeterogeneousMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuHeterogeneousMode')
2003 if __nvmlDeviceGetVgpuHeterogeneousMode == NULL:
2004 if handle == NULL:
2005 handle = load_library()
2006 __nvmlDeviceGetVgpuHeterogeneousMode = dlsym(handle, 'nvmlDeviceGetVgpuHeterogeneousMode')
2008 global __nvmlDeviceSetVgpuHeterogeneousMode
2009 __nvmlDeviceSetVgpuHeterogeneousMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetVgpuHeterogeneousMode')
2010 if __nvmlDeviceSetVgpuHeterogeneousMode == NULL:
2011 if handle == NULL:
2012 handle = load_library()
2013 __nvmlDeviceSetVgpuHeterogeneousMode = dlsym(handle, 'nvmlDeviceSetVgpuHeterogeneousMode')
2015 global __nvmlVgpuInstanceGetPlacementId
2016 __nvmlVgpuInstanceGetPlacementId = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetPlacementId')
2017 if __nvmlVgpuInstanceGetPlacementId == NULL:
2018 if handle == NULL:
2019 handle = load_library()
2020 __nvmlVgpuInstanceGetPlacementId = dlsym(handle, 'nvmlVgpuInstanceGetPlacementId')
2022 global __nvmlDeviceGetVgpuTypeSupportedPlacements
2023 __nvmlDeviceGetVgpuTypeSupportedPlacements = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuTypeSupportedPlacements')
2024 if __nvmlDeviceGetVgpuTypeSupportedPlacements == NULL:
2025 if handle == NULL:
2026 handle = load_library()
2027 __nvmlDeviceGetVgpuTypeSupportedPlacements = dlsym(handle, 'nvmlDeviceGetVgpuTypeSupportedPlacements')
2029 global __nvmlDeviceGetVgpuTypeCreatablePlacements
2030 __nvmlDeviceGetVgpuTypeCreatablePlacements = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuTypeCreatablePlacements')
2031 if __nvmlDeviceGetVgpuTypeCreatablePlacements == NULL:
2032 if handle == NULL:
2033 handle = load_library()
2034 __nvmlDeviceGetVgpuTypeCreatablePlacements = dlsym(handle, 'nvmlDeviceGetVgpuTypeCreatablePlacements')
2036 global __nvmlVgpuTypeGetGspHeapSize
2037 __nvmlVgpuTypeGetGspHeapSize = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetGspHeapSize')
2038 if __nvmlVgpuTypeGetGspHeapSize == NULL:
2039 if handle == NULL:
2040 handle = load_library()
2041 __nvmlVgpuTypeGetGspHeapSize = dlsym(handle, 'nvmlVgpuTypeGetGspHeapSize')
2043 global __nvmlVgpuTypeGetFbReservation
2044 __nvmlVgpuTypeGetFbReservation = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetFbReservation')
2045 if __nvmlVgpuTypeGetFbReservation == NULL:
2046 if handle == NULL:
2047 handle = load_library()
2048 __nvmlVgpuTypeGetFbReservation = dlsym(handle, 'nvmlVgpuTypeGetFbReservation')
2050 global __nvmlVgpuInstanceGetRuntimeStateSize
2051 __nvmlVgpuInstanceGetRuntimeStateSize = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetRuntimeStateSize')
2052 if __nvmlVgpuInstanceGetRuntimeStateSize == NULL:
2053 if handle == NULL:
2054 handle = load_library()
2055 __nvmlVgpuInstanceGetRuntimeStateSize = dlsym(handle, 'nvmlVgpuInstanceGetRuntimeStateSize')
2057 global __nvmlDeviceSetVgpuCapabilities
2058 __nvmlDeviceSetVgpuCapabilities = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetVgpuCapabilities')
2059 if __nvmlDeviceSetVgpuCapabilities == NULL:
2060 if handle == NULL:
2061 handle = load_library()
2062 __nvmlDeviceSetVgpuCapabilities = dlsym(handle, 'nvmlDeviceSetVgpuCapabilities')
2064 global __nvmlDeviceGetGridLicensableFeatures_v4
2065 __nvmlDeviceGetGridLicensableFeatures_v4 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGridLicensableFeatures_v4')
2066 if __nvmlDeviceGetGridLicensableFeatures_v4 == NULL:
2067 if handle == NULL:
2068 handle = load_library()
2069 __nvmlDeviceGetGridLicensableFeatures_v4 = dlsym(handle, 'nvmlDeviceGetGridLicensableFeatures_v4')
2071 global __nvmlGetVgpuDriverCapabilities
2072 __nvmlGetVgpuDriverCapabilities = dlsym(RTLD_DEFAULT, 'nvmlGetVgpuDriverCapabilities')
2073 if __nvmlGetVgpuDriverCapabilities == NULL:
2074 if handle == NULL:
2075 handle = load_library()
2076 __nvmlGetVgpuDriverCapabilities = dlsym(handle, 'nvmlGetVgpuDriverCapabilities')
2078 global __nvmlDeviceGetVgpuCapabilities
2079 __nvmlDeviceGetVgpuCapabilities = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuCapabilities')
2080 if __nvmlDeviceGetVgpuCapabilities == NULL:
2081 if handle == NULL:
2082 handle = load_library()
2083 __nvmlDeviceGetVgpuCapabilities = dlsym(handle, 'nvmlDeviceGetVgpuCapabilities')
2085 global __nvmlDeviceGetSupportedVgpus
2086 __nvmlDeviceGetSupportedVgpus = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetSupportedVgpus')
2087 if __nvmlDeviceGetSupportedVgpus == NULL:
2088 if handle == NULL:
2089 handle = load_library()
2090 __nvmlDeviceGetSupportedVgpus = dlsym(handle, 'nvmlDeviceGetSupportedVgpus')
2092 global __nvmlDeviceGetCreatableVgpus
2093 __nvmlDeviceGetCreatableVgpus = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetCreatableVgpus')
2094 if __nvmlDeviceGetCreatableVgpus == NULL:
2095 if handle == NULL:
2096 handle = load_library()
2097 __nvmlDeviceGetCreatableVgpus = dlsym(handle, 'nvmlDeviceGetCreatableVgpus')
2099 global __nvmlVgpuTypeGetClass
2100 __nvmlVgpuTypeGetClass = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetClass')
2101 if __nvmlVgpuTypeGetClass == NULL:
2102 if handle == NULL:
2103 handle = load_library()
2104 __nvmlVgpuTypeGetClass = dlsym(handle, 'nvmlVgpuTypeGetClass')
2106 global __nvmlVgpuTypeGetName
2107 __nvmlVgpuTypeGetName = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetName')
2108 if __nvmlVgpuTypeGetName == NULL:
2109 if handle == NULL:
2110 handle = load_library()
2111 __nvmlVgpuTypeGetName = dlsym(handle, 'nvmlVgpuTypeGetName')
2113 global __nvmlVgpuTypeGetGpuInstanceProfileId
2114 __nvmlVgpuTypeGetGpuInstanceProfileId = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetGpuInstanceProfileId')
2115 if __nvmlVgpuTypeGetGpuInstanceProfileId == NULL:
2116 if handle == NULL:
2117 handle = load_library()
2118 __nvmlVgpuTypeGetGpuInstanceProfileId = dlsym(handle, 'nvmlVgpuTypeGetGpuInstanceProfileId')
2120 global __nvmlVgpuTypeGetDeviceID
2121 __nvmlVgpuTypeGetDeviceID = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetDeviceID')
2122 if __nvmlVgpuTypeGetDeviceID == NULL:
2123 if handle == NULL:
2124 handle = load_library()
2125 __nvmlVgpuTypeGetDeviceID = dlsym(handle, 'nvmlVgpuTypeGetDeviceID')
2127 global __nvmlVgpuTypeGetFramebufferSize
2128 __nvmlVgpuTypeGetFramebufferSize = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetFramebufferSize')
2129 if __nvmlVgpuTypeGetFramebufferSize == NULL:
2130 if handle == NULL:
2131 handle = load_library()
2132 __nvmlVgpuTypeGetFramebufferSize = dlsym(handle, 'nvmlVgpuTypeGetFramebufferSize')
2134 global __nvmlVgpuTypeGetNumDisplayHeads
2135 __nvmlVgpuTypeGetNumDisplayHeads = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetNumDisplayHeads')
2136 if __nvmlVgpuTypeGetNumDisplayHeads == NULL:
2137 if handle == NULL:
2138 handle = load_library()
2139 __nvmlVgpuTypeGetNumDisplayHeads = dlsym(handle, 'nvmlVgpuTypeGetNumDisplayHeads')
2141 global __nvmlVgpuTypeGetResolution
2142 __nvmlVgpuTypeGetResolution = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetResolution')
2143 if __nvmlVgpuTypeGetResolution == NULL:
2144 if handle == NULL:
2145 handle = load_library()
2146 __nvmlVgpuTypeGetResolution = dlsym(handle, 'nvmlVgpuTypeGetResolution')
2148 global __nvmlVgpuTypeGetLicense
2149 __nvmlVgpuTypeGetLicense = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetLicense')
2150 if __nvmlVgpuTypeGetLicense == NULL:
2151 if handle == NULL:
2152 handle = load_library()
2153 __nvmlVgpuTypeGetLicense = dlsym(handle, 'nvmlVgpuTypeGetLicense')
2155 global __nvmlVgpuTypeGetFrameRateLimit
2156 __nvmlVgpuTypeGetFrameRateLimit = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetFrameRateLimit')
2157 if __nvmlVgpuTypeGetFrameRateLimit == NULL:
2158 if handle == NULL:
2159 handle = load_library()
2160 __nvmlVgpuTypeGetFrameRateLimit = dlsym(handle, 'nvmlVgpuTypeGetFrameRateLimit')
2162 global __nvmlVgpuTypeGetMaxInstances
2163 __nvmlVgpuTypeGetMaxInstances = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetMaxInstances')
2164 if __nvmlVgpuTypeGetMaxInstances == NULL:
2165 if handle == NULL:
2166 handle = load_library()
2167 __nvmlVgpuTypeGetMaxInstances = dlsym(handle, 'nvmlVgpuTypeGetMaxInstances')
2169 global __nvmlVgpuTypeGetMaxInstancesPerVm
2170 __nvmlVgpuTypeGetMaxInstancesPerVm = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetMaxInstancesPerVm')
2171 if __nvmlVgpuTypeGetMaxInstancesPerVm == NULL:
2172 if handle == NULL:
2173 handle = load_library()
2174 __nvmlVgpuTypeGetMaxInstancesPerVm = dlsym(handle, 'nvmlVgpuTypeGetMaxInstancesPerVm')
2176 global __nvmlVgpuTypeGetBAR1Info
2177 __nvmlVgpuTypeGetBAR1Info = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetBAR1Info')
2178 if __nvmlVgpuTypeGetBAR1Info == NULL:
2179 if handle == NULL:
2180 handle = load_library()
2181 __nvmlVgpuTypeGetBAR1Info = dlsym(handle, 'nvmlVgpuTypeGetBAR1Info')
2183 global __nvmlDeviceGetActiveVgpus
2184 __nvmlDeviceGetActiveVgpus = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetActiveVgpus')
2185 if __nvmlDeviceGetActiveVgpus == NULL:
2186 if handle == NULL:
2187 handle = load_library()
2188 __nvmlDeviceGetActiveVgpus = dlsym(handle, 'nvmlDeviceGetActiveVgpus')
2190 global __nvmlVgpuInstanceGetVmID
2191 __nvmlVgpuInstanceGetVmID = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetVmID')
2192 if __nvmlVgpuInstanceGetVmID == NULL:
2193 if handle == NULL:
2194 handle = load_library()
2195 __nvmlVgpuInstanceGetVmID = dlsym(handle, 'nvmlVgpuInstanceGetVmID')
2197 global __nvmlVgpuInstanceGetUUID
2198 __nvmlVgpuInstanceGetUUID = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetUUID')
2199 if __nvmlVgpuInstanceGetUUID == NULL:
2200 if handle == NULL:
2201 handle = load_library()
2202 __nvmlVgpuInstanceGetUUID = dlsym(handle, 'nvmlVgpuInstanceGetUUID')
2204 global __nvmlVgpuInstanceGetVmDriverVersion
2205 __nvmlVgpuInstanceGetVmDriverVersion = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetVmDriverVersion')
2206 if __nvmlVgpuInstanceGetVmDriverVersion == NULL:
2207 if handle == NULL:
2208 handle = load_library()
2209 __nvmlVgpuInstanceGetVmDriverVersion = dlsym(handle, 'nvmlVgpuInstanceGetVmDriverVersion')
2211 global __nvmlVgpuInstanceGetFbUsage
2212 __nvmlVgpuInstanceGetFbUsage = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetFbUsage')
2213 if __nvmlVgpuInstanceGetFbUsage == NULL:
2214 if handle == NULL:
2215 handle = load_library()
2216 __nvmlVgpuInstanceGetFbUsage = dlsym(handle, 'nvmlVgpuInstanceGetFbUsage')
2218 global __nvmlVgpuInstanceGetLicenseStatus
2219 __nvmlVgpuInstanceGetLicenseStatus = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetLicenseStatus')
2220 if __nvmlVgpuInstanceGetLicenseStatus == NULL:
2221 if handle == NULL:
2222 handle = load_library()
2223 __nvmlVgpuInstanceGetLicenseStatus = dlsym(handle, 'nvmlVgpuInstanceGetLicenseStatus')
2225 global __nvmlVgpuInstanceGetType
2226 __nvmlVgpuInstanceGetType = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetType')
2227 if __nvmlVgpuInstanceGetType == NULL:
2228 if handle == NULL:
2229 handle = load_library()
2230 __nvmlVgpuInstanceGetType = dlsym(handle, 'nvmlVgpuInstanceGetType')
2232 global __nvmlVgpuInstanceGetFrameRateLimit
2233 __nvmlVgpuInstanceGetFrameRateLimit = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetFrameRateLimit')
2234 if __nvmlVgpuInstanceGetFrameRateLimit == NULL:
2235 if handle == NULL:
2236 handle = load_library()
2237 __nvmlVgpuInstanceGetFrameRateLimit = dlsym(handle, 'nvmlVgpuInstanceGetFrameRateLimit')
2239 global __nvmlVgpuInstanceGetEccMode
2240 __nvmlVgpuInstanceGetEccMode = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetEccMode')
2241 if __nvmlVgpuInstanceGetEccMode == NULL:
2242 if handle == NULL:
2243 handle = load_library()
2244 __nvmlVgpuInstanceGetEccMode = dlsym(handle, 'nvmlVgpuInstanceGetEccMode')
2246 global __nvmlVgpuInstanceGetEncoderCapacity
2247 __nvmlVgpuInstanceGetEncoderCapacity = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetEncoderCapacity')
2248 if __nvmlVgpuInstanceGetEncoderCapacity == NULL:
2249 if handle == NULL:
2250 handle = load_library()
2251 __nvmlVgpuInstanceGetEncoderCapacity = dlsym(handle, 'nvmlVgpuInstanceGetEncoderCapacity')
2253 global __nvmlVgpuInstanceSetEncoderCapacity
2254 __nvmlVgpuInstanceSetEncoderCapacity = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceSetEncoderCapacity')
2255 if __nvmlVgpuInstanceSetEncoderCapacity == NULL:
2256 if handle == NULL:
2257 handle = load_library()
2258 __nvmlVgpuInstanceSetEncoderCapacity = dlsym(handle, 'nvmlVgpuInstanceSetEncoderCapacity')
2260 global __nvmlVgpuInstanceGetEncoderStats
2261 __nvmlVgpuInstanceGetEncoderStats = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetEncoderStats')
2262 if __nvmlVgpuInstanceGetEncoderStats == NULL:
2263 if handle == NULL:
2264 handle = load_library()
2265 __nvmlVgpuInstanceGetEncoderStats = dlsym(handle, 'nvmlVgpuInstanceGetEncoderStats')
2267 global __nvmlVgpuInstanceGetEncoderSessions
2268 __nvmlVgpuInstanceGetEncoderSessions = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetEncoderSessions')
2269 if __nvmlVgpuInstanceGetEncoderSessions == NULL:
2270 if handle == NULL:
2271 handle = load_library()
2272 __nvmlVgpuInstanceGetEncoderSessions = dlsym(handle, 'nvmlVgpuInstanceGetEncoderSessions')
2274 global __nvmlVgpuInstanceGetFBCStats
2275 __nvmlVgpuInstanceGetFBCStats = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetFBCStats')
2276 if __nvmlVgpuInstanceGetFBCStats == NULL:
2277 if handle == NULL:
2278 handle = load_library()
2279 __nvmlVgpuInstanceGetFBCStats = dlsym(handle, 'nvmlVgpuInstanceGetFBCStats')
2281 global __nvmlVgpuInstanceGetFBCSessions
2282 __nvmlVgpuInstanceGetFBCSessions = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetFBCSessions')
2283 if __nvmlVgpuInstanceGetFBCSessions == NULL:
2284 if handle == NULL:
2285 handle = load_library()
2286 __nvmlVgpuInstanceGetFBCSessions = dlsym(handle, 'nvmlVgpuInstanceGetFBCSessions')
2288 global __nvmlVgpuInstanceGetGpuInstanceId
2289 __nvmlVgpuInstanceGetGpuInstanceId = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetGpuInstanceId')
2290 if __nvmlVgpuInstanceGetGpuInstanceId == NULL:
2291 if handle == NULL:
2292 handle = load_library()
2293 __nvmlVgpuInstanceGetGpuInstanceId = dlsym(handle, 'nvmlVgpuInstanceGetGpuInstanceId')
2295 global __nvmlVgpuInstanceGetGpuPciId
2296 __nvmlVgpuInstanceGetGpuPciId = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetGpuPciId')
2297 if __nvmlVgpuInstanceGetGpuPciId == NULL:
2298 if handle == NULL:
2299 handle = load_library()
2300 __nvmlVgpuInstanceGetGpuPciId = dlsym(handle, 'nvmlVgpuInstanceGetGpuPciId')
2302 global __nvmlVgpuTypeGetCapabilities
2303 __nvmlVgpuTypeGetCapabilities = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetCapabilities')
2304 if __nvmlVgpuTypeGetCapabilities == NULL:
2305 if handle == NULL:
2306 handle = load_library()
2307 __nvmlVgpuTypeGetCapabilities = dlsym(handle, 'nvmlVgpuTypeGetCapabilities')
2309 global __nvmlVgpuInstanceGetMdevUUID
2310 __nvmlVgpuInstanceGetMdevUUID = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetMdevUUID')
2311 if __nvmlVgpuInstanceGetMdevUUID == NULL:
2312 if handle == NULL:
2313 handle = load_library()
2314 __nvmlVgpuInstanceGetMdevUUID = dlsym(handle, 'nvmlVgpuInstanceGetMdevUUID')
2316 global __nvmlGpuInstanceGetCreatableVgpus
2317 __nvmlGpuInstanceGetCreatableVgpus = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetCreatableVgpus')
2318 if __nvmlGpuInstanceGetCreatableVgpus == NULL:
2319 if handle == NULL:
2320 handle = load_library()
2321 __nvmlGpuInstanceGetCreatableVgpus = dlsym(handle, 'nvmlGpuInstanceGetCreatableVgpus')
2323 global __nvmlVgpuTypeGetMaxInstancesPerGpuInstance
2324 __nvmlVgpuTypeGetMaxInstancesPerGpuInstance = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetMaxInstancesPerGpuInstance')
2325 if __nvmlVgpuTypeGetMaxInstancesPerGpuInstance == NULL:
2326 if handle == NULL:
2327 handle = load_library()
2328 __nvmlVgpuTypeGetMaxInstancesPerGpuInstance = dlsym(handle, 'nvmlVgpuTypeGetMaxInstancesPerGpuInstance')
2330 global __nvmlGpuInstanceGetActiveVgpus
2331 __nvmlGpuInstanceGetActiveVgpus = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetActiveVgpus')
2332 if __nvmlGpuInstanceGetActiveVgpus == NULL:
2333 if handle == NULL:
2334 handle = load_library()
2335 __nvmlGpuInstanceGetActiveVgpus = dlsym(handle, 'nvmlGpuInstanceGetActiveVgpus')
2337 global __nvmlGpuInstanceSetVgpuSchedulerState
2338 __nvmlGpuInstanceSetVgpuSchedulerState = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceSetVgpuSchedulerState')
2339 if __nvmlGpuInstanceSetVgpuSchedulerState == NULL:
2340 if handle == NULL:
2341 handle = load_library()
2342 __nvmlGpuInstanceSetVgpuSchedulerState = dlsym(handle, 'nvmlGpuInstanceSetVgpuSchedulerState')
2344 global __nvmlGpuInstanceGetVgpuSchedulerState
2345 __nvmlGpuInstanceGetVgpuSchedulerState = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetVgpuSchedulerState')
2346 if __nvmlGpuInstanceGetVgpuSchedulerState == NULL:
2347 if handle == NULL:
2348 handle = load_library()
2349 __nvmlGpuInstanceGetVgpuSchedulerState = dlsym(handle, 'nvmlGpuInstanceGetVgpuSchedulerState')
2351 global __nvmlGpuInstanceGetVgpuSchedulerLog
2352 __nvmlGpuInstanceGetVgpuSchedulerLog = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetVgpuSchedulerLog')
2353 if __nvmlGpuInstanceGetVgpuSchedulerLog == NULL:
2354 if handle == NULL:
2355 handle = load_library()
2356 __nvmlGpuInstanceGetVgpuSchedulerLog = dlsym(handle, 'nvmlGpuInstanceGetVgpuSchedulerLog')
2358 global __nvmlGpuInstanceGetVgpuTypeCreatablePlacements
2359 __nvmlGpuInstanceGetVgpuTypeCreatablePlacements = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetVgpuTypeCreatablePlacements')
2360 if __nvmlGpuInstanceGetVgpuTypeCreatablePlacements == NULL:
2361 if handle == NULL:
2362 handle = load_library()
2363 __nvmlGpuInstanceGetVgpuTypeCreatablePlacements = dlsym(handle, 'nvmlGpuInstanceGetVgpuTypeCreatablePlacements')
2365 global __nvmlGpuInstanceGetVgpuHeterogeneousMode
2366 __nvmlGpuInstanceGetVgpuHeterogeneousMode = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetVgpuHeterogeneousMode')
2367 if __nvmlGpuInstanceGetVgpuHeterogeneousMode == NULL:
2368 if handle == NULL:
2369 handle = load_library()
2370 __nvmlGpuInstanceGetVgpuHeterogeneousMode = dlsym(handle, 'nvmlGpuInstanceGetVgpuHeterogeneousMode')
2372 global __nvmlGpuInstanceSetVgpuHeterogeneousMode
2373 __nvmlGpuInstanceSetVgpuHeterogeneousMode = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceSetVgpuHeterogeneousMode')
2374 if __nvmlGpuInstanceSetVgpuHeterogeneousMode == NULL:
2375 if handle == NULL:
2376 handle = load_library()
2377 __nvmlGpuInstanceSetVgpuHeterogeneousMode = dlsym(handle, 'nvmlGpuInstanceSetVgpuHeterogeneousMode')
2379 global __nvmlVgpuInstanceGetMetadata
2380 __nvmlVgpuInstanceGetMetadata = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetMetadata')
2381 if __nvmlVgpuInstanceGetMetadata == NULL:
2382 if handle == NULL:
2383 handle = load_library()
2384 __nvmlVgpuInstanceGetMetadata = dlsym(handle, 'nvmlVgpuInstanceGetMetadata')
2386 global __nvmlDeviceGetVgpuMetadata
2387 __nvmlDeviceGetVgpuMetadata = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuMetadata')
2388 if __nvmlDeviceGetVgpuMetadata == NULL:
2389 if handle == NULL:
2390 handle = load_library()
2391 __nvmlDeviceGetVgpuMetadata = dlsym(handle, 'nvmlDeviceGetVgpuMetadata')
2393 global __nvmlGetVgpuCompatibility
2394 __nvmlGetVgpuCompatibility = dlsym(RTLD_DEFAULT, 'nvmlGetVgpuCompatibility')
2395 if __nvmlGetVgpuCompatibility == NULL:
2396 if handle == NULL:
2397 handle = load_library()
2398 __nvmlGetVgpuCompatibility = dlsym(handle, 'nvmlGetVgpuCompatibility')
2400 global __nvmlDeviceGetPgpuMetadataString
2401 __nvmlDeviceGetPgpuMetadataString = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPgpuMetadataString')
2402 if __nvmlDeviceGetPgpuMetadataString == NULL:
2403 if handle == NULL:
2404 handle = load_library()
2405 __nvmlDeviceGetPgpuMetadataString = dlsym(handle, 'nvmlDeviceGetPgpuMetadataString')
2407 global __nvmlDeviceGetVgpuSchedulerLog
2408 __nvmlDeviceGetVgpuSchedulerLog = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuSchedulerLog')
2409 if __nvmlDeviceGetVgpuSchedulerLog == NULL:
2410 if handle == NULL:
2411 handle = load_library()
2412 __nvmlDeviceGetVgpuSchedulerLog = dlsym(handle, 'nvmlDeviceGetVgpuSchedulerLog')
2414 global __nvmlDeviceGetVgpuSchedulerState
2415 __nvmlDeviceGetVgpuSchedulerState = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuSchedulerState')
2416 if __nvmlDeviceGetVgpuSchedulerState == NULL:
2417 if handle == NULL:
2418 handle = load_library()
2419 __nvmlDeviceGetVgpuSchedulerState = dlsym(handle, 'nvmlDeviceGetVgpuSchedulerState')
2421 global __nvmlDeviceGetVgpuSchedulerCapabilities
2422 __nvmlDeviceGetVgpuSchedulerCapabilities = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuSchedulerCapabilities')
2423 if __nvmlDeviceGetVgpuSchedulerCapabilities == NULL:
2424 if handle == NULL:
2425 handle = load_library()
2426 __nvmlDeviceGetVgpuSchedulerCapabilities = dlsym(handle, 'nvmlDeviceGetVgpuSchedulerCapabilities')
2428 global __nvmlDeviceSetVgpuSchedulerState
2429 __nvmlDeviceSetVgpuSchedulerState = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetVgpuSchedulerState')
2430 if __nvmlDeviceSetVgpuSchedulerState == NULL:
2431 if handle == NULL:
2432 handle = load_library()
2433 __nvmlDeviceSetVgpuSchedulerState = dlsym(handle, 'nvmlDeviceSetVgpuSchedulerState')
2435 global __nvmlGetVgpuVersion
2436 __nvmlGetVgpuVersion = dlsym(RTLD_DEFAULT, 'nvmlGetVgpuVersion')
2437 if __nvmlGetVgpuVersion == NULL:
2438 if handle == NULL:
2439 handle = load_library()
2440 __nvmlGetVgpuVersion = dlsym(handle, 'nvmlGetVgpuVersion')
2442 global __nvmlSetVgpuVersion
2443 __nvmlSetVgpuVersion = dlsym(RTLD_DEFAULT, 'nvmlSetVgpuVersion')
2444 if __nvmlSetVgpuVersion == NULL:
2445 if handle == NULL:
2446 handle = load_library()
2447 __nvmlSetVgpuVersion = dlsym(handle, 'nvmlSetVgpuVersion')
2449 global __nvmlDeviceGetVgpuUtilization
2450 __nvmlDeviceGetVgpuUtilization = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuUtilization')
2451 if __nvmlDeviceGetVgpuUtilization == NULL:
2452 if handle == NULL:
2453 handle = load_library()
2454 __nvmlDeviceGetVgpuUtilization = dlsym(handle, 'nvmlDeviceGetVgpuUtilization')
2456 global __nvmlDeviceGetVgpuInstancesUtilizationInfo
2457 __nvmlDeviceGetVgpuInstancesUtilizationInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuInstancesUtilizationInfo')
2458 if __nvmlDeviceGetVgpuInstancesUtilizationInfo == NULL:
2459 if handle == NULL:
2460 handle = load_library()
2461 __nvmlDeviceGetVgpuInstancesUtilizationInfo = dlsym(handle, 'nvmlDeviceGetVgpuInstancesUtilizationInfo')
2463 global __nvmlDeviceGetVgpuProcessUtilization
2464 __nvmlDeviceGetVgpuProcessUtilization = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuProcessUtilization')
2465 if __nvmlDeviceGetVgpuProcessUtilization == NULL:
2466 if handle == NULL:
2467 handle = load_library()
2468 __nvmlDeviceGetVgpuProcessUtilization = dlsym(handle, 'nvmlDeviceGetVgpuProcessUtilization')
2470 global __nvmlDeviceGetVgpuProcessesUtilizationInfo
2471 __nvmlDeviceGetVgpuProcessesUtilizationInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuProcessesUtilizationInfo')
2472 if __nvmlDeviceGetVgpuProcessesUtilizationInfo == NULL:
2473 if handle == NULL:
2474 handle = load_library()
2475 __nvmlDeviceGetVgpuProcessesUtilizationInfo = dlsym(handle, 'nvmlDeviceGetVgpuProcessesUtilizationInfo')
2477 global __nvmlVgpuInstanceGetAccountingMode
2478 __nvmlVgpuInstanceGetAccountingMode = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetAccountingMode')
2479 if __nvmlVgpuInstanceGetAccountingMode == NULL:
2480 if handle == NULL:
2481 handle = load_library()
2482 __nvmlVgpuInstanceGetAccountingMode = dlsym(handle, 'nvmlVgpuInstanceGetAccountingMode')
2484 global __nvmlVgpuInstanceGetAccountingPids
2485 __nvmlVgpuInstanceGetAccountingPids = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetAccountingPids')
2486 if __nvmlVgpuInstanceGetAccountingPids == NULL:
2487 if handle == NULL:
2488 handle = load_library()
2489 __nvmlVgpuInstanceGetAccountingPids = dlsym(handle, 'nvmlVgpuInstanceGetAccountingPids')
2491 global __nvmlVgpuInstanceGetAccountingStats
2492 __nvmlVgpuInstanceGetAccountingStats = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetAccountingStats')
2493 if __nvmlVgpuInstanceGetAccountingStats == NULL:
2494 if handle == NULL:
2495 handle = load_library()
2496 __nvmlVgpuInstanceGetAccountingStats = dlsym(handle, 'nvmlVgpuInstanceGetAccountingStats')
2498 global __nvmlVgpuInstanceClearAccountingPids
2499 __nvmlVgpuInstanceClearAccountingPids = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceClearAccountingPids')
2500 if __nvmlVgpuInstanceClearAccountingPids == NULL:
2501 if handle == NULL:
2502 handle = load_library()
2503 __nvmlVgpuInstanceClearAccountingPids = dlsym(handle, 'nvmlVgpuInstanceClearAccountingPids')
2505 global __nvmlVgpuInstanceGetLicenseInfo_v2
2506 __nvmlVgpuInstanceGetLicenseInfo_v2 = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetLicenseInfo_v2')
2507 if __nvmlVgpuInstanceGetLicenseInfo_v2 == NULL:
2508 if handle == NULL:
2509 handle = load_library()
2510 __nvmlVgpuInstanceGetLicenseInfo_v2 = dlsym(handle, 'nvmlVgpuInstanceGetLicenseInfo_v2')
2512 global __nvmlGetExcludedDeviceCount
2513 __nvmlGetExcludedDeviceCount = dlsym(RTLD_DEFAULT, 'nvmlGetExcludedDeviceCount')
2514 if __nvmlGetExcludedDeviceCount == NULL:
2515 if handle == NULL:
2516 handle = load_library()
2517 __nvmlGetExcludedDeviceCount = dlsym(handle, 'nvmlGetExcludedDeviceCount')
2519 global __nvmlGetExcludedDeviceInfoByIndex
2520 __nvmlGetExcludedDeviceInfoByIndex = dlsym(RTLD_DEFAULT, 'nvmlGetExcludedDeviceInfoByIndex')
2521 if __nvmlGetExcludedDeviceInfoByIndex == NULL:
2522 if handle == NULL:
2523 handle = load_library()
2524 __nvmlGetExcludedDeviceInfoByIndex = dlsym(handle, 'nvmlGetExcludedDeviceInfoByIndex')
2526 global __nvmlDeviceSetMigMode
2527 __nvmlDeviceSetMigMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetMigMode')
2528 if __nvmlDeviceSetMigMode == NULL:
2529 if handle == NULL:
2530 handle = load_library()
2531 __nvmlDeviceSetMigMode = dlsym(handle, 'nvmlDeviceSetMigMode')
2533 global __nvmlDeviceGetMigMode
2534 __nvmlDeviceGetMigMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMigMode')
2535 if __nvmlDeviceGetMigMode == NULL:
2536 if handle == NULL:
2537 handle = load_library()
2538 __nvmlDeviceGetMigMode = dlsym(handle, 'nvmlDeviceGetMigMode')
2540 global __nvmlDeviceGetGpuInstanceProfileInfoV
2541 __nvmlDeviceGetGpuInstanceProfileInfoV = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpuInstanceProfileInfoV')
2542 if __nvmlDeviceGetGpuInstanceProfileInfoV == NULL:
2543 if handle == NULL:
2544 handle = load_library()
2545 __nvmlDeviceGetGpuInstanceProfileInfoV = dlsym(handle, 'nvmlDeviceGetGpuInstanceProfileInfoV')
2547 global __nvmlDeviceGetGpuInstancePossiblePlacements_v2
2548 __nvmlDeviceGetGpuInstancePossiblePlacements_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpuInstancePossiblePlacements_v2')
2549 if __nvmlDeviceGetGpuInstancePossiblePlacements_v2 == NULL:
2550 if handle == NULL:
2551 handle = load_library()
2552 __nvmlDeviceGetGpuInstancePossiblePlacements_v2 = dlsym(handle, 'nvmlDeviceGetGpuInstancePossiblePlacements_v2')
2554 global __nvmlDeviceGetGpuInstanceRemainingCapacity
2555 __nvmlDeviceGetGpuInstanceRemainingCapacity = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpuInstanceRemainingCapacity')
2556 if __nvmlDeviceGetGpuInstanceRemainingCapacity == NULL:
2557 if handle == NULL:
2558 handle = load_library()
2559 __nvmlDeviceGetGpuInstanceRemainingCapacity = dlsym(handle, 'nvmlDeviceGetGpuInstanceRemainingCapacity')
2561 global __nvmlDeviceCreateGpuInstance
2562 __nvmlDeviceCreateGpuInstance = dlsym(RTLD_DEFAULT, 'nvmlDeviceCreateGpuInstance')
2563 if __nvmlDeviceCreateGpuInstance == NULL:
2564 if handle == NULL:
2565 handle = load_library()
2566 __nvmlDeviceCreateGpuInstance = dlsym(handle, 'nvmlDeviceCreateGpuInstance')
2568 global __nvmlDeviceCreateGpuInstanceWithPlacement
2569 __nvmlDeviceCreateGpuInstanceWithPlacement = dlsym(RTLD_DEFAULT, 'nvmlDeviceCreateGpuInstanceWithPlacement')
2570 if __nvmlDeviceCreateGpuInstanceWithPlacement == NULL:
2571 if handle == NULL:
2572 handle = load_library()
2573 __nvmlDeviceCreateGpuInstanceWithPlacement = dlsym(handle, 'nvmlDeviceCreateGpuInstanceWithPlacement')
2575 global __nvmlGpuInstanceDestroy
2576 __nvmlGpuInstanceDestroy = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceDestroy')
2577 if __nvmlGpuInstanceDestroy == NULL:
2578 if handle == NULL:
2579 handle = load_library()
2580 __nvmlGpuInstanceDestroy = dlsym(handle, 'nvmlGpuInstanceDestroy')
2582 global __nvmlDeviceGetGpuInstances
2583 __nvmlDeviceGetGpuInstances = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpuInstances')
2584 if __nvmlDeviceGetGpuInstances == NULL:
2585 if handle == NULL:
2586 handle = load_library()
2587 __nvmlDeviceGetGpuInstances = dlsym(handle, 'nvmlDeviceGetGpuInstances')
2589 global __nvmlDeviceGetGpuInstanceById
2590 __nvmlDeviceGetGpuInstanceById = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpuInstanceById')
2591 if __nvmlDeviceGetGpuInstanceById == NULL:
2592 if handle == NULL:
2593 handle = load_library()
2594 __nvmlDeviceGetGpuInstanceById = dlsym(handle, 'nvmlDeviceGetGpuInstanceById')
2596 global __nvmlGpuInstanceGetInfo
2597 __nvmlGpuInstanceGetInfo = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetInfo')
2598 if __nvmlGpuInstanceGetInfo == NULL:
2599 if handle == NULL:
2600 handle = load_library()
2601 __nvmlGpuInstanceGetInfo = dlsym(handle, 'nvmlGpuInstanceGetInfo')
2603 global __nvmlGpuInstanceGetComputeInstanceProfileInfoV
2604 __nvmlGpuInstanceGetComputeInstanceProfileInfoV = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetComputeInstanceProfileInfoV')
2605 if __nvmlGpuInstanceGetComputeInstanceProfileInfoV == NULL:
2606 if handle == NULL:
2607 handle = load_library()
2608 __nvmlGpuInstanceGetComputeInstanceProfileInfoV = dlsym(handle, 'nvmlGpuInstanceGetComputeInstanceProfileInfoV')
2610 global __nvmlGpuInstanceGetComputeInstanceRemainingCapacity
2611 __nvmlGpuInstanceGetComputeInstanceRemainingCapacity = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetComputeInstanceRemainingCapacity')
2612 if __nvmlGpuInstanceGetComputeInstanceRemainingCapacity == NULL:
2613 if handle == NULL:
2614 handle = load_library()
2615 __nvmlGpuInstanceGetComputeInstanceRemainingCapacity = dlsym(handle, 'nvmlGpuInstanceGetComputeInstanceRemainingCapacity')
2617 global __nvmlGpuInstanceGetComputeInstancePossiblePlacements
2618 __nvmlGpuInstanceGetComputeInstancePossiblePlacements = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetComputeInstancePossiblePlacements')
2619 if __nvmlGpuInstanceGetComputeInstancePossiblePlacements == NULL:
2620 if handle == NULL:
2621 handle = load_library()
2622 __nvmlGpuInstanceGetComputeInstancePossiblePlacements = dlsym(handle, 'nvmlGpuInstanceGetComputeInstancePossiblePlacements')
2624 global __nvmlGpuInstanceCreateComputeInstance
2625 __nvmlGpuInstanceCreateComputeInstance = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceCreateComputeInstance')
2626 if __nvmlGpuInstanceCreateComputeInstance == NULL:
2627 if handle == NULL:
2628 handle = load_library()
2629 __nvmlGpuInstanceCreateComputeInstance = dlsym(handle, 'nvmlGpuInstanceCreateComputeInstance')
2631 global __nvmlGpuInstanceCreateComputeInstanceWithPlacement
2632 __nvmlGpuInstanceCreateComputeInstanceWithPlacement = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceCreateComputeInstanceWithPlacement')
2633 if __nvmlGpuInstanceCreateComputeInstanceWithPlacement == NULL:
2634 if handle == NULL:
2635 handle = load_library()
2636 __nvmlGpuInstanceCreateComputeInstanceWithPlacement = dlsym(handle, 'nvmlGpuInstanceCreateComputeInstanceWithPlacement')
2638 global __nvmlComputeInstanceDestroy
2639 __nvmlComputeInstanceDestroy = dlsym(RTLD_DEFAULT, 'nvmlComputeInstanceDestroy')
2640 if __nvmlComputeInstanceDestroy == NULL:
2641 if handle == NULL:
2642 handle = load_library()
2643 __nvmlComputeInstanceDestroy = dlsym(handle, 'nvmlComputeInstanceDestroy')
2645 global __nvmlGpuInstanceGetComputeInstances
2646 __nvmlGpuInstanceGetComputeInstances = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetComputeInstances')
2647 if __nvmlGpuInstanceGetComputeInstances == NULL:
2648 if handle == NULL:
2649 handle = load_library()
2650 __nvmlGpuInstanceGetComputeInstances = dlsym(handle, 'nvmlGpuInstanceGetComputeInstances')
2652 global __nvmlGpuInstanceGetComputeInstanceById
2653 __nvmlGpuInstanceGetComputeInstanceById = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetComputeInstanceById')
2654 if __nvmlGpuInstanceGetComputeInstanceById == NULL:
2655 if handle == NULL:
2656 handle = load_library()
2657 __nvmlGpuInstanceGetComputeInstanceById = dlsym(handle, 'nvmlGpuInstanceGetComputeInstanceById')
2659 global __nvmlComputeInstanceGetInfo_v2
2660 __nvmlComputeInstanceGetInfo_v2 = dlsym(RTLD_DEFAULT, 'nvmlComputeInstanceGetInfo_v2')
2661 if __nvmlComputeInstanceGetInfo_v2 == NULL:
2662 if handle == NULL:
2663 handle = load_library()
2664 __nvmlComputeInstanceGetInfo_v2 = dlsym(handle, 'nvmlComputeInstanceGetInfo_v2')
2666 global __nvmlDeviceIsMigDeviceHandle
2667 __nvmlDeviceIsMigDeviceHandle = dlsym(RTLD_DEFAULT, 'nvmlDeviceIsMigDeviceHandle')
2668 if __nvmlDeviceIsMigDeviceHandle == NULL:
2669 if handle == NULL:
2670 handle = load_library()
2671 __nvmlDeviceIsMigDeviceHandle = dlsym(handle, 'nvmlDeviceIsMigDeviceHandle')
2673 global __nvmlDeviceGetGpuInstanceId
2674 __nvmlDeviceGetGpuInstanceId = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpuInstanceId')
2675 if __nvmlDeviceGetGpuInstanceId == NULL:
2676 if handle == NULL:
2677 handle = load_library()
2678 __nvmlDeviceGetGpuInstanceId = dlsym(handle, 'nvmlDeviceGetGpuInstanceId')
2680 global __nvmlDeviceGetComputeInstanceId
2681 __nvmlDeviceGetComputeInstanceId = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetComputeInstanceId')
2682 if __nvmlDeviceGetComputeInstanceId == NULL:
2683 if handle == NULL:
2684 handle = load_library()
2685 __nvmlDeviceGetComputeInstanceId = dlsym(handle, 'nvmlDeviceGetComputeInstanceId')
2687 global __nvmlDeviceGetMaxMigDeviceCount
2688 __nvmlDeviceGetMaxMigDeviceCount = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMaxMigDeviceCount')
2689 if __nvmlDeviceGetMaxMigDeviceCount == NULL:
2690 if handle == NULL:
2691 handle = load_library()
2692 __nvmlDeviceGetMaxMigDeviceCount = dlsym(handle, 'nvmlDeviceGetMaxMigDeviceCount')
2694 global __nvmlDeviceGetMigDeviceHandleByIndex
2695 __nvmlDeviceGetMigDeviceHandleByIndex = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMigDeviceHandleByIndex')
2696 if __nvmlDeviceGetMigDeviceHandleByIndex == NULL:
2697 if handle == NULL:
2698 handle = load_library()
2699 __nvmlDeviceGetMigDeviceHandleByIndex = dlsym(handle, 'nvmlDeviceGetMigDeviceHandleByIndex')
2701 global __nvmlDeviceGetDeviceHandleFromMigDeviceHandle
2702 __nvmlDeviceGetDeviceHandleFromMigDeviceHandle = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetDeviceHandleFromMigDeviceHandle')
2703 if __nvmlDeviceGetDeviceHandleFromMigDeviceHandle == NULL:
2704 if handle == NULL:
2705 handle = load_library()
2706 __nvmlDeviceGetDeviceHandleFromMigDeviceHandle = dlsym(handle, 'nvmlDeviceGetDeviceHandleFromMigDeviceHandle')
2708 global __nvmlGpmSampleGet
2709 __nvmlGpmSampleGet = dlsym(RTLD_DEFAULT, 'nvmlGpmSampleGet')
2710 if __nvmlGpmSampleGet == NULL:
2711 if handle == NULL:
2712 handle = load_library()
2713 __nvmlGpmSampleGet = dlsym(handle, 'nvmlGpmSampleGet')
2715 global __nvmlGpmMigSampleGet
2716 __nvmlGpmMigSampleGet = dlsym(RTLD_DEFAULT, 'nvmlGpmMigSampleGet')
2717 if __nvmlGpmMigSampleGet == NULL:
2718 if handle == NULL:
2719 handle = load_library()
2720 __nvmlGpmMigSampleGet = dlsym(handle, 'nvmlGpmMigSampleGet')
2722 global __nvmlGpmQueryDeviceSupport
2723 __nvmlGpmQueryDeviceSupport = dlsym(RTLD_DEFAULT, 'nvmlGpmQueryDeviceSupport')
2724 if __nvmlGpmQueryDeviceSupport == NULL:
2725 if handle == NULL:
2726 handle = load_library()
2727 __nvmlGpmQueryDeviceSupport = dlsym(handle, 'nvmlGpmQueryDeviceSupport')
2729 global __nvmlGpmQueryIfStreamingEnabled
2730 __nvmlGpmQueryIfStreamingEnabled = dlsym(RTLD_DEFAULT, 'nvmlGpmQueryIfStreamingEnabled')
2731 if __nvmlGpmQueryIfStreamingEnabled == NULL:
2732 if handle == NULL:
2733 handle = load_library()
2734 __nvmlGpmQueryIfStreamingEnabled = dlsym(handle, 'nvmlGpmQueryIfStreamingEnabled')
2736 global __nvmlGpmSetStreamingEnabled
2737 __nvmlGpmSetStreamingEnabled = dlsym(RTLD_DEFAULT, 'nvmlGpmSetStreamingEnabled')
2738 if __nvmlGpmSetStreamingEnabled == NULL:
2739 if handle == NULL:
2740 handle = load_library()
2741 __nvmlGpmSetStreamingEnabled = dlsym(handle, 'nvmlGpmSetStreamingEnabled')
2743 global __nvmlDeviceGetCapabilities
2744 __nvmlDeviceGetCapabilities = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetCapabilities')
2745 if __nvmlDeviceGetCapabilities == NULL:
2746 if handle == NULL:
2747 handle = load_library()
2748 __nvmlDeviceGetCapabilities = dlsym(handle, 'nvmlDeviceGetCapabilities')
2750 global __nvmlDeviceWorkloadPowerProfileClearRequestedProfiles
2751 __nvmlDeviceWorkloadPowerProfileClearRequestedProfiles = dlsym(RTLD_DEFAULT, 'nvmlDeviceWorkloadPowerProfileClearRequestedProfiles')
2752 if __nvmlDeviceWorkloadPowerProfileClearRequestedProfiles == NULL:
2753 if handle == NULL:
2754 handle = load_library()
2755 __nvmlDeviceWorkloadPowerProfileClearRequestedProfiles = dlsym(handle, 'nvmlDeviceWorkloadPowerProfileClearRequestedProfiles')
2757 global __nvmlDevicePowerSmoothingActivatePresetProfile
2758 __nvmlDevicePowerSmoothingActivatePresetProfile = dlsym(RTLD_DEFAULT, 'nvmlDevicePowerSmoothingActivatePresetProfile')
2759 if __nvmlDevicePowerSmoothingActivatePresetProfile == NULL:
2760 if handle == NULL:
2761 handle = load_library()
2762 __nvmlDevicePowerSmoothingActivatePresetProfile = dlsym(handle, 'nvmlDevicePowerSmoothingActivatePresetProfile')
2764 global __nvmlDevicePowerSmoothingUpdatePresetProfileParam
2765 __nvmlDevicePowerSmoothingUpdatePresetProfileParam = dlsym(RTLD_DEFAULT, 'nvmlDevicePowerSmoothingUpdatePresetProfileParam')
2766 if __nvmlDevicePowerSmoothingUpdatePresetProfileParam == NULL:
2767 if handle == NULL:
2768 handle = load_library()
2769 __nvmlDevicePowerSmoothingUpdatePresetProfileParam = dlsym(handle, 'nvmlDevicePowerSmoothingUpdatePresetProfileParam')
2771 global __nvmlDevicePowerSmoothingSetState
2772 __nvmlDevicePowerSmoothingSetState = dlsym(RTLD_DEFAULT, 'nvmlDevicePowerSmoothingSetState')
2773 if __nvmlDevicePowerSmoothingSetState == NULL:
2774 if handle == NULL:
2775 handle = load_library()
2776 __nvmlDevicePowerSmoothingSetState = dlsym(handle, 'nvmlDevicePowerSmoothingSetState')
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')
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')
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')
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')
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')
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')
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')
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')
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')
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')
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')
2855 __py_nvml_init = True
2856 return 0
2859cdef inline int _check_or_init_nvml() except -1 nogil:
2860 if __py_nvml_init:
2861 return 0
2863 return _init_nvml()
2866cdef dict func_ptrs = None
2869cpdef dict _inspect_function_pointers():
2870 global func_ptrs
2871 if func_ptrs is not None:
2872 return func_ptrs
2874 _check_or_init_nvml()
2875 cdef dict data = {}
2877 global __nvmlInit_v2
2878 data["__nvmlInit_v2"] = <intptr_t>__nvmlInit_v2
2880 global __nvmlInitWithFlags
2881 data["__nvmlInitWithFlags"] = <intptr_t>__nvmlInitWithFlags
2883 global __nvmlShutdown
2884 data["__nvmlShutdown"] = <intptr_t>__nvmlShutdown
2886 global __nvmlErrorString
2887 data["__nvmlErrorString"] = <intptr_t>__nvmlErrorString
2889 global __nvmlSystemGetDriverVersion
2890 data["__nvmlSystemGetDriverVersion"] = <intptr_t>__nvmlSystemGetDriverVersion
2892 global __nvmlSystemGetNVMLVersion
2893 data["__nvmlSystemGetNVMLVersion"] = <intptr_t>__nvmlSystemGetNVMLVersion
2895 global __nvmlSystemGetCudaDriverVersion
2896 data["__nvmlSystemGetCudaDriverVersion"] = <intptr_t>__nvmlSystemGetCudaDriverVersion
2898 global __nvmlSystemGetCudaDriverVersion_v2
2899 data["__nvmlSystemGetCudaDriverVersion_v2"] = <intptr_t>__nvmlSystemGetCudaDriverVersion_v2
2901 global __nvmlSystemGetProcessName
2902 data["__nvmlSystemGetProcessName"] = <intptr_t>__nvmlSystemGetProcessName
2904 global __nvmlSystemGetHicVersion
2905 data["__nvmlSystemGetHicVersion"] = <intptr_t>__nvmlSystemGetHicVersion
2907 global __nvmlSystemGetTopologyGpuSet
2908 data["__nvmlSystemGetTopologyGpuSet"] = <intptr_t>__nvmlSystemGetTopologyGpuSet
2910 global __nvmlSystemGetDriverBranch
2911 data["__nvmlSystemGetDriverBranch"] = <intptr_t>__nvmlSystemGetDriverBranch
2913 global __nvmlUnitGetCount
2914 data["__nvmlUnitGetCount"] = <intptr_t>__nvmlUnitGetCount
2916 global __nvmlUnitGetHandleByIndex
2917 data["__nvmlUnitGetHandleByIndex"] = <intptr_t>__nvmlUnitGetHandleByIndex
2919 global __nvmlUnitGetUnitInfo
2920 data["__nvmlUnitGetUnitInfo"] = <intptr_t>__nvmlUnitGetUnitInfo
2922 global __nvmlUnitGetLedState
2923 data["__nvmlUnitGetLedState"] = <intptr_t>__nvmlUnitGetLedState
2925 global __nvmlUnitGetPsuInfo
2926 data["__nvmlUnitGetPsuInfo"] = <intptr_t>__nvmlUnitGetPsuInfo
2928 global __nvmlUnitGetTemperature
2929 data["__nvmlUnitGetTemperature"] = <intptr_t>__nvmlUnitGetTemperature
2931 global __nvmlUnitGetFanSpeedInfo
2932 data["__nvmlUnitGetFanSpeedInfo"] = <intptr_t>__nvmlUnitGetFanSpeedInfo
2934 global __nvmlUnitGetDevices
2935 data["__nvmlUnitGetDevices"] = <intptr_t>__nvmlUnitGetDevices
2937 global __nvmlDeviceGetCount_v2
2938 data["__nvmlDeviceGetCount_v2"] = <intptr_t>__nvmlDeviceGetCount_v2
2940 global __nvmlDeviceGetAttributes_v2
2941 data["__nvmlDeviceGetAttributes_v2"] = <intptr_t>__nvmlDeviceGetAttributes_v2
2943 global __nvmlDeviceGetHandleByIndex_v2
2944 data["__nvmlDeviceGetHandleByIndex_v2"] = <intptr_t>__nvmlDeviceGetHandleByIndex_v2
2946 global __nvmlDeviceGetHandleBySerial
2947 data["__nvmlDeviceGetHandleBySerial"] = <intptr_t>__nvmlDeviceGetHandleBySerial
2949 global __nvmlDeviceGetHandleByUUID
2950 data["__nvmlDeviceGetHandleByUUID"] = <intptr_t>__nvmlDeviceGetHandleByUUID
2952 global __nvmlDeviceGetHandleByUUIDV
2953 data["__nvmlDeviceGetHandleByUUIDV"] = <intptr_t>__nvmlDeviceGetHandleByUUIDV
2955 global __nvmlDeviceGetHandleByPciBusId_v2
2956 data["__nvmlDeviceGetHandleByPciBusId_v2"] = <intptr_t>__nvmlDeviceGetHandleByPciBusId_v2
2958 global __nvmlDeviceGetName
2959 data["__nvmlDeviceGetName"] = <intptr_t>__nvmlDeviceGetName
2961 global __nvmlDeviceGetBrand
2962 data["__nvmlDeviceGetBrand"] = <intptr_t>__nvmlDeviceGetBrand
2964 global __nvmlDeviceGetIndex
2965 data["__nvmlDeviceGetIndex"] = <intptr_t>__nvmlDeviceGetIndex
2967 global __nvmlDeviceGetSerial
2968 data["__nvmlDeviceGetSerial"] = <intptr_t>__nvmlDeviceGetSerial
2970 global __nvmlDeviceGetModuleId
2971 data["__nvmlDeviceGetModuleId"] = <intptr_t>__nvmlDeviceGetModuleId
2973 global __nvmlDeviceGetC2cModeInfoV
2974 data["__nvmlDeviceGetC2cModeInfoV"] = <intptr_t>__nvmlDeviceGetC2cModeInfoV
2976 global __nvmlDeviceGetMemoryAffinity
2977 data["__nvmlDeviceGetMemoryAffinity"] = <intptr_t>__nvmlDeviceGetMemoryAffinity
2979 global __nvmlDeviceGetCpuAffinityWithinScope
2980 data["__nvmlDeviceGetCpuAffinityWithinScope"] = <intptr_t>__nvmlDeviceGetCpuAffinityWithinScope
2982 global __nvmlDeviceGetCpuAffinity
2983 data["__nvmlDeviceGetCpuAffinity"] = <intptr_t>__nvmlDeviceGetCpuAffinity
2985 global __nvmlDeviceSetCpuAffinity
2986 data["__nvmlDeviceSetCpuAffinity"] = <intptr_t>__nvmlDeviceSetCpuAffinity
2988 global __nvmlDeviceClearCpuAffinity
2989 data["__nvmlDeviceClearCpuAffinity"] = <intptr_t>__nvmlDeviceClearCpuAffinity
2991 global __nvmlDeviceGetNumaNodeId
2992 data["__nvmlDeviceGetNumaNodeId"] = <intptr_t>__nvmlDeviceGetNumaNodeId
2994 global __nvmlDeviceGetTopologyCommonAncestor
2995 data["__nvmlDeviceGetTopologyCommonAncestor"] = <intptr_t>__nvmlDeviceGetTopologyCommonAncestor
2997 global __nvmlDeviceGetTopologyNearestGpus
2998 data["__nvmlDeviceGetTopologyNearestGpus"] = <intptr_t>__nvmlDeviceGetTopologyNearestGpus
3000 global __nvmlDeviceGetP2PStatus
3001 data["__nvmlDeviceGetP2PStatus"] = <intptr_t>__nvmlDeviceGetP2PStatus
3003 global __nvmlDeviceGetUUID
3004 data["__nvmlDeviceGetUUID"] = <intptr_t>__nvmlDeviceGetUUID
3006 global __nvmlDeviceGetMinorNumber
3007 data["__nvmlDeviceGetMinorNumber"] = <intptr_t>__nvmlDeviceGetMinorNumber
3009 global __nvmlDeviceGetBoardPartNumber
3010 data["__nvmlDeviceGetBoardPartNumber"] = <intptr_t>__nvmlDeviceGetBoardPartNumber
3012 global __nvmlDeviceGetInforomVersion
3013 data["__nvmlDeviceGetInforomVersion"] = <intptr_t>__nvmlDeviceGetInforomVersion
3015 global __nvmlDeviceGetInforomImageVersion
3016 data["__nvmlDeviceGetInforomImageVersion"] = <intptr_t>__nvmlDeviceGetInforomImageVersion
3018 global __nvmlDeviceGetInforomConfigurationChecksum
3019 data["__nvmlDeviceGetInforomConfigurationChecksum"] = <intptr_t>__nvmlDeviceGetInforomConfigurationChecksum
3021 global __nvmlDeviceValidateInforom
3022 data["__nvmlDeviceValidateInforom"] = <intptr_t>__nvmlDeviceValidateInforom
3024 global __nvmlDeviceGetLastBBXFlushTime
3025 data["__nvmlDeviceGetLastBBXFlushTime"] = <intptr_t>__nvmlDeviceGetLastBBXFlushTime
3027 global __nvmlDeviceGetDisplayMode
3028 data["__nvmlDeviceGetDisplayMode"] = <intptr_t>__nvmlDeviceGetDisplayMode
3030 global __nvmlDeviceGetDisplayActive
3031 data["__nvmlDeviceGetDisplayActive"] = <intptr_t>__nvmlDeviceGetDisplayActive
3033 global __nvmlDeviceGetPersistenceMode
3034 data["__nvmlDeviceGetPersistenceMode"] = <intptr_t>__nvmlDeviceGetPersistenceMode
3036 global __nvmlDeviceGetPciInfoExt
3037 data["__nvmlDeviceGetPciInfoExt"] = <intptr_t>__nvmlDeviceGetPciInfoExt
3039 global __nvmlDeviceGetPciInfo_v3
3040 data["__nvmlDeviceGetPciInfo_v3"] = <intptr_t>__nvmlDeviceGetPciInfo_v3
3042 global __nvmlDeviceGetMaxPcieLinkGeneration
3043 data["__nvmlDeviceGetMaxPcieLinkGeneration"] = <intptr_t>__nvmlDeviceGetMaxPcieLinkGeneration
3045 global __nvmlDeviceGetGpuMaxPcieLinkGeneration
3046 data["__nvmlDeviceGetGpuMaxPcieLinkGeneration"] = <intptr_t>__nvmlDeviceGetGpuMaxPcieLinkGeneration
3048 global __nvmlDeviceGetMaxPcieLinkWidth
3049 data["__nvmlDeviceGetMaxPcieLinkWidth"] = <intptr_t>__nvmlDeviceGetMaxPcieLinkWidth
3051 global __nvmlDeviceGetCurrPcieLinkGeneration
3052 data["__nvmlDeviceGetCurrPcieLinkGeneration"] = <intptr_t>__nvmlDeviceGetCurrPcieLinkGeneration
3054 global __nvmlDeviceGetCurrPcieLinkWidth
3055 data["__nvmlDeviceGetCurrPcieLinkWidth"] = <intptr_t>__nvmlDeviceGetCurrPcieLinkWidth
3057 global __nvmlDeviceGetPcieThroughput
3058 data["__nvmlDeviceGetPcieThroughput"] = <intptr_t>__nvmlDeviceGetPcieThroughput
3060 global __nvmlDeviceGetPcieReplayCounter
3061 data["__nvmlDeviceGetPcieReplayCounter"] = <intptr_t>__nvmlDeviceGetPcieReplayCounter
3063 global __nvmlDeviceGetClockInfo
3064 data["__nvmlDeviceGetClockInfo"] = <intptr_t>__nvmlDeviceGetClockInfo
3066 global __nvmlDeviceGetMaxClockInfo
3067 data["__nvmlDeviceGetMaxClockInfo"] = <intptr_t>__nvmlDeviceGetMaxClockInfo
3069 global __nvmlDeviceGetGpcClkVfOffset
3070 data["__nvmlDeviceGetGpcClkVfOffset"] = <intptr_t>__nvmlDeviceGetGpcClkVfOffset
3072 global __nvmlDeviceGetClock
3073 data["__nvmlDeviceGetClock"] = <intptr_t>__nvmlDeviceGetClock
3075 global __nvmlDeviceGetMaxCustomerBoostClock
3076 data["__nvmlDeviceGetMaxCustomerBoostClock"] = <intptr_t>__nvmlDeviceGetMaxCustomerBoostClock
3078 global __nvmlDeviceGetSupportedMemoryClocks
3079 data["__nvmlDeviceGetSupportedMemoryClocks"] = <intptr_t>__nvmlDeviceGetSupportedMemoryClocks
3081 global __nvmlDeviceGetSupportedGraphicsClocks
3082 data["__nvmlDeviceGetSupportedGraphicsClocks"] = <intptr_t>__nvmlDeviceGetSupportedGraphicsClocks
3084 global __nvmlDeviceGetAutoBoostedClocksEnabled
3085 data["__nvmlDeviceGetAutoBoostedClocksEnabled"] = <intptr_t>__nvmlDeviceGetAutoBoostedClocksEnabled
3087 global __nvmlDeviceGetFanSpeed
3088 data["__nvmlDeviceGetFanSpeed"] = <intptr_t>__nvmlDeviceGetFanSpeed
3090 global __nvmlDeviceGetFanSpeed_v2
3091 data["__nvmlDeviceGetFanSpeed_v2"] = <intptr_t>__nvmlDeviceGetFanSpeed_v2
3093 global __nvmlDeviceGetFanSpeedRPM
3094 data["__nvmlDeviceGetFanSpeedRPM"] = <intptr_t>__nvmlDeviceGetFanSpeedRPM
3096 global __nvmlDeviceGetTargetFanSpeed
3097 data["__nvmlDeviceGetTargetFanSpeed"] = <intptr_t>__nvmlDeviceGetTargetFanSpeed
3099 global __nvmlDeviceGetMinMaxFanSpeed
3100 data["__nvmlDeviceGetMinMaxFanSpeed"] = <intptr_t>__nvmlDeviceGetMinMaxFanSpeed
3102 global __nvmlDeviceGetFanControlPolicy_v2
3103 data["__nvmlDeviceGetFanControlPolicy_v2"] = <intptr_t>__nvmlDeviceGetFanControlPolicy_v2
3105 global __nvmlDeviceGetNumFans
3106 data["__nvmlDeviceGetNumFans"] = <intptr_t>__nvmlDeviceGetNumFans
3108 global __nvmlDeviceGetCoolerInfo
3109 data["__nvmlDeviceGetCoolerInfo"] = <intptr_t>__nvmlDeviceGetCoolerInfo
3111 global __nvmlDeviceGetTemperatureV
3112 data["__nvmlDeviceGetTemperatureV"] = <intptr_t>__nvmlDeviceGetTemperatureV
3114 global __nvmlDeviceGetTemperatureThreshold
3115 data["__nvmlDeviceGetTemperatureThreshold"] = <intptr_t>__nvmlDeviceGetTemperatureThreshold
3117 global __nvmlDeviceGetMarginTemperature
3118 data["__nvmlDeviceGetMarginTemperature"] = <intptr_t>__nvmlDeviceGetMarginTemperature
3120 global __nvmlDeviceGetThermalSettings
3121 data["__nvmlDeviceGetThermalSettings"] = <intptr_t>__nvmlDeviceGetThermalSettings
3123 global __nvmlDeviceGetPerformanceState
3124 data["__nvmlDeviceGetPerformanceState"] = <intptr_t>__nvmlDeviceGetPerformanceState
3126 global __nvmlDeviceGetCurrentClocksEventReasons
3127 data["__nvmlDeviceGetCurrentClocksEventReasons"] = <intptr_t>__nvmlDeviceGetCurrentClocksEventReasons
3129 global __nvmlDeviceGetSupportedClocksEventReasons
3130 data["__nvmlDeviceGetSupportedClocksEventReasons"] = <intptr_t>__nvmlDeviceGetSupportedClocksEventReasons
3132 global __nvmlDeviceGetPowerState
3133 data["__nvmlDeviceGetPowerState"] = <intptr_t>__nvmlDeviceGetPowerState
3135 global __nvmlDeviceGetDynamicPstatesInfo
3136 data["__nvmlDeviceGetDynamicPstatesInfo"] = <intptr_t>__nvmlDeviceGetDynamicPstatesInfo
3138 global __nvmlDeviceGetMemClkVfOffset
3139 data["__nvmlDeviceGetMemClkVfOffset"] = <intptr_t>__nvmlDeviceGetMemClkVfOffset
3141 global __nvmlDeviceGetMinMaxClockOfPState
3142 data["__nvmlDeviceGetMinMaxClockOfPState"] = <intptr_t>__nvmlDeviceGetMinMaxClockOfPState
3144 global __nvmlDeviceGetSupportedPerformanceStates
3145 data["__nvmlDeviceGetSupportedPerformanceStates"] = <intptr_t>__nvmlDeviceGetSupportedPerformanceStates
3147 global __nvmlDeviceGetGpcClkMinMaxVfOffset
3148 data["__nvmlDeviceGetGpcClkMinMaxVfOffset"] = <intptr_t>__nvmlDeviceGetGpcClkMinMaxVfOffset
3150 global __nvmlDeviceGetMemClkMinMaxVfOffset
3151 data["__nvmlDeviceGetMemClkMinMaxVfOffset"] = <intptr_t>__nvmlDeviceGetMemClkMinMaxVfOffset
3153 global __nvmlDeviceGetClockOffsets
3154 data["__nvmlDeviceGetClockOffsets"] = <intptr_t>__nvmlDeviceGetClockOffsets
3156 global __nvmlDeviceSetClockOffsets
3157 data["__nvmlDeviceSetClockOffsets"] = <intptr_t>__nvmlDeviceSetClockOffsets
3159 global __nvmlDeviceGetPerformanceModes
3160 data["__nvmlDeviceGetPerformanceModes"] = <intptr_t>__nvmlDeviceGetPerformanceModes
3162 global __nvmlDeviceGetCurrentClockFreqs
3163 data["__nvmlDeviceGetCurrentClockFreqs"] = <intptr_t>__nvmlDeviceGetCurrentClockFreqs
3165 global __nvmlDeviceGetPowerManagementLimit
3166 data["__nvmlDeviceGetPowerManagementLimit"] = <intptr_t>__nvmlDeviceGetPowerManagementLimit
3168 global __nvmlDeviceGetPowerManagementLimitConstraints
3169 data["__nvmlDeviceGetPowerManagementLimitConstraints"] = <intptr_t>__nvmlDeviceGetPowerManagementLimitConstraints
3171 global __nvmlDeviceGetPowerManagementDefaultLimit
3172 data["__nvmlDeviceGetPowerManagementDefaultLimit"] = <intptr_t>__nvmlDeviceGetPowerManagementDefaultLimit
3174 global __nvmlDeviceGetPowerUsage
3175 data["__nvmlDeviceGetPowerUsage"] = <intptr_t>__nvmlDeviceGetPowerUsage
3177 global __nvmlDeviceGetTotalEnergyConsumption
3178 data["__nvmlDeviceGetTotalEnergyConsumption"] = <intptr_t>__nvmlDeviceGetTotalEnergyConsumption
3180 global __nvmlDeviceGetEnforcedPowerLimit
3181 data["__nvmlDeviceGetEnforcedPowerLimit"] = <intptr_t>__nvmlDeviceGetEnforcedPowerLimit
3183 global __nvmlDeviceGetGpuOperationMode
3184 data["__nvmlDeviceGetGpuOperationMode"] = <intptr_t>__nvmlDeviceGetGpuOperationMode
3186 global __nvmlDeviceGetMemoryInfo_v2
3187 data["__nvmlDeviceGetMemoryInfo_v2"] = <intptr_t>__nvmlDeviceGetMemoryInfo_v2
3189 global __nvmlDeviceGetComputeMode
3190 data["__nvmlDeviceGetComputeMode"] = <intptr_t>__nvmlDeviceGetComputeMode
3192 global __nvmlDeviceGetCudaComputeCapability
3193 data["__nvmlDeviceGetCudaComputeCapability"] = <intptr_t>__nvmlDeviceGetCudaComputeCapability
3195 global __nvmlDeviceGetDramEncryptionMode
3196 data["__nvmlDeviceGetDramEncryptionMode"] = <intptr_t>__nvmlDeviceGetDramEncryptionMode
3198 global __nvmlDeviceSetDramEncryptionMode
3199 data["__nvmlDeviceSetDramEncryptionMode"] = <intptr_t>__nvmlDeviceSetDramEncryptionMode
3201 global __nvmlDeviceGetEccMode
3202 data["__nvmlDeviceGetEccMode"] = <intptr_t>__nvmlDeviceGetEccMode
3204 global __nvmlDeviceGetDefaultEccMode
3205 data["__nvmlDeviceGetDefaultEccMode"] = <intptr_t>__nvmlDeviceGetDefaultEccMode
3207 global __nvmlDeviceGetBoardId
3208 data["__nvmlDeviceGetBoardId"] = <intptr_t>__nvmlDeviceGetBoardId
3210 global __nvmlDeviceGetMultiGpuBoard
3211 data["__nvmlDeviceGetMultiGpuBoard"] = <intptr_t>__nvmlDeviceGetMultiGpuBoard
3213 global __nvmlDeviceGetTotalEccErrors
3214 data["__nvmlDeviceGetTotalEccErrors"] = <intptr_t>__nvmlDeviceGetTotalEccErrors
3216 global __nvmlDeviceGetMemoryErrorCounter
3217 data["__nvmlDeviceGetMemoryErrorCounter"] = <intptr_t>__nvmlDeviceGetMemoryErrorCounter
3219 global __nvmlDeviceGetUtilizationRates
3220 data["__nvmlDeviceGetUtilizationRates"] = <intptr_t>__nvmlDeviceGetUtilizationRates
3222 global __nvmlDeviceGetEncoderUtilization
3223 data["__nvmlDeviceGetEncoderUtilization"] = <intptr_t>__nvmlDeviceGetEncoderUtilization
3225 global __nvmlDeviceGetEncoderCapacity
3226 data["__nvmlDeviceGetEncoderCapacity"] = <intptr_t>__nvmlDeviceGetEncoderCapacity
3228 global __nvmlDeviceGetEncoderStats
3229 data["__nvmlDeviceGetEncoderStats"] = <intptr_t>__nvmlDeviceGetEncoderStats
3231 global __nvmlDeviceGetEncoderSessions
3232 data["__nvmlDeviceGetEncoderSessions"] = <intptr_t>__nvmlDeviceGetEncoderSessions
3234 global __nvmlDeviceGetDecoderUtilization
3235 data["__nvmlDeviceGetDecoderUtilization"] = <intptr_t>__nvmlDeviceGetDecoderUtilization
3237 global __nvmlDeviceGetJpgUtilization
3238 data["__nvmlDeviceGetJpgUtilization"] = <intptr_t>__nvmlDeviceGetJpgUtilization
3240 global __nvmlDeviceGetOfaUtilization
3241 data["__nvmlDeviceGetOfaUtilization"] = <intptr_t>__nvmlDeviceGetOfaUtilization
3243 global __nvmlDeviceGetFBCStats
3244 data["__nvmlDeviceGetFBCStats"] = <intptr_t>__nvmlDeviceGetFBCStats
3246 global __nvmlDeviceGetFBCSessions
3247 data["__nvmlDeviceGetFBCSessions"] = <intptr_t>__nvmlDeviceGetFBCSessions
3249 global __nvmlDeviceGetDriverModel_v2
3250 data["__nvmlDeviceGetDriverModel_v2"] = <intptr_t>__nvmlDeviceGetDriverModel_v2
3252 global __nvmlDeviceGetVbiosVersion
3253 data["__nvmlDeviceGetVbiosVersion"] = <intptr_t>__nvmlDeviceGetVbiosVersion
3255 global __nvmlDeviceGetBridgeChipInfo
3256 data["__nvmlDeviceGetBridgeChipInfo"] = <intptr_t>__nvmlDeviceGetBridgeChipInfo
3258 global __nvmlDeviceGetComputeRunningProcesses_v3
3259 data["__nvmlDeviceGetComputeRunningProcesses_v3"] = <intptr_t>__nvmlDeviceGetComputeRunningProcesses_v3
3261 global __nvmlDeviceGetMPSComputeRunningProcesses_v3
3262 data["__nvmlDeviceGetMPSComputeRunningProcesses_v3"] = <intptr_t>__nvmlDeviceGetMPSComputeRunningProcesses_v3
3264 global __nvmlDeviceGetRunningProcessDetailList
3265 data["__nvmlDeviceGetRunningProcessDetailList"] = <intptr_t>__nvmlDeviceGetRunningProcessDetailList
3267 global __nvmlDeviceOnSameBoard
3268 data["__nvmlDeviceOnSameBoard"] = <intptr_t>__nvmlDeviceOnSameBoard
3270 global __nvmlDeviceGetAPIRestriction
3271 data["__nvmlDeviceGetAPIRestriction"] = <intptr_t>__nvmlDeviceGetAPIRestriction
3273 global __nvmlDeviceGetSamples
3274 data["__nvmlDeviceGetSamples"] = <intptr_t>__nvmlDeviceGetSamples
3276 global __nvmlDeviceGetBAR1MemoryInfo
3277 data["__nvmlDeviceGetBAR1MemoryInfo"] = <intptr_t>__nvmlDeviceGetBAR1MemoryInfo
3279 global __nvmlDeviceGetIrqNum
3280 data["__nvmlDeviceGetIrqNum"] = <intptr_t>__nvmlDeviceGetIrqNum
3282 global __nvmlDeviceGetNumGpuCores
3283 data["__nvmlDeviceGetNumGpuCores"] = <intptr_t>__nvmlDeviceGetNumGpuCores
3285 global __nvmlDeviceGetPowerSource
3286 data["__nvmlDeviceGetPowerSource"] = <intptr_t>__nvmlDeviceGetPowerSource
3288 global __nvmlDeviceGetMemoryBusWidth
3289 data["__nvmlDeviceGetMemoryBusWidth"] = <intptr_t>__nvmlDeviceGetMemoryBusWidth
3291 global __nvmlDeviceGetPcieLinkMaxSpeed
3292 data["__nvmlDeviceGetPcieLinkMaxSpeed"] = <intptr_t>__nvmlDeviceGetPcieLinkMaxSpeed
3294 global __nvmlDeviceGetPcieSpeed
3295 data["__nvmlDeviceGetPcieSpeed"] = <intptr_t>__nvmlDeviceGetPcieSpeed
3297 global __nvmlDeviceGetAdaptiveClockInfoStatus
3298 data["__nvmlDeviceGetAdaptiveClockInfoStatus"] = <intptr_t>__nvmlDeviceGetAdaptiveClockInfoStatus
3300 global __nvmlDeviceGetBusType
3301 data["__nvmlDeviceGetBusType"] = <intptr_t>__nvmlDeviceGetBusType
3303 global __nvmlDeviceGetGpuFabricInfoV
3304 data["__nvmlDeviceGetGpuFabricInfoV"] = <intptr_t>__nvmlDeviceGetGpuFabricInfoV
3306 global __nvmlSystemGetConfComputeCapabilities
3307 data["__nvmlSystemGetConfComputeCapabilities"] = <intptr_t>__nvmlSystemGetConfComputeCapabilities
3309 global __nvmlSystemGetConfComputeState
3310 data["__nvmlSystemGetConfComputeState"] = <intptr_t>__nvmlSystemGetConfComputeState
3312 global __nvmlDeviceGetConfComputeMemSizeInfo
3313 data["__nvmlDeviceGetConfComputeMemSizeInfo"] = <intptr_t>__nvmlDeviceGetConfComputeMemSizeInfo
3315 global __nvmlSystemGetConfComputeGpusReadyState
3316 data["__nvmlSystemGetConfComputeGpusReadyState"] = <intptr_t>__nvmlSystemGetConfComputeGpusReadyState
3318 global __nvmlDeviceGetConfComputeProtectedMemoryUsage
3319 data["__nvmlDeviceGetConfComputeProtectedMemoryUsage"] = <intptr_t>__nvmlDeviceGetConfComputeProtectedMemoryUsage
3321 global __nvmlDeviceGetConfComputeGpuCertificate
3322 data["__nvmlDeviceGetConfComputeGpuCertificate"] = <intptr_t>__nvmlDeviceGetConfComputeGpuCertificate
3324 global __nvmlDeviceGetConfComputeGpuAttestationReport
3325 data["__nvmlDeviceGetConfComputeGpuAttestationReport"] = <intptr_t>__nvmlDeviceGetConfComputeGpuAttestationReport
3327 global __nvmlSystemGetConfComputeKeyRotationThresholdInfo
3328 data["__nvmlSystemGetConfComputeKeyRotationThresholdInfo"] = <intptr_t>__nvmlSystemGetConfComputeKeyRotationThresholdInfo
3330 global __nvmlDeviceSetConfComputeUnprotectedMemSize
3331 data["__nvmlDeviceSetConfComputeUnprotectedMemSize"] = <intptr_t>__nvmlDeviceSetConfComputeUnprotectedMemSize
3333 global __nvmlSystemSetConfComputeGpusReadyState
3334 data["__nvmlSystemSetConfComputeGpusReadyState"] = <intptr_t>__nvmlSystemSetConfComputeGpusReadyState
3336 global __nvmlSystemSetConfComputeKeyRotationThresholdInfo
3337 data["__nvmlSystemSetConfComputeKeyRotationThresholdInfo"] = <intptr_t>__nvmlSystemSetConfComputeKeyRotationThresholdInfo
3339 global __nvmlSystemGetConfComputeSettings
3340 data["__nvmlSystemGetConfComputeSettings"] = <intptr_t>__nvmlSystemGetConfComputeSettings
3342 global __nvmlDeviceGetGspFirmwareVersion
3343 data["__nvmlDeviceGetGspFirmwareVersion"] = <intptr_t>__nvmlDeviceGetGspFirmwareVersion
3345 global __nvmlDeviceGetGspFirmwareMode
3346 data["__nvmlDeviceGetGspFirmwareMode"] = <intptr_t>__nvmlDeviceGetGspFirmwareMode
3348 global __nvmlDeviceGetSramEccErrorStatus
3349 data["__nvmlDeviceGetSramEccErrorStatus"] = <intptr_t>__nvmlDeviceGetSramEccErrorStatus
3351 global __nvmlDeviceGetAccountingMode
3352 data["__nvmlDeviceGetAccountingMode"] = <intptr_t>__nvmlDeviceGetAccountingMode
3354 global __nvmlDeviceGetAccountingStats
3355 data["__nvmlDeviceGetAccountingStats"] = <intptr_t>__nvmlDeviceGetAccountingStats
3357 global __nvmlDeviceGetAccountingPids
3358 data["__nvmlDeviceGetAccountingPids"] = <intptr_t>__nvmlDeviceGetAccountingPids
3360 global __nvmlDeviceGetAccountingBufferSize
3361 data["__nvmlDeviceGetAccountingBufferSize"] = <intptr_t>__nvmlDeviceGetAccountingBufferSize
3363 global __nvmlDeviceGetRetiredPages
3364 data["__nvmlDeviceGetRetiredPages"] = <intptr_t>__nvmlDeviceGetRetiredPages
3366 global __nvmlDeviceGetRetiredPages_v2
3367 data["__nvmlDeviceGetRetiredPages_v2"] = <intptr_t>__nvmlDeviceGetRetiredPages_v2
3369 global __nvmlDeviceGetRetiredPagesPendingStatus
3370 data["__nvmlDeviceGetRetiredPagesPendingStatus"] = <intptr_t>__nvmlDeviceGetRetiredPagesPendingStatus
3372 global __nvmlDeviceGetRemappedRows
3373 data["__nvmlDeviceGetRemappedRows"] = <intptr_t>__nvmlDeviceGetRemappedRows
3375 global __nvmlDeviceGetRowRemapperHistogram
3376 data["__nvmlDeviceGetRowRemapperHistogram"] = <intptr_t>__nvmlDeviceGetRowRemapperHistogram
3378 global __nvmlDeviceGetArchitecture
3379 data["__nvmlDeviceGetArchitecture"] = <intptr_t>__nvmlDeviceGetArchitecture
3381 global __nvmlDeviceGetClkMonStatus
3382 data["__nvmlDeviceGetClkMonStatus"] = <intptr_t>__nvmlDeviceGetClkMonStatus
3384 global __nvmlDeviceGetProcessUtilization
3385 data["__nvmlDeviceGetProcessUtilization"] = <intptr_t>__nvmlDeviceGetProcessUtilization
3387 global __nvmlDeviceGetProcessesUtilizationInfo
3388 data["__nvmlDeviceGetProcessesUtilizationInfo"] = <intptr_t>__nvmlDeviceGetProcessesUtilizationInfo
3390 global __nvmlDeviceGetPlatformInfo
3391 data["__nvmlDeviceGetPlatformInfo"] = <intptr_t>__nvmlDeviceGetPlatformInfo
3393 global __nvmlUnitSetLedState
3394 data["__nvmlUnitSetLedState"] = <intptr_t>__nvmlUnitSetLedState
3396 global __nvmlDeviceSetPersistenceMode
3397 data["__nvmlDeviceSetPersistenceMode"] = <intptr_t>__nvmlDeviceSetPersistenceMode
3399 global __nvmlDeviceSetComputeMode
3400 data["__nvmlDeviceSetComputeMode"] = <intptr_t>__nvmlDeviceSetComputeMode
3402 global __nvmlDeviceSetEccMode
3403 data["__nvmlDeviceSetEccMode"] = <intptr_t>__nvmlDeviceSetEccMode
3405 global __nvmlDeviceClearEccErrorCounts
3406 data["__nvmlDeviceClearEccErrorCounts"] = <intptr_t>__nvmlDeviceClearEccErrorCounts
3408 global __nvmlDeviceSetDriverModel
3409 data["__nvmlDeviceSetDriverModel"] = <intptr_t>__nvmlDeviceSetDriverModel
3411 global __nvmlDeviceSetGpuLockedClocks
3412 data["__nvmlDeviceSetGpuLockedClocks"] = <intptr_t>__nvmlDeviceSetGpuLockedClocks
3414 global __nvmlDeviceResetGpuLockedClocks
3415 data["__nvmlDeviceResetGpuLockedClocks"] = <intptr_t>__nvmlDeviceResetGpuLockedClocks
3417 global __nvmlDeviceSetMemoryLockedClocks
3418 data["__nvmlDeviceSetMemoryLockedClocks"] = <intptr_t>__nvmlDeviceSetMemoryLockedClocks
3420 global __nvmlDeviceResetMemoryLockedClocks
3421 data["__nvmlDeviceResetMemoryLockedClocks"] = <intptr_t>__nvmlDeviceResetMemoryLockedClocks
3423 global __nvmlDeviceSetAutoBoostedClocksEnabled
3424 data["__nvmlDeviceSetAutoBoostedClocksEnabled"] = <intptr_t>__nvmlDeviceSetAutoBoostedClocksEnabled
3426 global __nvmlDeviceSetDefaultAutoBoostedClocksEnabled
3427 data["__nvmlDeviceSetDefaultAutoBoostedClocksEnabled"] = <intptr_t>__nvmlDeviceSetDefaultAutoBoostedClocksEnabled
3429 global __nvmlDeviceSetDefaultFanSpeed_v2
3430 data["__nvmlDeviceSetDefaultFanSpeed_v2"] = <intptr_t>__nvmlDeviceSetDefaultFanSpeed_v2
3432 global __nvmlDeviceSetFanControlPolicy
3433 data["__nvmlDeviceSetFanControlPolicy"] = <intptr_t>__nvmlDeviceSetFanControlPolicy
3435 global __nvmlDeviceSetTemperatureThreshold
3436 data["__nvmlDeviceSetTemperatureThreshold"] = <intptr_t>__nvmlDeviceSetTemperatureThreshold
3438 global __nvmlDeviceSetPowerManagementLimit
3439 data["__nvmlDeviceSetPowerManagementLimit"] = <intptr_t>__nvmlDeviceSetPowerManagementLimit
3441 global __nvmlDeviceSetGpuOperationMode
3442 data["__nvmlDeviceSetGpuOperationMode"] = <intptr_t>__nvmlDeviceSetGpuOperationMode
3444 global __nvmlDeviceSetAPIRestriction
3445 data["__nvmlDeviceSetAPIRestriction"] = <intptr_t>__nvmlDeviceSetAPIRestriction
3447 global __nvmlDeviceSetFanSpeed_v2
3448 data["__nvmlDeviceSetFanSpeed_v2"] = <intptr_t>__nvmlDeviceSetFanSpeed_v2
3450 global __nvmlDeviceSetAccountingMode
3451 data["__nvmlDeviceSetAccountingMode"] = <intptr_t>__nvmlDeviceSetAccountingMode
3453 global __nvmlDeviceClearAccountingPids
3454 data["__nvmlDeviceClearAccountingPids"] = <intptr_t>__nvmlDeviceClearAccountingPids
3456 global __nvmlDeviceSetPowerManagementLimit_v2
3457 data["__nvmlDeviceSetPowerManagementLimit_v2"] = <intptr_t>__nvmlDeviceSetPowerManagementLimit_v2
3459 global __nvmlDeviceGetNvLinkState
3460 data["__nvmlDeviceGetNvLinkState"] = <intptr_t>__nvmlDeviceGetNvLinkState
3462 global __nvmlDeviceGetNvLinkVersion
3463 data["__nvmlDeviceGetNvLinkVersion"] = <intptr_t>__nvmlDeviceGetNvLinkVersion
3465 global __nvmlDeviceGetNvLinkCapability
3466 data["__nvmlDeviceGetNvLinkCapability"] = <intptr_t>__nvmlDeviceGetNvLinkCapability
3468 global __nvmlDeviceGetNvLinkRemotePciInfo_v2
3469 data["__nvmlDeviceGetNvLinkRemotePciInfo_v2"] = <intptr_t>__nvmlDeviceGetNvLinkRemotePciInfo_v2
3471 global __nvmlDeviceGetNvLinkErrorCounter
3472 data["__nvmlDeviceGetNvLinkErrorCounter"] = <intptr_t>__nvmlDeviceGetNvLinkErrorCounter
3474 global __nvmlDeviceResetNvLinkErrorCounters
3475 data["__nvmlDeviceResetNvLinkErrorCounters"] = <intptr_t>__nvmlDeviceResetNvLinkErrorCounters
3477 global __nvmlDeviceGetNvLinkRemoteDeviceType
3478 data["__nvmlDeviceGetNvLinkRemoteDeviceType"] = <intptr_t>__nvmlDeviceGetNvLinkRemoteDeviceType
3480 global __nvmlDeviceSetNvLinkDeviceLowPowerThreshold
3481 data["__nvmlDeviceSetNvLinkDeviceLowPowerThreshold"] = <intptr_t>__nvmlDeviceSetNvLinkDeviceLowPowerThreshold
3483 global __nvmlSystemSetNvlinkBwMode
3484 data["__nvmlSystemSetNvlinkBwMode"] = <intptr_t>__nvmlSystemSetNvlinkBwMode
3486 global __nvmlSystemGetNvlinkBwMode
3487 data["__nvmlSystemGetNvlinkBwMode"] = <intptr_t>__nvmlSystemGetNvlinkBwMode
3489 global __nvmlDeviceGetNvlinkSupportedBwModes
3490 data["__nvmlDeviceGetNvlinkSupportedBwModes"] = <intptr_t>__nvmlDeviceGetNvlinkSupportedBwModes
3492 global __nvmlDeviceGetNvlinkBwMode
3493 data["__nvmlDeviceGetNvlinkBwMode"] = <intptr_t>__nvmlDeviceGetNvlinkBwMode
3495 global __nvmlDeviceSetNvlinkBwMode
3496 data["__nvmlDeviceSetNvlinkBwMode"] = <intptr_t>__nvmlDeviceSetNvlinkBwMode
3498 global __nvmlEventSetCreate
3499 data["__nvmlEventSetCreate"] = <intptr_t>__nvmlEventSetCreate
3501 global __nvmlDeviceRegisterEvents
3502 data["__nvmlDeviceRegisterEvents"] = <intptr_t>__nvmlDeviceRegisterEvents
3504 global __nvmlDeviceGetSupportedEventTypes
3505 data["__nvmlDeviceGetSupportedEventTypes"] = <intptr_t>__nvmlDeviceGetSupportedEventTypes
3507 global __nvmlEventSetWait_v2
3508 data["__nvmlEventSetWait_v2"] = <intptr_t>__nvmlEventSetWait_v2
3510 global __nvmlEventSetFree
3511 data["__nvmlEventSetFree"] = <intptr_t>__nvmlEventSetFree
3513 global __nvmlSystemEventSetCreate
3514 data["__nvmlSystemEventSetCreate"] = <intptr_t>__nvmlSystemEventSetCreate
3516 global __nvmlSystemEventSetFree
3517 data["__nvmlSystemEventSetFree"] = <intptr_t>__nvmlSystemEventSetFree
3519 global __nvmlSystemRegisterEvents
3520 data["__nvmlSystemRegisterEvents"] = <intptr_t>__nvmlSystemRegisterEvents
3522 global __nvmlSystemEventSetWait
3523 data["__nvmlSystemEventSetWait"] = <intptr_t>__nvmlSystemEventSetWait
3525 global __nvmlDeviceModifyDrainState
3526 data["__nvmlDeviceModifyDrainState"] = <intptr_t>__nvmlDeviceModifyDrainState
3528 global __nvmlDeviceQueryDrainState
3529 data["__nvmlDeviceQueryDrainState"] = <intptr_t>__nvmlDeviceQueryDrainState
3531 global __nvmlDeviceRemoveGpu_v2
3532 data["__nvmlDeviceRemoveGpu_v2"] = <intptr_t>__nvmlDeviceRemoveGpu_v2
3534 global __nvmlDeviceDiscoverGpus
3535 data["__nvmlDeviceDiscoverGpus"] = <intptr_t>__nvmlDeviceDiscoverGpus
3537 global __nvmlDeviceGetFieldValues
3538 data["__nvmlDeviceGetFieldValues"] = <intptr_t>__nvmlDeviceGetFieldValues
3540 global __nvmlDeviceClearFieldValues
3541 data["__nvmlDeviceClearFieldValues"] = <intptr_t>__nvmlDeviceClearFieldValues
3543 global __nvmlDeviceGetVirtualizationMode
3544 data["__nvmlDeviceGetVirtualizationMode"] = <intptr_t>__nvmlDeviceGetVirtualizationMode
3546 global __nvmlDeviceGetHostVgpuMode
3547 data["__nvmlDeviceGetHostVgpuMode"] = <intptr_t>__nvmlDeviceGetHostVgpuMode
3549 global __nvmlDeviceSetVirtualizationMode
3550 data["__nvmlDeviceSetVirtualizationMode"] = <intptr_t>__nvmlDeviceSetVirtualizationMode
3552 global __nvmlDeviceGetVgpuHeterogeneousMode
3553 data["__nvmlDeviceGetVgpuHeterogeneousMode"] = <intptr_t>__nvmlDeviceGetVgpuHeterogeneousMode
3555 global __nvmlDeviceSetVgpuHeterogeneousMode
3556 data["__nvmlDeviceSetVgpuHeterogeneousMode"] = <intptr_t>__nvmlDeviceSetVgpuHeterogeneousMode
3558 global __nvmlVgpuInstanceGetPlacementId
3559 data["__nvmlVgpuInstanceGetPlacementId"] = <intptr_t>__nvmlVgpuInstanceGetPlacementId
3561 global __nvmlDeviceGetVgpuTypeSupportedPlacements
3562 data["__nvmlDeviceGetVgpuTypeSupportedPlacements"] = <intptr_t>__nvmlDeviceGetVgpuTypeSupportedPlacements
3564 global __nvmlDeviceGetVgpuTypeCreatablePlacements
3565 data["__nvmlDeviceGetVgpuTypeCreatablePlacements"] = <intptr_t>__nvmlDeviceGetVgpuTypeCreatablePlacements
3567 global __nvmlVgpuTypeGetGspHeapSize
3568 data["__nvmlVgpuTypeGetGspHeapSize"] = <intptr_t>__nvmlVgpuTypeGetGspHeapSize
3570 global __nvmlVgpuTypeGetFbReservation
3571 data["__nvmlVgpuTypeGetFbReservation"] = <intptr_t>__nvmlVgpuTypeGetFbReservation
3573 global __nvmlVgpuInstanceGetRuntimeStateSize
3574 data["__nvmlVgpuInstanceGetRuntimeStateSize"] = <intptr_t>__nvmlVgpuInstanceGetRuntimeStateSize
3576 global __nvmlDeviceSetVgpuCapabilities
3577 data["__nvmlDeviceSetVgpuCapabilities"] = <intptr_t>__nvmlDeviceSetVgpuCapabilities
3579 global __nvmlDeviceGetGridLicensableFeatures_v4
3580 data["__nvmlDeviceGetGridLicensableFeatures_v4"] = <intptr_t>__nvmlDeviceGetGridLicensableFeatures_v4
3582 global __nvmlGetVgpuDriverCapabilities
3583 data["__nvmlGetVgpuDriverCapabilities"] = <intptr_t>__nvmlGetVgpuDriverCapabilities
3585 global __nvmlDeviceGetVgpuCapabilities
3586 data["__nvmlDeviceGetVgpuCapabilities"] = <intptr_t>__nvmlDeviceGetVgpuCapabilities
3588 global __nvmlDeviceGetSupportedVgpus
3589 data["__nvmlDeviceGetSupportedVgpus"] = <intptr_t>__nvmlDeviceGetSupportedVgpus
3591 global __nvmlDeviceGetCreatableVgpus
3592 data["__nvmlDeviceGetCreatableVgpus"] = <intptr_t>__nvmlDeviceGetCreatableVgpus
3594 global __nvmlVgpuTypeGetClass
3595 data["__nvmlVgpuTypeGetClass"] = <intptr_t>__nvmlVgpuTypeGetClass
3597 global __nvmlVgpuTypeGetName
3598 data["__nvmlVgpuTypeGetName"] = <intptr_t>__nvmlVgpuTypeGetName
3600 global __nvmlVgpuTypeGetGpuInstanceProfileId
3601 data["__nvmlVgpuTypeGetGpuInstanceProfileId"] = <intptr_t>__nvmlVgpuTypeGetGpuInstanceProfileId
3603 global __nvmlVgpuTypeGetDeviceID
3604 data["__nvmlVgpuTypeGetDeviceID"] = <intptr_t>__nvmlVgpuTypeGetDeviceID
3606 global __nvmlVgpuTypeGetFramebufferSize
3607 data["__nvmlVgpuTypeGetFramebufferSize"] = <intptr_t>__nvmlVgpuTypeGetFramebufferSize
3609 global __nvmlVgpuTypeGetNumDisplayHeads
3610 data["__nvmlVgpuTypeGetNumDisplayHeads"] = <intptr_t>__nvmlVgpuTypeGetNumDisplayHeads
3612 global __nvmlVgpuTypeGetResolution
3613 data["__nvmlVgpuTypeGetResolution"] = <intptr_t>__nvmlVgpuTypeGetResolution
3615 global __nvmlVgpuTypeGetLicense
3616 data["__nvmlVgpuTypeGetLicense"] = <intptr_t>__nvmlVgpuTypeGetLicense
3618 global __nvmlVgpuTypeGetFrameRateLimit
3619 data["__nvmlVgpuTypeGetFrameRateLimit"] = <intptr_t>__nvmlVgpuTypeGetFrameRateLimit
3621 global __nvmlVgpuTypeGetMaxInstances
3622 data["__nvmlVgpuTypeGetMaxInstances"] = <intptr_t>__nvmlVgpuTypeGetMaxInstances
3624 global __nvmlVgpuTypeGetMaxInstancesPerVm
3625 data["__nvmlVgpuTypeGetMaxInstancesPerVm"] = <intptr_t>__nvmlVgpuTypeGetMaxInstancesPerVm
3627 global __nvmlVgpuTypeGetBAR1Info
3628 data["__nvmlVgpuTypeGetBAR1Info"] = <intptr_t>__nvmlVgpuTypeGetBAR1Info
3630 global __nvmlDeviceGetActiveVgpus
3631 data["__nvmlDeviceGetActiveVgpus"] = <intptr_t>__nvmlDeviceGetActiveVgpus
3633 global __nvmlVgpuInstanceGetVmID
3634 data["__nvmlVgpuInstanceGetVmID"] = <intptr_t>__nvmlVgpuInstanceGetVmID
3636 global __nvmlVgpuInstanceGetUUID
3637 data["__nvmlVgpuInstanceGetUUID"] = <intptr_t>__nvmlVgpuInstanceGetUUID
3639 global __nvmlVgpuInstanceGetVmDriverVersion
3640 data["__nvmlVgpuInstanceGetVmDriverVersion"] = <intptr_t>__nvmlVgpuInstanceGetVmDriverVersion
3642 global __nvmlVgpuInstanceGetFbUsage
3643 data["__nvmlVgpuInstanceGetFbUsage"] = <intptr_t>__nvmlVgpuInstanceGetFbUsage
3645 global __nvmlVgpuInstanceGetLicenseStatus
3646 data["__nvmlVgpuInstanceGetLicenseStatus"] = <intptr_t>__nvmlVgpuInstanceGetLicenseStatus
3648 global __nvmlVgpuInstanceGetType
3649 data["__nvmlVgpuInstanceGetType"] = <intptr_t>__nvmlVgpuInstanceGetType
3651 global __nvmlVgpuInstanceGetFrameRateLimit
3652 data["__nvmlVgpuInstanceGetFrameRateLimit"] = <intptr_t>__nvmlVgpuInstanceGetFrameRateLimit
3654 global __nvmlVgpuInstanceGetEccMode
3655 data["__nvmlVgpuInstanceGetEccMode"] = <intptr_t>__nvmlVgpuInstanceGetEccMode
3657 global __nvmlVgpuInstanceGetEncoderCapacity
3658 data["__nvmlVgpuInstanceGetEncoderCapacity"] = <intptr_t>__nvmlVgpuInstanceGetEncoderCapacity
3660 global __nvmlVgpuInstanceSetEncoderCapacity
3661 data["__nvmlVgpuInstanceSetEncoderCapacity"] = <intptr_t>__nvmlVgpuInstanceSetEncoderCapacity
3663 global __nvmlVgpuInstanceGetEncoderStats
3664 data["__nvmlVgpuInstanceGetEncoderStats"] = <intptr_t>__nvmlVgpuInstanceGetEncoderStats
3666 global __nvmlVgpuInstanceGetEncoderSessions
3667 data["__nvmlVgpuInstanceGetEncoderSessions"] = <intptr_t>__nvmlVgpuInstanceGetEncoderSessions
3669 global __nvmlVgpuInstanceGetFBCStats
3670 data["__nvmlVgpuInstanceGetFBCStats"] = <intptr_t>__nvmlVgpuInstanceGetFBCStats
3672 global __nvmlVgpuInstanceGetFBCSessions
3673 data["__nvmlVgpuInstanceGetFBCSessions"] = <intptr_t>__nvmlVgpuInstanceGetFBCSessions
3675 global __nvmlVgpuInstanceGetGpuInstanceId
3676 data["__nvmlVgpuInstanceGetGpuInstanceId"] = <intptr_t>__nvmlVgpuInstanceGetGpuInstanceId
3678 global __nvmlVgpuInstanceGetGpuPciId
3679 data["__nvmlVgpuInstanceGetGpuPciId"] = <intptr_t>__nvmlVgpuInstanceGetGpuPciId
3681 global __nvmlVgpuTypeGetCapabilities
3682 data["__nvmlVgpuTypeGetCapabilities"] = <intptr_t>__nvmlVgpuTypeGetCapabilities
3684 global __nvmlVgpuInstanceGetMdevUUID
3685 data["__nvmlVgpuInstanceGetMdevUUID"] = <intptr_t>__nvmlVgpuInstanceGetMdevUUID
3687 global __nvmlGpuInstanceGetCreatableVgpus
3688 data["__nvmlGpuInstanceGetCreatableVgpus"] = <intptr_t>__nvmlGpuInstanceGetCreatableVgpus
3690 global __nvmlVgpuTypeGetMaxInstancesPerGpuInstance
3691 data["__nvmlVgpuTypeGetMaxInstancesPerGpuInstance"] = <intptr_t>__nvmlVgpuTypeGetMaxInstancesPerGpuInstance
3693 global __nvmlGpuInstanceGetActiveVgpus
3694 data["__nvmlGpuInstanceGetActiveVgpus"] = <intptr_t>__nvmlGpuInstanceGetActiveVgpus
3696 global __nvmlGpuInstanceSetVgpuSchedulerState
3697 data["__nvmlGpuInstanceSetVgpuSchedulerState"] = <intptr_t>__nvmlGpuInstanceSetVgpuSchedulerState
3699 global __nvmlGpuInstanceGetVgpuSchedulerState
3700 data["__nvmlGpuInstanceGetVgpuSchedulerState"] = <intptr_t>__nvmlGpuInstanceGetVgpuSchedulerState
3702 global __nvmlGpuInstanceGetVgpuSchedulerLog
3703 data["__nvmlGpuInstanceGetVgpuSchedulerLog"] = <intptr_t>__nvmlGpuInstanceGetVgpuSchedulerLog
3705 global __nvmlGpuInstanceGetVgpuTypeCreatablePlacements
3706 data["__nvmlGpuInstanceGetVgpuTypeCreatablePlacements"] = <intptr_t>__nvmlGpuInstanceGetVgpuTypeCreatablePlacements
3708 global __nvmlGpuInstanceGetVgpuHeterogeneousMode
3709 data["__nvmlGpuInstanceGetVgpuHeterogeneousMode"] = <intptr_t>__nvmlGpuInstanceGetVgpuHeterogeneousMode
3711 global __nvmlGpuInstanceSetVgpuHeterogeneousMode
3712 data["__nvmlGpuInstanceSetVgpuHeterogeneousMode"] = <intptr_t>__nvmlGpuInstanceSetVgpuHeterogeneousMode
3714 global __nvmlVgpuInstanceGetMetadata
3715 data["__nvmlVgpuInstanceGetMetadata"] = <intptr_t>__nvmlVgpuInstanceGetMetadata
3717 global __nvmlDeviceGetVgpuMetadata
3718 data["__nvmlDeviceGetVgpuMetadata"] = <intptr_t>__nvmlDeviceGetVgpuMetadata
3720 global __nvmlGetVgpuCompatibility
3721 data["__nvmlGetVgpuCompatibility"] = <intptr_t>__nvmlGetVgpuCompatibility
3723 global __nvmlDeviceGetPgpuMetadataString
3724 data["__nvmlDeviceGetPgpuMetadataString"] = <intptr_t>__nvmlDeviceGetPgpuMetadataString
3726 global __nvmlDeviceGetVgpuSchedulerLog
3727 data["__nvmlDeviceGetVgpuSchedulerLog"] = <intptr_t>__nvmlDeviceGetVgpuSchedulerLog
3729 global __nvmlDeviceGetVgpuSchedulerState
3730 data["__nvmlDeviceGetVgpuSchedulerState"] = <intptr_t>__nvmlDeviceGetVgpuSchedulerState
3732 global __nvmlDeviceGetVgpuSchedulerCapabilities
3733 data["__nvmlDeviceGetVgpuSchedulerCapabilities"] = <intptr_t>__nvmlDeviceGetVgpuSchedulerCapabilities
3735 global __nvmlDeviceSetVgpuSchedulerState
3736 data["__nvmlDeviceSetVgpuSchedulerState"] = <intptr_t>__nvmlDeviceSetVgpuSchedulerState
3738 global __nvmlGetVgpuVersion
3739 data["__nvmlGetVgpuVersion"] = <intptr_t>__nvmlGetVgpuVersion
3741 global __nvmlSetVgpuVersion
3742 data["__nvmlSetVgpuVersion"] = <intptr_t>__nvmlSetVgpuVersion
3744 global __nvmlDeviceGetVgpuUtilization
3745 data["__nvmlDeviceGetVgpuUtilization"] = <intptr_t>__nvmlDeviceGetVgpuUtilization
3747 global __nvmlDeviceGetVgpuInstancesUtilizationInfo
3748 data["__nvmlDeviceGetVgpuInstancesUtilizationInfo"] = <intptr_t>__nvmlDeviceGetVgpuInstancesUtilizationInfo
3750 global __nvmlDeviceGetVgpuProcessUtilization
3751 data["__nvmlDeviceGetVgpuProcessUtilization"] = <intptr_t>__nvmlDeviceGetVgpuProcessUtilization
3753 global __nvmlDeviceGetVgpuProcessesUtilizationInfo
3754 data["__nvmlDeviceGetVgpuProcessesUtilizationInfo"] = <intptr_t>__nvmlDeviceGetVgpuProcessesUtilizationInfo
3756 global __nvmlVgpuInstanceGetAccountingMode
3757 data["__nvmlVgpuInstanceGetAccountingMode"] = <intptr_t>__nvmlVgpuInstanceGetAccountingMode
3759 global __nvmlVgpuInstanceGetAccountingPids
3760 data["__nvmlVgpuInstanceGetAccountingPids"] = <intptr_t>__nvmlVgpuInstanceGetAccountingPids
3762 global __nvmlVgpuInstanceGetAccountingStats
3763 data["__nvmlVgpuInstanceGetAccountingStats"] = <intptr_t>__nvmlVgpuInstanceGetAccountingStats
3765 global __nvmlVgpuInstanceClearAccountingPids
3766 data["__nvmlVgpuInstanceClearAccountingPids"] = <intptr_t>__nvmlVgpuInstanceClearAccountingPids
3768 global __nvmlVgpuInstanceGetLicenseInfo_v2
3769 data["__nvmlVgpuInstanceGetLicenseInfo_v2"] = <intptr_t>__nvmlVgpuInstanceGetLicenseInfo_v2
3771 global __nvmlGetExcludedDeviceCount
3772 data["__nvmlGetExcludedDeviceCount"] = <intptr_t>__nvmlGetExcludedDeviceCount
3774 global __nvmlGetExcludedDeviceInfoByIndex
3775 data["__nvmlGetExcludedDeviceInfoByIndex"] = <intptr_t>__nvmlGetExcludedDeviceInfoByIndex
3777 global __nvmlDeviceSetMigMode
3778 data["__nvmlDeviceSetMigMode"] = <intptr_t>__nvmlDeviceSetMigMode
3780 global __nvmlDeviceGetMigMode
3781 data["__nvmlDeviceGetMigMode"] = <intptr_t>__nvmlDeviceGetMigMode
3783 global __nvmlDeviceGetGpuInstanceProfileInfoV
3784 data["__nvmlDeviceGetGpuInstanceProfileInfoV"] = <intptr_t>__nvmlDeviceGetGpuInstanceProfileInfoV
3786 global __nvmlDeviceGetGpuInstancePossiblePlacements_v2
3787 data["__nvmlDeviceGetGpuInstancePossiblePlacements_v2"] = <intptr_t>__nvmlDeviceGetGpuInstancePossiblePlacements_v2
3789 global __nvmlDeviceGetGpuInstanceRemainingCapacity
3790 data["__nvmlDeviceGetGpuInstanceRemainingCapacity"] = <intptr_t>__nvmlDeviceGetGpuInstanceRemainingCapacity
3792 global __nvmlDeviceCreateGpuInstance
3793 data["__nvmlDeviceCreateGpuInstance"] = <intptr_t>__nvmlDeviceCreateGpuInstance
3795 global __nvmlDeviceCreateGpuInstanceWithPlacement
3796 data["__nvmlDeviceCreateGpuInstanceWithPlacement"] = <intptr_t>__nvmlDeviceCreateGpuInstanceWithPlacement
3798 global __nvmlGpuInstanceDestroy
3799 data["__nvmlGpuInstanceDestroy"] = <intptr_t>__nvmlGpuInstanceDestroy
3801 global __nvmlDeviceGetGpuInstances
3802 data["__nvmlDeviceGetGpuInstances"] = <intptr_t>__nvmlDeviceGetGpuInstances
3804 global __nvmlDeviceGetGpuInstanceById
3805 data["__nvmlDeviceGetGpuInstanceById"] = <intptr_t>__nvmlDeviceGetGpuInstanceById
3807 global __nvmlGpuInstanceGetInfo
3808 data["__nvmlGpuInstanceGetInfo"] = <intptr_t>__nvmlGpuInstanceGetInfo
3810 global __nvmlGpuInstanceGetComputeInstanceProfileInfoV
3811 data["__nvmlGpuInstanceGetComputeInstanceProfileInfoV"] = <intptr_t>__nvmlGpuInstanceGetComputeInstanceProfileInfoV
3813 global __nvmlGpuInstanceGetComputeInstanceRemainingCapacity
3814 data["__nvmlGpuInstanceGetComputeInstanceRemainingCapacity"] = <intptr_t>__nvmlGpuInstanceGetComputeInstanceRemainingCapacity
3816 global __nvmlGpuInstanceGetComputeInstancePossiblePlacements
3817 data["__nvmlGpuInstanceGetComputeInstancePossiblePlacements"] = <intptr_t>__nvmlGpuInstanceGetComputeInstancePossiblePlacements
3819 global __nvmlGpuInstanceCreateComputeInstance
3820 data["__nvmlGpuInstanceCreateComputeInstance"] = <intptr_t>__nvmlGpuInstanceCreateComputeInstance
3822 global __nvmlGpuInstanceCreateComputeInstanceWithPlacement
3823 data["__nvmlGpuInstanceCreateComputeInstanceWithPlacement"] = <intptr_t>__nvmlGpuInstanceCreateComputeInstanceWithPlacement
3825 global __nvmlComputeInstanceDestroy
3826 data["__nvmlComputeInstanceDestroy"] = <intptr_t>__nvmlComputeInstanceDestroy
3828 global __nvmlGpuInstanceGetComputeInstances
3829 data["__nvmlGpuInstanceGetComputeInstances"] = <intptr_t>__nvmlGpuInstanceGetComputeInstances
3831 global __nvmlGpuInstanceGetComputeInstanceById
3832 data["__nvmlGpuInstanceGetComputeInstanceById"] = <intptr_t>__nvmlGpuInstanceGetComputeInstanceById
3834 global __nvmlComputeInstanceGetInfo_v2
3835 data["__nvmlComputeInstanceGetInfo_v2"] = <intptr_t>__nvmlComputeInstanceGetInfo_v2
3837 global __nvmlDeviceIsMigDeviceHandle
3838 data["__nvmlDeviceIsMigDeviceHandle"] = <intptr_t>__nvmlDeviceIsMigDeviceHandle
3840 global __nvmlDeviceGetGpuInstanceId
3841 data["__nvmlDeviceGetGpuInstanceId"] = <intptr_t>__nvmlDeviceGetGpuInstanceId
3843 global __nvmlDeviceGetComputeInstanceId
3844 data["__nvmlDeviceGetComputeInstanceId"] = <intptr_t>__nvmlDeviceGetComputeInstanceId
3846 global __nvmlDeviceGetMaxMigDeviceCount
3847 data["__nvmlDeviceGetMaxMigDeviceCount"] = <intptr_t>__nvmlDeviceGetMaxMigDeviceCount
3849 global __nvmlDeviceGetMigDeviceHandleByIndex
3850 data["__nvmlDeviceGetMigDeviceHandleByIndex"] = <intptr_t>__nvmlDeviceGetMigDeviceHandleByIndex
3852 global __nvmlDeviceGetDeviceHandleFromMigDeviceHandle
3853 data["__nvmlDeviceGetDeviceHandleFromMigDeviceHandle"] = <intptr_t>__nvmlDeviceGetDeviceHandleFromMigDeviceHandle
3855 global __nvmlGpmSampleGet
3856 data["__nvmlGpmSampleGet"] = <intptr_t>__nvmlGpmSampleGet
3858 global __nvmlGpmMigSampleGet
3859 data["__nvmlGpmMigSampleGet"] = <intptr_t>__nvmlGpmMigSampleGet
3861 global __nvmlGpmQueryDeviceSupport
3862 data["__nvmlGpmQueryDeviceSupport"] = <intptr_t>__nvmlGpmQueryDeviceSupport
3864 global __nvmlGpmQueryIfStreamingEnabled
3865 data["__nvmlGpmQueryIfStreamingEnabled"] = <intptr_t>__nvmlGpmQueryIfStreamingEnabled
3867 global __nvmlGpmSetStreamingEnabled
3868 data["__nvmlGpmSetStreamingEnabled"] = <intptr_t>__nvmlGpmSetStreamingEnabled
3870 global __nvmlDeviceGetCapabilities
3871 data["__nvmlDeviceGetCapabilities"] = <intptr_t>__nvmlDeviceGetCapabilities
3873 global __nvmlDeviceWorkloadPowerProfileClearRequestedProfiles
3874 data["__nvmlDeviceWorkloadPowerProfileClearRequestedProfiles"] = <intptr_t>__nvmlDeviceWorkloadPowerProfileClearRequestedProfiles
3876 global __nvmlDevicePowerSmoothingActivatePresetProfile
3877 data["__nvmlDevicePowerSmoothingActivatePresetProfile"] = <intptr_t>__nvmlDevicePowerSmoothingActivatePresetProfile
3879 global __nvmlDevicePowerSmoothingUpdatePresetProfileParam
3880 data["__nvmlDevicePowerSmoothingUpdatePresetProfileParam"] = <intptr_t>__nvmlDevicePowerSmoothingUpdatePresetProfileParam
3882 global __nvmlDevicePowerSmoothingSetState
3883 data["__nvmlDevicePowerSmoothingSetState"] = <intptr_t>__nvmlDevicePowerSmoothingSetState
3885 global __nvmlDeviceGetAddressingMode
3886 data["__nvmlDeviceGetAddressingMode"] = <intptr_t>__nvmlDeviceGetAddressingMode
3888 global __nvmlDeviceGetRepairStatus
3889 data["__nvmlDeviceGetRepairStatus"] = <intptr_t>__nvmlDeviceGetRepairStatus
3891 global __nvmlDeviceGetPowerMizerMode_v1
3892 data["__nvmlDeviceGetPowerMizerMode_v1"] = <intptr_t>__nvmlDeviceGetPowerMizerMode_v1
3894 global __nvmlDeviceSetPowerMizerMode_v1
3895 data["__nvmlDeviceSetPowerMizerMode_v1"] = <intptr_t>__nvmlDeviceSetPowerMizerMode_v1
3897 global __nvmlDeviceGetPdi
3898 data["__nvmlDeviceGetPdi"] = <intptr_t>__nvmlDeviceGetPdi
3900 global __nvmlDeviceSetHostname_v1
3901 data["__nvmlDeviceSetHostname_v1"] = <intptr_t>__nvmlDeviceSetHostname_v1
3903 global __nvmlDeviceGetHostname_v1
3904 data["__nvmlDeviceGetHostname_v1"] = <intptr_t>__nvmlDeviceGetHostname_v1
3906 global __nvmlDeviceGetNvLinkInfo
3907 data["__nvmlDeviceGetNvLinkInfo"] = <intptr_t>__nvmlDeviceGetNvLinkInfo
3909 global __nvmlDeviceReadWritePRM_v1
3910 data["__nvmlDeviceReadWritePRM_v1"] = <intptr_t>__nvmlDeviceReadWritePRM_v1
3912 global __nvmlDeviceGetGpuInstanceProfileInfoByIdV
3913 data["__nvmlDeviceGetGpuInstanceProfileInfoByIdV"] = <intptr_t>__nvmlDeviceGetGpuInstanceProfileInfoByIdV
3915 global __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts
3916 data["__nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts"] = <intptr_t>__nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts
3918 func_ptrs = data
3919 return data
3922cpdef _inspect_function_pointer(str name):
3923 global func_ptrs
3924 if func_ptrs is None:
3925 func_ptrs = _inspect_function_pointers()
3926 return func_ptrs[name]
3929###############################################################################
3930# Wrapper functions
3931###############################################################################
3933cdef nvmlReturn_t _nvmlInit_v2() except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
3934 global __nvmlInit_v2
3935 _check_or_init_nvml()
3936 if __nvmlInit_v2 == NULL:
3937 with gil:
3938 raise FunctionNotFoundError("function nvmlInit_v2 is not found")
3939 return (<nvmlReturn_t (*)() noexcept nogil>__nvmlInit_v2)(
3940 )
3943cdef nvmlReturn_t _nvmlInitWithFlags(unsigned int flags) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
3944 global __nvmlInitWithFlags
3945 _check_or_init_nvml()
3946 if __nvmlInitWithFlags == NULL:
3947 with gil:
3948 raise FunctionNotFoundError("function nvmlInitWithFlags is not found")
3949 return (<nvmlReturn_t (*)(unsigned int) noexcept nogil>__nvmlInitWithFlags)(
3950 flags)
3953cdef nvmlReturn_t _nvmlShutdown() except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
3954 global __nvmlShutdown
3955 _check_or_init_nvml()
3956 if __nvmlShutdown == NULL:
3957 with gil:
3958 raise FunctionNotFoundError("function nvmlShutdown is not found")
3959 return (<nvmlReturn_t (*)() noexcept nogil>__nvmlShutdown)(
3960 )
3963cdef const char* _nvmlErrorString(nvmlReturn_t result) except?NULL nogil:
3964 global __nvmlErrorString
3965 _check_or_init_nvml()
3966 if __nvmlErrorString == NULL:
3967 with gil:
3968 raise FunctionNotFoundError("function nvmlErrorString is not found")
3969 return (<const char* (*)(nvmlReturn_t) noexcept nogil>__nvmlErrorString)(
3970 result)
3973cdef nvmlReturn_t _nvmlSystemGetDriverVersion(char* version, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
3974 global __nvmlSystemGetDriverVersion
3975 _check_or_init_nvml()
3976 if __nvmlSystemGetDriverVersion == NULL:
3977 with gil:
3978 raise FunctionNotFoundError("function nvmlSystemGetDriverVersion is not found")
3979 return (<nvmlReturn_t (*)(char*, unsigned int) noexcept nogil>__nvmlSystemGetDriverVersion)(
3980 version, length)
3983cdef nvmlReturn_t _nvmlSystemGetNVMLVersion(char* version, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
3984 global __nvmlSystemGetNVMLVersion
3985 _check_or_init_nvml()
3986 if __nvmlSystemGetNVMLVersion == NULL:
3987 with gil:
3988 raise FunctionNotFoundError("function nvmlSystemGetNVMLVersion is not found")
3989 return (<nvmlReturn_t (*)(char*, unsigned int) noexcept nogil>__nvmlSystemGetNVMLVersion)(
3990 version, length)
3993cdef nvmlReturn_t _nvmlSystemGetCudaDriverVersion(int* cudaDriverVersion) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
3994 global __nvmlSystemGetCudaDriverVersion
3995 _check_or_init_nvml()
3996 if __nvmlSystemGetCudaDriverVersion == NULL:
3997 with gil:
3998 raise FunctionNotFoundError("function nvmlSystemGetCudaDriverVersion is not found")
3999 return (<nvmlReturn_t (*)(int*) noexcept nogil>__nvmlSystemGetCudaDriverVersion)(
4000 cudaDriverVersion)
4003cdef nvmlReturn_t _nvmlSystemGetCudaDriverVersion_v2(int* cudaDriverVersion) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4004 global __nvmlSystemGetCudaDriverVersion_v2
4005 _check_or_init_nvml()
4006 if __nvmlSystemGetCudaDriverVersion_v2 == NULL:
4007 with gil:
4008 raise FunctionNotFoundError("function nvmlSystemGetCudaDriverVersion_v2 is not found")
4009 return (<nvmlReturn_t (*)(int*) noexcept nogil>__nvmlSystemGetCudaDriverVersion_v2)(
4010 cudaDriverVersion)
4013cdef nvmlReturn_t _nvmlSystemGetProcessName(unsigned int pid, char* name, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4014 global __nvmlSystemGetProcessName
4015 _check_or_init_nvml()
4016 if __nvmlSystemGetProcessName == NULL:
4017 with gil:
4018 raise FunctionNotFoundError("function nvmlSystemGetProcessName is not found")
4019 return (<nvmlReturn_t (*)(unsigned int, char*, unsigned int) noexcept nogil>__nvmlSystemGetProcessName)(
4020 pid, name, length)
4023cdef nvmlReturn_t _nvmlSystemGetHicVersion(unsigned int* hwbcCount, nvmlHwbcEntry_t* hwbcEntries) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4024 global __nvmlSystemGetHicVersion
4025 _check_or_init_nvml()
4026 if __nvmlSystemGetHicVersion == NULL:
4027 with gil:
4028 raise FunctionNotFoundError("function nvmlSystemGetHicVersion is not found")
4029 return (<nvmlReturn_t (*)(unsigned int*, nvmlHwbcEntry_t*) noexcept nogil>__nvmlSystemGetHicVersion)(
4030 hwbcCount, hwbcEntries)
4033cdef nvmlReturn_t _nvmlSystemGetTopologyGpuSet(unsigned int cpuNumber, unsigned int* count, nvmlDevice_t* deviceArray) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4034 global __nvmlSystemGetTopologyGpuSet
4035 _check_or_init_nvml()
4036 if __nvmlSystemGetTopologyGpuSet == NULL:
4037 with gil:
4038 raise FunctionNotFoundError("function nvmlSystemGetTopologyGpuSet is not found")
4039 return (<nvmlReturn_t (*)(unsigned int, unsigned int*, nvmlDevice_t*) noexcept nogil>__nvmlSystemGetTopologyGpuSet)(
4040 cpuNumber, count, deviceArray)
4043cdef nvmlReturn_t _nvmlSystemGetDriverBranch(nvmlSystemDriverBranchInfo_t* branchInfo, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4044 global __nvmlSystemGetDriverBranch
4045 _check_or_init_nvml()
4046 if __nvmlSystemGetDriverBranch == NULL:
4047 with gil:
4048 raise FunctionNotFoundError("function nvmlSystemGetDriverBranch is not found")
4049 return (<nvmlReturn_t (*)(nvmlSystemDriverBranchInfo_t*, unsigned int) noexcept nogil>__nvmlSystemGetDriverBranch)(
4050 branchInfo, length)
4053cdef nvmlReturn_t _nvmlUnitGetCount(unsigned int* unitCount) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4054 global __nvmlUnitGetCount
4055 _check_or_init_nvml()
4056 if __nvmlUnitGetCount == NULL:
4057 with gil:
4058 raise FunctionNotFoundError("function nvmlUnitGetCount is not found")
4059 return (<nvmlReturn_t (*)(unsigned int*) noexcept nogil>__nvmlUnitGetCount)(
4060 unitCount)
4063cdef nvmlReturn_t _nvmlUnitGetHandleByIndex(unsigned int index, nvmlUnit_t* unit) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4064 global __nvmlUnitGetHandleByIndex
4065 _check_or_init_nvml()
4066 if __nvmlUnitGetHandleByIndex == NULL:
4067 with gil:
4068 raise FunctionNotFoundError("function nvmlUnitGetHandleByIndex is not found")
4069 return (<nvmlReturn_t (*)(unsigned int, nvmlUnit_t*) noexcept nogil>__nvmlUnitGetHandleByIndex)(
4070 index, unit)
4073cdef nvmlReturn_t _nvmlUnitGetUnitInfo(nvmlUnit_t unit, nvmlUnitInfo_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4074 global __nvmlUnitGetUnitInfo
4075 _check_or_init_nvml()
4076 if __nvmlUnitGetUnitInfo == NULL:
4077 with gil:
4078 raise FunctionNotFoundError("function nvmlUnitGetUnitInfo is not found")
4079 return (<nvmlReturn_t (*)(nvmlUnit_t, nvmlUnitInfo_t*) noexcept nogil>__nvmlUnitGetUnitInfo)(
4080 unit, info)
4083cdef nvmlReturn_t _nvmlUnitGetLedState(nvmlUnit_t unit, nvmlLedState_t* state) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4084 global __nvmlUnitGetLedState
4085 _check_or_init_nvml()
4086 if __nvmlUnitGetLedState == NULL:
4087 with gil:
4088 raise FunctionNotFoundError("function nvmlUnitGetLedState is not found")
4089 return (<nvmlReturn_t (*)(nvmlUnit_t, nvmlLedState_t*) noexcept nogil>__nvmlUnitGetLedState)(
4090 unit, state)
4093cdef nvmlReturn_t _nvmlUnitGetPsuInfo(nvmlUnit_t unit, nvmlPSUInfo_t* psu) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4094 global __nvmlUnitGetPsuInfo
4095 _check_or_init_nvml()
4096 if __nvmlUnitGetPsuInfo == NULL:
4097 with gil:
4098 raise FunctionNotFoundError("function nvmlUnitGetPsuInfo is not found")
4099 return (<nvmlReturn_t (*)(nvmlUnit_t, nvmlPSUInfo_t*) noexcept nogil>__nvmlUnitGetPsuInfo)(
4100 unit, psu)
4103cdef nvmlReturn_t _nvmlUnitGetTemperature(nvmlUnit_t unit, unsigned int type, unsigned int* temp) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4104 global __nvmlUnitGetTemperature
4105 _check_or_init_nvml()
4106 if __nvmlUnitGetTemperature == NULL:
4107 with gil:
4108 raise FunctionNotFoundError("function nvmlUnitGetTemperature is not found")
4109 return (<nvmlReturn_t (*)(nvmlUnit_t, unsigned int, unsigned int*) noexcept nogil>__nvmlUnitGetTemperature)(
4110 unit, type, temp)
4113cdef nvmlReturn_t _nvmlUnitGetFanSpeedInfo(nvmlUnit_t unit, nvmlUnitFanSpeeds_t* fanSpeeds) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4114 global __nvmlUnitGetFanSpeedInfo
4115 _check_or_init_nvml()
4116 if __nvmlUnitGetFanSpeedInfo == NULL:
4117 with gil:
4118 raise FunctionNotFoundError("function nvmlUnitGetFanSpeedInfo is not found")
4119 return (<nvmlReturn_t (*)(nvmlUnit_t, nvmlUnitFanSpeeds_t*) noexcept nogil>__nvmlUnitGetFanSpeedInfo)(
4120 unit, fanSpeeds)
4123cdef nvmlReturn_t _nvmlUnitGetDevices(nvmlUnit_t unit, unsigned int* deviceCount, nvmlDevice_t* devices) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4124 global __nvmlUnitGetDevices
4125 _check_or_init_nvml()
4126 if __nvmlUnitGetDevices == NULL:
4127 with gil:
4128 raise FunctionNotFoundError("function nvmlUnitGetDevices is not found")
4129 return (<nvmlReturn_t (*)(nvmlUnit_t, unsigned int*, nvmlDevice_t*) noexcept nogil>__nvmlUnitGetDevices)(
4130 unit, deviceCount, devices)
4133cdef nvmlReturn_t _nvmlDeviceGetCount_v2(unsigned int* deviceCount) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4134 global __nvmlDeviceGetCount_v2
4135 _check_or_init_nvml()
4136 if __nvmlDeviceGetCount_v2 == NULL:
4137 with gil:
4138 raise FunctionNotFoundError("function nvmlDeviceGetCount_v2 is not found")
4139 return (<nvmlReturn_t (*)(unsigned int*) noexcept nogil>__nvmlDeviceGetCount_v2)(
4140 deviceCount)
4143cdef nvmlReturn_t _nvmlDeviceGetAttributes_v2(nvmlDevice_t device, nvmlDeviceAttributes_t* attributes) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4144 global __nvmlDeviceGetAttributes_v2
4145 _check_or_init_nvml()
4146 if __nvmlDeviceGetAttributes_v2 == NULL:
4147 with gil:
4148 raise FunctionNotFoundError("function nvmlDeviceGetAttributes_v2 is not found")
4149 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlDeviceAttributes_t*) noexcept nogil>__nvmlDeviceGetAttributes_v2)(
4150 device, attributes)
4153cdef nvmlReturn_t _nvmlDeviceGetHandleByIndex_v2(unsigned int index, nvmlDevice_t* device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4154 global __nvmlDeviceGetHandleByIndex_v2
4155 _check_or_init_nvml()
4156 if __nvmlDeviceGetHandleByIndex_v2 == NULL:
4157 with gil:
4158 raise FunctionNotFoundError("function nvmlDeviceGetHandleByIndex_v2 is not found")
4159 return (<nvmlReturn_t (*)(unsigned int, nvmlDevice_t*) noexcept nogil>__nvmlDeviceGetHandleByIndex_v2)(
4160 index, device)
4163cdef nvmlReturn_t _nvmlDeviceGetHandleBySerial(const char* serial, nvmlDevice_t* device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4164 global __nvmlDeviceGetHandleBySerial
4165 _check_or_init_nvml()
4166 if __nvmlDeviceGetHandleBySerial == NULL:
4167 with gil:
4168 raise FunctionNotFoundError("function nvmlDeviceGetHandleBySerial is not found")
4169 return (<nvmlReturn_t (*)(const char*, nvmlDevice_t*) noexcept nogil>__nvmlDeviceGetHandleBySerial)(
4170 serial, device)
4173cdef nvmlReturn_t _nvmlDeviceGetHandleByUUID(const char* uuid, nvmlDevice_t* device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4174 global __nvmlDeviceGetHandleByUUID
4175 _check_or_init_nvml()
4176 if __nvmlDeviceGetHandleByUUID == NULL:
4177 with gil:
4178 raise FunctionNotFoundError("function nvmlDeviceGetHandleByUUID is not found")
4179 return (<nvmlReturn_t (*)(const char*, nvmlDevice_t*) noexcept nogil>__nvmlDeviceGetHandleByUUID)(
4180 uuid, device)
4183cdef nvmlReturn_t _nvmlDeviceGetHandleByUUIDV(const nvmlUUID_t* uuid, nvmlDevice_t* device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4184 global __nvmlDeviceGetHandleByUUIDV
4185 _check_or_init_nvml()
4186 if __nvmlDeviceGetHandleByUUIDV == NULL:
4187 with gil:
4188 raise FunctionNotFoundError("function nvmlDeviceGetHandleByUUIDV is not found")
4189 return (<nvmlReturn_t (*)(const nvmlUUID_t*, nvmlDevice_t*) noexcept nogil>__nvmlDeviceGetHandleByUUIDV)(
4190 uuid, device)
4193cdef nvmlReturn_t _nvmlDeviceGetHandleByPciBusId_v2(const char* pciBusId, nvmlDevice_t* device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4194 global __nvmlDeviceGetHandleByPciBusId_v2
4195 _check_or_init_nvml()
4196 if __nvmlDeviceGetHandleByPciBusId_v2 == NULL:
4197 with gil:
4198 raise FunctionNotFoundError("function nvmlDeviceGetHandleByPciBusId_v2 is not found")
4199 return (<nvmlReturn_t (*)(const char*, nvmlDevice_t*) noexcept nogil>__nvmlDeviceGetHandleByPciBusId_v2)(
4200 pciBusId, device)
4203cdef nvmlReturn_t _nvmlDeviceGetName(nvmlDevice_t device, char* name, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4204 global __nvmlDeviceGetName
4205 _check_or_init_nvml()
4206 if __nvmlDeviceGetName == NULL:
4207 with gil:
4208 raise FunctionNotFoundError("function nvmlDeviceGetName is not found")
4209 return (<nvmlReturn_t (*)(nvmlDevice_t, char*, unsigned int) noexcept nogil>__nvmlDeviceGetName)(
4210 device, name, length)
4213cdef nvmlReturn_t _nvmlDeviceGetBrand(nvmlDevice_t device, nvmlBrandType_t* type) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4214 global __nvmlDeviceGetBrand
4215 _check_or_init_nvml()
4216 if __nvmlDeviceGetBrand == NULL:
4217 with gil:
4218 raise FunctionNotFoundError("function nvmlDeviceGetBrand is not found")
4219 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlBrandType_t*) noexcept nogil>__nvmlDeviceGetBrand)(
4220 device, type)
4223cdef nvmlReturn_t _nvmlDeviceGetIndex(nvmlDevice_t device, unsigned int* index) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4224 global __nvmlDeviceGetIndex
4225 _check_or_init_nvml()
4226 if __nvmlDeviceGetIndex == NULL:
4227 with gil:
4228 raise FunctionNotFoundError("function nvmlDeviceGetIndex is not found")
4229 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetIndex)(
4230 device, index)
4233cdef nvmlReturn_t _nvmlDeviceGetSerial(nvmlDevice_t device, char* serial, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4234 global __nvmlDeviceGetSerial
4235 _check_or_init_nvml()
4236 if __nvmlDeviceGetSerial == NULL:
4237 with gil:
4238 raise FunctionNotFoundError("function nvmlDeviceGetSerial is not found")
4239 return (<nvmlReturn_t (*)(nvmlDevice_t, char*, unsigned int) noexcept nogil>__nvmlDeviceGetSerial)(
4240 device, serial, length)
4243cdef nvmlReturn_t _nvmlDeviceGetModuleId(nvmlDevice_t device, unsigned int* moduleId) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4244 global __nvmlDeviceGetModuleId
4245 _check_or_init_nvml()
4246 if __nvmlDeviceGetModuleId == NULL:
4247 with gil:
4248 raise FunctionNotFoundError("function nvmlDeviceGetModuleId is not found")
4249 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetModuleId)(
4250 device, moduleId)
4253cdef nvmlReturn_t _nvmlDeviceGetC2cModeInfoV(nvmlDevice_t device, nvmlC2cModeInfo_v1_t* c2cModeInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4254 global __nvmlDeviceGetC2cModeInfoV
4255 _check_or_init_nvml()
4256 if __nvmlDeviceGetC2cModeInfoV == NULL:
4257 with gil:
4258 raise FunctionNotFoundError("function nvmlDeviceGetC2cModeInfoV is not found")
4259 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlC2cModeInfo_v1_t*) noexcept nogil>__nvmlDeviceGetC2cModeInfoV)(
4260 device, c2cModeInfo)
4263cdef nvmlReturn_t _nvmlDeviceGetMemoryAffinity(nvmlDevice_t device, unsigned int nodeSetSize, unsigned long* nodeSet, nvmlAffinityScope_t scope) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4264 global __nvmlDeviceGetMemoryAffinity
4265 _check_or_init_nvml()
4266 if __nvmlDeviceGetMemoryAffinity == NULL:
4267 with gil:
4268 raise FunctionNotFoundError("function nvmlDeviceGetMemoryAffinity is not found")
4269 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, unsigned long*, nvmlAffinityScope_t) noexcept nogil>__nvmlDeviceGetMemoryAffinity)(
4270 device, nodeSetSize, nodeSet, scope)
4273cdef nvmlReturn_t _nvmlDeviceGetCpuAffinityWithinScope(nvmlDevice_t device, unsigned int cpuSetSize, unsigned long* cpuSet, nvmlAffinityScope_t scope) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4274 global __nvmlDeviceGetCpuAffinityWithinScope
4275 _check_or_init_nvml()
4276 if __nvmlDeviceGetCpuAffinityWithinScope == NULL:
4277 with gil:
4278 raise FunctionNotFoundError("function nvmlDeviceGetCpuAffinityWithinScope is not found")
4279 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, unsigned long*, nvmlAffinityScope_t) noexcept nogil>__nvmlDeviceGetCpuAffinityWithinScope)(
4280 device, cpuSetSize, cpuSet, scope)
4283cdef nvmlReturn_t _nvmlDeviceGetCpuAffinity(nvmlDevice_t device, unsigned int cpuSetSize, unsigned long* cpuSet) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4284 global __nvmlDeviceGetCpuAffinity
4285 _check_or_init_nvml()
4286 if __nvmlDeviceGetCpuAffinity == NULL:
4287 with gil:
4288 raise FunctionNotFoundError("function nvmlDeviceGetCpuAffinity is not found")
4289 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, unsigned long*) noexcept nogil>__nvmlDeviceGetCpuAffinity)(
4290 device, cpuSetSize, cpuSet)
4293cdef nvmlReturn_t _nvmlDeviceSetCpuAffinity(nvmlDevice_t device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4294 global __nvmlDeviceSetCpuAffinity
4295 _check_or_init_nvml()
4296 if __nvmlDeviceSetCpuAffinity == NULL:
4297 with gil:
4298 raise FunctionNotFoundError("function nvmlDeviceSetCpuAffinity is not found")
4299 return (<nvmlReturn_t (*)(nvmlDevice_t) noexcept nogil>__nvmlDeviceSetCpuAffinity)(
4300 device)
4303cdef nvmlReturn_t _nvmlDeviceClearCpuAffinity(nvmlDevice_t device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4304 global __nvmlDeviceClearCpuAffinity
4305 _check_or_init_nvml()
4306 if __nvmlDeviceClearCpuAffinity == NULL:
4307 with gil:
4308 raise FunctionNotFoundError("function nvmlDeviceClearCpuAffinity is not found")
4309 return (<nvmlReturn_t (*)(nvmlDevice_t) noexcept nogil>__nvmlDeviceClearCpuAffinity)(
4310 device)
4313cdef nvmlReturn_t _nvmlDeviceGetNumaNodeId(nvmlDevice_t device, unsigned int* node) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4314 global __nvmlDeviceGetNumaNodeId
4315 _check_or_init_nvml()
4316 if __nvmlDeviceGetNumaNodeId == NULL:
4317 with gil:
4318 raise FunctionNotFoundError("function nvmlDeviceGetNumaNodeId is not found")
4319 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetNumaNodeId)(
4320 device, node)
4323cdef nvmlReturn_t _nvmlDeviceGetTopologyCommonAncestor(nvmlDevice_t device1, nvmlDevice_t device2, nvmlGpuTopologyLevel_t* pathInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4324 global __nvmlDeviceGetTopologyCommonAncestor
4325 _check_or_init_nvml()
4326 if __nvmlDeviceGetTopologyCommonAncestor == NULL:
4327 with gil:
4328 raise FunctionNotFoundError("function nvmlDeviceGetTopologyCommonAncestor is not found")
4329 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlDevice_t, nvmlGpuTopologyLevel_t*) noexcept nogil>__nvmlDeviceGetTopologyCommonAncestor)(
4330 device1, device2, pathInfo)
4333cdef nvmlReturn_t _nvmlDeviceGetTopologyNearestGpus(nvmlDevice_t device, nvmlGpuTopologyLevel_t level, unsigned int* count, nvmlDevice_t* deviceArray) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4334 global __nvmlDeviceGetTopologyNearestGpus
4335 _check_or_init_nvml()
4336 if __nvmlDeviceGetTopologyNearestGpus == NULL:
4337 with gil:
4338 raise FunctionNotFoundError("function nvmlDeviceGetTopologyNearestGpus is not found")
4339 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlGpuTopologyLevel_t, unsigned int*, nvmlDevice_t*) noexcept nogil>__nvmlDeviceGetTopologyNearestGpus)(
4340 device, level, count, deviceArray)
4343cdef nvmlReturn_t _nvmlDeviceGetP2PStatus(nvmlDevice_t device1, nvmlDevice_t device2, nvmlGpuP2PCapsIndex_t p2pIndex, nvmlGpuP2PStatus_t* p2pStatus) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4344 global __nvmlDeviceGetP2PStatus
4345 _check_or_init_nvml()
4346 if __nvmlDeviceGetP2PStatus == NULL:
4347 with gil:
4348 raise FunctionNotFoundError("function nvmlDeviceGetP2PStatus is not found")
4349 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlDevice_t, nvmlGpuP2PCapsIndex_t, nvmlGpuP2PStatus_t*) noexcept nogil>__nvmlDeviceGetP2PStatus)(
4350 device1, device2, p2pIndex, p2pStatus)
4353cdef nvmlReturn_t _nvmlDeviceGetUUID(nvmlDevice_t device, char* uuid, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4354 global __nvmlDeviceGetUUID
4355 _check_or_init_nvml()
4356 if __nvmlDeviceGetUUID == NULL:
4357 with gil:
4358 raise FunctionNotFoundError("function nvmlDeviceGetUUID is not found")
4359 return (<nvmlReturn_t (*)(nvmlDevice_t, char*, unsigned int) noexcept nogil>__nvmlDeviceGetUUID)(
4360 device, uuid, length)
4363cdef nvmlReturn_t _nvmlDeviceGetMinorNumber(nvmlDevice_t device, unsigned int* minorNumber) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4364 global __nvmlDeviceGetMinorNumber
4365 _check_or_init_nvml()
4366 if __nvmlDeviceGetMinorNumber == NULL:
4367 with gil:
4368 raise FunctionNotFoundError("function nvmlDeviceGetMinorNumber is not found")
4369 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetMinorNumber)(
4370 device, minorNumber)
4373cdef nvmlReturn_t _nvmlDeviceGetBoardPartNumber(nvmlDevice_t device, char* partNumber, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4374 global __nvmlDeviceGetBoardPartNumber
4375 _check_or_init_nvml()
4376 if __nvmlDeviceGetBoardPartNumber == NULL:
4377 with gil:
4378 raise FunctionNotFoundError("function nvmlDeviceGetBoardPartNumber is not found")
4379 return (<nvmlReturn_t (*)(nvmlDevice_t, char*, unsigned int) noexcept nogil>__nvmlDeviceGetBoardPartNumber)(
4380 device, partNumber, length)
4383cdef nvmlReturn_t _nvmlDeviceGetInforomVersion(nvmlDevice_t device, nvmlInforomObject_t object, char* version, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4384 global __nvmlDeviceGetInforomVersion
4385 _check_or_init_nvml()
4386 if __nvmlDeviceGetInforomVersion == NULL:
4387 with gil:
4388 raise FunctionNotFoundError("function nvmlDeviceGetInforomVersion is not found")
4389 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlInforomObject_t, char*, unsigned int) noexcept nogil>__nvmlDeviceGetInforomVersion)(
4390 device, object, version, length)
4393cdef nvmlReturn_t _nvmlDeviceGetInforomImageVersion(nvmlDevice_t device, char* version, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4394 global __nvmlDeviceGetInforomImageVersion
4395 _check_or_init_nvml()
4396 if __nvmlDeviceGetInforomImageVersion == NULL:
4397 with gil:
4398 raise FunctionNotFoundError("function nvmlDeviceGetInforomImageVersion is not found")
4399 return (<nvmlReturn_t (*)(nvmlDevice_t, char*, unsigned int) noexcept nogil>__nvmlDeviceGetInforomImageVersion)(
4400 device, version, length)
4403cdef nvmlReturn_t _nvmlDeviceGetInforomConfigurationChecksum(nvmlDevice_t device, unsigned int* checksum) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4404 global __nvmlDeviceGetInforomConfigurationChecksum
4405 _check_or_init_nvml()
4406 if __nvmlDeviceGetInforomConfigurationChecksum == NULL:
4407 with gil:
4408 raise FunctionNotFoundError("function nvmlDeviceGetInforomConfigurationChecksum is not found")
4409 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetInforomConfigurationChecksum)(
4410 device, checksum)
4413cdef nvmlReturn_t _nvmlDeviceValidateInforom(nvmlDevice_t device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4414 global __nvmlDeviceValidateInforom
4415 _check_or_init_nvml()
4416 if __nvmlDeviceValidateInforom == NULL:
4417 with gil:
4418 raise FunctionNotFoundError("function nvmlDeviceValidateInforom is not found")
4419 return (<nvmlReturn_t (*)(nvmlDevice_t) noexcept nogil>__nvmlDeviceValidateInforom)(
4420 device)
4423cdef nvmlReturn_t _nvmlDeviceGetLastBBXFlushTime(nvmlDevice_t device, unsigned long long* timestamp, unsigned long* durationUs) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4424 global __nvmlDeviceGetLastBBXFlushTime
4425 _check_or_init_nvml()
4426 if __nvmlDeviceGetLastBBXFlushTime == NULL:
4427 with gil:
4428 raise FunctionNotFoundError("function nvmlDeviceGetLastBBXFlushTime is not found")
4429 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned long long*, unsigned long*) noexcept nogil>__nvmlDeviceGetLastBBXFlushTime)(
4430 device, timestamp, durationUs)
4433cdef nvmlReturn_t _nvmlDeviceGetDisplayMode(nvmlDevice_t device, nvmlEnableState_t* display) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4434 global __nvmlDeviceGetDisplayMode
4435 _check_or_init_nvml()
4436 if __nvmlDeviceGetDisplayMode == NULL:
4437 with gil:
4438 raise FunctionNotFoundError("function nvmlDeviceGetDisplayMode is not found")
4439 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEnableState_t*) noexcept nogil>__nvmlDeviceGetDisplayMode)(
4440 device, display)
4443cdef nvmlReturn_t _nvmlDeviceGetDisplayActive(nvmlDevice_t device, nvmlEnableState_t* isActive) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4444 global __nvmlDeviceGetDisplayActive
4445 _check_or_init_nvml()
4446 if __nvmlDeviceGetDisplayActive == NULL:
4447 with gil:
4448 raise FunctionNotFoundError("function nvmlDeviceGetDisplayActive is not found")
4449 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEnableState_t*) noexcept nogil>__nvmlDeviceGetDisplayActive)(
4450 device, isActive)
4453cdef nvmlReturn_t _nvmlDeviceGetPersistenceMode(nvmlDevice_t device, nvmlEnableState_t* mode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4454 global __nvmlDeviceGetPersistenceMode
4455 _check_or_init_nvml()
4456 if __nvmlDeviceGetPersistenceMode == NULL:
4457 with gil:
4458 raise FunctionNotFoundError("function nvmlDeviceGetPersistenceMode is not found")
4459 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEnableState_t*) noexcept nogil>__nvmlDeviceGetPersistenceMode)(
4460 device, mode)
4463cdef nvmlReturn_t _nvmlDeviceGetPciInfoExt(nvmlDevice_t device, nvmlPciInfoExt_t* pci) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4464 global __nvmlDeviceGetPciInfoExt
4465 _check_or_init_nvml()
4466 if __nvmlDeviceGetPciInfoExt == NULL:
4467 with gil:
4468 raise FunctionNotFoundError("function nvmlDeviceGetPciInfoExt is not found")
4469 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPciInfoExt_t*) noexcept nogil>__nvmlDeviceGetPciInfoExt)(
4470 device, pci)
4473cdef nvmlReturn_t _nvmlDeviceGetPciInfo_v3(nvmlDevice_t device, nvmlPciInfo_t* pci) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4474 global __nvmlDeviceGetPciInfo_v3
4475 _check_or_init_nvml()
4476 if __nvmlDeviceGetPciInfo_v3 == NULL:
4477 with gil:
4478 raise FunctionNotFoundError("function nvmlDeviceGetPciInfo_v3 is not found")
4479 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPciInfo_t*) noexcept nogil>__nvmlDeviceGetPciInfo_v3)(
4480 device, pci)
4483cdef nvmlReturn_t _nvmlDeviceGetMaxPcieLinkGeneration(nvmlDevice_t device, unsigned int* maxLinkGen) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4484 global __nvmlDeviceGetMaxPcieLinkGeneration
4485 _check_or_init_nvml()
4486 if __nvmlDeviceGetMaxPcieLinkGeneration == NULL:
4487 with gil:
4488 raise FunctionNotFoundError("function nvmlDeviceGetMaxPcieLinkGeneration is not found")
4489 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetMaxPcieLinkGeneration)(
4490 device, maxLinkGen)
4493cdef nvmlReturn_t _nvmlDeviceGetGpuMaxPcieLinkGeneration(nvmlDevice_t device, unsigned int* maxLinkGenDevice) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4494 global __nvmlDeviceGetGpuMaxPcieLinkGeneration
4495 _check_or_init_nvml()
4496 if __nvmlDeviceGetGpuMaxPcieLinkGeneration == NULL:
4497 with gil:
4498 raise FunctionNotFoundError("function nvmlDeviceGetGpuMaxPcieLinkGeneration is not found")
4499 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetGpuMaxPcieLinkGeneration)(
4500 device, maxLinkGenDevice)
4503cdef nvmlReturn_t _nvmlDeviceGetMaxPcieLinkWidth(nvmlDevice_t device, unsigned int* maxLinkWidth) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4504 global __nvmlDeviceGetMaxPcieLinkWidth
4505 _check_or_init_nvml()
4506 if __nvmlDeviceGetMaxPcieLinkWidth == NULL:
4507 with gil:
4508 raise FunctionNotFoundError("function nvmlDeviceGetMaxPcieLinkWidth is not found")
4509 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetMaxPcieLinkWidth)(
4510 device, maxLinkWidth)
4513cdef nvmlReturn_t _nvmlDeviceGetCurrPcieLinkGeneration(nvmlDevice_t device, unsigned int* currLinkGen) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4514 global __nvmlDeviceGetCurrPcieLinkGeneration
4515 _check_or_init_nvml()
4516 if __nvmlDeviceGetCurrPcieLinkGeneration == NULL:
4517 with gil:
4518 raise FunctionNotFoundError("function nvmlDeviceGetCurrPcieLinkGeneration is not found")
4519 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetCurrPcieLinkGeneration)(
4520 device, currLinkGen)
4523cdef nvmlReturn_t _nvmlDeviceGetCurrPcieLinkWidth(nvmlDevice_t device, unsigned int* currLinkWidth) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4524 global __nvmlDeviceGetCurrPcieLinkWidth
4525 _check_or_init_nvml()
4526 if __nvmlDeviceGetCurrPcieLinkWidth == NULL:
4527 with gil:
4528 raise FunctionNotFoundError("function nvmlDeviceGetCurrPcieLinkWidth is not found")
4529 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetCurrPcieLinkWidth)(
4530 device, currLinkWidth)
4533cdef nvmlReturn_t _nvmlDeviceGetPcieThroughput(nvmlDevice_t device, nvmlPcieUtilCounter_t counter, unsigned int* value) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4534 global __nvmlDeviceGetPcieThroughput
4535 _check_or_init_nvml()
4536 if __nvmlDeviceGetPcieThroughput == NULL:
4537 with gil:
4538 raise FunctionNotFoundError("function nvmlDeviceGetPcieThroughput is not found")
4539 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPcieUtilCounter_t, unsigned int*) noexcept nogil>__nvmlDeviceGetPcieThroughput)(
4540 device, counter, value)
4543cdef nvmlReturn_t _nvmlDeviceGetPcieReplayCounter(nvmlDevice_t device, unsigned int* value) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4544 global __nvmlDeviceGetPcieReplayCounter
4545 _check_or_init_nvml()
4546 if __nvmlDeviceGetPcieReplayCounter == NULL:
4547 with gil:
4548 raise FunctionNotFoundError("function nvmlDeviceGetPcieReplayCounter is not found")
4549 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetPcieReplayCounter)(
4550 device, value)
4553cdef nvmlReturn_t _nvmlDeviceGetClockInfo(nvmlDevice_t device, nvmlClockType_t type, unsigned int* clock) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4554 global __nvmlDeviceGetClockInfo
4555 _check_or_init_nvml()
4556 if __nvmlDeviceGetClockInfo == NULL:
4557 with gil:
4558 raise FunctionNotFoundError("function nvmlDeviceGetClockInfo is not found")
4559 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlClockType_t, unsigned int*) noexcept nogil>__nvmlDeviceGetClockInfo)(
4560 device, type, clock)
4563cdef nvmlReturn_t _nvmlDeviceGetMaxClockInfo(nvmlDevice_t device, nvmlClockType_t type, unsigned int* clock) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4564 global __nvmlDeviceGetMaxClockInfo
4565 _check_or_init_nvml()
4566 if __nvmlDeviceGetMaxClockInfo == NULL:
4567 with gil:
4568 raise FunctionNotFoundError("function nvmlDeviceGetMaxClockInfo is not found")
4569 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlClockType_t, unsigned int*) noexcept nogil>__nvmlDeviceGetMaxClockInfo)(
4570 device, type, clock)
4573cdef nvmlReturn_t _nvmlDeviceGetGpcClkVfOffset(nvmlDevice_t device, int* offset) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4574 global __nvmlDeviceGetGpcClkVfOffset
4575 _check_or_init_nvml()
4576 if __nvmlDeviceGetGpcClkVfOffset == NULL:
4577 with gil:
4578 raise FunctionNotFoundError("function nvmlDeviceGetGpcClkVfOffset is not found")
4579 return (<nvmlReturn_t (*)(nvmlDevice_t, int*) noexcept nogil>__nvmlDeviceGetGpcClkVfOffset)(
4580 device, offset)
4583cdef nvmlReturn_t _nvmlDeviceGetClock(nvmlDevice_t device, nvmlClockType_t clockType, nvmlClockId_t clockId, unsigned int* clockMHz) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4584 global __nvmlDeviceGetClock
4585 _check_or_init_nvml()
4586 if __nvmlDeviceGetClock == NULL:
4587 with gil:
4588 raise FunctionNotFoundError("function nvmlDeviceGetClock is not found")
4589 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlClockType_t, nvmlClockId_t, unsigned int*) noexcept nogil>__nvmlDeviceGetClock)(
4590 device, clockType, clockId, clockMHz)
4593cdef nvmlReturn_t _nvmlDeviceGetMaxCustomerBoostClock(nvmlDevice_t device, nvmlClockType_t clockType, unsigned int* clockMHz) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4594 global __nvmlDeviceGetMaxCustomerBoostClock
4595 _check_or_init_nvml()
4596 if __nvmlDeviceGetMaxCustomerBoostClock == NULL:
4597 with gil:
4598 raise FunctionNotFoundError("function nvmlDeviceGetMaxCustomerBoostClock is not found")
4599 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlClockType_t, unsigned int*) noexcept nogil>__nvmlDeviceGetMaxCustomerBoostClock)(
4600 device, clockType, clockMHz)
4603cdef nvmlReturn_t _nvmlDeviceGetSupportedMemoryClocks(nvmlDevice_t device, unsigned int* count, unsigned int* clocksMHz) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4604 global __nvmlDeviceGetSupportedMemoryClocks
4605 _check_or_init_nvml()
4606 if __nvmlDeviceGetSupportedMemoryClocks == NULL:
4607 with gil:
4608 raise FunctionNotFoundError("function nvmlDeviceGetSupportedMemoryClocks is not found")
4609 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, unsigned int*) noexcept nogil>__nvmlDeviceGetSupportedMemoryClocks)(
4610 device, count, clocksMHz)
4613cdef nvmlReturn_t _nvmlDeviceGetSupportedGraphicsClocks(nvmlDevice_t device, unsigned int memoryClockMHz, unsigned int* count, unsigned int* clocksMHz) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4614 global __nvmlDeviceGetSupportedGraphicsClocks
4615 _check_or_init_nvml()
4616 if __nvmlDeviceGetSupportedGraphicsClocks == NULL:
4617 with gil:
4618 raise FunctionNotFoundError("function nvmlDeviceGetSupportedGraphicsClocks is not found")
4619 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, unsigned int*, unsigned int*) noexcept nogil>__nvmlDeviceGetSupportedGraphicsClocks)(
4620 device, memoryClockMHz, count, clocksMHz)
4623cdef nvmlReturn_t _nvmlDeviceGetAutoBoostedClocksEnabled(nvmlDevice_t device, nvmlEnableState_t* isEnabled, nvmlEnableState_t* defaultIsEnabled) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4624 global __nvmlDeviceGetAutoBoostedClocksEnabled
4625 _check_or_init_nvml()
4626 if __nvmlDeviceGetAutoBoostedClocksEnabled == NULL:
4627 with gil:
4628 raise FunctionNotFoundError("function nvmlDeviceGetAutoBoostedClocksEnabled is not found")
4629 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEnableState_t*, nvmlEnableState_t*) noexcept nogil>__nvmlDeviceGetAutoBoostedClocksEnabled)(
4630 device, isEnabled, defaultIsEnabled)
4633cdef nvmlReturn_t _nvmlDeviceGetFanSpeed(nvmlDevice_t device, unsigned int* speed) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4634 global __nvmlDeviceGetFanSpeed
4635 _check_or_init_nvml()
4636 if __nvmlDeviceGetFanSpeed == NULL:
4637 with gil:
4638 raise FunctionNotFoundError("function nvmlDeviceGetFanSpeed is not found")
4639 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetFanSpeed)(
4640 device, speed)
4643cdef nvmlReturn_t _nvmlDeviceGetFanSpeed_v2(nvmlDevice_t device, unsigned int fan, unsigned int* speed) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4644 global __nvmlDeviceGetFanSpeed_v2
4645 _check_or_init_nvml()
4646 if __nvmlDeviceGetFanSpeed_v2 == NULL:
4647 with gil:
4648 raise FunctionNotFoundError("function nvmlDeviceGetFanSpeed_v2 is not found")
4649 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, unsigned int*) noexcept nogil>__nvmlDeviceGetFanSpeed_v2)(
4650 device, fan, speed)
4653cdef nvmlReturn_t _nvmlDeviceGetFanSpeedRPM(nvmlDevice_t device, nvmlFanSpeedInfo_t* fanSpeed) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4654 global __nvmlDeviceGetFanSpeedRPM
4655 _check_or_init_nvml()
4656 if __nvmlDeviceGetFanSpeedRPM == NULL:
4657 with gil:
4658 raise FunctionNotFoundError("function nvmlDeviceGetFanSpeedRPM is not found")
4659 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlFanSpeedInfo_t*) noexcept nogil>__nvmlDeviceGetFanSpeedRPM)(
4660 device, fanSpeed)
4663cdef nvmlReturn_t _nvmlDeviceGetTargetFanSpeed(nvmlDevice_t device, unsigned int fan, unsigned int* targetSpeed) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4664 global __nvmlDeviceGetTargetFanSpeed
4665 _check_or_init_nvml()
4666 if __nvmlDeviceGetTargetFanSpeed == NULL:
4667 with gil:
4668 raise FunctionNotFoundError("function nvmlDeviceGetTargetFanSpeed is not found")
4669 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, unsigned int*) noexcept nogil>__nvmlDeviceGetTargetFanSpeed)(
4670 device, fan, targetSpeed)
4673cdef nvmlReturn_t _nvmlDeviceGetMinMaxFanSpeed(nvmlDevice_t device, unsigned int* minSpeed, unsigned int* maxSpeed) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4674 global __nvmlDeviceGetMinMaxFanSpeed
4675 _check_or_init_nvml()
4676 if __nvmlDeviceGetMinMaxFanSpeed == NULL:
4677 with gil:
4678 raise FunctionNotFoundError("function nvmlDeviceGetMinMaxFanSpeed is not found")
4679 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, unsigned int*) noexcept nogil>__nvmlDeviceGetMinMaxFanSpeed)(
4680 device, minSpeed, maxSpeed)
4683cdef nvmlReturn_t _nvmlDeviceGetFanControlPolicy_v2(nvmlDevice_t device, unsigned int fan, nvmlFanControlPolicy_t* policy) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4684 global __nvmlDeviceGetFanControlPolicy_v2
4685 _check_or_init_nvml()
4686 if __nvmlDeviceGetFanControlPolicy_v2 == NULL:
4687 with gil:
4688 raise FunctionNotFoundError("function nvmlDeviceGetFanControlPolicy_v2 is not found")
4689 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlFanControlPolicy_t*) noexcept nogil>__nvmlDeviceGetFanControlPolicy_v2)(
4690 device, fan, policy)
4693cdef nvmlReturn_t _nvmlDeviceGetNumFans(nvmlDevice_t device, unsigned int* numFans) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4694 global __nvmlDeviceGetNumFans
4695 _check_or_init_nvml()
4696 if __nvmlDeviceGetNumFans == NULL:
4697 with gil:
4698 raise FunctionNotFoundError("function nvmlDeviceGetNumFans is not found")
4699 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetNumFans)(
4700 device, numFans)
4703cdef nvmlReturn_t _nvmlDeviceGetCoolerInfo(nvmlDevice_t device, nvmlCoolerInfo_t* coolerInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4704 global __nvmlDeviceGetCoolerInfo
4705 _check_or_init_nvml()
4706 if __nvmlDeviceGetCoolerInfo == NULL:
4707 with gil:
4708 raise FunctionNotFoundError("function nvmlDeviceGetCoolerInfo is not found")
4709 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlCoolerInfo_t*) noexcept nogil>__nvmlDeviceGetCoolerInfo)(
4710 device, coolerInfo)
4713cdef nvmlReturn_t _nvmlDeviceGetTemperatureV(nvmlDevice_t device, nvmlTemperature_t* temperature) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4714 global __nvmlDeviceGetTemperatureV
4715 _check_or_init_nvml()
4716 if __nvmlDeviceGetTemperatureV == NULL:
4717 with gil:
4718 raise FunctionNotFoundError("function nvmlDeviceGetTemperatureV is not found")
4719 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlTemperature_t*) noexcept nogil>__nvmlDeviceGetTemperatureV)(
4720 device, temperature)
4723cdef nvmlReturn_t _nvmlDeviceGetTemperatureThreshold(nvmlDevice_t device, nvmlTemperatureThresholds_t thresholdType, unsigned int* temp) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4724 global __nvmlDeviceGetTemperatureThreshold
4725 _check_or_init_nvml()
4726 if __nvmlDeviceGetTemperatureThreshold == NULL:
4727 with gil:
4728 raise FunctionNotFoundError("function nvmlDeviceGetTemperatureThreshold is not found")
4729 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlTemperatureThresholds_t, unsigned int*) noexcept nogil>__nvmlDeviceGetTemperatureThreshold)(
4730 device, thresholdType, temp)
4733cdef nvmlReturn_t _nvmlDeviceGetMarginTemperature(nvmlDevice_t device, nvmlMarginTemperature_t* marginTempInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4734 global __nvmlDeviceGetMarginTemperature
4735 _check_or_init_nvml()
4736 if __nvmlDeviceGetMarginTemperature == NULL:
4737 with gil:
4738 raise FunctionNotFoundError("function nvmlDeviceGetMarginTemperature is not found")
4739 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlMarginTemperature_t*) noexcept nogil>__nvmlDeviceGetMarginTemperature)(
4740 device, marginTempInfo)
4743cdef nvmlReturn_t _nvmlDeviceGetThermalSettings(nvmlDevice_t device, unsigned int sensorIndex, nvmlGpuThermalSettings_t* pThermalSettings) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4744 global __nvmlDeviceGetThermalSettings
4745 _check_or_init_nvml()
4746 if __nvmlDeviceGetThermalSettings == NULL:
4747 with gil:
4748 raise FunctionNotFoundError("function nvmlDeviceGetThermalSettings is not found")
4749 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlGpuThermalSettings_t*) noexcept nogil>__nvmlDeviceGetThermalSettings)(
4750 device, sensorIndex, pThermalSettings)
4753cdef nvmlReturn_t _nvmlDeviceGetPerformanceState(nvmlDevice_t device, nvmlPstates_t* pState) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4754 global __nvmlDeviceGetPerformanceState
4755 _check_or_init_nvml()
4756 if __nvmlDeviceGetPerformanceState == NULL:
4757 with gil:
4758 raise FunctionNotFoundError("function nvmlDeviceGetPerformanceState is not found")
4759 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPstates_t*) noexcept nogil>__nvmlDeviceGetPerformanceState)(
4760 device, pState)
4763cdef nvmlReturn_t _nvmlDeviceGetCurrentClocksEventReasons(nvmlDevice_t device, unsigned long long* clocksEventReasons) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4764 global __nvmlDeviceGetCurrentClocksEventReasons
4765 _check_or_init_nvml()
4766 if __nvmlDeviceGetCurrentClocksEventReasons == NULL:
4767 with gil:
4768 raise FunctionNotFoundError("function nvmlDeviceGetCurrentClocksEventReasons is not found")
4769 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned long long*) noexcept nogil>__nvmlDeviceGetCurrentClocksEventReasons)(
4770 device, clocksEventReasons)
4773cdef nvmlReturn_t _nvmlDeviceGetSupportedClocksEventReasons(nvmlDevice_t device, unsigned long long* supportedClocksEventReasons) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4774 global __nvmlDeviceGetSupportedClocksEventReasons
4775 _check_or_init_nvml()
4776 if __nvmlDeviceGetSupportedClocksEventReasons == NULL:
4777 with gil:
4778 raise FunctionNotFoundError("function nvmlDeviceGetSupportedClocksEventReasons is not found")
4779 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned long long*) noexcept nogil>__nvmlDeviceGetSupportedClocksEventReasons)(
4780 device, supportedClocksEventReasons)
4783cdef nvmlReturn_t _nvmlDeviceGetPowerState(nvmlDevice_t device, nvmlPstates_t* pState) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4784 global __nvmlDeviceGetPowerState
4785 _check_or_init_nvml()
4786 if __nvmlDeviceGetPowerState == NULL:
4787 with gil:
4788 raise FunctionNotFoundError("function nvmlDeviceGetPowerState is not found")
4789 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPstates_t*) noexcept nogil>__nvmlDeviceGetPowerState)(
4790 device, pState)
4793cdef nvmlReturn_t _nvmlDeviceGetDynamicPstatesInfo(nvmlDevice_t device, nvmlGpuDynamicPstatesInfo_t* pDynamicPstatesInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4794 global __nvmlDeviceGetDynamicPstatesInfo
4795 _check_or_init_nvml()
4796 if __nvmlDeviceGetDynamicPstatesInfo == NULL:
4797 with gil:
4798 raise FunctionNotFoundError("function nvmlDeviceGetDynamicPstatesInfo is not found")
4799 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlGpuDynamicPstatesInfo_t*) noexcept nogil>__nvmlDeviceGetDynamicPstatesInfo)(
4800 device, pDynamicPstatesInfo)
4803cdef nvmlReturn_t _nvmlDeviceGetMemClkVfOffset(nvmlDevice_t device, int* offset) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4804 global __nvmlDeviceGetMemClkVfOffset
4805 _check_or_init_nvml()
4806 if __nvmlDeviceGetMemClkVfOffset == NULL:
4807 with gil:
4808 raise FunctionNotFoundError("function nvmlDeviceGetMemClkVfOffset is not found")
4809 return (<nvmlReturn_t (*)(nvmlDevice_t, int*) noexcept nogil>__nvmlDeviceGetMemClkVfOffset)(
4810 device, offset)
4813cdef nvmlReturn_t _nvmlDeviceGetMinMaxClockOfPState(nvmlDevice_t device, nvmlClockType_t type, nvmlPstates_t pstate, unsigned int* minClockMHz, unsigned int* maxClockMHz) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4814 global __nvmlDeviceGetMinMaxClockOfPState
4815 _check_or_init_nvml()
4816 if __nvmlDeviceGetMinMaxClockOfPState == NULL:
4817 with gil:
4818 raise FunctionNotFoundError("function nvmlDeviceGetMinMaxClockOfPState is not found")
4819 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlClockType_t, nvmlPstates_t, unsigned int*, unsigned int*) noexcept nogil>__nvmlDeviceGetMinMaxClockOfPState)(
4820 device, type, pstate, minClockMHz, maxClockMHz)
4823cdef nvmlReturn_t _nvmlDeviceGetSupportedPerformanceStates(nvmlDevice_t device, nvmlPstates_t* pstates, unsigned int size) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4824 global __nvmlDeviceGetSupportedPerformanceStates
4825 _check_or_init_nvml()
4826 if __nvmlDeviceGetSupportedPerformanceStates == NULL:
4827 with gil:
4828 raise FunctionNotFoundError("function nvmlDeviceGetSupportedPerformanceStates is not found")
4829 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPstates_t*, unsigned int) noexcept nogil>__nvmlDeviceGetSupportedPerformanceStates)(
4830 device, pstates, size)
4833cdef nvmlReturn_t _nvmlDeviceGetGpcClkMinMaxVfOffset(nvmlDevice_t device, int* minOffset, int* maxOffset) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4834 global __nvmlDeviceGetGpcClkMinMaxVfOffset
4835 _check_or_init_nvml()
4836 if __nvmlDeviceGetGpcClkMinMaxVfOffset == NULL:
4837 with gil:
4838 raise FunctionNotFoundError("function nvmlDeviceGetGpcClkMinMaxVfOffset is not found")
4839 return (<nvmlReturn_t (*)(nvmlDevice_t, int*, int*) noexcept nogil>__nvmlDeviceGetGpcClkMinMaxVfOffset)(
4840 device, minOffset, maxOffset)
4843cdef nvmlReturn_t _nvmlDeviceGetMemClkMinMaxVfOffset(nvmlDevice_t device, int* minOffset, int* maxOffset) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4844 global __nvmlDeviceGetMemClkMinMaxVfOffset
4845 _check_or_init_nvml()
4846 if __nvmlDeviceGetMemClkMinMaxVfOffset == NULL:
4847 with gil:
4848 raise FunctionNotFoundError("function nvmlDeviceGetMemClkMinMaxVfOffset is not found")
4849 return (<nvmlReturn_t (*)(nvmlDevice_t, int*, int*) noexcept nogil>__nvmlDeviceGetMemClkMinMaxVfOffset)(
4850 device, minOffset, maxOffset)
4853cdef nvmlReturn_t _nvmlDeviceGetClockOffsets(nvmlDevice_t device, nvmlClockOffset_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4854 global __nvmlDeviceGetClockOffsets
4855 _check_or_init_nvml()
4856 if __nvmlDeviceGetClockOffsets == NULL:
4857 with gil:
4858 raise FunctionNotFoundError("function nvmlDeviceGetClockOffsets is not found")
4859 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlClockOffset_t*) noexcept nogil>__nvmlDeviceGetClockOffsets)(
4860 device, info)
4863cdef nvmlReturn_t _nvmlDeviceSetClockOffsets(nvmlDevice_t device, nvmlClockOffset_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4864 global __nvmlDeviceSetClockOffsets
4865 _check_or_init_nvml()
4866 if __nvmlDeviceSetClockOffsets == NULL:
4867 with gil:
4868 raise FunctionNotFoundError("function nvmlDeviceSetClockOffsets is not found")
4869 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlClockOffset_t*) noexcept nogil>__nvmlDeviceSetClockOffsets)(
4870 device, info)
4873cdef nvmlReturn_t _nvmlDeviceGetPerformanceModes(nvmlDevice_t device, nvmlDevicePerfModes_t* perfModes) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4874 global __nvmlDeviceGetPerformanceModes
4875 _check_or_init_nvml()
4876 if __nvmlDeviceGetPerformanceModes == NULL:
4877 with gil:
4878 raise FunctionNotFoundError("function nvmlDeviceGetPerformanceModes is not found")
4879 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlDevicePerfModes_t*) noexcept nogil>__nvmlDeviceGetPerformanceModes)(
4880 device, perfModes)
4883cdef nvmlReturn_t _nvmlDeviceGetCurrentClockFreqs(nvmlDevice_t device, nvmlDeviceCurrentClockFreqs_t* currentClockFreqs) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4884 global __nvmlDeviceGetCurrentClockFreqs
4885 _check_or_init_nvml()
4886 if __nvmlDeviceGetCurrentClockFreqs == NULL:
4887 with gil:
4888 raise FunctionNotFoundError("function nvmlDeviceGetCurrentClockFreqs is not found")
4889 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlDeviceCurrentClockFreqs_t*) noexcept nogil>__nvmlDeviceGetCurrentClockFreqs)(
4890 device, currentClockFreqs)
4893cdef nvmlReturn_t _nvmlDeviceGetPowerManagementLimit(nvmlDevice_t device, unsigned int* limit) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4894 global __nvmlDeviceGetPowerManagementLimit
4895 _check_or_init_nvml()
4896 if __nvmlDeviceGetPowerManagementLimit == NULL:
4897 with gil:
4898 raise FunctionNotFoundError("function nvmlDeviceGetPowerManagementLimit is not found")
4899 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetPowerManagementLimit)(
4900 device, limit)
4903cdef nvmlReturn_t _nvmlDeviceGetPowerManagementLimitConstraints(nvmlDevice_t device, unsigned int* minLimit, unsigned int* maxLimit) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4904 global __nvmlDeviceGetPowerManagementLimitConstraints
4905 _check_or_init_nvml()
4906 if __nvmlDeviceGetPowerManagementLimitConstraints == NULL:
4907 with gil:
4908 raise FunctionNotFoundError("function nvmlDeviceGetPowerManagementLimitConstraints is not found")
4909 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, unsigned int*) noexcept nogil>__nvmlDeviceGetPowerManagementLimitConstraints)(
4910 device, minLimit, maxLimit)
4913cdef nvmlReturn_t _nvmlDeviceGetPowerManagementDefaultLimit(nvmlDevice_t device, unsigned int* defaultLimit) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4914 global __nvmlDeviceGetPowerManagementDefaultLimit
4915 _check_or_init_nvml()
4916 if __nvmlDeviceGetPowerManagementDefaultLimit == NULL:
4917 with gil:
4918 raise FunctionNotFoundError("function nvmlDeviceGetPowerManagementDefaultLimit is not found")
4919 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetPowerManagementDefaultLimit)(
4920 device, defaultLimit)
4923cdef nvmlReturn_t _nvmlDeviceGetPowerUsage(nvmlDevice_t device, unsigned int* power) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4924 global __nvmlDeviceGetPowerUsage
4925 _check_or_init_nvml()
4926 if __nvmlDeviceGetPowerUsage == NULL:
4927 with gil:
4928 raise FunctionNotFoundError("function nvmlDeviceGetPowerUsage is not found")
4929 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetPowerUsage)(
4930 device, power)
4933cdef nvmlReturn_t _nvmlDeviceGetTotalEnergyConsumption(nvmlDevice_t device, unsigned long long* energy) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4934 global __nvmlDeviceGetTotalEnergyConsumption
4935 _check_or_init_nvml()
4936 if __nvmlDeviceGetTotalEnergyConsumption == NULL:
4937 with gil:
4938 raise FunctionNotFoundError("function nvmlDeviceGetTotalEnergyConsumption is not found")
4939 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned long long*) noexcept nogil>__nvmlDeviceGetTotalEnergyConsumption)(
4940 device, energy)
4943cdef nvmlReturn_t _nvmlDeviceGetEnforcedPowerLimit(nvmlDevice_t device, unsigned int* limit) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4944 global __nvmlDeviceGetEnforcedPowerLimit
4945 _check_or_init_nvml()
4946 if __nvmlDeviceGetEnforcedPowerLimit == NULL:
4947 with gil:
4948 raise FunctionNotFoundError("function nvmlDeviceGetEnforcedPowerLimit is not found")
4949 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetEnforcedPowerLimit)(
4950 device, limit)
4953cdef nvmlReturn_t _nvmlDeviceGetGpuOperationMode(nvmlDevice_t device, nvmlGpuOperationMode_t* current, nvmlGpuOperationMode_t* pending) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4954 global __nvmlDeviceGetGpuOperationMode
4955 _check_or_init_nvml()
4956 if __nvmlDeviceGetGpuOperationMode == NULL:
4957 with gil:
4958 raise FunctionNotFoundError("function nvmlDeviceGetGpuOperationMode is not found")
4959 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlGpuOperationMode_t*, nvmlGpuOperationMode_t*) noexcept nogil>__nvmlDeviceGetGpuOperationMode)(
4960 device, current, pending)
4963cdef nvmlReturn_t _nvmlDeviceGetMemoryInfo_v2(nvmlDevice_t device, nvmlMemory_v2_t* memory) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4964 global __nvmlDeviceGetMemoryInfo_v2
4965 _check_or_init_nvml()
4966 if __nvmlDeviceGetMemoryInfo_v2 == NULL:
4967 with gil:
4968 raise FunctionNotFoundError("function nvmlDeviceGetMemoryInfo_v2 is not found")
4969 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlMemory_v2_t*) noexcept nogil>__nvmlDeviceGetMemoryInfo_v2)(
4970 device, memory)
4973cdef nvmlReturn_t _nvmlDeviceGetComputeMode(nvmlDevice_t device, nvmlComputeMode_t* mode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4974 global __nvmlDeviceGetComputeMode
4975 _check_or_init_nvml()
4976 if __nvmlDeviceGetComputeMode == NULL:
4977 with gil:
4978 raise FunctionNotFoundError("function nvmlDeviceGetComputeMode is not found")
4979 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlComputeMode_t*) noexcept nogil>__nvmlDeviceGetComputeMode)(
4980 device, mode)
4983cdef nvmlReturn_t _nvmlDeviceGetCudaComputeCapability(nvmlDevice_t device, int* major, int* minor) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4984 global __nvmlDeviceGetCudaComputeCapability
4985 _check_or_init_nvml()
4986 if __nvmlDeviceGetCudaComputeCapability == NULL:
4987 with gil:
4988 raise FunctionNotFoundError("function nvmlDeviceGetCudaComputeCapability is not found")
4989 return (<nvmlReturn_t (*)(nvmlDevice_t, int*, int*) noexcept nogil>__nvmlDeviceGetCudaComputeCapability)(
4990 device, major, minor)
4993cdef nvmlReturn_t _nvmlDeviceGetDramEncryptionMode(nvmlDevice_t device, nvmlDramEncryptionInfo_t* current, nvmlDramEncryptionInfo_t* pending) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
4994 global __nvmlDeviceGetDramEncryptionMode
4995 _check_or_init_nvml()
4996 if __nvmlDeviceGetDramEncryptionMode == NULL:
4997 with gil:
4998 raise FunctionNotFoundError("function nvmlDeviceGetDramEncryptionMode is not found")
4999 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlDramEncryptionInfo_t*, nvmlDramEncryptionInfo_t*) noexcept nogil>__nvmlDeviceGetDramEncryptionMode)(
5000 device, current, pending)
5003cdef nvmlReturn_t _nvmlDeviceSetDramEncryptionMode(nvmlDevice_t device, const nvmlDramEncryptionInfo_t* dramEncryption) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5004 global __nvmlDeviceSetDramEncryptionMode
5005 _check_or_init_nvml()
5006 if __nvmlDeviceSetDramEncryptionMode == NULL:
5007 with gil:
5008 raise FunctionNotFoundError("function nvmlDeviceSetDramEncryptionMode is not found")
5009 return (<nvmlReturn_t (*)(nvmlDevice_t, const nvmlDramEncryptionInfo_t*) noexcept nogil>__nvmlDeviceSetDramEncryptionMode)(
5010 device, dramEncryption)
5013cdef nvmlReturn_t _nvmlDeviceGetEccMode(nvmlDevice_t device, nvmlEnableState_t* current, nvmlEnableState_t* pending) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5014 global __nvmlDeviceGetEccMode
5015 _check_or_init_nvml()
5016 if __nvmlDeviceGetEccMode == NULL:
5017 with gil:
5018 raise FunctionNotFoundError("function nvmlDeviceGetEccMode is not found")
5019 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEnableState_t*, nvmlEnableState_t*) noexcept nogil>__nvmlDeviceGetEccMode)(
5020 device, current, pending)
5023cdef nvmlReturn_t _nvmlDeviceGetDefaultEccMode(nvmlDevice_t device, nvmlEnableState_t* defaultMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5024 global __nvmlDeviceGetDefaultEccMode
5025 _check_or_init_nvml()
5026 if __nvmlDeviceGetDefaultEccMode == NULL:
5027 with gil:
5028 raise FunctionNotFoundError("function nvmlDeviceGetDefaultEccMode is not found")
5029 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEnableState_t*) noexcept nogil>__nvmlDeviceGetDefaultEccMode)(
5030 device, defaultMode)
5033cdef nvmlReturn_t _nvmlDeviceGetBoardId(nvmlDevice_t device, unsigned int* boardId) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5034 global __nvmlDeviceGetBoardId
5035 _check_or_init_nvml()
5036 if __nvmlDeviceGetBoardId == NULL:
5037 with gil:
5038 raise FunctionNotFoundError("function nvmlDeviceGetBoardId is not found")
5039 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetBoardId)(
5040 device, boardId)
5043cdef nvmlReturn_t _nvmlDeviceGetMultiGpuBoard(nvmlDevice_t device, unsigned int* multiGpuBool) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5044 global __nvmlDeviceGetMultiGpuBoard
5045 _check_or_init_nvml()
5046 if __nvmlDeviceGetMultiGpuBoard == NULL:
5047 with gil:
5048 raise FunctionNotFoundError("function nvmlDeviceGetMultiGpuBoard is not found")
5049 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetMultiGpuBoard)(
5050 device, multiGpuBool)
5053cdef nvmlReturn_t _nvmlDeviceGetTotalEccErrors(nvmlDevice_t device, nvmlMemoryErrorType_t errorType, nvmlEccCounterType_t counterType, unsigned long long* eccCounts) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5054 global __nvmlDeviceGetTotalEccErrors
5055 _check_or_init_nvml()
5056 if __nvmlDeviceGetTotalEccErrors == NULL:
5057 with gil:
5058 raise FunctionNotFoundError("function nvmlDeviceGetTotalEccErrors is not found")
5059 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlMemoryErrorType_t, nvmlEccCounterType_t, unsigned long long*) noexcept nogil>__nvmlDeviceGetTotalEccErrors)(
5060 device, errorType, counterType, eccCounts)
5063cdef nvmlReturn_t _nvmlDeviceGetMemoryErrorCounter(nvmlDevice_t device, nvmlMemoryErrorType_t errorType, nvmlEccCounterType_t counterType, nvmlMemoryLocation_t locationType, unsigned long long* count) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5064 global __nvmlDeviceGetMemoryErrorCounter
5065 _check_or_init_nvml()
5066 if __nvmlDeviceGetMemoryErrorCounter == NULL:
5067 with gil:
5068 raise FunctionNotFoundError("function nvmlDeviceGetMemoryErrorCounter is not found")
5069 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlMemoryErrorType_t, nvmlEccCounterType_t, nvmlMemoryLocation_t, unsigned long long*) noexcept nogil>__nvmlDeviceGetMemoryErrorCounter)(
5070 device, errorType, counterType, locationType, count)
5073cdef nvmlReturn_t _nvmlDeviceGetUtilizationRates(nvmlDevice_t device, nvmlUtilization_t* utilization) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5074 global __nvmlDeviceGetUtilizationRates
5075 _check_or_init_nvml()
5076 if __nvmlDeviceGetUtilizationRates == NULL:
5077 with gil:
5078 raise FunctionNotFoundError("function nvmlDeviceGetUtilizationRates is not found")
5079 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlUtilization_t*) noexcept nogil>__nvmlDeviceGetUtilizationRates)(
5080 device, utilization)
5083cdef nvmlReturn_t _nvmlDeviceGetEncoderUtilization(nvmlDevice_t device, unsigned int* utilization, unsigned int* samplingPeriodUs) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5084 global __nvmlDeviceGetEncoderUtilization
5085 _check_or_init_nvml()
5086 if __nvmlDeviceGetEncoderUtilization == NULL:
5087 with gil:
5088 raise FunctionNotFoundError("function nvmlDeviceGetEncoderUtilization is not found")
5089 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, unsigned int*) noexcept nogil>__nvmlDeviceGetEncoderUtilization)(
5090 device, utilization, samplingPeriodUs)
5093cdef nvmlReturn_t _nvmlDeviceGetEncoderCapacity(nvmlDevice_t device, nvmlEncoderType_t encoderQueryType, unsigned int* encoderCapacity) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5094 global __nvmlDeviceGetEncoderCapacity
5095 _check_or_init_nvml()
5096 if __nvmlDeviceGetEncoderCapacity == NULL:
5097 with gil:
5098 raise FunctionNotFoundError("function nvmlDeviceGetEncoderCapacity is not found")
5099 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEncoderType_t, unsigned int*) noexcept nogil>__nvmlDeviceGetEncoderCapacity)(
5100 device, encoderQueryType, encoderCapacity)
5103cdef nvmlReturn_t _nvmlDeviceGetEncoderStats(nvmlDevice_t device, unsigned int* sessionCount, unsigned int* averageFps, unsigned int* averageLatency) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5104 global __nvmlDeviceGetEncoderStats
5105 _check_or_init_nvml()
5106 if __nvmlDeviceGetEncoderStats == NULL:
5107 with gil:
5108 raise FunctionNotFoundError("function nvmlDeviceGetEncoderStats is not found")
5109 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, unsigned int*, unsigned int*) noexcept nogil>__nvmlDeviceGetEncoderStats)(
5110 device, sessionCount, averageFps, averageLatency)
5113cdef nvmlReturn_t _nvmlDeviceGetEncoderSessions(nvmlDevice_t device, unsigned int* sessionCount, nvmlEncoderSessionInfo_t* sessionInfos) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5114 global __nvmlDeviceGetEncoderSessions
5115 _check_or_init_nvml()
5116 if __nvmlDeviceGetEncoderSessions == NULL:
5117 with gil:
5118 raise FunctionNotFoundError("function nvmlDeviceGetEncoderSessions is not found")
5119 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, nvmlEncoderSessionInfo_t*) noexcept nogil>__nvmlDeviceGetEncoderSessions)(
5120 device, sessionCount, sessionInfos)
5123cdef nvmlReturn_t _nvmlDeviceGetDecoderUtilization(nvmlDevice_t device, unsigned int* utilization, unsigned int* samplingPeriodUs) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5124 global __nvmlDeviceGetDecoderUtilization
5125 _check_or_init_nvml()
5126 if __nvmlDeviceGetDecoderUtilization == NULL:
5127 with gil:
5128 raise FunctionNotFoundError("function nvmlDeviceGetDecoderUtilization is not found")
5129 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, unsigned int*) noexcept nogil>__nvmlDeviceGetDecoderUtilization)(
5130 device, utilization, samplingPeriodUs)
5133cdef nvmlReturn_t _nvmlDeviceGetJpgUtilization(nvmlDevice_t device, unsigned int* utilization, unsigned int* samplingPeriodUs) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5134 global __nvmlDeviceGetJpgUtilization
5135 _check_or_init_nvml()
5136 if __nvmlDeviceGetJpgUtilization == NULL:
5137 with gil:
5138 raise FunctionNotFoundError("function nvmlDeviceGetJpgUtilization is not found")
5139 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, unsigned int*) noexcept nogil>__nvmlDeviceGetJpgUtilization)(
5140 device, utilization, samplingPeriodUs)
5143cdef nvmlReturn_t _nvmlDeviceGetOfaUtilization(nvmlDevice_t device, unsigned int* utilization, unsigned int* samplingPeriodUs) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5144 global __nvmlDeviceGetOfaUtilization
5145 _check_or_init_nvml()
5146 if __nvmlDeviceGetOfaUtilization == NULL:
5147 with gil:
5148 raise FunctionNotFoundError("function nvmlDeviceGetOfaUtilization is not found")
5149 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, unsigned int*) noexcept nogil>__nvmlDeviceGetOfaUtilization)(
5150 device, utilization, samplingPeriodUs)
5153cdef nvmlReturn_t _nvmlDeviceGetFBCStats(nvmlDevice_t device, nvmlFBCStats_t* fbcStats) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5154 global __nvmlDeviceGetFBCStats
5155 _check_or_init_nvml()
5156 if __nvmlDeviceGetFBCStats == NULL:
5157 with gil:
5158 raise FunctionNotFoundError("function nvmlDeviceGetFBCStats is not found")
5159 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlFBCStats_t*) noexcept nogil>__nvmlDeviceGetFBCStats)(
5160 device, fbcStats)
5163cdef nvmlReturn_t _nvmlDeviceGetFBCSessions(nvmlDevice_t device, unsigned int* sessionCount, nvmlFBCSessionInfo_t* sessionInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5164 global __nvmlDeviceGetFBCSessions
5165 _check_or_init_nvml()
5166 if __nvmlDeviceGetFBCSessions == NULL:
5167 with gil:
5168 raise FunctionNotFoundError("function nvmlDeviceGetFBCSessions is not found")
5169 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, nvmlFBCSessionInfo_t*) noexcept nogil>__nvmlDeviceGetFBCSessions)(
5170 device, sessionCount, sessionInfo)
5173cdef nvmlReturn_t _nvmlDeviceGetDriverModel_v2(nvmlDevice_t device, nvmlDriverModel_t* current, nvmlDriverModel_t* pending) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5174 global __nvmlDeviceGetDriverModel_v2
5175 _check_or_init_nvml()
5176 if __nvmlDeviceGetDriverModel_v2 == NULL:
5177 with gil:
5178 raise FunctionNotFoundError("function nvmlDeviceGetDriverModel_v2 is not found")
5179 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlDriverModel_t*, nvmlDriverModel_t*) noexcept nogil>__nvmlDeviceGetDriverModel_v2)(
5180 device, current, pending)
5183cdef nvmlReturn_t _nvmlDeviceGetVbiosVersion(nvmlDevice_t device, char* version, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5184 global __nvmlDeviceGetVbiosVersion
5185 _check_or_init_nvml()
5186 if __nvmlDeviceGetVbiosVersion == NULL:
5187 with gil:
5188 raise FunctionNotFoundError("function nvmlDeviceGetVbiosVersion is not found")
5189 return (<nvmlReturn_t (*)(nvmlDevice_t, char*, unsigned int) noexcept nogil>__nvmlDeviceGetVbiosVersion)(
5190 device, version, length)
5193cdef nvmlReturn_t _nvmlDeviceGetBridgeChipInfo(nvmlDevice_t device, nvmlBridgeChipHierarchy_t* bridgeHierarchy) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5194 global __nvmlDeviceGetBridgeChipInfo
5195 _check_or_init_nvml()
5196 if __nvmlDeviceGetBridgeChipInfo == NULL:
5197 with gil:
5198 raise FunctionNotFoundError("function nvmlDeviceGetBridgeChipInfo is not found")
5199 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlBridgeChipHierarchy_t*) noexcept nogil>__nvmlDeviceGetBridgeChipInfo)(
5200 device, bridgeHierarchy)
5203cdef nvmlReturn_t _nvmlDeviceGetComputeRunningProcesses_v3(nvmlDevice_t device, unsigned int* infoCount, nvmlProcessInfo_t* infos) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5204 global __nvmlDeviceGetComputeRunningProcesses_v3
5205 _check_or_init_nvml()
5206 if __nvmlDeviceGetComputeRunningProcesses_v3 == NULL:
5207 with gil:
5208 raise FunctionNotFoundError("function nvmlDeviceGetComputeRunningProcesses_v3 is not found")
5209 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, nvmlProcessInfo_t*) noexcept nogil>__nvmlDeviceGetComputeRunningProcesses_v3)(
5210 device, infoCount, infos)
5213cdef nvmlReturn_t _nvmlDeviceGetMPSComputeRunningProcesses_v3(nvmlDevice_t device, unsigned int* infoCount, nvmlProcessInfo_t* infos) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5214 global __nvmlDeviceGetMPSComputeRunningProcesses_v3
5215 _check_or_init_nvml()
5216 if __nvmlDeviceGetMPSComputeRunningProcesses_v3 == NULL:
5217 with gil:
5218 raise FunctionNotFoundError("function nvmlDeviceGetMPSComputeRunningProcesses_v3 is not found")
5219 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, nvmlProcessInfo_t*) noexcept nogil>__nvmlDeviceGetMPSComputeRunningProcesses_v3)(
5220 device, infoCount, infos)
5223cdef nvmlReturn_t _nvmlDeviceGetRunningProcessDetailList(nvmlDevice_t device, nvmlProcessDetailList_t* plist) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5224 global __nvmlDeviceGetRunningProcessDetailList
5225 _check_or_init_nvml()
5226 if __nvmlDeviceGetRunningProcessDetailList == NULL:
5227 with gil:
5228 raise FunctionNotFoundError("function nvmlDeviceGetRunningProcessDetailList is not found")
5229 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlProcessDetailList_t*) noexcept nogil>__nvmlDeviceGetRunningProcessDetailList)(
5230 device, plist)
5233cdef nvmlReturn_t _nvmlDeviceOnSameBoard(nvmlDevice_t device1, nvmlDevice_t device2, int* onSameBoard) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5234 global __nvmlDeviceOnSameBoard
5235 _check_or_init_nvml()
5236 if __nvmlDeviceOnSameBoard == NULL:
5237 with gil:
5238 raise FunctionNotFoundError("function nvmlDeviceOnSameBoard is not found")
5239 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlDevice_t, int*) noexcept nogil>__nvmlDeviceOnSameBoard)(
5240 device1, device2, onSameBoard)
5243cdef nvmlReturn_t _nvmlDeviceGetAPIRestriction(nvmlDevice_t device, nvmlRestrictedAPI_t apiType, nvmlEnableState_t* isRestricted) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5244 global __nvmlDeviceGetAPIRestriction
5245 _check_or_init_nvml()
5246 if __nvmlDeviceGetAPIRestriction == NULL:
5247 with gil:
5248 raise FunctionNotFoundError("function nvmlDeviceGetAPIRestriction is not found")
5249 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlRestrictedAPI_t, nvmlEnableState_t*) noexcept nogil>__nvmlDeviceGetAPIRestriction)(
5250 device, apiType, isRestricted)
5253cdef nvmlReturn_t _nvmlDeviceGetSamples(nvmlDevice_t device, nvmlSamplingType_t type, unsigned long long lastSeenTimeStamp, nvmlValueType_t* sampleValType, unsigned int* sampleCount, nvmlSample_t* samples) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5254 global __nvmlDeviceGetSamples
5255 _check_or_init_nvml()
5256 if __nvmlDeviceGetSamples == NULL:
5257 with gil:
5258 raise FunctionNotFoundError("function nvmlDeviceGetSamples is not found")
5259 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlSamplingType_t, unsigned long long, nvmlValueType_t*, unsigned int*, nvmlSample_t*) noexcept nogil>__nvmlDeviceGetSamples)(
5260 device, type, lastSeenTimeStamp, sampleValType, sampleCount, samples)
5263cdef nvmlReturn_t _nvmlDeviceGetBAR1MemoryInfo(nvmlDevice_t device, nvmlBAR1Memory_t* bar1Memory) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5264 global __nvmlDeviceGetBAR1MemoryInfo
5265 _check_or_init_nvml()
5266 if __nvmlDeviceGetBAR1MemoryInfo == NULL:
5267 with gil:
5268 raise FunctionNotFoundError("function nvmlDeviceGetBAR1MemoryInfo is not found")
5269 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlBAR1Memory_t*) noexcept nogil>__nvmlDeviceGetBAR1MemoryInfo)(
5270 device, bar1Memory)
5273cdef nvmlReturn_t _nvmlDeviceGetIrqNum(nvmlDevice_t device, unsigned int* irqNum) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5274 global __nvmlDeviceGetIrqNum
5275 _check_or_init_nvml()
5276 if __nvmlDeviceGetIrqNum == NULL:
5277 with gil:
5278 raise FunctionNotFoundError("function nvmlDeviceGetIrqNum is not found")
5279 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetIrqNum)(
5280 device, irqNum)
5283cdef nvmlReturn_t _nvmlDeviceGetNumGpuCores(nvmlDevice_t device, unsigned int* numCores) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5284 global __nvmlDeviceGetNumGpuCores
5285 _check_or_init_nvml()
5286 if __nvmlDeviceGetNumGpuCores == NULL:
5287 with gil:
5288 raise FunctionNotFoundError("function nvmlDeviceGetNumGpuCores is not found")
5289 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetNumGpuCores)(
5290 device, numCores)
5293cdef nvmlReturn_t _nvmlDeviceGetPowerSource(nvmlDevice_t device, nvmlPowerSource_t* powerSource) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5294 global __nvmlDeviceGetPowerSource
5295 _check_or_init_nvml()
5296 if __nvmlDeviceGetPowerSource == NULL:
5297 with gil:
5298 raise FunctionNotFoundError("function nvmlDeviceGetPowerSource is not found")
5299 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPowerSource_t*) noexcept nogil>__nvmlDeviceGetPowerSource)(
5300 device, powerSource)
5303cdef nvmlReturn_t _nvmlDeviceGetMemoryBusWidth(nvmlDevice_t device, unsigned int* busWidth) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5304 global __nvmlDeviceGetMemoryBusWidth
5305 _check_or_init_nvml()
5306 if __nvmlDeviceGetMemoryBusWidth == NULL:
5307 with gil:
5308 raise FunctionNotFoundError("function nvmlDeviceGetMemoryBusWidth is not found")
5309 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetMemoryBusWidth)(
5310 device, busWidth)
5313cdef nvmlReturn_t _nvmlDeviceGetPcieLinkMaxSpeed(nvmlDevice_t device, unsigned int* maxSpeed) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5314 global __nvmlDeviceGetPcieLinkMaxSpeed
5315 _check_or_init_nvml()
5316 if __nvmlDeviceGetPcieLinkMaxSpeed == NULL:
5317 with gil:
5318 raise FunctionNotFoundError("function nvmlDeviceGetPcieLinkMaxSpeed is not found")
5319 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetPcieLinkMaxSpeed)(
5320 device, maxSpeed)
5323cdef nvmlReturn_t _nvmlDeviceGetPcieSpeed(nvmlDevice_t device, unsigned int* pcieSpeed) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5324 global __nvmlDeviceGetPcieSpeed
5325 _check_or_init_nvml()
5326 if __nvmlDeviceGetPcieSpeed == NULL:
5327 with gil:
5328 raise FunctionNotFoundError("function nvmlDeviceGetPcieSpeed is not found")
5329 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetPcieSpeed)(
5330 device, pcieSpeed)
5333cdef nvmlReturn_t _nvmlDeviceGetAdaptiveClockInfoStatus(nvmlDevice_t device, unsigned int* adaptiveClockStatus) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5334 global __nvmlDeviceGetAdaptiveClockInfoStatus
5335 _check_or_init_nvml()
5336 if __nvmlDeviceGetAdaptiveClockInfoStatus == NULL:
5337 with gil:
5338 raise FunctionNotFoundError("function nvmlDeviceGetAdaptiveClockInfoStatus is not found")
5339 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetAdaptiveClockInfoStatus)(
5340 device, adaptiveClockStatus)
5343cdef nvmlReturn_t _nvmlDeviceGetBusType(nvmlDevice_t device, nvmlBusType_t* type) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5344 global __nvmlDeviceGetBusType
5345 _check_or_init_nvml()
5346 if __nvmlDeviceGetBusType == NULL:
5347 with gil:
5348 raise FunctionNotFoundError("function nvmlDeviceGetBusType is not found")
5349 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlBusType_t*) noexcept nogil>__nvmlDeviceGetBusType)(
5350 device, type)
5353cdef nvmlReturn_t _nvmlDeviceGetGpuFabricInfoV(nvmlDevice_t device, nvmlGpuFabricInfoV_t* gpuFabricInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5354 global __nvmlDeviceGetGpuFabricInfoV
5355 _check_or_init_nvml()
5356 if __nvmlDeviceGetGpuFabricInfoV == NULL:
5357 with gil:
5358 raise FunctionNotFoundError("function nvmlDeviceGetGpuFabricInfoV is not found")
5359 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlGpuFabricInfoV_t*) noexcept nogil>__nvmlDeviceGetGpuFabricInfoV)(
5360 device, gpuFabricInfo)
5363cdef nvmlReturn_t _nvmlSystemGetConfComputeCapabilities(nvmlConfComputeSystemCaps_t* capabilities) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5364 global __nvmlSystemGetConfComputeCapabilities
5365 _check_or_init_nvml()
5366 if __nvmlSystemGetConfComputeCapabilities == NULL:
5367 with gil:
5368 raise FunctionNotFoundError("function nvmlSystemGetConfComputeCapabilities is not found")
5369 return (<nvmlReturn_t (*)(nvmlConfComputeSystemCaps_t*) noexcept nogil>__nvmlSystemGetConfComputeCapabilities)(
5370 capabilities)
5373cdef nvmlReturn_t _nvmlSystemGetConfComputeState(nvmlConfComputeSystemState_t* state) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5374 global __nvmlSystemGetConfComputeState
5375 _check_or_init_nvml()
5376 if __nvmlSystemGetConfComputeState == NULL:
5377 with gil:
5378 raise FunctionNotFoundError("function nvmlSystemGetConfComputeState is not found")
5379 return (<nvmlReturn_t (*)(nvmlConfComputeSystemState_t*) noexcept nogil>__nvmlSystemGetConfComputeState)(
5380 state)
5383cdef nvmlReturn_t _nvmlDeviceGetConfComputeMemSizeInfo(nvmlDevice_t device, nvmlConfComputeMemSizeInfo_t* memInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5384 global __nvmlDeviceGetConfComputeMemSizeInfo
5385 _check_or_init_nvml()
5386 if __nvmlDeviceGetConfComputeMemSizeInfo == NULL:
5387 with gil:
5388 raise FunctionNotFoundError("function nvmlDeviceGetConfComputeMemSizeInfo is not found")
5389 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlConfComputeMemSizeInfo_t*) noexcept nogil>__nvmlDeviceGetConfComputeMemSizeInfo)(
5390 device, memInfo)
5393cdef nvmlReturn_t _nvmlSystemGetConfComputeGpusReadyState(unsigned int* isAcceptingWork) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5394 global __nvmlSystemGetConfComputeGpusReadyState
5395 _check_or_init_nvml()
5396 if __nvmlSystemGetConfComputeGpusReadyState == NULL:
5397 with gil:
5398 raise FunctionNotFoundError("function nvmlSystemGetConfComputeGpusReadyState is not found")
5399 return (<nvmlReturn_t (*)(unsigned int*) noexcept nogil>__nvmlSystemGetConfComputeGpusReadyState)(
5400 isAcceptingWork)
5403cdef nvmlReturn_t _nvmlDeviceGetConfComputeProtectedMemoryUsage(nvmlDevice_t device, nvmlMemory_t* memory) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5404 global __nvmlDeviceGetConfComputeProtectedMemoryUsage
5405 _check_or_init_nvml()
5406 if __nvmlDeviceGetConfComputeProtectedMemoryUsage == NULL:
5407 with gil:
5408 raise FunctionNotFoundError("function nvmlDeviceGetConfComputeProtectedMemoryUsage is not found")
5409 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlMemory_t*) noexcept nogil>__nvmlDeviceGetConfComputeProtectedMemoryUsage)(
5410 device, memory)
5413cdef nvmlReturn_t _nvmlDeviceGetConfComputeGpuCertificate(nvmlDevice_t device, nvmlConfComputeGpuCertificate_t* gpuCert) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5414 global __nvmlDeviceGetConfComputeGpuCertificate
5415 _check_or_init_nvml()
5416 if __nvmlDeviceGetConfComputeGpuCertificate == NULL:
5417 with gil:
5418 raise FunctionNotFoundError("function nvmlDeviceGetConfComputeGpuCertificate is not found")
5419 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlConfComputeGpuCertificate_t*) noexcept nogil>__nvmlDeviceGetConfComputeGpuCertificate)(
5420 device, gpuCert)
5423cdef nvmlReturn_t _nvmlDeviceGetConfComputeGpuAttestationReport(nvmlDevice_t device, nvmlConfComputeGpuAttestationReport_t* gpuAtstReport) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5424 global __nvmlDeviceGetConfComputeGpuAttestationReport
5425 _check_or_init_nvml()
5426 if __nvmlDeviceGetConfComputeGpuAttestationReport == NULL:
5427 with gil:
5428 raise FunctionNotFoundError("function nvmlDeviceGetConfComputeGpuAttestationReport is not found")
5429 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlConfComputeGpuAttestationReport_t*) noexcept nogil>__nvmlDeviceGetConfComputeGpuAttestationReport)(
5430 device, gpuAtstReport)
5433cdef nvmlReturn_t _nvmlSystemGetConfComputeKeyRotationThresholdInfo(nvmlConfComputeGetKeyRotationThresholdInfo_t* pKeyRotationThrInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5434 global __nvmlSystemGetConfComputeKeyRotationThresholdInfo
5435 _check_or_init_nvml()
5436 if __nvmlSystemGetConfComputeKeyRotationThresholdInfo == NULL:
5437 with gil:
5438 raise FunctionNotFoundError("function nvmlSystemGetConfComputeKeyRotationThresholdInfo is not found")
5439 return (<nvmlReturn_t (*)(nvmlConfComputeGetKeyRotationThresholdInfo_t*) noexcept nogil>__nvmlSystemGetConfComputeKeyRotationThresholdInfo)(
5440 pKeyRotationThrInfo)
5443cdef nvmlReturn_t _nvmlDeviceSetConfComputeUnprotectedMemSize(nvmlDevice_t device, unsigned long long sizeKiB) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5444 global __nvmlDeviceSetConfComputeUnprotectedMemSize
5445 _check_or_init_nvml()
5446 if __nvmlDeviceSetConfComputeUnprotectedMemSize == NULL:
5447 with gil:
5448 raise FunctionNotFoundError("function nvmlDeviceSetConfComputeUnprotectedMemSize is not found")
5449 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned long long) noexcept nogil>__nvmlDeviceSetConfComputeUnprotectedMemSize)(
5450 device, sizeKiB)
5453cdef nvmlReturn_t _nvmlSystemSetConfComputeGpusReadyState(unsigned int isAcceptingWork) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5454 global __nvmlSystemSetConfComputeGpusReadyState
5455 _check_or_init_nvml()
5456 if __nvmlSystemSetConfComputeGpusReadyState == NULL:
5457 with gil:
5458 raise FunctionNotFoundError("function nvmlSystemSetConfComputeGpusReadyState is not found")
5459 return (<nvmlReturn_t (*)(unsigned int) noexcept nogil>__nvmlSystemSetConfComputeGpusReadyState)(
5460 isAcceptingWork)
5463cdef nvmlReturn_t _nvmlSystemSetConfComputeKeyRotationThresholdInfo(nvmlConfComputeSetKeyRotationThresholdInfo_t* pKeyRotationThrInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5464 global __nvmlSystemSetConfComputeKeyRotationThresholdInfo
5465 _check_or_init_nvml()
5466 if __nvmlSystemSetConfComputeKeyRotationThresholdInfo == NULL:
5467 with gil:
5468 raise FunctionNotFoundError("function nvmlSystemSetConfComputeKeyRotationThresholdInfo is not found")
5469 return (<nvmlReturn_t (*)(nvmlConfComputeSetKeyRotationThresholdInfo_t*) noexcept nogil>__nvmlSystemSetConfComputeKeyRotationThresholdInfo)(
5470 pKeyRotationThrInfo)
5473cdef nvmlReturn_t _nvmlSystemGetConfComputeSettings(nvmlSystemConfComputeSettings_t* settings) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5474 global __nvmlSystemGetConfComputeSettings
5475 _check_or_init_nvml()
5476 if __nvmlSystemGetConfComputeSettings == NULL:
5477 with gil:
5478 raise FunctionNotFoundError("function nvmlSystemGetConfComputeSettings is not found")
5479 return (<nvmlReturn_t (*)(nvmlSystemConfComputeSettings_t*) noexcept nogil>__nvmlSystemGetConfComputeSettings)(
5480 settings)
5483cdef nvmlReturn_t _nvmlDeviceGetGspFirmwareVersion(nvmlDevice_t device, char* version) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5484 global __nvmlDeviceGetGspFirmwareVersion
5485 _check_or_init_nvml()
5486 if __nvmlDeviceGetGspFirmwareVersion == NULL:
5487 with gil:
5488 raise FunctionNotFoundError("function nvmlDeviceGetGspFirmwareVersion is not found")
5489 return (<nvmlReturn_t (*)(nvmlDevice_t, char*) noexcept nogil>__nvmlDeviceGetGspFirmwareVersion)(
5490 device, version)
5493cdef nvmlReturn_t _nvmlDeviceGetGspFirmwareMode(nvmlDevice_t device, unsigned int* isEnabled, unsigned int* defaultMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5494 global __nvmlDeviceGetGspFirmwareMode
5495 _check_or_init_nvml()
5496 if __nvmlDeviceGetGspFirmwareMode == NULL:
5497 with gil:
5498 raise FunctionNotFoundError("function nvmlDeviceGetGspFirmwareMode is not found")
5499 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, unsigned int*) noexcept nogil>__nvmlDeviceGetGspFirmwareMode)(
5500 device, isEnabled, defaultMode)
5503cdef 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)
5513cdef nvmlReturn_t _nvmlDeviceGetAccountingMode(nvmlDevice_t device, nvmlEnableState_t* mode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5514 global __nvmlDeviceGetAccountingMode
5515 _check_or_init_nvml()
5516 if __nvmlDeviceGetAccountingMode == NULL:
5517 with gil:
5518 raise FunctionNotFoundError("function nvmlDeviceGetAccountingMode is not found")
5519 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEnableState_t*) noexcept nogil>__nvmlDeviceGetAccountingMode)(
5520 device, mode)
5523cdef nvmlReturn_t _nvmlDeviceGetAccountingStats(nvmlDevice_t device, unsigned int pid, nvmlAccountingStats_t* stats) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5524 global __nvmlDeviceGetAccountingStats
5525 _check_or_init_nvml()
5526 if __nvmlDeviceGetAccountingStats == NULL:
5527 with gil:
5528 raise FunctionNotFoundError("function nvmlDeviceGetAccountingStats is not found")
5529 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlAccountingStats_t*) noexcept nogil>__nvmlDeviceGetAccountingStats)(
5530 device, pid, stats)
5533cdef nvmlReturn_t _nvmlDeviceGetAccountingPids(nvmlDevice_t device, unsigned int* count, unsigned int* pids) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5534 global __nvmlDeviceGetAccountingPids
5535 _check_or_init_nvml()
5536 if __nvmlDeviceGetAccountingPids == NULL:
5537 with gil:
5538 raise FunctionNotFoundError("function nvmlDeviceGetAccountingPids is not found")
5539 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, unsigned int*) noexcept nogil>__nvmlDeviceGetAccountingPids)(
5540 device, count, pids)
5543cdef nvmlReturn_t _nvmlDeviceGetAccountingBufferSize(nvmlDevice_t device, unsigned int* bufferSize) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5544 global __nvmlDeviceGetAccountingBufferSize
5545 _check_or_init_nvml()
5546 if __nvmlDeviceGetAccountingBufferSize == NULL:
5547 with gil:
5548 raise FunctionNotFoundError("function nvmlDeviceGetAccountingBufferSize is not found")
5549 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetAccountingBufferSize)(
5550 device, bufferSize)
5553cdef nvmlReturn_t _nvmlDeviceGetRetiredPages(nvmlDevice_t device, nvmlPageRetirementCause_t cause, unsigned int* pageCount, unsigned long long* addresses) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5554 global __nvmlDeviceGetRetiredPages
5555 _check_or_init_nvml()
5556 if __nvmlDeviceGetRetiredPages == NULL:
5557 with gil:
5558 raise FunctionNotFoundError("function nvmlDeviceGetRetiredPages is not found")
5559 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPageRetirementCause_t, unsigned int*, unsigned long long*) noexcept nogil>__nvmlDeviceGetRetiredPages)(
5560 device, cause, pageCount, addresses)
5563cdef nvmlReturn_t _nvmlDeviceGetRetiredPages_v2(nvmlDevice_t device, nvmlPageRetirementCause_t cause, unsigned int* pageCount, unsigned long long* addresses, unsigned long long* timestamps) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5564 global __nvmlDeviceGetRetiredPages_v2
5565 _check_or_init_nvml()
5566 if __nvmlDeviceGetRetiredPages_v2 == NULL:
5567 with gil:
5568 raise FunctionNotFoundError("function nvmlDeviceGetRetiredPages_v2 is not found")
5569 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPageRetirementCause_t, unsigned int*, unsigned long long*, unsigned long long*) noexcept nogil>__nvmlDeviceGetRetiredPages_v2)(
5570 device, cause, pageCount, addresses, timestamps)
5573cdef nvmlReturn_t _nvmlDeviceGetRetiredPagesPendingStatus(nvmlDevice_t device, nvmlEnableState_t* isPending) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5574 global __nvmlDeviceGetRetiredPagesPendingStatus
5575 _check_or_init_nvml()
5576 if __nvmlDeviceGetRetiredPagesPendingStatus == NULL:
5577 with gil:
5578 raise FunctionNotFoundError("function nvmlDeviceGetRetiredPagesPendingStatus is not found")
5579 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEnableState_t*) noexcept nogil>__nvmlDeviceGetRetiredPagesPendingStatus)(
5580 device, isPending)
5583cdef nvmlReturn_t _nvmlDeviceGetRemappedRows(nvmlDevice_t device, unsigned int* corrRows, unsigned int* uncRows, unsigned int* isPending, unsigned int* failureOccurred) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5584 global __nvmlDeviceGetRemappedRows
5585 _check_or_init_nvml()
5586 if __nvmlDeviceGetRemappedRows == NULL:
5587 with gil:
5588 raise FunctionNotFoundError("function nvmlDeviceGetRemappedRows is not found")
5589 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, unsigned int*, unsigned int*, unsigned int*) noexcept nogil>__nvmlDeviceGetRemappedRows)(
5590 device, corrRows, uncRows, isPending, failureOccurred)
5593cdef nvmlReturn_t _nvmlDeviceGetRowRemapperHistogram(nvmlDevice_t device, nvmlRowRemapperHistogramValues_t* values) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5594 global __nvmlDeviceGetRowRemapperHistogram
5595 _check_or_init_nvml()
5596 if __nvmlDeviceGetRowRemapperHistogram == NULL:
5597 with gil:
5598 raise FunctionNotFoundError("function nvmlDeviceGetRowRemapperHistogram is not found")
5599 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlRowRemapperHistogramValues_t*) noexcept nogil>__nvmlDeviceGetRowRemapperHistogram)(
5600 device, values)
5603cdef nvmlReturn_t _nvmlDeviceGetArchitecture(nvmlDevice_t device, nvmlDeviceArchitecture_t* arch) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5604 global __nvmlDeviceGetArchitecture
5605 _check_or_init_nvml()
5606 if __nvmlDeviceGetArchitecture == NULL:
5607 with gil:
5608 raise FunctionNotFoundError("function nvmlDeviceGetArchitecture is not found")
5609 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlDeviceArchitecture_t*) noexcept nogil>__nvmlDeviceGetArchitecture)(
5610 device, arch)
5613cdef nvmlReturn_t _nvmlDeviceGetClkMonStatus(nvmlDevice_t device, nvmlClkMonStatus_t* status) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5614 global __nvmlDeviceGetClkMonStatus
5615 _check_or_init_nvml()
5616 if __nvmlDeviceGetClkMonStatus == NULL:
5617 with gil:
5618 raise FunctionNotFoundError("function nvmlDeviceGetClkMonStatus is not found")
5619 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlClkMonStatus_t*) noexcept nogil>__nvmlDeviceGetClkMonStatus)(
5620 device, status)
5623cdef nvmlReturn_t _nvmlDeviceGetProcessUtilization(nvmlDevice_t device, nvmlProcessUtilizationSample_t* utilization, unsigned int* processSamplesCount, unsigned long long lastSeenTimeStamp) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5624 global __nvmlDeviceGetProcessUtilization
5625 _check_or_init_nvml()
5626 if __nvmlDeviceGetProcessUtilization == NULL:
5627 with gil:
5628 raise FunctionNotFoundError("function nvmlDeviceGetProcessUtilization is not found")
5629 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlProcessUtilizationSample_t*, unsigned int*, unsigned long long) noexcept nogil>__nvmlDeviceGetProcessUtilization)(
5630 device, utilization, processSamplesCount, lastSeenTimeStamp)
5633cdef nvmlReturn_t _nvmlDeviceGetProcessesUtilizationInfo(nvmlDevice_t device, nvmlProcessesUtilizationInfo_t* procesesUtilInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5634 global __nvmlDeviceGetProcessesUtilizationInfo
5635 _check_or_init_nvml()
5636 if __nvmlDeviceGetProcessesUtilizationInfo == NULL:
5637 with gil:
5638 raise FunctionNotFoundError("function nvmlDeviceGetProcessesUtilizationInfo is not found")
5639 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlProcessesUtilizationInfo_t*) noexcept nogil>__nvmlDeviceGetProcessesUtilizationInfo)(
5640 device, procesesUtilInfo)
5643cdef nvmlReturn_t _nvmlDeviceGetPlatformInfo(nvmlDevice_t device, nvmlPlatformInfo_t* platformInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5644 global __nvmlDeviceGetPlatformInfo
5645 _check_or_init_nvml()
5646 if __nvmlDeviceGetPlatformInfo == NULL:
5647 with gil:
5648 raise FunctionNotFoundError("function nvmlDeviceGetPlatformInfo is not found")
5649 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPlatformInfo_t*) noexcept nogil>__nvmlDeviceGetPlatformInfo)(
5650 device, platformInfo)
5653cdef nvmlReturn_t _nvmlUnitSetLedState(nvmlUnit_t unit, nvmlLedColor_t color) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5654 global __nvmlUnitSetLedState
5655 _check_or_init_nvml()
5656 if __nvmlUnitSetLedState == NULL:
5657 with gil:
5658 raise FunctionNotFoundError("function nvmlUnitSetLedState is not found")
5659 return (<nvmlReturn_t (*)(nvmlUnit_t, nvmlLedColor_t) noexcept nogil>__nvmlUnitSetLedState)(
5660 unit, color)
5663cdef nvmlReturn_t _nvmlDeviceSetPersistenceMode(nvmlDevice_t device, nvmlEnableState_t mode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5664 global __nvmlDeviceSetPersistenceMode
5665 _check_or_init_nvml()
5666 if __nvmlDeviceSetPersistenceMode == NULL:
5667 with gil:
5668 raise FunctionNotFoundError("function nvmlDeviceSetPersistenceMode is not found")
5669 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEnableState_t) noexcept nogil>__nvmlDeviceSetPersistenceMode)(
5670 device, mode)
5673cdef nvmlReturn_t _nvmlDeviceSetComputeMode(nvmlDevice_t device, nvmlComputeMode_t mode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5674 global __nvmlDeviceSetComputeMode
5675 _check_or_init_nvml()
5676 if __nvmlDeviceSetComputeMode == NULL:
5677 with gil:
5678 raise FunctionNotFoundError("function nvmlDeviceSetComputeMode is not found")
5679 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlComputeMode_t) noexcept nogil>__nvmlDeviceSetComputeMode)(
5680 device, mode)
5683cdef nvmlReturn_t _nvmlDeviceSetEccMode(nvmlDevice_t device, nvmlEnableState_t ecc) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5684 global __nvmlDeviceSetEccMode
5685 _check_or_init_nvml()
5686 if __nvmlDeviceSetEccMode == NULL:
5687 with gil:
5688 raise FunctionNotFoundError("function nvmlDeviceSetEccMode is not found")
5689 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEnableState_t) noexcept nogil>__nvmlDeviceSetEccMode)(
5690 device, ecc)
5693cdef nvmlReturn_t _nvmlDeviceClearEccErrorCounts(nvmlDevice_t device, nvmlEccCounterType_t counterType) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5694 global __nvmlDeviceClearEccErrorCounts
5695 _check_or_init_nvml()
5696 if __nvmlDeviceClearEccErrorCounts == NULL:
5697 with gil:
5698 raise FunctionNotFoundError("function nvmlDeviceClearEccErrorCounts is not found")
5699 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEccCounterType_t) noexcept nogil>__nvmlDeviceClearEccErrorCounts)(
5700 device, counterType)
5703cdef nvmlReturn_t _nvmlDeviceSetDriverModel(nvmlDevice_t device, nvmlDriverModel_t driverModel, unsigned int flags) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5704 global __nvmlDeviceSetDriverModel
5705 _check_or_init_nvml()
5706 if __nvmlDeviceSetDriverModel == NULL:
5707 with gil:
5708 raise FunctionNotFoundError("function nvmlDeviceSetDriverModel is not found")
5709 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlDriverModel_t, unsigned int) noexcept nogil>__nvmlDeviceSetDriverModel)(
5710 device, driverModel, flags)
5713cdef nvmlReturn_t _nvmlDeviceSetGpuLockedClocks(nvmlDevice_t device, unsigned int minGpuClockMHz, unsigned int maxGpuClockMHz) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5714 global __nvmlDeviceSetGpuLockedClocks
5715 _check_or_init_nvml()
5716 if __nvmlDeviceSetGpuLockedClocks == NULL:
5717 with gil:
5718 raise FunctionNotFoundError("function nvmlDeviceSetGpuLockedClocks is not found")
5719 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, unsigned int) noexcept nogil>__nvmlDeviceSetGpuLockedClocks)(
5720 device, minGpuClockMHz, maxGpuClockMHz)
5723cdef nvmlReturn_t _nvmlDeviceResetGpuLockedClocks(nvmlDevice_t device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5724 global __nvmlDeviceResetGpuLockedClocks
5725 _check_or_init_nvml()
5726 if __nvmlDeviceResetGpuLockedClocks == NULL:
5727 with gil:
5728 raise FunctionNotFoundError("function nvmlDeviceResetGpuLockedClocks is not found")
5729 return (<nvmlReturn_t (*)(nvmlDevice_t) noexcept nogil>__nvmlDeviceResetGpuLockedClocks)(
5730 device)
5733cdef nvmlReturn_t _nvmlDeviceSetMemoryLockedClocks(nvmlDevice_t device, unsigned int minMemClockMHz, unsigned int maxMemClockMHz) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5734 global __nvmlDeviceSetMemoryLockedClocks
5735 _check_or_init_nvml()
5736 if __nvmlDeviceSetMemoryLockedClocks == NULL:
5737 with gil:
5738 raise FunctionNotFoundError("function nvmlDeviceSetMemoryLockedClocks is not found")
5739 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, unsigned int) noexcept nogil>__nvmlDeviceSetMemoryLockedClocks)(
5740 device, minMemClockMHz, maxMemClockMHz)
5743cdef nvmlReturn_t _nvmlDeviceResetMemoryLockedClocks(nvmlDevice_t device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5744 global __nvmlDeviceResetMemoryLockedClocks
5745 _check_or_init_nvml()
5746 if __nvmlDeviceResetMemoryLockedClocks == NULL:
5747 with gil:
5748 raise FunctionNotFoundError("function nvmlDeviceResetMemoryLockedClocks is not found")
5749 return (<nvmlReturn_t (*)(nvmlDevice_t) noexcept nogil>__nvmlDeviceResetMemoryLockedClocks)(
5750 device)
5753cdef nvmlReturn_t _nvmlDeviceSetAutoBoostedClocksEnabled(nvmlDevice_t device, nvmlEnableState_t enabled) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5754 global __nvmlDeviceSetAutoBoostedClocksEnabled
5755 _check_or_init_nvml()
5756 if __nvmlDeviceSetAutoBoostedClocksEnabled == NULL:
5757 with gil:
5758 raise FunctionNotFoundError("function nvmlDeviceSetAutoBoostedClocksEnabled is not found")
5759 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEnableState_t) noexcept nogil>__nvmlDeviceSetAutoBoostedClocksEnabled)(
5760 device, enabled)
5763cdef nvmlReturn_t _nvmlDeviceSetDefaultAutoBoostedClocksEnabled(nvmlDevice_t device, nvmlEnableState_t enabled, unsigned int flags) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5764 global __nvmlDeviceSetDefaultAutoBoostedClocksEnabled
5765 _check_or_init_nvml()
5766 if __nvmlDeviceSetDefaultAutoBoostedClocksEnabled == NULL:
5767 with gil:
5768 raise FunctionNotFoundError("function nvmlDeviceSetDefaultAutoBoostedClocksEnabled is not found")
5769 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEnableState_t, unsigned int) noexcept nogil>__nvmlDeviceSetDefaultAutoBoostedClocksEnabled)(
5770 device, enabled, flags)
5773cdef nvmlReturn_t _nvmlDeviceSetDefaultFanSpeed_v2(nvmlDevice_t device, unsigned int fan) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5774 global __nvmlDeviceSetDefaultFanSpeed_v2
5775 _check_or_init_nvml()
5776 if __nvmlDeviceSetDefaultFanSpeed_v2 == NULL:
5777 with gil:
5778 raise FunctionNotFoundError("function nvmlDeviceSetDefaultFanSpeed_v2 is not found")
5779 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int) noexcept nogil>__nvmlDeviceSetDefaultFanSpeed_v2)(
5780 device, fan)
5783cdef nvmlReturn_t _nvmlDeviceSetFanControlPolicy(nvmlDevice_t device, unsigned int fan, nvmlFanControlPolicy_t policy) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5784 global __nvmlDeviceSetFanControlPolicy
5785 _check_or_init_nvml()
5786 if __nvmlDeviceSetFanControlPolicy == NULL:
5787 with gil:
5788 raise FunctionNotFoundError("function nvmlDeviceSetFanControlPolicy is not found")
5789 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlFanControlPolicy_t) noexcept nogil>__nvmlDeviceSetFanControlPolicy)(
5790 device, fan, policy)
5793cdef nvmlReturn_t _nvmlDeviceSetTemperatureThreshold(nvmlDevice_t device, nvmlTemperatureThresholds_t thresholdType, int* temp) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5794 global __nvmlDeviceSetTemperatureThreshold
5795 _check_or_init_nvml()
5796 if __nvmlDeviceSetTemperatureThreshold == NULL:
5797 with gil:
5798 raise FunctionNotFoundError("function nvmlDeviceSetTemperatureThreshold is not found")
5799 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlTemperatureThresholds_t, int*) noexcept nogil>__nvmlDeviceSetTemperatureThreshold)(
5800 device, thresholdType, temp)
5803cdef nvmlReturn_t _nvmlDeviceSetPowerManagementLimit(nvmlDevice_t device, unsigned int limit) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5804 global __nvmlDeviceSetPowerManagementLimit
5805 _check_or_init_nvml()
5806 if __nvmlDeviceSetPowerManagementLimit == NULL:
5807 with gil:
5808 raise FunctionNotFoundError("function nvmlDeviceSetPowerManagementLimit is not found")
5809 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int) noexcept nogil>__nvmlDeviceSetPowerManagementLimit)(
5810 device, limit)
5813cdef nvmlReturn_t _nvmlDeviceSetGpuOperationMode(nvmlDevice_t device, nvmlGpuOperationMode_t mode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5814 global __nvmlDeviceSetGpuOperationMode
5815 _check_or_init_nvml()
5816 if __nvmlDeviceSetGpuOperationMode == NULL:
5817 with gil:
5818 raise FunctionNotFoundError("function nvmlDeviceSetGpuOperationMode is not found")
5819 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlGpuOperationMode_t) noexcept nogil>__nvmlDeviceSetGpuOperationMode)(
5820 device, mode)
5823cdef nvmlReturn_t _nvmlDeviceSetAPIRestriction(nvmlDevice_t device, nvmlRestrictedAPI_t apiType, nvmlEnableState_t isRestricted) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5824 global __nvmlDeviceSetAPIRestriction
5825 _check_or_init_nvml()
5826 if __nvmlDeviceSetAPIRestriction == NULL:
5827 with gil:
5828 raise FunctionNotFoundError("function nvmlDeviceSetAPIRestriction is not found")
5829 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlRestrictedAPI_t, nvmlEnableState_t) noexcept nogil>__nvmlDeviceSetAPIRestriction)(
5830 device, apiType, isRestricted)
5833cdef nvmlReturn_t _nvmlDeviceSetFanSpeed_v2(nvmlDevice_t device, unsigned int fan, unsigned int speed) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5834 global __nvmlDeviceSetFanSpeed_v2
5835 _check_or_init_nvml()
5836 if __nvmlDeviceSetFanSpeed_v2 == NULL:
5837 with gil:
5838 raise FunctionNotFoundError("function nvmlDeviceSetFanSpeed_v2 is not found")
5839 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, unsigned int) noexcept nogil>__nvmlDeviceSetFanSpeed_v2)(
5840 device, fan, speed)
5843cdef nvmlReturn_t _nvmlDeviceSetAccountingMode(nvmlDevice_t device, nvmlEnableState_t mode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5844 global __nvmlDeviceSetAccountingMode
5845 _check_or_init_nvml()
5846 if __nvmlDeviceSetAccountingMode == NULL:
5847 with gil:
5848 raise FunctionNotFoundError("function nvmlDeviceSetAccountingMode is not found")
5849 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEnableState_t) noexcept nogil>__nvmlDeviceSetAccountingMode)(
5850 device, mode)
5853cdef nvmlReturn_t _nvmlDeviceClearAccountingPids(nvmlDevice_t device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5854 global __nvmlDeviceClearAccountingPids
5855 _check_or_init_nvml()
5856 if __nvmlDeviceClearAccountingPids == NULL:
5857 with gil:
5858 raise FunctionNotFoundError("function nvmlDeviceClearAccountingPids is not found")
5859 return (<nvmlReturn_t (*)(nvmlDevice_t) noexcept nogil>__nvmlDeviceClearAccountingPids)(
5860 device)
5863cdef nvmlReturn_t _nvmlDeviceSetPowerManagementLimit_v2(nvmlDevice_t device, nvmlPowerValue_v2_t* powerValue) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5864 global __nvmlDeviceSetPowerManagementLimit_v2
5865 _check_or_init_nvml()
5866 if __nvmlDeviceSetPowerManagementLimit_v2 == NULL:
5867 with gil:
5868 raise FunctionNotFoundError("function nvmlDeviceSetPowerManagementLimit_v2 is not found")
5869 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPowerValue_v2_t*) noexcept nogil>__nvmlDeviceSetPowerManagementLimit_v2)(
5870 device, powerValue)
5873cdef nvmlReturn_t _nvmlDeviceGetNvLinkState(nvmlDevice_t device, unsigned int link, nvmlEnableState_t* isActive) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5874 global __nvmlDeviceGetNvLinkState
5875 _check_or_init_nvml()
5876 if __nvmlDeviceGetNvLinkState == NULL:
5877 with gil:
5878 raise FunctionNotFoundError("function nvmlDeviceGetNvLinkState is not found")
5879 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlEnableState_t*) noexcept nogil>__nvmlDeviceGetNvLinkState)(
5880 device, link, isActive)
5883cdef nvmlReturn_t _nvmlDeviceGetNvLinkVersion(nvmlDevice_t device, unsigned int link, unsigned int* version) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5884 global __nvmlDeviceGetNvLinkVersion
5885 _check_or_init_nvml()
5886 if __nvmlDeviceGetNvLinkVersion == NULL:
5887 with gil:
5888 raise FunctionNotFoundError("function nvmlDeviceGetNvLinkVersion is not found")
5889 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, unsigned int*) noexcept nogil>__nvmlDeviceGetNvLinkVersion)(
5890 device, link, version)
5893cdef nvmlReturn_t _nvmlDeviceGetNvLinkCapability(nvmlDevice_t device, unsigned int link, nvmlNvLinkCapability_t capability, unsigned int* capResult) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5894 global __nvmlDeviceGetNvLinkCapability
5895 _check_or_init_nvml()
5896 if __nvmlDeviceGetNvLinkCapability == NULL:
5897 with gil:
5898 raise FunctionNotFoundError("function nvmlDeviceGetNvLinkCapability is not found")
5899 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlNvLinkCapability_t, unsigned int*) noexcept nogil>__nvmlDeviceGetNvLinkCapability)(
5900 device, link, capability, capResult)
5903cdef nvmlReturn_t _nvmlDeviceGetNvLinkRemotePciInfo_v2(nvmlDevice_t device, unsigned int link, nvmlPciInfo_t* pci) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5904 global __nvmlDeviceGetNvLinkRemotePciInfo_v2
5905 _check_or_init_nvml()
5906 if __nvmlDeviceGetNvLinkRemotePciInfo_v2 == NULL:
5907 with gil:
5908 raise FunctionNotFoundError("function nvmlDeviceGetNvLinkRemotePciInfo_v2 is not found")
5909 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlPciInfo_t*) noexcept nogil>__nvmlDeviceGetNvLinkRemotePciInfo_v2)(
5910 device, link, pci)
5913cdef nvmlReturn_t _nvmlDeviceGetNvLinkErrorCounter(nvmlDevice_t device, unsigned int link, nvmlNvLinkErrorCounter_t counter, unsigned long long* counterValue) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5914 global __nvmlDeviceGetNvLinkErrorCounter
5915 _check_or_init_nvml()
5916 if __nvmlDeviceGetNvLinkErrorCounter == NULL:
5917 with gil:
5918 raise FunctionNotFoundError("function nvmlDeviceGetNvLinkErrorCounter is not found")
5919 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlNvLinkErrorCounter_t, unsigned long long*) noexcept nogil>__nvmlDeviceGetNvLinkErrorCounter)(
5920 device, link, counter, counterValue)
5923cdef nvmlReturn_t _nvmlDeviceResetNvLinkErrorCounters(nvmlDevice_t device, unsigned int link) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5924 global __nvmlDeviceResetNvLinkErrorCounters
5925 _check_or_init_nvml()
5926 if __nvmlDeviceResetNvLinkErrorCounters == NULL:
5927 with gil:
5928 raise FunctionNotFoundError("function nvmlDeviceResetNvLinkErrorCounters is not found")
5929 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int) noexcept nogil>__nvmlDeviceResetNvLinkErrorCounters)(
5930 device, link)
5933cdef nvmlReturn_t _nvmlDeviceGetNvLinkRemoteDeviceType(nvmlDevice_t device, unsigned int link, nvmlIntNvLinkDeviceType_t* pNvLinkDeviceType) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5934 global __nvmlDeviceGetNvLinkRemoteDeviceType
5935 _check_or_init_nvml()
5936 if __nvmlDeviceGetNvLinkRemoteDeviceType == NULL:
5937 with gil:
5938 raise FunctionNotFoundError("function nvmlDeviceGetNvLinkRemoteDeviceType is not found")
5939 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlIntNvLinkDeviceType_t*) noexcept nogil>__nvmlDeviceGetNvLinkRemoteDeviceType)(
5940 device, link, pNvLinkDeviceType)
5943cdef nvmlReturn_t _nvmlDeviceSetNvLinkDeviceLowPowerThreshold(nvmlDevice_t device, nvmlNvLinkPowerThres_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5944 global __nvmlDeviceSetNvLinkDeviceLowPowerThreshold
5945 _check_or_init_nvml()
5946 if __nvmlDeviceSetNvLinkDeviceLowPowerThreshold == NULL:
5947 with gil:
5948 raise FunctionNotFoundError("function nvmlDeviceSetNvLinkDeviceLowPowerThreshold is not found")
5949 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlNvLinkPowerThres_t*) noexcept nogil>__nvmlDeviceSetNvLinkDeviceLowPowerThreshold)(
5950 device, info)
5953cdef nvmlReturn_t _nvmlSystemSetNvlinkBwMode(unsigned int nvlinkBwMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5954 global __nvmlSystemSetNvlinkBwMode
5955 _check_or_init_nvml()
5956 if __nvmlSystemSetNvlinkBwMode == NULL:
5957 with gil:
5958 raise FunctionNotFoundError("function nvmlSystemSetNvlinkBwMode is not found")
5959 return (<nvmlReturn_t (*)(unsigned int) noexcept nogil>__nvmlSystemSetNvlinkBwMode)(
5960 nvlinkBwMode)
5963cdef nvmlReturn_t _nvmlSystemGetNvlinkBwMode(unsigned int* nvlinkBwMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5964 global __nvmlSystemGetNvlinkBwMode
5965 _check_or_init_nvml()
5966 if __nvmlSystemGetNvlinkBwMode == NULL:
5967 with gil:
5968 raise FunctionNotFoundError("function nvmlSystemGetNvlinkBwMode is not found")
5969 return (<nvmlReturn_t (*)(unsigned int*) noexcept nogil>__nvmlSystemGetNvlinkBwMode)(
5970 nvlinkBwMode)
5973cdef nvmlReturn_t _nvmlDeviceGetNvlinkSupportedBwModes(nvmlDevice_t device, nvmlNvlinkSupportedBwModes_t* supportedBwMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5974 global __nvmlDeviceGetNvlinkSupportedBwModes
5975 _check_or_init_nvml()
5976 if __nvmlDeviceGetNvlinkSupportedBwModes == NULL:
5977 with gil:
5978 raise FunctionNotFoundError("function nvmlDeviceGetNvlinkSupportedBwModes is not found")
5979 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlNvlinkSupportedBwModes_t*) noexcept nogil>__nvmlDeviceGetNvlinkSupportedBwModes)(
5980 device, supportedBwMode)
5983cdef nvmlReturn_t _nvmlDeviceGetNvlinkBwMode(nvmlDevice_t device, nvmlNvlinkGetBwMode_t* getBwMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5984 global __nvmlDeviceGetNvlinkBwMode
5985 _check_or_init_nvml()
5986 if __nvmlDeviceGetNvlinkBwMode == NULL:
5987 with gil:
5988 raise FunctionNotFoundError("function nvmlDeviceGetNvlinkBwMode is not found")
5989 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlNvlinkGetBwMode_t*) noexcept nogil>__nvmlDeviceGetNvlinkBwMode)(
5990 device, getBwMode)
5993cdef nvmlReturn_t _nvmlDeviceSetNvlinkBwMode(nvmlDevice_t device, nvmlNvlinkSetBwMode_t* setBwMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
5994 global __nvmlDeviceSetNvlinkBwMode
5995 _check_or_init_nvml()
5996 if __nvmlDeviceSetNvlinkBwMode == NULL:
5997 with gil:
5998 raise FunctionNotFoundError("function nvmlDeviceSetNvlinkBwMode is not found")
5999 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlNvlinkSetBwMode_t*) noexcept nogil>__nvmlDeviceSetNvlinkBwMode)(
6000 device, setBwMode)
6003cdef nvmlReturn_t _nvmlEventSetCreate(nvmlEventSet_t* set) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6004 global __nvmlEventSetCreate
6005 _check_or_init_nvml()
6006 if __nvmlEventSetCreate == NULL:
6007 with gil:
6008 raise FunctionNotFoundError("function nvmlEventSetCreate is not found")
6009 return (<nvmlReturn_t (*)(nvmlEventSet_t*) noexcept nogil>__nvmlEventSetCreate)(
6010 set)
6013cdef nvmlReturn_t _nvmlDeviceRegisterEvents(nvmlDevice_t device, unsigned long long eventTypes, nvmlEventSet_t set) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6014 global __nvmlDeviceRegisterEvents
6015 _check_or_init_nvml()
6016 if __nvmlDeviceRegisterEvents == NULL:
6017 with gil:
6018 raise FunctionNotFoundError("function nvmlDeviceRegisterEvents is not found")
6019 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned long long, nvmlEventSet_t) noexcept nogil>__nvmlDeviceRegisterEvents)(
6020 device, eventTypes, set)
6023cdef nvmlReturn_t _nvmlDeviceGetSupportedEventTypes(nvmlDevice_t device, unsigned long long* eventTypes) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6024 global __nvmlDeviceGetSupportedEventTypes
6025 _check_or_init_nvml()
6026 if __nvmlDeviceGetSupportedEventTypes == NULL:
6027 with gil:
6028 raise FunctionNotFoundError("function nvmlDeviceGetSupportedEventTypes is not found")
6029 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned long long*) noexcept nogil>__nvmlDeviceGetSupportedEventTypes)(
6030 device, eventTypes)
6033cdef nvmlReturn_t _nvmlEventSetWait_v2(nvmlEventSet_t set, nvmlEventData_t* data, unsigned int timeoutms) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6034 global __nvmlEventSetWait_v2
6035 _check_or_init_nvml()
6036 if __nvmlEventSetWait_v2 == NULL:
6037 with gil:
6038 raise FunctionNotFoundError("function nvmlEventSetWait_v2 is not found")
6039 return (<nvmlReturn_t (*)(nvmlEventSet_t, nvmlEventData_t*, unsigned int) noexcept nogil>__nvmlEventSetWait_v2)(
6040 set, data, timeoutms)
6043cdef nvmlReturn_t _nvmlEventSetFree(nvmlEventSet_t set) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6044 global __nvmlEventSetFree
6045 _check_or_init_nvml()
6046 if __nvmlEventSetFree == NULL:
6047 with gil:
6048 raise FunctionNotFoundError("function nvmlEventSetFree is not found")
6049 return (<nvmlReturn_t (*)(nvmlEventSet_t) noexcept nogil>__nvmlEventSetFree)(
6050 set)
6053cdef nvmlReturn_t _nvmlSystemEventSetCreate(nvmlSystemEventSetCreateRequest_t* request) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6054 global __nvmlSystemEventSetCreate
6055 _check_or_init_nvml()
6056 if __nvmlSystemEventSetCreate == NULL:
6057 with gil:
6058 raise FunctionNotFoundError("function nvmlSystemEventSetCreate is not found")
6059 return (<nvmlReturn_t (*)(nvmlSystemEventSetCreateRequest_t*) noexcept nogil>__nvmlSystemEventSetCreate)(
6060 request)
6063cdef nvmlReturn_t _nvmlSystemEventSetFree(nvmlSystemEventSetFreeRequest_t* request) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6064 global __nvmlSystemEventSetFree
6065 _check_or_init_nvml()
6066 if __nvmlSystemEventSetFree == NULL:
6067 with gil:
6068 raise FunctionNotFoundError("function nvmlSystemEventSetFree is not found")
6069 return (<nvmlReturn_t (*)(nvmlSystemEventSetFreeRequest_t*) noexcept nogil>__nvmlSystemEventSetFree)(
6070 request)
6073cdef nvmlReturn_t _nvmlSystemRegisterEvents(nvmlSystemRegisterEventRequest_t* request) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6074 global __nvmlSystemRegisterEvents
6075 _check_or_init_nvml()
6076 if __nvmlSystemRegisterEvents == NULL:
6077 with gil:
6078 raise FunctionNotFoundError("function nvmlSystemRegisterEvents is not found")
6079 return (<nvmlReturn_t (*)(nvmlSystemRegisterEventRequest_t*) noexcept nogil>__nvmlSystemRegisterEvents)(
6080 request)
6083cdef nvmlReturn_t _nvmlSystemEventSetWait(nvmlSystemEventSetWaitRequest_t* request) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6084 global __nvmlSystemEventSetWait
6085 _check_or_init_nvml()
6086 if __nvmlSystemEventSetWait == NULL:
6087 with gil:
6088 raise FunctionNotFoundError("function nvmlSystemEventSetWait is not found")
6089 return (<nvmlReturn_t (*)(nvmlSystemEventSetWaitRequest_t*) noexcept nogil>__nvmlSystemEventSetWait)(
6090 request)
6093cdef nvmlReturn_t _nvmlDeviceModifyDrainState(nvmlPciInfo_t* pciInfo, nvmlEnableState_t newState) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6094 global __nvmlDeviceModifyDrainState
6095 _check_or_init_nvml()
6096 if __nvmlDeviceModifyDrainState == NULL:
6097 with gil:
6098 raise FunctionNotFoundError("function nvmlDeviceModifyDrainState is not found")
6099 return (<nvmlReturn_t (*)(nvmlPciInfo_t*, nvmlEnableState_t) noexcept nogil>__nvmlDeviceModifyDrainState)(
6100 pciInfo, newState)
6103cdef nvmlReturn_t _nvmlDeviceQueryDrainState(nvmlPciInfo_t* pciInfo, nvmlEnableState_t* currentState) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6104 global __nvmlDeviceQueryDrainState
6105 _check_or_init_nvml()
6106 if __nvmlDeviceQueryDrainState == NULL:
6107 with gil:
6108 raise FunctionNotFoundError("function nvmlDeviceQueryDrainState is not found")
6109 return (<nvmlReturn_t (*)(nvmlPciInfo_t*, nvmlEnableState_t*) noexcept nogil>__nvmlDeviceQueryDrainState)(
6110 pciInfo, currentState)
6113cdef nvmlReturn_t _nvmlDeviceRemoveGpu_v2(nvmlPciInfo_t* pciInfo, nvmlDetachGpuState_t gpuState, nvmlPcieLinkState_t linkState) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6114 global __nvmlDeviceRemoveGpu_v2
6115 _check_or_init_nvml()
6116 if __nvmlDeviceRemoveGpu_v2 == NULL:
6117 with gil:
6118 raise FunctionNotFoundError("function nvmlDeviceRemoveGpu_v2 is not found")
6119 return (<nvmlReturn_t (*)(nvmlPciInfo_t*, nvmlDetachGpuState_t, nvmlPcieLinkState_t) noexcept nogil>__nvmlDeviceRemoveGpu_v2)(
6120 pciInfo, gpuState, linkState)
6123cdef nvmlReturn_t _nvmlDeviceDiscoverGpus(nvmlPciInfo_t* pciInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6124 global __nvmlDeviceDiscoverGpus
6125 _check_or_init_nvml()
6126 if __nvmlDeviceDiscoverGpus == NULL:
6127 with gil:
6128 raise FunctionNotFoundError("function nvmlDeviceDiscoverGpus is not found")
6129 return (<nvmlReturn_t (*)(nvmlPciInfo_t*) noexcept nogil>__nvmlDeviceDiscoverGpus)(
6130 pciInfo)
6133cdef nvmlReturn_t _nvmlDeviceGetFieldValues(nvmlDevice_t device, int valuesCount, nvmlFieldValue_t* values) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6134 global __nvmlDeviceGetFieldValues
6135 _check_or_init_nvml()
6136 if __nvmlDeviceGetFieldValues == NULL:
6137 with gil:
6138 raise FunctionNotFoundError("function nvmlDeviceGetFieldValues is not found")
6139 return (<nvmlReturn_t (*)(nvmlDevice_t, int, nvmlFieldValue_t*) noexcept nogil>__nvmlDeviceGetFieldValues)(
6140 device, valuesCount, values)
6143cdef nvmlReturn_t _nvmlDeviceClearFieldValues(nvmlDevice_t device, int valuesCount, nvmlFieldValue_t* values) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6144 global __nvmlDeviceClearFieldValues
6145 _check_or_init_nvml()
6146 if __nvmlDeviceClearFieldValues == NULL:
6147 with gil:
6148 raise FunctionNotFoundError("function nvmlDeviceClearFieldValues is not found")
6149 return (<nvmlReturn_t (*)(nvmlDevice_t, int, nvmlFieldValue_t*) noexcept nogil>__nvmlDeviceClearFieldValues)(
6150 device, valuesCount, values)
6153cdef nvmlReturn_t _nvmlDeviceGetVirtualizationMode(nvmlDevice_t device, nvmlGpuVirtualizationMode_t* pVirtualMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6154 global __nvmlDeviceGetVirtualizationMode
6155 _check_or_init_nvml()
6156 if __nvmlDeviceGetVirtualizationMode == NULL:
6157 with gil:
6158 raise FunctionNotFoundError("function nvmlDeviceGetVirtualizationMode is not found")
6159 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlGpuVirtualizationMode_t*) noexcept nogil>__nvmlDeviceGetVirtualizationMode)(
6160 device, pVirtualMode)
6163cdef nvmlReturn_t _nvmlDeviceGetHostVgpuMode(nvmlDevice_t device, nvmlHostVgpuMode_t* pHostVgpuMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6164 global __nvmlDeviceGetHostVgpuMode
6165 _check_or_init_nvml()
6166 if __nvmlDeviceGetHostVgpuMode == NULL:
6167 with gil:
6168 raise FunctionNotFoundError("function nvmlDeviceGetHostVgpuMode is not found")
6169 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlHostVgpuMode_t*) noexcept nogil>__nvmlDeviceGetHostVgpuMode)(
6170 device, pHostVgpuMode)
6173cdef nvmlReturn_t _nvmlDeviceSetVirtualizationMode(nvmlDevice_t device, nvmlGpuVirtualizationMode_t virtualMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6174 global __nvmlDeviceSetVirtualizationMode
6175 _check_or_init_nvml()
6176 if __nvmlDeviceSetVirtualizationMode == NULL:
6177 with gil:
6178 raise FunctionNotFoundError("function nvmlDeviceSetVirtualizationMode is not found")
6179 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlGpuVirtualizationMode_t) noexcept nogil>__nvmlDeviceSetVirtualizationMode)(
6180 device, virtualMode)
6183cdef nvmlReturn_t _nvmlDeviceGetVgpuHeterogeneousMode(nvmlDevice_t device, nvmlVgpuHeterogeneousMode_t* pHeterogeneousMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6184 global __nvmlDeviceGetVgpuHeterogeneousMode
6185 _check_or_init_nvml()
6186 if __nvmlDeviceGetVgpuHeterogeneousMode == NULL:
6187 with gil:
6188 raise FunctionNotFoundError("function nvmlDeviceGetVgpuHeterogeneousMode is not found")
6189 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlVgpuHeterogeneousMode_t*) noexcept nogil>__nvmlDeviceGetVgpuHeterogeneousMode)(
6190 device, pHeterogeneousMode)
6193cdef nvmlReturn_t _nvmlDeviceSetVgpuHeterogeneousMode(nvmlDevice_t device, const nvmlVgpuHeterogeneousMode_t* pHeterogeneousMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6194 global __nvmlDeviceSetVgpuHeterogeneousMode
6195 _check_or_init_nvml()
6196 if __nvmlDeviceSetVgpuHeterogeneousMode == NULL:
6197 with gil:
6198 raise FunctionNotFoundError("function nvmlDeviceSetVgpuHeterogeneousMode is not found")
6199 return (<nvmlReturn_t (*)(nvmlDevice_t, const nvmlVgpuHeterogeneousMode_t*) noexcept nogil>__nvmlDeviceSetVgpuHeterogeneousMode)(
6200 device, pHeterogeneousMode)
6203cdef nvmlReturn_t _nvmlVgpuInstanceGetPlacementId(nvmlVgpuInstance_t vgpuInstance, nvmlVgpuPlacementId_t* pPlacement) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6204 global __nvmlVgpuInstanceGetPlacementId
6205 _check_or_init_nvml()
6206 if __nvmlVgpuInstanceGetPlacementId == NULL:
6207 with gil:
6208 raise FunctionNotFoundError("function nvmlVgpuInstanceGetPlacementId is not found")
6209 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, nvmlVgpuPlacementId_t*) noexcept nogil>__nvmlVgpuInstanceGetPlacementId)(
6210 vgpuInstance, pPlacement)
6213cdef nvmlReturn_t _nvmlDeviceGetVgpuTypeSupportedPlacements(nvmlDevice_t device, nvmlVgpuTypeId_t vgpuTypeId, nvmlVgpuPlacementList_t* pPlacementList) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6214 global __nvmlDeviceGetVgpuTypeSupportedPlacements
6215 _check_or_init_nvml()
6216 if __nvmlDeviceGetVgpuTypeSupportedPlacements == NULL:
6217 with gil:
6218 raise FunctionNotFoundError("function nvmlDeviceGetVgpuTypeSupportedPlacements is not found")
6219 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlVgpuTypeId_t, nvmlVgpuPlacementList_t*) noexcept nogil>__nvmlDeviceGetVgpuTypeSupportedPlacements)(
6220 device, vgpuTypeId, pPlacementList)
6223cdef nvmlReturn_t _nvmlDeviceGetVgpuTypeCreatablePlacements(nvmlDevice_t device, nvmlVgpuTypeId_t vgpuTypeId, nvmlVgpuPlacementList_t* pPlacementList) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6224 global __nvmlDeviceGetVgpuTypeCreatablePlacements
6225 _check_or_init_nvml()
6226 if __nvmlDeviceGetVgpuTypeCreatablePlacements == NULL:
6227 with gil:
6228 raise FunctionNotFoundError("function nvmlDeviceGetVgpuTypeCreatablePlacements is not found")
6229 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlVgpuTypeId_t, nvmlVgpuPlacementList_t*) noexcept nogil>__nvmlDeviceGetVgpuTypeCreatablePlacements)(
6230 device, vgpuTypeId, pPlacementList)
6233cdef nvmlReturn_t _nvmlVgpuTypeGetGspHeapSize(nvmlVgpuTypeId_t vgpuTypeId, unsigned long long* gspHeapSize) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6234 global __nvmlVgpuTypeGetGspHeapSize
6235 _check_or_init_nvml()
6236 if __nvmlVgpuTypeGetGspHeapSize == NULL:
6237 with gil:
6238 raise FunctionNotFoundError("function nvmlVgpuTypeGetGspHeapSize is not found")
6239 return (<nvmlReturn_t (*)(nvmlVgpuTypeId_t, unsigned long long*) noexcept nogil>__nvmlVgpuTypeGetGspHeapSize)(
6240 vgpuTypeId, gspHeapSize)
6243cdef nvmlReturn_t _nvmlVgpuTypeGetFbReservation(nvmlVgpuTypeId_t vgpuTypeId, unsigned long long* fbReservation) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6244 global __nvmlVgpuTypeGetFbReservation
6245 _check_or_init_nvml()
6246 if __nvmlVgpuTypeGetFbReservation == NULL:
6247 with gil:
6248 raise FunctionNotFoundError("function nvmlVgpuTypeGetFbReservation is not found")
6249 return (<nvmlReturn_t (*)(nvmlVgpuTypeId_t, unsigned long long*) noexcept nogil>__nvmlVgpuTypeGetFbReservation)(
6250 vgpuTypeId, fbReservation)
6253cdef nvmlReturn_t _nvmlVgpuInstanceGetRuntimeStateSize(nvmlVgpuInstance_t vgpuInstance, nvmlVgpuRuntimeState_t* pState) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6254 global __nvmlVgpuInstanceGetRuntimeStateSize
6255 _check_or_init_nvml()
6256 if __nvmlVgpuInstanceGetRuntimeStateSize == NULL:
6257 with gil:
6258 raise FunctionNotFoundError("function nvmlVgpuInstanceGetRuntimeStateSize is not found")
6259 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, nvmlVgpuRuntimeState_t*) noexcept nogil>__nvmlVgpuInstanceGetRuntimeStateSize)(
6260 vgpuInstance, pState)
6263cdef nvmlReturn_t _nvmlDeviceSetVgpuCapabilities(nvmlDevice_t device, nvmlDeviceVgpuCapability_t capability, nvmlEnableState_t state) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6264 global __nvmlDeviceSetVgpuCapabilities
6265 _check_or_init_nvml()
6266 if __nvmlDeviceSetVgpuCapabilities == NULL:
6267 with gil:
6268 raise FunctionNotFoundError("function nvmlDeviceSetVgpuCapabilities is not found")
6269 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlDeviceVgpuCapability_t, nvmlEnableState_t) noexcept nogil>__nvmlDeviceSetVgpuCapabilities)(
6270 device, capability, state)
6273cdef nvmlReturn_t _nvmlDeviceGetGridLicensableFeatures_v4(nvmlDevice_t device, nvmlGridLicensableFeatures_t* pGridLicensableFeatures) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6274 global __nvmlDeviceGetGridLicensableFeatures_v4
6275 _check_or_init_nvml()
6276 if __nvmlDeviceGetGridLicensableFeatures_v4 == NULL:
6277 with gil:
6278 raise FunctionNotFoundError("function nvmlDeviceGetGridLicensableFeatures_v4 is not found")
6279 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlGridLicensableFeatures_t*) noexcept nogil>__nvmlDeviceGetGridLicensableFeatures_v4)(
6280 device, pGridLicensableFeatures)
6283cdef nvmlReturn_t _nvmlGetVgpuDriverCapabilities(nvmlVgpuDriverCapability_t capability, unsigned int* capResult) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6284 global __nvmlGetVgpuDriverCapabilities
6285 _check_or_init_nvml()
6286 if __nvmlGetVgpuDriverCapabilities == NULL:
6287 with gil:
6288 raise FunctionNotFoundError("function nvmlGetVgpuDriverCapabilities is not found")
6289 return (<nvmlReturn_t (*)(nvmlVgpuDriverCapability_t, unsigned int*) noexcept nogil>__nvmlGetVgpuDriverCapabilities)(
6290 capability, capResult)
6293cdef nvmlReturn_t _nvmlDeviceGetVgpuCapabilities(nvmlDevice_t device, nvmlDeviceVgpuCapability_t capability, unsigned int* capResult) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6294 global __nvmlDeviceGetVgpuCapabilities
6295 _check_or_init_nvml()
6296 if __nvmlDeviceGetVgpuCapabilities == NULL:
6297 with gil:
6298 raise FunctionNotFoundError("function nvmlDeviceGetVgpuCapabilities is not found")
6299 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlDeviceVgpuCapability_t, unsigned int*) noexcept nogil>__nvmlDeviceGetVgpuCapabilities)(
6300 device, capability, capResult)
6303cdef nvmlReturn_t _nvmlDeviceGetSupportedVgpus(nvmlDevice_t device, unsigned int* vgpuCount, nvmlVgpuTypeId_t* vgpuTypeIds) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6304 global __nvmlDeviceGetSupportedVgpus
6305 _check_or_init_nvml()
6306 if __nvmlDeviceGetSupportedVgpus == NULL:
6307 with gil:
6308 raise FunctionNotFoundError("function nvmlDeviceGetSupportedVgpus is not found")
6309 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, nvmlVgpuTypeId_t*) noexcept nogil>__nvmlDeviceGetSupportedVgpus)(
6310 device, vgpuCount, vgpuTypeIds)
6313cdef nvmlReturn_t _nvmlDeviceGetCreatableVgpus(nvmlDevice_t device, unsigned int* vgpuCount, nvmlVgpuTypeId_t* vgpuTypeIds) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6314 global __nvmlDeviceGetCreatableVgpus
6315 _check_or_init_nvml()
6316 if __nvmlDeviceGetCreatableVgpus == NULL:
6317 with gil:
6318 raise FunctionNotFoundError("function nvmlDeviceGetCreatableVgpus is not found")
6319 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, nvmlVgpuTypeId_t*) noexcept nogil>__nvmlDeviceGetCreatableVgpus)(
6320 device, vgpuCount, vgpuTypeIds)
6323cdef nvmlReturn_t _nvmlVgpuTypeGetClass(nvmlVgpuTypeId_t vgpuTypeId, char* vgpuTypeClass, unsigned int* size) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6324 global __nvmlVgpuTypeGetClass
6325 _check_or_init_nvml()
6326 if __nvmlVgpuTypeGetClass == NULL:
6327 with gil:
6328 raise FunctionNotFoundError("function nvmlVgpuTypeGetClass is not found")
6329 return (<nvmlReturn_t (*)(nvmlVgpuTypeId_t, char*, unsigned int*) noexcept nogil>__nvmlVgpuTypeGetClass)(
6330 vgpuTypeId, vgpuTypeClass, size)
6333cdef nvmlReturn_t _nvmlVgpuTypeGetName(nvmlVgpuTypeId_t vgpuTypeId, char* vgpuTypeName, unsigned int* size) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6334 global __nvmlVgpuTypeGetName
6335 _check_or_init_nvml()
6336 if __nvmlVgpuTypeGetName == NULL:
6337 with gil:
6338 raise FunctionNotFoundError("function nvmlVgpuTypeGetName is not found")
6339 return (<nvmlReturn_t (*)(nvmlVgpuTypeId_t, char*, unsigned int*) noexcept nogil>__nvmlVgpuTypeGetName)(
6340 vgpuTypeId, vgpuTypeName, size)
6343cdef nvmlReturn_t _nvmlVgpuTypeGetGpuInstanceProfileId(nvmlVgpuTypeId_t vgpuTypeId, unsigned int* gpuInstanceProfileId) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6344 global __nvmlVgpuTypeGetGpuInstanceProfileId
6345 _check_or_init_nvml()
6346 if __nvmlVgpuTypeGetGpuInstanceProfileId == NULL:
6347 with gil:
6348 raise FunctionNotFoundError("function nvmlVgpuTypeGetGpuInstanceProfileId is not found")
6349 return (<nvmlReturn_t (*)(nvmlVgpuTypeId_t, unsigned int*) noexcept nogil>__nvmlVgpuTypeGetGpuInstanceProfileId)(
6350 vgpuTypeId, gpuInstanceProfileId)
6353cdef nvmlReturn_t _nvmlVgpuTypeGetDeviceID(nvmlVgpuTypeId_t vgpuTypeId, unsigned long long* deviceID, unsigned long long* subsystemID) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6354 global __nvmlVgpuTypeGetDeviceID
6355 _check_or_init_nvml()
6356 if __nvmlVgpuTypeGetDeviceID == NULL:
6357 with gil:
6358 raise FunctionNotFoundError("function nvmlVgpuTypeGetDeviceID is not found")
6359 return (<nvmlReturn_t (*)(nvmlVgpuTypeId_t, unsigned long long*, unsigned long long*) noexcept nogil>__nvmlVgpuTypeGetDeviceID)(
6360 vgpuTypeId, deviceID, subsystemID)
6363cdef nvmlReturn_t _nvmlVgpuTypeGetFramebufferSize(nvmlVgpuTypeId_t vgpuTypeId, unsigned long long* fbSize) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6364 global __nvmlVgpuTypeGetFramebufferSize
6365 _check_or_init_nvml()
6366 if __nvmlVgpuTypeGetFramebufferSize == NULL:
6367 with gil:
6368 raise FunctionNotFoundError("function nvmlVgpuTypeGetFramebufferSize is not found")
6369 return (<nvmlReturn_t (*)(nvmlVgpuTypeId_t, unsigned long long*) noexcept nogil>__nvmlVgpuTypeGetFramebufferSize)(
6370 vgpuTypeId, fbSize)
6373cdef nvmlReturn_t _nvmlVgpuTypeGetNumDisplayHeads(nvmlVgpuTypeId_t vgpuTypeId, unsigned int* numDisplayHeads) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6374 global __nvmlVgpuTypeGetNumDisplayHeads
6375 _check_or_init_nvml()
6376 if __nvmlVgpuTypeGetNumDisplayHeads == NULL:
6377 with gil:
6378 raise FunctionNotFoundError("function nvmlVgpuTypeGetNumDisplayHeads is not found")
6379 return (<nvmlReturn_t (*)(nvmlVgpuTypeId_t, unsigned int*) noexcept nogil>__nvmlVgpuTypeGetNumDisplayHeads)(
6380 vgpuTypeId, numDisplayHeads)
6383cdef nvmlReturn_t _nvmlVgpuTypeGetResolution(nvmlVgpuTypeId_t vgpuTypeId, unsigned int displayIndex, unsigned int* xdim, unsigned int* ydim) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6384 global __nvmlVgpuTypeGetResolution
6385 _check_or_init_nvml()
6386 if __nvmlVgpuTypeGetResolution == NULL:
6387 with gil:
6388 raise FunctionNotFoundError("function nvmlVgpuTypeGetResolution is not found")
6389 return (<nvmlReturn_t (*)(nvmlVgpuTypeId_t, unsigned int, unsigned int*, unsigned int*) noexcept nogil>__nvmlVgpuTypeGetResolution)(
6390 vgpuTypeId, displayIndex, xdim, ydim)
6393cdef nvmlReturn_t _nvmlVgpuTypeGetLicense(nvmlVgpuTypeId_t vgpuTypeId, char* vgpuTypeLicenseString, unsigned int size) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6394 global __nvmlVgpuTypeGetLicense
6395 _check_or_init_nvml()
6396 if __nvmlVgpuTypeGetLicense == NULL:
6397 with gil:
6398 raise FunctionNotFoundError("function nvmlVgpuTypeGetLicense is not found")
6399 return (<nvmlReturn_t (*)(nvmlVgpuTypeId_t, char*, unsigned int) noexcept nogil>__nvmlVgpuTypeGetLicense)(
6400 vgpuTypeId, vgpuTypeLicenseString, size)
6403cdef nvmlReturn_t _nvmlVgpuTypeGetFrameRateLimit(nvmlVgpuTypeId_t vgpuTypeId, unsigned int* frameRateLimit) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6404 global __nvmlVgpuTypeGetFrameRateLimit
6405 _check_or_init_nvml()
6406 if __nvmlVgpuTypeGetFrameRateLimit == NULL:
6407 with gil:
6408 raise FunctionNotFoundError("function nvmlVgpuTypeGetFrameRateLimit is not found")
6409 return (<nvmlReturn_t (*)(nvmlVgpuTypeId_t, unsigned int*) noexcept nogil>__nvmlVgpuTypeGetFrameRateLimit)(
6410 vgpuTypeId, frameRateLimit)
6413cdef nvmlReturn_t _nvmlVgpuTypeGetMaxInstances(nvmlDevice_t device, nvmlVgpuTypeId_t vgpuTypeId, unsigned int* vgpuInstanceCount) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6414 global __nvmlVgpuTypeGetMaxInstances
6415 _check_or_init_nvml()
6416 if __nvmlVgpuTypeGetMaxInstances == NULL:
6417 with gil:
6418 raise FunctionNotFoundError("function nvmlVgpuTypeGetMaxInstances is not found")
6419 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlVgpuTypeId_t, unsigned int*) noexcept nogil>__nvmlVgpuTypeGetMaxInstances)(
6420 device, vgpuTypeId, vgpuInstanceCount)
6423cdef nvmlReturn_t _nvmlVgpuTypeGetMaxInstancesPerVm(nvmlVgpuTypeId_t vgpuTypeId, unsigned int* vgpuInstanceCountPerVm) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6424 global __nvmlVgpuTypeGetMaxInstancesPerVm
6425 _check_or_init_nvml()
6426 if __nvmlVgpuTypeGetMaxInstancesPerVm == NULL:
6427 with gil:
6428 raise FunctionNotFoundError("function nvmlVgpuTypeGetMaxInstancesPerVm is not found")
6429 return (<nvmlReturn_t (*)(nvmlVgpuTypeId_t, unsigned int*) noexcept nogil>__nvmlVgpuTypeGetMaxInstancesPerVm)(
6430 vgpuTypeId, vgpuInstanceCountPerVm)
6433cdef nvmlReturn_t _nvmlVgpuTypeGetBAR1Info(nvmlVgpuTypeId_t vgpuTypeId, nvmlVgpuTypeBar1Info_t* bar1Info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6434 global __nvmlVgpuTypeGetBAR1Info
6435 _check_or_init_nvml()
6436 if __nvmlVgpuTypeGetBAR1Info == NULL:
6437 with gil:
6438 raise FunctionNotFoundError("function nvmlVgpuTypeGetBAR1Info is not found")
6439 return (<nvmlReturn_t (*)(nvmlVgpuTypeId_t, nvmlVgpuTypeBar1Info_t*) noexcept nogil>__nvmlVgpuTypeGetBAR1Info)(
6440 vgpuTypeId, bar1Info)
6443cdef nvmlReturn_t _nvmlDeviceGetActiveVgpus(nvmlDevice_t device, unsigned int* vgpuCount, nvmlVgpuInstance_t* vgpuInstances) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6444 global __nvmlDeviceGetActiveVgpus
6445 _check_or_init_nvml()
6446 if __nvmlDeviceGetActiveVgpus == NULL:
6447 with gil:
6448 raise FunctionNotFoundError("function nvmlDeviceGetActiveVgpus is not found")
6449 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, nvmlVgpuInstance_t*) noexcept nogil>__nvmlDeviceGetActiveVgpus)(
6450 device, vgpuCount, vgpuInstances)
6453cdef nvmlReturn_t _nvmlVgpuInstanceGetVmID(nvmlVgpuInstance_t vgpuInstance, char* vmId, unsigned int size, nvmlVgpuVmIdType_t* vmIdType) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6454 global __nvmlVgpuInstanceGetVmID
6455 _check_or_init_nvml()
6456 if __nvmlVgpuInstanceGetVmID == NULL:
6457 with gil:
6458 raise FunctionNotFoundError("function nvmlVgpuInstanceGetVmID is not found")
6459 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, char*, unsigned int, nvmlVgpuVmIdType_t*) noexcept nogil>__nvmlVgpuInstanceGetVmID)(
6460 vgpuInstance, vmId, size, vmIdType)
6463cdef nvmlReturn_t _nvmlVgpuInstanceGetUUID(nvmlVgpuInstance_t vgpuInstance, char* uuid, unsigned int size) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6464 global __nvmlVgpuInstanceGetUUID
6465 _check_or_init_nvml()
6466 if __nvmlVgpuInstanceGetUUID == NULL:
6467 with gil:
6468 raise FunctionNotFoundError("function nvmlVgpuInstanceGetUUID is not found")
6469 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, char*, unsigned int) noexcept nogil>__nvmlVgpuInstanceGetUUID)(
6470 vgpuInstance, uuid, size)
6473cdef nvmlReturn_t _nvmlVgpuInstanceGetVmDriverVersion(nvmlVgpuInstance_t vgpuInstance, char* version, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6474 global __nvmlVgpuInstanceGetVmDriverVersion
6475 _check_or_init_nvml()
6476 if __nvmlVgpuInstanceGetVmDriverVersion == NULL:
6477 with gil:
6478 raise FunctionNotFoundError("function nvmlVgpuInstanceGetVmDriverVersion is not found")
6479 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, char*, unsigned int) noexcept nogil>__nvmlVgpuInstanceGetVmDriverVersion)(
6480 vgpuInstance, version, length)
6483cdef nvmlReturn_t _nvmlVgpuInstanceGetFbUsage(nvmlVgpuInstance_t vgpuInstance, unsigned long long* fbUsage) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6484 global __nvmlVgpuInstanceGetFbUsage
6485 _check_or_init_nvml()
6486 if __nvmlVgpuInstanceGetFbUsage == NULL:
6487 with gil:
6488 raise FunctionNotFoundError("function nvmlVgpuInstanceGetFbUsage is not found")
6489 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, unsigned long long*) noexcept nogil>__nvmlVgpuInstanceGetFbUsage)(
6490 vgpuInstance, fbUsage)
6493cdef nvmlReturn_t _nvmlVgpuInstanceGetLicenseStatus(nvmlVgpuInstance_t vgpuInstance, unsigned int* licensed) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6494 global __nvmlVgpuInstanceGetLicenseStatus
6495 _check_or_init_nvml()
6496 if __nvmlVgpuInstanceGetLicenseStatus == NULL:
6497 with gil:
6498 raise FunctionNotFoundError("function nvmlVgpuInstanceGetLicenseStatus is not found")
6499 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, unsigned int*) noexcept nogil>__nvmlVgpuInstanceGetLicenseStatus)(
6500 vgpuInstance, licensed)
6503cdef nvmlReturn_t _nvmlVgpuInstanceGetType(nvmlVgpuInstance_t vgpuInstance, nvmlVgpuTypeId_t* vgpuTypeId) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6504 global __nvmlVgpuInstanceGetType
6505 _check_or_init_nvml()
6506 if __nvmlVgpuInstanceGetType == NULL:
6507 with gil:
6508 raise FunctionNotFoundError("function nvmlVgpuInstanceGetType is not found")
6509 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, nvmlVgpuTypeId_t*) noexcept nogil>__nvmlVgpuInstanceGetType)(
6510 vgpuInstance, vgpuTypeId)
6513cdef nvmlReturn_t _nvmlVgpuInstanceGetFrameRateLimit(nvmlVgpuInstance_t vgpuInstance, unsigned int* frameRateLimit) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6514 global __nvmlVgpuInstanceGetFrameRateLimit
6515 _check_or_init_nvml()
6516 if __nvmlVgpuInstanceGetFrameRateLimit == NULL:
6517 with gil:
6518 raise FunctionNotFoundError("function nvmlVgpuInstanceGetFrameRateLimit is not found")
6519 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, unsigned int*) noexcept nogil>__nvmlVgpuInstanceGetFrameRateLimit)(
6520 vgpuInstance, frameRateLimit)
6523cdef nvmlReturn_t _nvmlVgpuInstanceGetEccMode(nvmlVgpuInstance_t vgpuInstance, nvmlEnableState_t* eccMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6524 global __nvmlVgpuInstanceGetEccMode
6525 _check_or_init_nvml()
6526 if __nvmlVgpuInstanceGetEccMode == NULL:
6527 with gil:
6528 raise FunctionNotFoundError("function nvmlVgpuInstanceGetEccMode is not found")
6529 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, nvmlEnableState_t*) noexcept nogil>__nvmlVgpuInstanceGetEccMode)(
6530 vgpuInstance, eccMode)
6533cdef nvmlReturn_t _nvmlVgpuInstanceGetEncoderCapacity(nvmlVgpuInstance_t vgpuInstance, unsigned int* encoderCapacity) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6534 global __nvmlVgpuInstanceGetEncoderCapacity
6535 _check_or_init_nvml()
6536 if __nvmlVgpuInstanceGetEncoderCapacity == NULL:
6537 with gil:
6538 raise FunctionNotFoundError("function nvmlVgpuInstanceGetEncoderCapacity is not found")
6539 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, unsigned int*) noexcept nogil>__nvmlVgpuInstanceGetEncoderCapacity)(
6540 vgpuInstance, encoderCapacity)
6543cdef nvmlReturn_t _nvmlVgpuInstanceSetEncoderCapacity(nvmlVgpuInstance_t vgpuInstance, unsigned int encoderCapacity) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6544 global __nvmlVgpuInstanceSetEncoderCapacity
6545 _check_or_init_nvml()
6546 if __nvmlVgpuInstanceSetEncoderCapacity == NULL:
6547 with gil:
6548 raise FunctionNotFoundError("function nvmlVgpuInstanceSetEncoderCapacity is not found")
6549 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, unsigned int) noexcept nogil>__nvmlVgpuInstanceSetEncoderCapacity)(
6550 vgpuInstance, encoderCapacity)
6553cdef nvmlReturn_t _nvmlVgpuInstanceGetEncoderStats(nvmlVgpuInstance_t vgpuInstance, unsigned int* sessionCount, unsigned int* averageFps, unsigned int* averageLatency) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6554 global __nvmlVgpuInstanceGetEncoderStats
6555 _check_or_init_nvml()
6556 if __nvmlVgpuInstanceGetEncoderStats == NULL:
6557 with gil:
6558 raise FunctionNotFoundError("function nvmlVgpuInstanceGetEncoderStats is not found")
6559 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, unsigned int*, unsigned int*, unsigned int*) noexcept nogil>__nvmlVgpuInstanceGetEncoderStats)(
6560 vgpuInstance, sessionCount, averageFps, averageLatency)
6563cdef nvmlReturn_t _nvmlVgpuInstanceGetEncoderSessions(nvmlVgpuInstance_t vgpuInstance, unsigned int* sessionCount, nvmlEncoderSessionInfo_t* sessionInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6564 global __nvmlVgpuInstanceGetEncoderSessions
6565 _check_or_init_nvml()
6566 if __nvmlVgpuInstanceGetEncoderSessions == NULL:
6567 with gil:
6568 raise FunctionNotFoundError("function nvmlVgpuInstanceGetEncoderSessions is not found")
6569 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, unsigned int*, nvmlEncoderSessionInfo_t*) noexcept nogil>__nvmlVgpuInstanceGetEncoderSessions)(
6570 vgpuInstance, sessionCount, sessionInfo)
6573cdef nvmlReturn_t _nvmlVgpuInstanceGetFBCStats(nvmlVgpuInstance_t vgpuInstance, nvmlFBCStats_t* fbcStats) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6574 global __nvmlVgpuInstanceGetFBCStats
6575 _check_or_init_nvml()
6576 if __nvmlVgpuInstanceGetFBCStats == NULL:
6577 with gil:
6578 raise FunctionNotFoundError("function nvmlVgpuInstanceGetFBCStats is not found")
6579 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, nvmlFBCStats_t*) noexcept nogil>__nvmlVgpuInstanceGetFBCStats)(
6580 vgpuInstance, fbcStats)
6583cdef nvmlReturn_t _nvmlVgpuInstanceGetFBCSessions(nvmlVgpuInstance_t vgpuInstance, unsigned int* sessionCount, nvmlFBCSessionInfo_t* sessionInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6584 global __nvmlVgpuInstanceGetFBCSessions
6585 _check_or_init_nvml()
6586 if __nvmlVgpuInstanceGetFBCSessions == NULL:
6587 with gil:
6588 raise FunctionNotFoundError("function nvmlVgpuInstanceGetFBCSessions is not found")
6589 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, unsigned int*, nvmlFBCSessionInfo_t*) noexcept nogil>__nvmlVgpuInstanceGetFBCSessions)(
6590 vgpuInstance, sessionCount, sessionInfo)
6593cdef nvmlReturn_t _nvmlVgpuInstanceGetGpuInstanceId(nvmlVgpuInstance_t vgpuInstance, unsigned int* gpuInstanceId) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6594 global __nvmlVgpuInstanceGetGpuInstanceId
6595 _check_or_init_nvml()
6596 if __nvmlVgpuInstanceGetGpuInstanceId == NULL:
6597 with gil:
6598 raise FunctionNotFoundError("function nvmlVgpuInstanceGetGpuInstanceId is not found")
6599 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, unsigned int*) noexcept nogil>__nvmlVgpuInstanceGetGpuInstanceId)(
6600 vgpuInstance, gpuInstanceId)
6603cdef nvmlReturn_t _nvmlVgpuInstanceGetGpuPciId(nvmlVgpuInstance_t vgpuInstance, char* vgpuPciId, unsigned int* length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6604 global __nvmlVgpuInstanceGetGpuPciId
6605 _check_or_init_nvml()
6606 if __nvmlVgpuInstanceGetGpuPciId == NULL:
6607 with gil:
6608 raise FunctionNotFoundError("function nvmlVgpuInstanceGetGpuPciId is not found")
6609 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, char*, unsigned int*) noexcept nogil>__nvmlVgpuInstanceGetGpuPciId)(
6610 vgpuInstance, vgpuPciId, length)
6613cdef nvmlReturn_t _nvmlVgpuTypeGetCapabilities(nvmlVgpuTypeId_t vgpuTypeId, nvmlVgpuCapability_t capability, unsigned int* capResult) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6614 global __nvmlVgpuTypeGetCapabilities
6615 _check_or_init_nvml()
6616 if __nvmlVgpuTypeGetCapabilities == NULL:
6617 with gil:
6618 raise FunctionNotFoundError("function nvmlVgpuTypeGetCapabilities is not found")
6619 return (<nvmlReturn_t (*)(nvmlVgpuTypeId_t, nvmlVgpuCapability_t, unsigned int*) noexcept nogil>__nvmlVgpuTypeGetCapabilities)(
6620 vgpuTypeId, capability, capResult)
6623cdef nvmlReturn_t _nvmlVgpuInstanceGetMdevUUID(nvmlVgpuInstance_t vgpuInstance, char* mdevUuid, unsigned int size) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6624 global __nvmlVgpuInstanceGetMdevUUID
6625 _check_or_init_nvml()
6626 if __nvmlVgpuInstanceGetMdevUUID == NULL:
6627 with gil:
6628 raise FunctionNotFoundError("function nvmlVgpuInstanceGetMdevUUID is not found")
6629 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, char*, unsigned int) noexcept nogil>__nvmlVgpuInstanceGetMdevUUID)(
6630 vgpuInstance, mdevUuid, size)
6633cdef nvmlReturn_t _nvmlGpuInstanceGetCreatableVgpus(nvmlGpuInstance_t gpuInstance, nvmlVgpuTypeIdInfo_t* pVgpus) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6634 global __nvmlGpuInstanceGetCreatableVgpus
6635 _check_or_init_nvml()
6636 if __nvmlGpuInstanceGetCreatableVgpus == NULL:
6637 with gil:
6638 raise FunctionNotFoundError("function nvmlGpuInstanceGetCreatableVgpus is not found")
6639 return (<nvmlReturn_t (*)(nvmlGpuInstance_t, nvmlVgpuTypeIdInfo_t*) noexcept nogil>__nvmlGpuInstanceGetCreatableVgpus)(
6640 gpuInstance, pVgpus)
6643cdef nvmlReturn_t _nvmlVgpuTypeGetMaxInstancesPerGpuInstance(nvmlVgpuTypeMaxInstance_t* pMaxInstance) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6644 global __nvmlVgpuTypeGetMaxInstancesPerGpuInstance
6645 _check_or_init_nvml()
6646 if __nvmlVgpuTypeGetMaxInstancesPerGpuInstance == NULL:
6647 with gil:
6648 raise FunctionNotFoundError("function nvmlVgpuTypeGetMaxInstancesPerGpuInstance is not found")
6649 return (<nvmlReturn_t (*)(nvmlVgpuTypeMaxInstance_t*) noexcept nogil>__nvmlVgpuTypeGetMaxInstancesPerGpuInstance)(
6650 pMaxInstance)
6653cdef nvmlReturn_t _nvmlGpuInstanceGetActiveVgpus(nvmlGpuInstance_t gpuInstance, nvmlActiveVgpuInstanceInfo_t* pVgpuInstanceInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6654 global __nvmlGpuInstanceGetActiveVgpus
6655 _check_or_init_nvml()
6656 if __nvmlGpuInstanceGetActiveVgpus == NULL:
6657 with gil:
6658 raise FunctionNotFoundError("function nvmlGpuInstanceGetActiveVgpus is not found")
6659 return (<nvmlReturn_t (*)(nvmlGpuInstance_t, nvmlActiveVgpuInstanceInfo_t*) noexcept nogil>__nvmlGpuInstanceGetActiveVgpus)(
6660 gpuInstance, pVgpuInstanceInfo)
6663cdef nvmlReturn_t _nvmlGpuInstanceSetVgpuSchedulerState(nvmlGpuInstance_t gpuInstance, nvmlVgpuSchedulerState_t* pScheduler) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6664 global __nvmlGpuInstanceSetVgpuSchedulerState
6665 _check_or_init_nvml()
6666 if __nvmlGpuInstanceSetVgpuSchedulerState == NULL:
6667 with gil:
6668 raise FunctionNotFoundError("function nvmlGpuInstanceSetVgpuSchedulerState is not found")
6669 return (<nvmlReturn_t (*)(nvmlGpuInstance_t, nvmlVgpuSchedulerState_t*) noexcept nogil>__nvmlGpuInstanceSetVgpuSchedulerState)(
6670 gpuInstance, pScheduler)
6673cdef nvmlReturn_t _nvmlGpuInstanceGetVgpuSchedulerState(nvmlGpuInstance_t gpuInstance, nvmlVgpuSchedulerStateInfo_t* pSchedulerStateInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6674 global __nvmlGpuInstanceGetVgpuSchedulerState
6675 _check_or_init_nvml()
6676 if __nvmlGpuInstanceGetVgpuSchedulerState == NULL:
6677 with gil:
6678 raise FunctionNotFoundError("function nvmlGpuInstanceGetVgpuSchedulerState is not found")
6679 return (<nvmlReturn_t (*)(nvmlGpuInstance_t, nvmlVgpuSchedulerStateInfo_t*) noexcept nogil>__nvmlGpuInstanceGetVgpuSchedulerState)(
6680 gpuInstance, pSchedulerStateInfo)
6683cdef nvmlReturn_t _nvmlGpuInstanceGetVgpuSchedulerLog(nvmlGpuInstance_t gpuInstance, nvmlVgpuSchedulerLogInfo_t* pSchedulerLogInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6684 global __nvmlGpuInstanceGetVgpuSchedulerLog
6685 _check_or_init_nvml()
6686 if __nvmlGpuInstanceGetVgpuSchedulerLog == NULL:
6687 with gil:
6688 raise FunctionNotFoundError("function nvmlGpuInstanceGetVgpuSchedulerLog is not found")
6689 return (<nvmlReturn_t (*)(nvmlGpuInstance_t, nvmlVgpuSchedulerLogInfo_t*) noexcept nogil>__nvmlGpuInstanceGetVgpuSchedulerLog)(
6690 gpuInstance, pSchedulerLogInfo)
6693cdef nvmlReturn_t _nvmlGpuInstanceGetVgpuTypeCreatablePlacements(nvmlGpuInstance_t gpuInstance, nvmlVgpuCreatablePlacementInfo_t* pCreatablePlacementInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6694 global __nvmlGpuInstanceGetVgpuTypeCreatablePlacements
6695 _check_or_init_nvml()
6696 if __nvmlGpuInstanceGetVgpuTypeCreatablePlacements == NULL:
6697 with gil:
6698 raise FunctionNotFoundError("function nvmlGpuInstanceGetVgpuTypeCreatablePlacements is not found")
6699 return (<nvmlReturn_t (*)(nvmlGpuInstance_t, nvmlVgpuCreatablePlacementInfo_t*) noexcept nogil>__nvmlGpuInstanceGetVgpuTypeCreatablePlacements)(
6700 gpuInstance, pCreatablePlacementInfo)
6703cdef nvmlReturn_t _nvmlGpuInstanceGetVgpuHeterogeneousMode(nvmlGpuInstance_t gpuInstance, nvmlVgpuHeterogeneousMode_t* pHeterogeneousMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6704 global __nvmlGpuInstanceGetVgpuHeterogeneousMode
6705 _check_or_init_nvml()
6706 if __nvmlGpuInstanceGetVgpuHeterogeneousMode == NULL:
6707 with gil:
6708 raise FunctionNotFoundError("function nvmlGpuInstanceGetVgpuHeterogeneousMode is not found")
6709 return (<nvmlReturn_t (*)(nvmlGpuInstance_t, nvmlVgpuHeterogeneousMode_t*) noexcept nogil>__nvmlGpuInstanceGetVgpuHeterogeneousMode)(
6710 gpuInstance, pHeterogeneousMode)
6713cdef nvmlReturn_t _nvmlGpuInstanceSetVgpuHeterogeneousMode(nvmlGpuInstance_t gpuInstance, const nvmlVgpuHeterogeneousMode_t* pHeterogeneousMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6714 global __nvmlGpuInstanceSetVgpuHeterogeneousMode
6715 _check_or_init_nvml()
6716 if __nvmlGpuInstanceSetVgpuHeterogeneousMode == NULL:
6717 with gil:
6718 raise FunctionNotFoundError("function nvmlGpuInstanceSetVgpuHeterogeneousMode is not found")
6719 return (<nvmlReturn_t (*)(nvmlGpuInstance_t, const nvmlVgpuHeterogeneousMode_t*) noexcept nogil>__nvmlGpuInstanceSetVgpuHeterogeneousMode)(
6720 gpuInstance, pHeterogeneousMode)
6723cdef nvmlReturn_t _nvmlVgpuInstanceGetMetadata(nvmlVgpuInstance_t vgpuInstance, nvmlVgpuMetadata_t* vgpuMetadata, unsigned int* bufferSize) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6724 global __nvmlVgpuInstanceGetMetadata
6725 _check_or_init_nvml()
6726 if __nvmlVgpuInstanceGetMetadata == NULL:
6727 with gil:
6728 raise FunctionNotFoundError("function nvmlVgpuInstanceGetMetadata is not found")
6729 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, nvmlVgpuMetadata_t*, unsigned int*) noexcept nogil>__nvmlVgpuInstanceGetMetadata)(
6730 vgpuInstance, vgpuMetadata, bufferSize)
6733cdef nvmlReturn_t _nvmlDeviceGetVgpuMetadata(nvmlDevice_t device, nvmlVgpuPgpuMetadata_t* pgpuMetadata, unsigned int* bufferSize) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6734 global __nvmlDeviceGetVgpuMetadata
6735 _check_or_init_nvml()
6736 if __nvmlDeviceGetVgpuMetadata == NULL:
6737 with gil:
6738 raise FunctionNotFoundError("function nvmlDeviceGetVgpuMetadata is not found")
6739 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlVgpuPgpuMetadata_t*, unsigned int*) noexcept nogil>__nvmlDeviceGetVgpuMetadata)(
6740 device, pgpuMetadata, bufferSize)
6743cdef nvmlReturn_t _nvmlGetVgpuCompatibility(nvmlVgpuMetadata_t* vgpuMetadata, nvmlVgpuPgpuMetadata_t* pgpuMetadata, nvmlVgpuPgpuCompatibility_t* compatibilityInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6744 global __nvmlGetVgpuCompatibility
6745 _check_or_init_nvml()
6746 if __nvmlGetVgpuCompatibility == NULL:
6747 with gil:
6748 raise FunctionNotFoundError("function nvmlGetVgpuCompatibility is not found")
6749 return (<nvmlReturn_t (*)(nvmlVgpuMetadata_t*, nvmlVgpuPgpuMetadata_t*, nvmlVgpuPgpuCompatibility_t*) noexcept nogil>__nvmlGetVgpuCompatibility)(
6750 vgpuMetadata, pgpuMetadata, compatibilityInfo)
6753cdef nvmlReturn_t _nvmlDeviceGetPgpuMetadataString(nvmlDevice_t device, char* pgpuMetadata, unsigned int* bufferSize) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6754 global __nvmlDeviceGetPgpuMetadataString
6755 _check_or_init_nvml()
6756 if __nvmlDeviceGetPgpuMetadataString == NULL:
6757 with gil:
6758 raise FunctionNotFoundError("function nvmlDeviceGetPgpuMetadataString is not found")
6759 return (<nvmlReturn_t (*)(nvmlDevice_t, char*, unsigned int*) noexcept nogil>__nvmlDeviceGetPgpuMetadataString)(
6760 device, pgpuMetadata, bufferSize)
6763cdef nvmlReturn_t _nvmlDeviceGetVgpuSchedulerLog(nvmlDevice_t device, nvmlVgpuSchedulerLog_t* pSchedulerLog) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6764 global __nvmlDeviceGetVgpuSchedulerLog
6765 _check_or_init_nvml()
6766 if __nvmlDeviceGetVgpuSchedulerLog == NULL:
6767 with gil:
6768 raise FunctionNotFoundError("function nvmlDeviceGetVgpuSchedulerLog is not found")
6769 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlVgpuSchedulerLog_t*) noexcept nogil>__nvmlDeviceGetVgpuSchedulerLog)(
6770 device, pSchedulerLog)
6773cdef nvmlReturn_t _nvmlDeviceGetVgpuSchedulerState(nvmlDevice_t device, nvmlVgpuSchedulerGetState_t* pSchedulerState) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6774 global __nvmlDeviceGetVgpuSchedulerState
6775 _check_or_init_nvml()
6776 if __nvmlDeviceGetVgpuSchedulerState == NULL:
6777 with gil:
6778 raise FunctionNotFoundError("function nvmlDeviceGetVgpuSchedulerState is not found")
6779 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlVgpuSchedulerGetState_t*) noexcept nogil>__nvmlDeviceGetVgpuSchedulerState)(
6780 device, pSchedulerState)
6783cdef nvmlReturn_t _nvmlDeviceGetVgpuSchedulerCapabilities(nvmlDevice_t device, nvmlVgpuSchedulerCapabilities_t* pCapabilities) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6784 global __nvmlDeviceGetVgpuSchedulerCapabilities
6785 _check_or_init_nvml()
6786 if __nvmlDeviceGetVgpuSchedulerCapabilities == NULL:
6787 with gil:
6788 raise FunctionNotFoundError("function nvmlDeviceGetVgpuSchedulerCapabilities is not found")
6789 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlVgpuSchedulerCapabilities_t*) noexcept nogil>__nvmlDeviceGetVgpuSchedulerCapabilities)(
6790 device, pCapabilities)
6793cdef nvmlReturn_t _nvmlDeviceSetVgpuSchedulerState(nvmlDevice_t device, nvmlVgpuSchedulerSetState_t* pSchedulerState) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6794 global __nvmlDeviceSetVgpuSchedulerState
6795 _check_or_init_nvml()
6796 if __nvmlDeviceSetVgpuSchedulerState == NULL:
6797 with gil:
6798 raise FunctionNotFoundError("function nvmlDeviceSetVgpuSchedulerState is not found")
6799 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlVgpuSchedulerSetState_t*) noexcept nogil>__nvmlDeviceSetVgpuSchedulerState)(
6800 device, pSchedulerState)
6803cdef nvmlReturn_t _nvmlGetVgpuVersion(nvmlVgpuVersion_t* supported, nvmlVgpuVersion_t* current) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6804 global __nvmlGetVgpuVersion
6805 _check_or_init_nvml()
6806 if __nvmlGetVgpuVersion == NULL:
6807 with gil:
6808 raise FunctionNotFoundError("function nvmlGetVgpuVersion is not found")
6809 return (<nvmlReturn_t (*)(nvmlVgpuVersion_t*, nvmlVgpuVersion_t*) noexcept nogil>__nvmlGetVgpuVersion)(
6810 supported, current)
6813cdef nvmlReturn_t _nvmlSetVgpuVersion(nvmlVgpuVersion_t* vgpuVersion) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6814 global __nvmlSetVgpuVersion
6815 _check_or_init_nvml()
6816 if __nvmlSetVgpuVersion == NULL:
6817 with gil:
6818 raise FunctionNotFoundError("function nvmlSetVgpuVersion is not found")
6819 return (<nvmlReturn_t (*)(nvmlVgpuVersion_t*) noexcept nogil>__nvmlSetVgpuVersion)(
6820 vgpuVersion)
6823cdef nvmlReturn_t _nvmlDeviceGetVgpuUtilization(nvmlDevice_t device, unsigned long long lastSeenTimeStamp, nvmlValueType_t* sampleValType, unsigned int* vgpuInstanceSamplesCount, nvmlVgpuInstanceUtilizationSample_t* utilizationSamples) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6824 global __nvmlDeviceGetVgpuUtilization
6825 _check_or_init_nvml()
6826 if __nvmlDeviceGetVgpuUtilization == NULL:
6827 with gil:
6828 raise FunctionNotFoundError("function nvmlDeviceGetVgpuUtilization is not found")
6829 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned long long, nvmlValueType_t*, unsigned int*, nvmlVgpuInstanceUtilizationSample_t*) noexcept nogil>__nvmlDeviceGetVgpuUtilization)(
6830 device, lastSeenTimeStamp, sampleValType, vgpuInstanceSamplesCount, utilizationSamples)
6833cdef nvmlReturn_t _nvmlDeviceGetVgpuInstancesUtilizationInfo(nvmlDevice_t device, nvmlVgpuInstancesUtilizationInfo_t* vgpuUtilInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6834 global __nvmlDeviceGetVgpuInstancesUtilizationInfo
6835 _check_or_init_nvml()
6836 if __nvmlDeviceGetVgpuInstancesUtilizationInfo == NULL:
6837 with gil:
6838 raise FunctionNotFoundError("function nvmlDeviceGetVgpuInstancesUtilizationInfo is not found")
6839 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlVgpuInstancesUtilizationInfo_t*) noexcept nogil>__nvmlDeviceGetVgpuInstancesUtilizationInfo)(
6840 device, vgpuUtilInfo)
6843cdef nvmlReturn_t _nvmlDeviceGetVgpuProcessUtilization(nvmlDevice_t device, unsigned long long lastSeenTimeStamp, unsigned int* vgpuProcessSamplesCount, nvmlVgpuProcessUtilizationSample_t* utilizationSamples) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6844 global __nvmlDeviceGetVgpuProcessUtilization
6845 _check_or_init_nvml()
6846 if __nvmlDeviceGetVgpuProcessUtilization == NULL:
6847 with gil:
6848 raise FunctionNotFoundError("function nvmlDeviceGetVgpuProcessUtilization is not found")
6849 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned long long, unsigned int*, nvmlVgpuProcessUtilizationSample_t*) noexcept nogil>__nvmlDeviceGetVgpuProcessUtilization)(
6850 device, lastSeenTimeStamp, vgpuProcessSamplesCount, utilizationSamples)
6853cdef nvmlReturn_t _nvmlDeviceGetVgpuProcessesUtilizationInfo(nvmlDevice_t device, nvmlVgpuProcessesUtilizationInfo_t* vgpuProcUtilInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6854 global __nvmlDeviceGetVgpuProcessesUtilizationInfo
6855 _check_or_init_nvml()
6856 if __nvmlDeviceGetVgpuProcessesUtilizationInfo == NULL:
6857 with gil:
6858 raise FunctionNotFoundError("function nvmlDeviceGetVgpuProcessesUtilizationInfo is not found")
6859 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlVgpuProcessesUtilizationInfo_t*) noexcept nogil>__nvmlDeviceGetVgpuProcessesUtilizationInfo)(
6860 device, vgpuProcUtilInfo)
6863cdef nvmlReturn_t _nvmlVgpuInstanceGetAccountingMode(nvmlVgpuInstance_t vgpuInstance, nvmlEnableState_t* mode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6864 global __nvmlVgpuInstanceGetAccountingMode
6865 _check_or_init_nvml()
6866 if __nvmlVgpuInstanceGetAccountingMode == NULL:
6867 with gil:
6868 raise FunctionNotFoundError("function nvmlVgpuInstanceGetAccountingMode is not found")
6869 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, nvmlEnableState_t*) noexcept nogil>__nvmlVgpuInstanceGetAccountingMode)(
6870 vgpuInstance, mode)
6873cdef nvmlReturn_t _nvmlVgpuInstanceGetAccountingPids(nvmlVgpuInstance_t vgpuInstance, unsigned int* count, unsigned int* pids) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6874 global __nvmlVgpuInstanceGetAccountingPids
6875 _check_or_init_nvml()
6876 if __nvmlVgpuInstanceGetAccountingPids == NULL:
6877 with gil:
6878 raise FunctionNotFoundError("function nvmlVgpuInstanceGetAccountingPids is not found")
6879 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, unsigned int*, unsigned int*) noexcept nogil>__nvmlVgpuInstanceGetAccountingPids)(
6880 vgpuInstance, count, pids)
6883cdef nvmlReturn_t _nvmlVgpuInstanceGetAccountingStats(nvmlVgpuInstance_t vgpuInstance, unsigned int pid, nvmlAccountingStats_t* stats) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6884 global __nvmlVgpuInstanceGetAccountingStats
6885 _check_or_init_nvml()
6886 if __nvmlVgpuInstanceGetAccountingStats == NULL:
6887 with gil:
6888 raise FunctionNotFoundError("function nvmlVgpuInstanceGetAccountingStats is not found")
6889 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, unsigned int, nvmlAccountingStats_t*) noexcept nogil>__nvmlVgpuInstanceGetAccountingStats)(
6890 vgpuInstance, pid, stats)
6893cdef nvmlReturn_t _nvmlVgpuInstanceClearAccountingPids(nvmlVgpuInstance_t vgpuInstance) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6894 global __nvmlVgpuInstanceClearAccountingPids
6895 _check_or_init_nvml()
6896 if __nvmlVgpuInstanceClearAccountingPids == NULL:
6897 with gil:
6898 raise FunctionNotFoundError("function nvmlVgpuInstanceClearAccountingPids is not found")
6899 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t) noexcept nogil>__nvmlVgpuInstanceClearAccountingPids)(
6900 vgpuInstance)
6903cdef nvmlReturn_t _nvmlVgpuInstanceGetLicenseInfo_v2(nvmlVgpuInstance_t vgpuInstance, nvmlVgpuLicenseInfo_t* licenseInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6904 global __nvmlVgpuInstanceGetLicenseInfo_v2
6905 _check_or_init_nvml()
6906 if __nvmlVgpuInstanceGetLicenseInfo_v2 == NULL:
6907 with gil:
6908 raise FunctionNotFoundError("function nvmlVgpuInstanceGetLicenseInfo_v2 is not found")
6909 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, nvmlVgpuLicenseInfo_t*) noexcept nogil>__nvmlVgpuInstanceGetLicenseInfo_v2)(
6910 vgpuInstance, licenseInfo)
6913cdef nvmlReturn_t _nvmlGetExcludedDeviceCount(unsigned int* deviceCount) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6914 global __nvmlGetExcludedDeviceCount
6915 _check_or_init_nvml()
6916 if __nvmlGetExcludedDeviceCount == NULL:
6917 with gil:
6918 raise FunctionNotFoundError("function nvmlGetExcludedDeviceCount is not found")
6919 return (<nvmlReturn_t (*)(unsigned int*) noexcept nogil>__nvmlGetExcludedDeviceCount)(
6920 deviceCount)
6923cdef nvmlReturn_t _nvmlGetExcludedDeviceInfoByIndex(unsigned int index, nvmlExcludedDeviceInfo_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6924 global __nvmlGetExcludedDeviceInfoByIndex
6925 _check_or_init_nvml()
6926 if __nvmlGetExcludedDeviceInfoByIndex == NULL:
6927 with gil:
6928 raise FunctionNotFoundError("function nvmlGetExcludedDeviceInfoByIndex is not found")
6929 return (<nvmlReturn_t (*)(unsigned int, nvmlExcludedDeviceInfo_t*) noexcept nogil>__nvmlGetExcludedDeviceInfoByIndex)(
6930 index, info)
6933cdef nvmlReturn_t _nvmlDeviceSetMigMode(nvmlDevice_t device, unsigned int mode, nvmlReturn_t* activationStatus) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6934 global __nvmlDeviceSetMigMode
6935 _check_or_init_nvml()
6936 if __nvmlDeviceSetMigMode == NULL:
6937 with gil:
6938 raise FunctionNotFoundError("function nvmlDeviceSetMigMode is not found")
6939 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlReturn_t*) noexcept nogil>__nvmlDeviceSetMigMode)(
6940 device, mode, activationStatus)
6943cdef nvmlReturn_t _nvmlDeviceGetMigMode(nvmlDevice_t device, unsigned int* currentMode, unsigned int* pendingMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6944 global __nvmlDeviceGetMigMode
6945 _check_or_init_nvml()
6946 if __nvmlDeviceGetMigMode == NULL:
6947 with gil:
6948 raise FunctionNotFoundError("function nvmlDeviceGetMigMode is not found")
6949 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, unsigned int*) noexcept nogil>__nvmlDeviceGetMigMode)(
6950 device, currentMode, pendingMode)
6953cdef nvmlReturn_t _nvmlDeviceGetGpuInstanceProfileInfoV(nvmlDevice_t device, unsigned int profile, nvmlGpuInstanceProfileInfo_v2_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6954 global __nvmlDeviceGetGpuInstanceProfileInfoV
6955 _check_or_init_nvml()
6956 if __nvmlDeviceGetGpuInstanceProfileInfoV == NULL:
6957 with gil:
6958 raise FunctionNotFoundError("function nvmlDeviceGetGpuInstanceProfileInfoV is not found")
6959 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlGpuInstanceProfileInfo_v2_t*) noexcept nogil>__nvmlDeviceGetGpuInstanceProfileInfoV)(
6960 device, profile, info)
6963cdef nvmlReturn_t _nvmlDeviceGetGpuInstancePossiblePlacements_v2(nvmlDevice_t device, unsigned int profileId, nvmlGpuInstancePlacement_t* placements, unsigned int* count) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6964 global __nvmlDeviceGetGpuInstancePossiblePlacements_v2
6965 _check_or_init_nvml()
6966 if __nvmlDeviceGetGpuInstancePossiblePlacements_v2 == NULL:
6967 with gil:
6968 raise FunctionNotFoundError("function nvmlDeviceGetGpuInstancePossiblePlacements_v2 is not found")
6969 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlGpuInstancePlacement_t*, unsigned int*) noexcept nogil>__nvmlDeviceGetGpuInstancePossiblePlacements_v2)(
6970 device, profileId, placements, count)
6973cdef nvmlReturn_t _nvmlDeviceGetGpuInstanceRemainingCapacity(nvmlDevice_t device, unsigned int profileId, unsigned int* count) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6974 global __nvmlDeviceGetGpuInstanceRemainingCapacity
6975 _check_or_init_nvml()
6976 if __nvmlDeviceGetGpuInstanceRemainingCapacity == NULL:
6977 with gil:
6978 raise FunctionNotFoundError("function nvmlDeviceGetGpuInstanceRemainingCapacity is not found")
6979 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, unsigned int*) noexcept nogil>__nvmlDeviceGetGpuInstanceRemainingCapacity)(
6980 device, profileId, count)
6983cdef nvmlReturn_t _nvmlDeviceCreateGpuInstance(nvmlDevice_t device, unsigned int profileId, nvmlGpuInstance_t* gpuInstance) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6984 global __nvmlDeviceCreateGpuInstance
6985 _check_or_init_nvml()
6986 if __nvmlDeviceCreateGpuInstance == NULL:
6987 with gil:
6988 raise FunctionNotFoundError("function nvmlDeviceCreateGpuInstance is not found")
6989 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlGpuInstance_t*) noexcept nogil>__nvmlDeviceCreateGpuInstance)(
6990 device, profileId, gpuInstance)
6993cdef nvmlReturn_t _nvmlDeviceCreateGpuInstanceWithPlacement(nvmlDevice_t device, unsigned int profileId, const nvmlGpuInstancePlacement_t* placement, nvmlGpuInstance_t* gpuInstance) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
6994 global __nvmlDeviceCreateGpuInstanceWithPlacement
6995 _check_or_init_nvml()
6996 if __nvmlDeviceCreateGpuInstanceWithPlacement == NULL:
6997 with gil:
6998 raise FunctionNotFoundError("function nvmlDeviceCreateGpuInstanceWithPlacement is not found")
6999 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, const nvmlGpuInstancePlacement_t*, nvmlGpuInstance_t*) noexcept nogil>__nvmlDeviceCreateGpuInstanceWithPlacement)(
7000 device, profileId, placement, gpuInstance)
7003cdef nvmlReturn_t _nvmlGpuInstanceDestroy(nvmlGpuInstance_t gpuInstance) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
7004 global __nvmlGpuInstanceDestroy
7005 _check_or_init_nvml()
7006 if __nvmlGpuInstanceDestroy == NULL:
7007 with gil:
7008 raise FunctionNotFoundError("function nvmlGpuInstanceDestroy is not found")
7009 return (<nvmlReturn_t (*)(nvmlGpuInstance_t) noexcept nogil>__nvmlGpuInstanceDestroy)(
7010 gpuInstance)
7013cdef nvmlReturn_t _nvmlDeviceGetGpuInstances(nvmlDevice_t device, unsigned int profileId, nvmlGpuInstance_t* gpuInstances, unsigned int* count) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
7014 global __nvmlDeviceGetGpuInstances
7015 _check_or_init_nvml()
7016 if __nvmlDeviceGetGpuInstances == NULL:
7017 with gil:
7018 raise FunctionNotFoundError("function nvmlDeviceGetGpuInstances is not found")
7019 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlGpuInstance_t*, unsigned int*) noexcept nogil>__nvmlDeviceGetGpuInstances)(
7020 device, profileId, gpuInstances, count)
7023cdef nvmlReturn_t _nvmlDeviceGetGpuInstanceById(nvmlDevice_t device, unsigned int id, nvmlGpuInstance_t* gpuInstance) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
7024 global __nvmlDeviceGetGpuInstanceById
7025 _check_or_init_nvml()
7026 if __nvmlDeviceGetGpuInstanceById == NULL:
7027 with gil:
7028 raise FunctionNotFoundError("function nvmlDeviceGetGpuInstanceById is not found")
7029 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlGpuInstance_t*) noexcept nogil>__nvmlDeviceGetGpuInstanceById)(
7030 device, id, gpuInstance)
7033cdef nvmlReturn_t _nvmlGpuInstanceGetInfo(nvmlGpuInstance_t gpuInstance, nvmlGpuInstanceInfo_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
7034 global __nvmlGpuInstanceGetInfo
7035 _check_or_init_nvml()
7036 if __nvmlGpuInstanceGetInfo == NULL:
7037 with gil:
7038 raise FunctionNotFoundError("function nvmlGpuInstanceGetInfo is not found")
7039 return (<nvmlReturn_t (*)(nvmlGpuInstance_t, nvmlGpuInstanceInfo_t*) noexcept nogil>__nvmlGpuInstanceGetInfo)(
7040 gpuInstance, info)
7043cdef nvmlReturn_t _nvmlGpuInstanceGetComputeInstanceProfileInfoV(nvmlGpuInstance_t gpuInstance, unsigned int profile, unsigned int engProfile, nvmlComputeInstanceProfileInfo_v2_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
7044 global __nvmlGpuInstanceGetComputeInstanceProfileInfoV
7045 _check_or_init_nvml()
7046 if __nvmlGpuInstanceGetComputeInstanceProfileInfoV == NULL:
7047 with gil:
7048 raise FunctionNotFoundError("function nvmlGpuInstanceGetComputeInstanceProfileInfoV is not found")
7049 return (<nvmlReturn_t (*)(nvmlGpuInstance_t, unsigned int, unsigned int, nvmlComputeInstanceProfileInfo_v2_t*) noexcept nogil>__nvmlGpuInstanceGetComputeInstanceProfileInfoV)(
7050 gpuInstance, profile, engProfile, info)
7053cdef nvmlReturn_t _nvmlGpuInstanceGetComputeInstanceRemainingCapacity(nvmlGpuInstance_t gpuInstance, unsigned int profileId, unsigned int* count) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
7054 global __nvmlGpuInstanceGetComputeInstanceRemainingCapacity
7055 _check_or_init_nvml()
7056 if __nvmlGpuInstanceGetComputeInstanceRemainingCapacity == NULL:
7057 with gil:
7058 raise FunctionNotFoundError("function nvmlGpuInstanceGetComputeInstanceRemainingCapacity is not found")
7059 return (<nvmlReturn_t (*)(nvmlGpuInstance_t, unsigned int, unsigned int*) noexcept nogil>__nvmlGpuInstanceGetComputeInstanceRemainingCapacity)(
7060 gpuInstance, profileId, count)
7063cdef nvmlReturn_t _nvmlGpuInstanceGetComputeInstancePossiblePlacements(nvmlGpuInstance_t gpuInstance, unsigned int profileId, nvmlComputeInstancePlacement_t* placements, unsigned int* count) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
7064 global __nvmlGpuInstanceGetComputeInstancePossiblePlacements
7065 _check_or_init_nvml()
7066 if __nvmlGpuInstanceGetComputeInstancePossiblePlacements == NULL:
7067 with gil:
7068 raise FunctionNotFoundError("function nvmlGpuInstanceGetComputeInstancePossiblePlacements is not found")
7069 return (<nvmlReturn_t (*)(nvmlGpuInstance_t, unsigned int, nvmlComputeInstancePlacement_t*, unsigned int*) noexcept nogil>__nvmlGpuInstanceGetComputeInstancePossiblePlacements)(
7070 gpuInstance, profileId, placements, count)
7073cdef nvmlReturn_t _nvmlGpuInstanceCreateComputeInstance(nvmlGpuInstance_t gpuInstance, unsigned int profileId, nvmlComputeInstance_t* computeInstance) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
7074 global __nvmlGpuInstanceCreateComputeInstance
7075 _check_or_init_nvml()
7076 if __nvmlGpuInstanceCreateComputeInstance == NULL:
7077 with gil:
7078 raise FunctionNotFoundError("function nvmlGpuInstanceCreateComputeInstance is not found")
7079 return (<nvmlReturn_t (*)(nvmlGpuInstance_t, unsigned int, nvmlComputeInstance_t*) noexcept nogil>__nvmlGpuInstanceCreateComputeInstance)(
7080 gpuInstance, profileId, computeInstance)
7083cdef nvmlReturn_t _nvmlGpuInstanceCreateComputeInstanceWithPlacement(nvmlGpuInstance_t gpuInstance, unsigned int profileId, const nvmlComputeInstancePlacement_t* placement, nvmlComputeInstance_t* computeInstance) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
7084 global __nvmlGpuInstanceCreateComputeInstanceWithPlacement
7085 _check_or_init_nvml()
7086 if __nvmlGpuInstanceCreateComputeInstanceWithPlacement == NULL:
7087 with gil:
7088 raise FunctionNotFoundError("function nvmlGpuInstanceCreateComputeInstanceWithPlacement is not found")
7089 return (<nvmlReturn_t (*)(nvmlGpuInstance_t, unsigned int, const nvmlComputeInstancePlacement_t*, nvmlComputeInstance_t*) noexcept nogil>__nvmlGpuInstanceCreateComputeInstanceWithPlacement)(
7090 gpuInstance, profileId, placement, computeInstance)
7093cdef nvmlReturn_t _nvmlComputeInstanceDestroy(nvmlComputeInstance_t computeInstance) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
7094 global __nvmlComputeInstanceDestroy
7095 _check_or_init_nvml()
7096 if __nvmlComputeInstanceDestroy == NULL:
7097 with gil:
7098 raise FunctionNotFoundError("function nvmlComputeInstanceDestroy is not found")
7099 return (<nvmlReturn_t (*)(nvmlComputeInstance_t) noexcept nogil>__nvmlComputeInstanceDestroy)(
7100 computeInstance)
7103cdef nvmlReturn_t _nvmlGpuInstanceGetComputeInstances(nvmlGpuInstance_t gpuInstance, unsigned int profileId, nvmlComputeInstance_t* computeInstances, unsigned int* count) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
7104 global __nvmlGpuInstanceGetComputeInstances
7105 _check_or_init_nvml()
7106 if __nvmlGpuInstanceGetComputeInstances == NULL:
7107 with gil:
7108 raise FunctionNotFoundError("function nvmlGpuInstanceGetComputeInstances is not found")
7109 return (<nvmlReturn_t (*)(nvmlGpuInstance_t, unsigned int, nvmlComputeInstance_t*, unsigned int*) noexcept nogil>__nvmlGpuInstanceGetComputeInstances)(
7110 gpuInstance, profileId, computeInstances, count)
7113cdef nvmlReturn_t _nvmlGpuInstanceGetComputeInstanceById(nvmlGpuInstance_t gpuInstance, unsigned int id, nvmlComputeInstance_t* computeInstance) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
7114 global __nvmlGpuInstanceGetComputeInstanceById
7115 _check_or_init_nvml()
7116 if __nvmlGpuInstanceGetComputeInstanceById == NULL:
7117 with gil:
7118 raise FunctionNotFoundError("function nvmlGpuInstanceGetComputeInstanceById is not found")
7119 return (<nvmlReturn_t (*)(nvmlGpuInstance_t, unsigned int, nvmlComputeInstance_t*) noexcept nogil>__nvmlGpuInstanceGetComputeInstanceById)(
7120 gpuInstance, id, computeInstance)
7123cdef nvmlReturn_t _nvmlComputeInstanceGetInfo_v2(nvmlComputeInstance_t computeInstance, nvmlComputeInstanceInfo_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
7124 global __nvmlComputeInstanceGetInfo_v2
7125 _check_or_init_nvml()
7126 if __nvmlComputeInstanceGetInfo_v2 == NULL:
7127 with gil:
7128 raise FunctionNotFoundError("function nvmlComputeInstanceGetInfo_v2 is not found")
7129 return (<nvmlReturn_t (*)(nvmlComputeInstance_t, nvmlComputeInstanceInfo_t*) noexcept nogil>__nvmlComputeInstanceGetInfo_v2)(
7130 computeInstance, info)
7133cdef nvmlReturn_t _nvmlDeviceIsMigDeviceHandle(nvmlDevice_t device, unsigned int* isMigDevice) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
7134 global __nvmlDeviceIsMigDeviceHandle
7135 _check_or_init_nvml()
7136 if __nvmlDeviceIsMigDeviceHandle == NULL:
7137 with gil:
7138 raise FunctionNotFoundError("function nvmlDeviceIsMigDeviceHandle is not found")
7139 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceIsMigDeviceHandle)(
7140 device, isMigDevice)
7143cdef nvmlReturn_t _nvmlDeviceGetGpuInstanceId(nvmlDevice_t device, unsigned int* id) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
7144 global __nvmlDeviceGetGpuInstanceId
7145 _check_or_init_nvml()
7146 if __nvmlDeviceGetGpuInstanceId == NULL:
7147 with gil:
7148 raise FunctionNotFoundError("function nvmlDeviceGetGpuInstanceId is not found")
7149 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetGpuInstanceId)(
7150 device, id)
7153cdef nvmlReturn_t _nvmlDeviceGetComputeInstanceId(nvmlDevice_t device, unsigned int* id) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
7154 global __nvmlDeviceGetComputeInstanceId
7155 _check_or_init_nvml()
7156 if __nvmlDeviceGetComputeInstanceId == NULL:
7157 with gil:
7158 raise FunctionNotFoundError("function nvmlDeviceGetComputeInstanceId is not found")
7159 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetComputeInstanceId)(
7160 device, id)
7163cdef nvmlReturn_t _nvmlDeviceGetMaxMigDeviceCount(nvmlDevice_t device, unsigned int* count) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
7164 global __nvmlDeviceGetMaxMigDeviceCount
7165 _check_or_init_nvml()
7166 if __nvmlDeviceGetMaxMigDeviceCount == NULL:
7167 with gil:
7168 raise FunctionNotFoundError("function nvmlDeviceGetMaxMigDeviceCount is not found")
7169 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetMaxMigDeviceCount)(
7170 device, count)
7173cdef nvmlReturn_t _nvmlDeviceGetMigDeviceHandleByIndex(nvmlDevice_t device, unsigned int index, nvmlDevice_t* migDevice) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
7174 global __nvmlDeviceGetMigDeviceHandleByIndex
7175 _check_or_init_nvml()
7176 if __nvmlDeviceGetMigDeviceHandleByIndex == NULL:
7177 with gil:
7178 raise FunctionNotFoundError("function nvmlDeviceGetMigDeviceHandleByIndex is not found")
7179 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlDevice_t*) noexcept nogil>__nvmlDeviceGetMigDeviceHandleByIndex)(
7180 device, index, migDevice)
7183cdef nvmlReturn_t _nvmlDeviceGetDeviceHandleFromMigDeviceHandle(nvmlDevice_t migDevice, nvmlDevice_t* device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
7184 global __nvmlDeviceGetDeviceHandleFromMigDeviceHandle
7185 _check_or_init_nvml()
7186 if __nvmlDeviceGetDeviceHandleFromMigDeviceHandle == NULL:
7187 with gil:
7188 raise FunctionNotFoundError("function nvmlDeviceGetDeviceHandleFromMigDeviceHandle is not found")
7189 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlDevice_t*) noexcept nogil>__nvmlDeviceGetDeviceHandleFromMigDeviceHandle)(
7190 migDevice, device)
7193cdef nvmlReturn_t _nvmlGpmSampleGet(nvmlDevice_t device, nvmlGpmSample_t gpmSample) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
7194 global __nvmlGpmSampleGet
7195 _check_or_init_nvml()
7196 if __nvmlGpmSampleGet == NULL:
7197 with gil:
7198 raise FunctionNotFoundError("function nvmlGpmSampleGet is not found")
7199 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlGpmSample_t) noexcept nogil>__nvmlGpmSampleGet)(
7200 device, gpmSample)
7203cdef nvmlReturn_t _nvmlGpmMigSampleGet(nvmlDevice_t device, unsigned int gpuInstanceId, nvmlGpmSample_t gpmSample) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
7204 global __nvmlGpmMigSampleGet
7205 _check_or_init_nvml()
7206 if __nvmlGpmMigSampleGet == NULL:
7207 with gil:
7208 raise FunctionNotFoundError("function nvmlGpmMigSampleGet is not found")
7209 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlGpmSample_t) noexcept nogil>__nvmlGpmMigSampleGet)(
7210 device, gpuInstanceId, gpmSample)
7213cdef nvmlReturn_t _nvmlGpmQueryDeviceSupport(nvmlDevice_t device, nvmlGpmSupport_t* gpmSupport) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
7214 global __nvmlGpmQueryDeviceSupport
7215 _check_or_init_nvml()
7216 if __nvmlGpmQueryDeviceSupport == NULL:
7217 with gil:
7218 raise FunctionNotFoundError("function nvmlGpmQueryDeviceSupport is not found")
7219 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlGpmSupport_t*) noexcept nogil>__nvmlGpmQueryDeviceSupport)(
7220 device, gpmSupport)
7223cdef nvmlReturn_t _nvmlGpmQueryIfStreamingEnabled(nvmlDevice_t device, unsigned int* state) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
7224 global __nvmlGpmQueryIfStreamingEnabled
7225 _check_or_init_nvml()
7226 if __nvmlGpmQueryIfStreamingEnabled == NULL:
7227 with gil:
7228 raise FunctionNotFoundError("function nvmlGpmQueryIfStreamingEnabled is not found")
7229 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlGpmQueryIfStreamingEnabled)(
7230 device, state)
7233cdef nvmlReturn_t _nvmlGpmSetStreamingEnabled(nvmlDevice_t device, unsigned int state) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
7234 global __nvmlGpmSetStreamingEnabled
7235 _check_or_init_nvml()
7236 if __nvmlGpmSetStreamingEnabled == NULL:
7237 with gil:
7238 raise FunctionNotFoundError("function nvmlGpmSetStreamingEnabled is not found")
7239 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int) noexcept nogil>__nvmlGpmSetStreamingEnabled)(
7240 device, state)
7243cdef nvmlReturn_t _nvmlDeviceGetCapabilities(nvmlDevice_t device, nvmlDeviceCapabilities_t* caps) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
7244 global __nvmlDeviceGetCapabilities
7245 _check_or_init_nvml()
7246 if __nvmlDeviceGetCapabilities == NULL:
7247 with gil:
7248 raise FunctionNotFoundError("function nvmlDeviceGetCapabilities is not found")
7249 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlDeviceCapabilities_t*) noexcept nogil>__nvmlDeviceGetCapabilities)(
7250 device, caps)
7253cdef nvmlReturn_t _nvmlDeviceWorkloadPowerProfileClearRequestedProfiles(nvmlDevice_t device, nvmlWorkloadPowerProfileRequestedProfiles_t* requestedProfiles) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
7254 global __nvmlDeviceWorkloadPowerProfileClearRequestedProfiles
7255 _check_or_init_nvml()
7256 if __nvmlDeviceWorkloadPowerProfileClearRequestedProfiles == NULL:
7257 with gil:
7258 raise FunctionNotFoundError("function nvmlDeviceWorkloadPowerProfileClearRequestedProfiles is not found")
7259 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlWorkloadPowerProfileRequestedProfiles_t*) noexcept nogil>__nvmlDeviceWorkloadPowerProfileClearRequestedProfiles)(
7260 device, requestedProfiles)
7263cdef nvmlReturn_t _nvmlDevicePowerSmoothingActivatePresetProfile(nvmlDevice_t device, nvmlPowerSmoothingProfile_t* profile) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
7264 global __nvmlDevicePowerSmoothingActivatePresetProfile
7265 _check_or_init_nvml()
7266 if __nvmlDevicePowerSmoothingActivatePresetProfile == NULL:
7267 with gil:
7268 raise FunctionNotFoundError("function nvmlDevicePowerSmoothingActivatePresetProfile is not found")
7269 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPowerSmoothingProfile_t*) noexcept nogil>__nvmlDevicePowerSmoothingActivatePresetProfile)(
7270 device, profile)
7273cdef nvmlReturn_t _nvmlDevicePowerSmoothingUpdatePresetProfileParam(nvmlDevice_t device, nvmlPowerSmoothingProfile_t* profile) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
7274 global __nvmlDevicePowerSmoothingUpdatePresetProfileParam
7275 _check_or_init_nvml()
7276 if __nvmlDevicePowerSmoothingUpdatePresetProfileParam == NULL:
7277 with gil:
7278 raise FunctionNotFoundError("function nvmlDevicePowerSmoothingUpdatePresetProfileParam is not found")
7279 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPowerSmoothingProfile_t*) noexcept nogil>__nvmlDevicePowerSmoothingUpdatePresetProfileParam)(
7280 device, profile)
7283cdef nvmlReturn_t _nvmlDevicePowerSmoothingSetState(nvmlDevice_t device, nvmlPowerSmoothingState_t* state) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil:
7284 global __nvmlDevicePowerSmoothingSetState
7285 _check_or_init_nvml()
7286 if __nvmlDevicePowerSmoothingSetState == NULL:
7287 with gil:
7288 raise FunctionNotFoundError("function nvmlDevicePowerSmoothingSetState is not found")
7289 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPowerSmoothingState_t*) noexcept nogil>__nvmlDevicePowerSmoothingSetState)(
7290 device, state)
7293cdef 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)
7303cdef 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)
7313cdef 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)
7323cdef 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)
7333cdef 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)
7343cdef 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)
7353cdef 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)
7363cdef 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)
7373cdef 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)
7383cdef 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)
7393cdef 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)