Coverage for cuda / bindings / _internal / _nvml.pyx: 33%

4595 statements  

« prev     ^ index     » next       coverage.py v7.13.0, created at 2025-12-18 00:44 +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.1.0. Do not modify it directly. 

6  

7from libc.stdint cimport intptr_t, uintptr_t 

8  

9import threading 

10  

11from .utils import FunctionNotFoundError, NotSupportedError 

12  

13from cuda.pathfinder import load_nvidia_dynamic_lib 

14  

15  

16############################################################################### 

17# Extern 

18############################################################################### 

19  

20# You must 'from .utils import NotSupportedError' before using this template 

21  

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*) 

27  

28 enum: 

29 RTLD_LAZY 

30 RTLD_NOW 

31 RTLD_GLOBAL 

32 RTLD_LOCAL 

33  

34 const void* RTLD_DEFAULT 'RTLD_DEFAULT' 

35  

36cdef int get_cuda_version(): 

37 cdef void* handle = NULL 

38 cdef int err, driver_ver = 0 

39  

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}') 

51  

52 return driver_ver 

53  

54  

55  

56############################################################################### 

57# Wrapper init 

58############################################################################### 

59  

60cdef object __symbol_lock = threading.Lock() 

61cdef bint __py_nvml_init = False 

62  

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 

410cdef void* __nvmlDeviceGetUnrepairableMemoryFlag_v1 = NULL 

411cdef void* __nvmlDeviceReadPRMCounters_v1 = NULL 

412cdef void* __nvmlDeviceSetRusdSettings_v1 = NULL 

413  

414  

415cdef void* load_library() except* with gil: 

416 return dlopen("libnvidia-ml.so.1", RTLD_NOW | RTLD_GLOBAL) 

417  

418  

419cdef int _init_nvml() except -1 nogil: 

420 global __py_nvml_init 

421 cdef void* handle = NULL 

422  

423 with gil, __symbol_lock: 

424 # Recheck the flag after obtaining the locks 

425 if __py_nvml_init: 

426 return 0 

427  

428 # Load function 

429 global __nvmlInit_v2 

430 __nvmlInit_v2 = dlsym(RTLD_DEFAULT, 'nvmlInit_v2') 

431 if __nvmlInit_v2 == NULL: 

432 if handle == NULL: 

433 handle = load_library() 

434 __nvmlInit_v2 = dlsym(handle, 'nvmlInit_v2') 

435  

436 global __nvmlInitWithFlags 

437 __nvmlInitWithFlags = dlsym(RTLD_DEFAULT, 'nvmlInitWithFlags') 

438 if __nvmlInitWithFlags == NULL: 

439 if handle == NULL: 

440 handle = load_library() 

441 __nvmlInitWithFlags = dlsym(handle, 'nvmlInitWithFlags') 

442  

443 global __nvmlShutdown 

444 __nvmlShutdown = dlsym(RTLD_DEFAULT, 'nvmlShutdown') 

445 if __nvmlShutdown == NULL: 

446 if handle == NULL: 

447 handle = load_library() 

448 __nvmlShutdown = dlsym(handle, 'nvmlShutdown') 

449  

450 global __nvmlErrorString 

451 __nvmlErrorString = dlsym(RTLD_DEFAULT, 'nvmlErrorString') 

452 if __nvmlErrorString == NULL: 

453 if handle == NULL: 

454 handle = load_library() 

455 __nvmlErrorString = dlsym(handle, 'nvmlErrorString') 

456  

457 global __nvmlSystemGetDriverVersion 

458 __nvmlSystemGetDriverVersion = dlsym(RTLD_DEFAULT, 'nvmlSystemGetDriverVersion') 

459 if __nvmlSystemGetDriverVersion == NULL: 

460 if handle == NULL: 

461 handle = load_library() 

462 __nvmlSystemGetDriverVersion = dlsym(handle, 'nvmlSystemGetDriverVersion') 

463  

464 global __nvmlSystemGetNVMLVersion 

465 __nvmlSystemGetNVMLVersion = dlsym(RTLD_DEFAULT, 'nvmlSystemGetNVMLVersion') 

466 if __nvmlSystemGetNVMLVersion == NULL: 

467 if handle == NULL: 

468 handle = load_library() 

469 __nvmlSystemGetNVMLVersion = dlsym(handle, 'nvmlSystemGetNVMLVersion') 

470  

471 global __nvmlSystemGetCudaDriverVersion 

472 __nvmlSystemGetCudaDriverVersion = dlsym(RTLD_DEFAULT, 'nvmlSystemGetCudaDriverVersion') 

473 if __nvmlSystemGetCudaDriverVersion == NULL: 

474 if handle == NULL: 

475 handle = load_library() 

476 __nvmlSystemGetCudaDriverVersion = dlsym(handle, 'nvmlSystemGetCudaDriverVersion') 

477  

478 global __nvmlSystemGetCudaDriverVersion_v2 

479 __nvmlSystemGetCudaDriverVersion_v2 = dlsym(RTLD_DEFAULT, 'nvmlSystemGetCudaDriverVersion_v2') 

480 if __nvmlSystemGetCudaDriverVersion_v2 == NULL: 

481 if handle == NULL: 

482 handle = load_library() 

483 __nvmlSystemGetCudaDriverVersion_v2 = dlsym(handle, 'nvmlSystemGetCudaDriverVersion_v2') 

484  

485 global __nvmlSystemGetProcessName 

486 __nvmlSystemGetProcessName = dlsym(RTLD_DEFAULT, 'nvmlSystemGetProcessName') 

487 if __nvmlSystemGetProcessName == NULL: 

488 if handle == NULL: 

489 handle = load_library() 

490 __nvmlSystemGetProcessName = dlsym(handle, 'nvmlSystemGetProcessName') 

491  

492 global __nvmlSystemGetHicVersion 

493 __nvmlSystemGetHicVersion = dlsym(RTLD_DEFAULT, 'nvmlSystemGetHicVersion') 

494 if __nvmlSystemGetHicVersion == NULL: 

495 if handle == NULL: 

496 handle = load_library() 

497 __nvmlSystemGetHicVersion = dlsym(handle, 'nvmlSystemGetHicVersion') 

498  

499 global __nvmlSystemGetTopologyGpuSet 

500 __nvmlSystemGetTopologyGpuSet = dlsym(RTLD_DEFAULT, 'nvmlSystemGetTopologyGpuSet') 

501 if __nvmlSystemGetTopologyGpuSet == NULL: 

502 if handle == NULL: 

503 handle = load_library() 

504 __nvmlSystemGetTopologyGpuSet = dlsym(handle, 'nvmlSystemGetTopologyGpuSet') 

505  

506 global __nvmlSystemGetDriverBranch 

507 __nvmlSystemGetDriverBranch = dlsym(RTLD_DEFAULT, 'nvmlSystemGetDriverBranch') 

508 if __nvmlSystemGetDriverBranch == NULL: 

509 if handle == NULL: 

510 handle = load_library() 

511 __nvmlSystemGetDriverBranch = dlsym(handle, 'nvmlSystemGetDriverBranch') 

512  

513 global __nvmlUnitGetCount 

514 __nvmlUnitGetCount = dlsym(RTLD_DEFAULT, 'nvmlUnitGetCount') 

515 if __nvmlUnitGetCount == NULL: 

516 if handle == NULL: 

517 handle = load_library() 

518 __nvmlUnitGetCount = dlsym(handle, 'nvmlUnitGetCount') 

519  

520 global __nvmlUnitGetHandleByIndex 

521 __nvmlUnitGetHandleByIndex = dlsym(RTLD_DEFAULT, 'nvmlUnitGetHandleByIndex') 

522 if __nvmlUnitGetHandleByIndex == NULL: 

523 if handle == NULL: 

524 handle = load_library() 

525 __nvmlUnitGetHandleByIndex = dlsym(handle, 'nvmlUnitGetHandleByIndex') 

526  

527 global __nvmlUnitGetUnitInfo 

528 __nvmlUnitGetUnitInfo = dlsym(RTLD_DEFAULT, 'nvmlUnitGetUnitInfo') 

529 if __nvmlUnitGetUnitInfo == NULL: 

530 if handle == NULL: 

531 handle = load_library() 

532 __nvmlUnitGetUnitInfo = dlsym(handle, 'nvmlUnitGetUnitInfo') 

533  

534 global __nvmlUnitGetLedState 

535 __nvmlUnitGetLedState = dlsym(RTLD_DEFAULT, 'nvmlUnitGetLedState') 

536 if __nvmlUnitGetLedState == NULL: 

537 if handle == NULL: 

538 handle = load_library() 

539 __nvmlUnitGetLedState = dlsym(handle, 'nvmlUnitGetLedState') 

540  

541 global __nvmlUnitGetPsuInfo 

542 __nvmlUnitGetPsuInfo = dlsym(RTLD_DEFAULT, 'nvmlUnitGetPsuInfo') 

543 if __nvmlUnitGetPsuInfo == NULL: 

544 if handle == NULL: 

545 handle = load_library() 

546 __nvmlUnitGetPsuInfo = dlsym(handle, 'nvmlUnitGetPsuInfo') 

547  

548 global __nvmlUnitGetTemperature 

549 __nvmlUnitGetTemperature = dlsym(RTLD_DEFAULT, 'nvmlUnitGetTemperature') 

550 if __nvmlUnitGetTemperature == NULL: 

551 if handle == NULL: 

552 handle = load_library() 

553 __nvmlUnitGetTemperature = dlsym(handle, 'nvmlUnitGetTemperature') 

554  

555 global __nvmlUnitGetFanSpeedInfo 

556 __nvmlUnitGetFanSpeedInfo = dlsym(RTLD_DEFAULT, 'nvmlUnitGetFanSpeedInfo') 

557 if __nvmlUnitGetFanSpeedInfo == NULL: 

558 if handle == NULL: 

559 handle = load_library() 

560 __nvmlUnitGetFanSpeedInfo = dlsym(handle, 'nvmlUnitGetFanSpeedInfo') 

561  

562 global __nvmlUnitGetDevices 

563 __nvmlUnitGetDevices = dlsym(RTLD_DEFAULT, 'nvmlUnitGetDevices') 

564 if __nvmlUnitGetDevices == NULL: 

565 if handle == NULL: 

566 handle = load_library() 

567 __nvmlUnitGetDevices = dlsym(handle, 'nvmlUnitGetDevices') 

568  

569 global __nvmlDeviceGetCount_v2 

570 __nvmlDeviceGetCount_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetCount_v2') 

571 if __nvmlDeviceGetCount_v2 == NULL: 

572 if handle == NULL: 

573 handle = load_library() 

574 __nvmlDeviceGetCount_v2 = dlsym(handle, 'nvmlDeviceGetCount_v2') 

575  

576 global __nvmlDeviceGetAttributes_v2 

577 __nvmlDeviceGetAttributes_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetAttributes_v2') 

578 if __nvmlDeviceGetAttributes_v2 == NULL: 

579 if handle == NULL: 

580 handle = load_library() 

581 __nvmlDeviceGetAttributes_v2 = dlsym(handle, 'nvmlDeviceGetAttributes_v2') 

582  

583 global __nvmlDeviceGetHandleByIndex_v2 

584 __nvmlDeviceGetHandleByIndex_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetHandleByIndex_v2') 

585 if __nvmlDeviceGetHandleByIndex_v2 == NULL: 

586 if handle == NULL: 

587 handle = load_library() 

588 __nvmlDeviceGetHandleByIndex_v2 = dlsym(handle, 'nvmlDeviceGetHandleByIndex_v2') 

589  

590 global __nvmlDeviceGetHandleBySerial 

591 __nvmlDeviceGetHandleBySerial = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetHandleBySerial') 

592 if __nvmlDeviceGetHandleBySerial == NULL: 

593 if handle == NULL: 

594 handle = load_library() 

595 __nvmlDeviceGetHandleBySerial = dlsym(handle, 'nvmlDeviceGetHandleBySerial') 

596  

597 global __nvmlDeviceGetHandleByUUID 

598 __nvmlDeviceGetHandleByUUID = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetHandleByUUID') 

599 if __nvmlDeviceGetHandleByUUID == NULL: 

600 if handle == NULL: 

601 handle = load_library() 

602 __nvmlDeviceGetHandleByUUID = dlsym(handle, 'nvmlDeviceGetHandleByUUID') 

603  

604 global __nvmlDeviceGetHandleByUUIDV 

605 __nvmlDeviceGetHandleByUUIDV = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetHandleByUUIDV') 

606 if __nvmlDeviceGetHandleByUUIDV == NULL: 

607 if handle == NULL: 

608 handle = load_library() 

609 __nvmlDeviceGetHandleByUUIDV = dlsym(handle, 'nvmlDeviceGetHandleByUUIDV') 

610  

611 global __nvmlDeviceGetHandleByPciBusId_v2 

612 __nvmlDeviceGetHandleByPciBusId_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetHandleByPciBusId_v2') 

613 if __nvmlDeviceGetHandleByPciBusId_v2 == NULL: 

614 if handle == NULL: 

615 handle = load_library() 

616 __nvmlDeviceGetHandleByPciBusId_v2 = dlsym(handle, 'nvmlDeviceGetHandleByPciBusId_v2') 

617  

618 global __nvmlDeviceGetName 

619 __nvmlDeviceGetName = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetName') 

620 if __nvmlDeviceGetName == NULL: 

621 if handle == NULL: 

622 handle = load_library() 

623 __nvmlDeviceGetName = dlsym(handle, 'nvmlDeviceGetName') 

624  

625 global __nvmlDeviceGetBrand 

626 __nvmlDeviceGetBrand = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetBrand') 

627 if __nvmlDeviceGetBrand == NULL: 

628 if handle == NULL: 

629 handle = load_library() 

630 __nvmlDeviceGetBrand = dlsym(handle, 'nvmlDeviceGetBrand') 

631  

632 global __nvmlDeviceGetIndex 

633 __nvmlDeviceGetIndex = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetIndex') 

634 if __nvmlDeviceGetIndex == NULL: 

635 if handle == NULL: 

636 handle = load_library() 

637 __nvmlDeviceGetIndex = dlsym(handle, 'nvmlDeviceGetIndex') 

638  

639 global __nvmlDeviceGetSerial 

640 __nvmlDeviceGetSerial = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetSerial') 

641 if __nvmlDeviceGetSerial == NULL: 

642 if handle == NULL: 

643 handle = load_library() 

644 __nvmlDeviceGetSerial = dlsym(handle, 'nvmlDeviceGetSerial') 

645  

646 global __nvmlDeviceGetModuleId 

647 __nvmlDeviceGetModuleId = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetModuleId') 

648 if __nvmlDeviceGetModuleId == NULL: 

649 if handle == NULL: 

650 handle = load_library() 

651 __nvmlDeviceGetModuleId = dlsym(handle, 'nvmlDeviceGetModuleId') 

652  

653 global __nvmlDeviceGetC2cModeInfoV 

654 __nvmlDeviceGetC2cModeInfoV = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetC2cModeInfoV') 

655 if __nvmlDeviceGetC2cModeInfoV == NULL: 

656 if handle == NULL: 

657 handle = load_library() 

658 __nvmlDeviceGetC2cModeInfoV = dlsym(handle, 'nvmlDeviceGetC2cModeInfoV') 

659  

660 global __nvmlDeviceGetMemoryAffinity 

661 __nvmlDeviceGetMemoryAffinity = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMemoryAffinity') 

662 if __nvmlDeviceGetMemoryAffinity == NULL: 

663 if handle == NULL: 

664 handle = load_library() 

665 __nvmlDeviceGetMemoryAffinity = dlsym(handle, 'nvmlDeviceGetMemoryAffinity') 

666  

667 global __nvmlDeviceGetCpuAffinityWithinScope 

668 __nvmlDeviceGetCpuAffinityWithinScope = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetCpuAffinityWithinScope') 

669 if __nvmlDeviceGetCpuAffinityWithinScope == NULL: 

670 if handle == NULL: 

671 handle = load_library() 

672 __nvmlDeviceGetCpuAffinityWithinScope = dlsym(handle, 'nvmlDeviceGetCpuAffinityWithinScope') 

673  

674 global __nvmlDeviceGetCpuAffinity 

675 __nvmlDeviceGetCpuAffinity = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetCpuAffinity') 

676 if __nvmlDeviceGetCpuAffinity == NULL: 

677 if handle == NULL: 

678 handle = load_library() 

679 __nvmlDeviceGetCpuAffinity = dlsym(handle, 'nvmlDeviceGetCpuAffinity') 

680  

681 global __nvmlDeviceSetCpuAffinity 

682 __nvmlDeviceSetCpuAffinity = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetCpuAffinity') 

683 if __nvmlDeviceSetCpuAffinity == NULL: 

684 if handle == NULL: 

685 handle = load_library() 

686 __nvmlDeviceSetCpuAffinity = dlsym(handle, 'nvmlDeviceSetCpuAffinity') 

687  

688 global __nvmlDeviceClearCpuAffinity 

689 __nvmlDeviceClearCpuAffinity = dlsym(RTLD_DEFAULT, 'nvmlDeviceClearCpuAffinity') 

690 if __nvmlDeviceClearCpuAffinity == NULL: 

691 if handle == NULL: 

692 handle = load_library() 

693 __nvmlDeviceClearCpuAffinity = dlsym(handle, 'nvmlDeviceClearCpuAffinity') 

694  

695 global __nvmlDeviceGetNumaNodeId 

696 __nvmlDeviceGetNumaNodeId = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNumaNodeId') 

697 if __nvmlDeviceGetNumaNodeId == NULL: 

698 if handle == NULL: 

699 handle = load_library() 

700 __nvmlDeviceGetNumaNodeId = dlsym(handle, 'nvmlDeviceGetNumaNodeId') 

701  

702 global __nvmlDeviceGetTopologyCommonAncestor 

703 __nvmlDeviceGetTopologyCommonAncestor = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetTopologyCommonAncestor') 

704 if __nvmlDeviceGetTopologyCommonAncestor == NULL: 

705 if handle == NULL: 

706 handle = load_library() 

707 __nvmlDeviceGetTopologyCommonAncestor = dlsym(handle, 'nvmlDeviceGetTopologyCommonAncestor') 

708  

709 global __nvmlDeviceGetTopologyNearestGpus 

710 __nvmlDeviceGetTopologyNearestGpus = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetTopologyNearestGpus') 

711 if __nvmlDeviceGetTopologyNearestGpus == NULL: 

712 if handle == NULL: 

713 handle = load_library() 

714 __nvmlDeviceGetTopologyNearestGpus = dlsym(handle, 'nvmlDeviceGetTopologyNearestGpus') 

715  

716 global __nvmlDeviceGetP2PStatus 

717 __nvmlDeviceGetP2PStatus = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetP2PStatus') 

718 if __nvmlDeviceGetP2PStatus == NULL: 

719 if handle == NULL: 

720 handle = load_library() 

721 __nvmlDeviceGetP2PStatus = dlsym(handle, 'nvmlDeviceGetP2PStatus') 

722  

723 global __nvmlDeviceGetUUID 

724 __nvmlDeviceGetUUID = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetUUID') 

725 if __nvmlDeviceGetUUID == NULL: 

726 if handle == NULL: 

727 handle = load_library() 

728 __nvmlDeviceGetUUID = dlsym(handle, 'nvmlDeviceGetUUID') 

729  

730 global __nvmlDeviceGetMinorNumber 

731 __nvmlDeviceGetMinorNumber = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMinorNumber') 

732 if __nvmlDeviceGetMinorNumber == NULL: 

733 if handle == NULL: 

734 handle = load_library() 

735 __nvmlDeviceGetMinorNumber = dlsym(handle, 'nvmlDeviceGetMinorNumber') 

736  

737 global __nvmlDeviceGetBoardPartNumber 

738 __nvmlDeviceGetBoardPartNumber = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetBoardPartNumber') 

739 if __nvmlDeviceGetBoardPartNumber == NULL: 

740 if handle == NULL: 

741 handle = load_library() 

742 __nvmlDeviceGetBoardPartNumber = dlsym(handle, 'nvmlDeviceGetBoardPartNumber') 

743  

744 global __nvmlDeviceGetInforomVersion 

745 __nvmlDeviceGetInforomVersion = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetInforomVersion') 

746 if __nvmlDeviceGetInforomVersion == NULL: 

747 if handle == NULL: 

748 handle = load_library() 

749 __nvmlDeviceGetInforomVersion = dlsym(handle, 'nvmlDeviceGetInforomVersion') 

750  

751 global __nvmlDeviceGetInforomImageVersion 

752 __nvmlDeviceGetInforomImageVersion = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetInforomImageVersion') 

753 if __nvmlDeviceGetInforomImageVersion == NULL: 

754 if handle == NULL: 

755 handle = load_library() 

756 __nvmlDeviceGetInforomImageVersion = dlsym(handle, 'nvmlDeviceGetInforomImageVersion') 

757  

758 global __nvmlDeviceGetInforomConfigurationChecksum 

759 __nvmlDeviceGetInforomConfigurationChecksum = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetInforomConfigurationChecksum') 

760 if __nvmlDeviceGetInforomConfigurationChecksum == NULL: 

761 if handle == NULL: 

762 handle = load_library() 

763 __nvmlDeviceGetInforomConfigurationChecksum = dlsym(handle, 'nvmlDeviceGetInforomConfigurationChecksum') 

764  

765 global __nvmlDeviceValidateInforom 

766 __nvmlDeviceValidateInforom = dlsym(RTLD_DEFAULT, 'nvmlDeviceValidateInforom') 

767 if __nvmlDeviceValidateInforom == NULL: 

768 if handle == NULL: 

769 handle = load_library() 

770 __nvmlDeviceValidateInforom = dlsym(handle, 'nvmlDeviceValidateInforom') 

771  

772 global __nvmlDeviceGetLastBBXFlushTime 

773 __nvmlDeviceGetLastBBXFlushTime = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetLastBBXFlushTime') 

774 if __nvmlDeviceGetLastBBXFlushTime == NULL: 

775 if handle == NULL: 

776 handle = load_library() 

777 __nvmlDeviceGetLastBBXFlushTime = dlsym(handle, 'nvmlDeviceGetLastBBXFlushTime') 

778  

779 global __nvmlDeviceGetDisplayMode 

780 __nvmlDeviceGetDisplayMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetDisplayMode') 

781 if __nvmlDeviceGetDisplayMode == NULL: 

782 if handle == NULL: 

783 handle = load_library() 

784 __nvmlDeviceGetDisplayMode = dlsym(handle, 'nvmlDeviceGetDisplayMode') 

785  

786 global __nvmlDeviceGetDisplayActive 

787 __nvmlDeviceGetDisplayActive = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetDisplayActive') 

788 if __nvmlDeviceGetDisplayActive == NULL: 

789 if handle == NULL: 

790 handle = load_library() 

791 __nvmlDeviceGetDisplayActive = dlsym(handle, 'nvmlDeviceGetDisplayActive') 

792  

793 global __nvmlDeviceGetPersistenceMode 

794 __nvmlDeviceGetPersistenceMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPersistenceMode') 

795 if __nvmlDeviceGetPersistenceMode == NULL: 

796 if handle == NULL: 

797 handle = load_library() 

798 __nvmlDeviceGetPersistenceMode = dlsym(handle, 'nvmlDeviceGetPersistenceMode') 

799  

800 global __nvmlDeviceGetPciInfoExt 

801 __nvmlDeviceGetPciInfoExt = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPciInfoExt') 

802 if __nvmlDeviceGetPciInfoExt == NULL: 

803 if handle == NULL: 

804 handle = load_library() 

805 __nvmlDeviceGetPciInfoExt = dlsym(handle, 'nvmlDeviceGetPciInfoExt') 

806  

807 global __nvmlDeviceGetPciInfo_v3 

808 __nvmlDeviceGetPciInfo_v3 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPciInfo_v3') 

809 if __nvmlDeviceGetPciInfo_v3 == NULL: 

810 if handle == NULL: 

811 handle = load_library() 

812 __nvmlDeviceGetPciInfo_v3 = dlsym(handle, 'nvmlDeviceGetPciInfo_v3') 

813  

814 global __nvmlDeviceGetMaxPcieLinkGeneration 

815 __nvmlDeviceGetMaxPcieLinkGeneration = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMaxPcieLinkGeneration') 

816 if __nvmlDeviceGetMaxPcieLinkGeneration == NULL: 

817 if handle == NULL: 

818 handle = load_library() 

819 __nvmlDeviceGetMaxPcieLinkGeneration = dlsym(handle, 'nvmlDeviceGetMaxPcieLinkGeneration') 

820  

821 global __nvmlDeviceGetGpuMaxPcieLinkGeneration 

822 __nvmlDeviceGetGpuMaxPcieLinkGeneration = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpuMaxPcieLinkGeneration') 

823 if __nvmlDeviceGetGpuMaxPcieLinkGeneration == NULL: 

824 if handle == NULL: 

825 handle = load_library() 

826 __nvmlDeviceGetGpuMaxPcieLinkGeneration = dlsym(handle, 'nvmlDeviceGetGpuMaxPcieLinkGeneration') 

827  

828 global __nvmlDeviceGetMaxPcieLinkWidth 

829 __nvmlDeviceGetMaxPcieLinkWidth = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMaxPcieLinkWidth') 

830 if __nvmlDeviceGetMaxPcieLinkWidth == NULL: 

831 if handle == NULL: 

832 handle = load_library() 

833 __nvmlDeviceGetMaxPcieLinkWidth = dlsym(handle, 'nvmlDeviceGetMaxPcieLinkWidth') 

834  

835 global __nvmlDeviceGetCurrPcieLinkGeneration 

836 __nvmlDeviceGetCurrPcieLinkGeneration = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetCurrPcieLinkGeneration') 

837 if __nvmlDeviceGetCurrPcieLinkGeneration == NULL: 

838 if handle == NULL: 

839 handle = load_library() 

840 __nvmlDeviceGetCurrPcieLinkGeneration = dlsym(handle, 'nvmlDeviceGetCurrPcieLinkGeneration') 

841  

842 global __nvmlDeviceGetCurrPcieLinkWidth 

843 __nvmlDeviceGetCurrPcieLinkWidth = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetCurrPcieLinkWidth') 

844 if __nvmlDeviceGetCurrPcieLinkWidth == NULL: 

845 if handle == NULL: 

846 handle = load_library() 

847 __nvmlDeviceGetCurrPcieLinkWidth = dlsym(handle, 'nvmlDeviceGetCurrPcieLinkWidth') 

848  

849 global __nvmlDeviceGetPcieThroughput 

850 __nvmlDeviceGetPcieThroughput = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPcieThroughput') 

851 if __nvmlDeviceGetPcieThroughput == NULL: 

852 if handle == NULL: 

853 handle = load_library() 

854 __nvmlDeviceGetPcieThroughput = dlsym(handle, 'nvmlDeviceGetPcieThroughput') 

855  

856 global __nvmlDeviceGetPcieReplayCounter 

857 __nvmlDeviceGetPcieReplayCounter = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPcieReplayCounter') 

858 if __nvmlDeviceGetPcieReplayCounter == NULL: 

859 if handle == NULL: 

860 handle = load_library() 

861 __nvmlDeviceGetPcieReplayCounter = dlsym(handle, 'nvmlDeviceGetPcieReplayCounter') 

862  

863 global __nvmlDeviceGetClockInfo 

864 __nvmlDeviceGetClockInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetClockInfo') 

865 if __nvmlDeviceGetClockInfo == NULL: 

866 if handle == NULL: 

867 handle = load_library() 

868 __nvmlDeviceGetClockInfo = dlsym(handle, 'nvmlDeviceGetClockInfo') 

869  

870 global __nvmlDeviceGetMaxClockInfo 

871 __nvmlDeviceGetMaxClockInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMaxClockInfo') 

872 if __nvmlDeviceGetMaxClockInfo == NULL: 

873 if handle == NULL: 

874 handle = load_library() 

875 __nvmlDeviceGetMaxClockInfo = dlsym(handle, 'nvmlDeviceGetMaxClockInfo') 

876  

877 global __nvmlDeviceGetGpcClkVfOffset 

878 __nvmlDeviceGetGpcClkVfOffset = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpcClkVfOffset') 

879 if __nvmlDeviceGetGpcClkVfOffset == NULL: 

880 if handle == NULL: 

881 handle = load_library() 

882 __nvmlDeviceGetGpcClkVfOffset = dlsym(handle, 'nvmlDeviceGetGpcClkVfOffset') 

883  

884 global __nvmlDeviceGetClock 

885 __nvmlDeviceGetClock = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetClock') 

886 if __nvmlDeviceGetClock == NULL: 

887 if handle == NULL: 

888 handle = load_library() 

889 __nvmlDeviceGetClock = dlsym(handle, 'nvmlDeviceGetClock') 

890  

891 global __nvmlDeviceGetMaxCustomerBoostClock 

892 __nvmlDeviceGetMaxCustomerBoostClock = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMaxCustomerBoostClock') 

893 if __nvmlDeviceGetMaxCustomerBoostClock == NULL: 

894 if handle == NULL: 

895 handle = load_library() 

896 __nvmlDeviceGetMaxCustomerBoostClock = dlsym(handle, 'nvmlDeviceGetMaxCustomerBoostClock') 

897  

898 global __nvmlDeviceGetSupportedMemoryClocks 

899 __nvmlDeviceGetSupportedMemoryClocks = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetSupportedMemoryClocks') 

900 if __nvmlDeviceGetSupportedMemoryClocks == NULL: 

901 if handle == NULL: 

902 handle = load_library() 

903 __nvmlDeviceGetSupportedMemoryClocks = dlsym(handle, 'nvmlDeviceGetSupportedMemoryClocks') 

904  

905 global __nvmlDeviceGetSupportedGraphicsClocks 

906 __nvmlDeviceGetSupportedGraphicsClocks = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetSupportedGraphicsClocks') 

907 if __nvmlDeviceGetSupportedGraphicsClocks == NULL: 

908 if handle == NULL: 

909 handle = load_library() 

910 __nvmlDeviceGetSupportedGraphicsClocks = dlsym(handle, 'nvmlDeviceGetSupportedGraphicsClocks') 

911  

912 global __nvmlDeviceGetAutoBoostedClocksEnabled 

913 __nvmlDeviceGetAutoBoostedClocksEnabled = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetAutoBoostedClocksEnabled') 

914 if __nvmlDeviceGetAutoBoostedClocksEnabled == NULL: 

915 if handle == NULL: 

916 handle = load_library() 

917 __nvmlDeviceGetAutoBoostedClocksEnabled = dlsym(handle, 'nvmlDeviceGetAutoBoostedClocksEnabled') 

918  

919 global __nvmlDeviceGetFanSpeed 

920 __nvmlDeviceGetFanSpeed = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetFanSpeed') 

921 if __nvmlDeviceGetFanSpeed == NULL: 

922 if handle == NULL: 

923 handle = load_library() 

924 __nvmlDeviceGetFanSpeed = dlsym(handle, 'nvmlDeviceGetFanSpeed') 

925  

926 global __nvmlDeviceGetFanSpeed_v2 

927 __nvmlDeviceGetFanSpeed_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetFanSpeed_v2') 

928 if __nvmlDeviceGetFanSpeed_v2 == NULL: 

929 if handle == NULL: 

930 handle = load_library() 

931 __nvmlDeviceGetFanSpeed_v2 = dlsym(handle, 'nvmlDeviceGetFanSpeed_v2') 

932  

933 global __nvmlDeviceGetFanSpeedRPM 

934 __nvmlDeviceGetFanSpeedRPM = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetFanSpeedRPM') 

935 if __nvmlDeviceGetFanSpeedRPM == NULL: 

936 if handle == NULL: 

937 handle = load_library() 

938 __nvmlDeviceGetFanSpeedRPM = dlsym(handle, 'nvmlDeviceGetFanSpeedRPM') 

939  

940 global __nvmlDeviceGetTargetFanSpeed 

941 __nvmlDeviceGetTargetFanSpeed = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetTargetFanSpeed') 

942 if __nvmlDeviceGetTargetFanSpeed == NULL: 

943 if handle == NULL: 

944 handle = load_library() 

945 __nvmlDeviceGetTargetFanSpeed = dlsym(handle, 'nvmlDeviceGetTargetFanSpeed') 

946  

947 global __nvmlDeviceGetMinMaxFanSpeed 

948 __nvmlDeviceGetMinMaxFanSpeed = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMinMaxFanSpeed') 

949 if __nvmlDeviceGetMinMaxFanSpeed == NULL: 

950 if handle == NULL: 

951 handle = load_library() 

952 __nvmlDeviceGetMinMaxFanSpeed = dlsym(handle, 'nvmlDeviceGetMinMaxFanSpeed') 

953  

954 global __nvmlDeviceGetFanControlPolicy_v2 

955 __nvmlDeviceGetFanControlPolicy_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetFanControlPolicy_v2') 

956 if __nvmlDeviceGetFanControlPolicy_v2 == NULL: 

957 if handle == NULL: 

958 handle = load_library() 

959 __nvmlDeviceGetFanControlPolicy_v2 = dlsym(handle, 'nvmlDeviceGetFanControlPolicy_v2') 

960  

961 global __nvmlDeviceGetNumFans 

962 __nvmlDeviceGetNumFans = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNumFans') 

963 if __nvmlDeviceGetNumFans == NULL: 

964 if handle == NULL: 

965 handle = load_library() 

966 __nvmlDeviceGetNumFans = dlsym(handle, 'nvmlDeviceGetNumFans') 

967  

968 global __nvmlDeviceGetCoolerInfo 

969 __nvmlDeviceGetCoolerInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetCoolerInfo') 

970 if __nvmlDeviceGetCoolerInfo == NULL: 

971 if handle == NULL: 

972 handle = load_library() 

973 __nvmlDeviceGetCoolerInfo = dlsym(handle, 'nvmlDeviceGetCoolerInfo') 

974  

975 global __nvmlDeviceGetTemperatureV 

976 __nvmlDeviceGetTemperatureV = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetTemperatureV') 

977 if __nvmlDeviceGetTemperatureV == NULL: 

978 if handle == NULL: 

979 handle = load_library() 

980 __nvmlDeviceGetTemperatureV = dlsym(handle, 'nvmlDeviceGetTemperatureV') 

981  

982 global __nvmlDeviceGetTemperatureThreshold 

983 __nvmlDeviceGetTemperatureThreshold = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetTemperatureThreshold') 

984 if __nvmlDeviceGetTemperatureThreshold == NULL: 

985 if handle == NULL: 

986 handle = load_library() 

987 __nvmlDeviceGetTemperatureThreshold = dlsym(handle, 'nvmlDeviceGetTemperatureThreshold') 

988  

989 global __nvmlDeviceGetMarginTemperature 

990 __nvmlDeviceGetMarginTemperature = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMarginTemperature') 

991 if __nvmlDeviceGetMarginTemperature == NULL: 

992 if handle == NULL: 

993 handle = load_library() 

994 __nvmlDeviceGetMarginTemperature = dlsym(handle, 'nvmlDeviceGetMarginTemperature') 

995  

996 global __nvmlDeviceGetThermalSettings 

997 __nvmlDeviceGetThermalSettings = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetThermalSettings') 

998 if __nvmlDeviceGetThermalSettings == NULL: 

999 if handle == NULL: 

1000 handle = load_library() 

1001 __nvmlDeviceGetThermalSettings = dlsym(handle, 'nvmlDeviceGetThermalSettings') 

1002  

1003 global __nvmlDeviceGetPerformanceState 

1004 __nvmlDeviceGetPerformanceState = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPerformanceState') 

1005 if __nvmlDeviceGetPerformanceState == NULL: 

1006 if handle == NULL: 

1007 handle = load_library() 

1008 __nvmlDeviceGetPerformanceState = dlsym(handle, 'nvmlDeviceGetPerformanceState') 

1009  

1010 global __nvmlDeviceGetCurrentClocksEventReasons 

1011 __nvmlDeviceGetCurrentClocksEventReasons = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetCurrentClocksEventReasons') 

1012 if __nvmlDeviceGetCurrentClocksEventReasons == NULL: 

1013 if handle == NULL: 

1014 handle = load_library() 

1015 __nvmlDeviceGetCurrentClocksEventReasons = dlsym(handle, 'nvmlDeviceGetCurrentClocksEventReasons') 

1016  

1017 global __nvmlDeviceGetSupportedClocksEventReasons 

1018 __nvmlDeviceGetSupportedClocksEventReasons = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetSupportedClocksEventReasons') 

1019 if __nvmlDeviceGetSupportedClocksEventReasons == NULL: 

1020 if handle == NULL: 

1021 handle = load_library() 

1022 __nvmlDeviceGetSupportedClocksEventReasons = dlsym(handle, 'nvmlDeviceGetSupportedClocksEventReasons') 

1023  

1024 global __nvmlDeviceGetPowerState 

1025 __nvmlDeviceGetPowerState = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPowerState') 

1026 if __nvmlDeviceGetPowerState == NULL: 

1027 if handle == NULL: 

1028 handle = load_library() 

1029 __nvmlDeviceGetPowerState = dlsym(handle, 'nvmlDeviceGetPowerState') 

1030  

1031 global __nvmlDeviceGetDynamicPstatesInfo 

1032 __nvmlDeviceGetDynamicPstatesInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetDynamicPstatesInfo') 

1033 if __nvmlDeviceGetDynamicPstatesInfo == NULL: 

1034 if handle == NULL: 

1035 handle = load_library() 

1036 __nvmlDeviceGetDynamicPstatesInfo = dlsym(handle, 'nvmlDeviceGetDynamicPstatesInfo') 

1037  

1038 global __nvmlDeviceGetMemClkVfOffset 

1039 __nvmlDeviceGetMemClkVfOffset = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMemClkVfOffset') 

1040 if __nvmlDeviceGetMemClkVfOffset == NULL: 

1041 if handle == NULL: 

1042 handle = load_library() 

1043 __nvmlDeviceGetMemClkVfOffset = dlsym(handle, 'nvmlDeviceGetMemClkVfOffset') 

1044  

1045 global __nvmlDeviceGetMinMaxClockOfPState 

1046 __nvmlDeviceGetMinMaxClockOfPState = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMinMaxClockOfPState') 

1047 if __nvmlDeviceGetMinMaxClockOfPState == NULL: 

1048 if handle == NULL: 

1049 handle = load_library() 

1050 __nvmlDeviceGetMinMaxClockOfPState = dlsym(handle, 'nvmlDeviceGetMinMaxClockOfPState') 

1051  

1052 global __nvmlDeviceGetSupportedPerformanceStates 

1053 __nvmlDeviceGetSupportedPerformanceStates = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetSupportedPerformanceStates') 

1054 if __nvmlDeviceGetSupportedPerformanceStates == NULL: 

1055 if handle == NULL: 

1056 handle = load_library() 

1057 __nvmlDeviceGetSupportedPerformanceStates = dlsym(handle, 'nvmlDeviceGetSupportedPerformanceStates') 

1058  

1059 global __nvmlDeviceGetGpcClkMinMaxVfOffset 

1060 __nvmlDeviceGetGpcClkMinMaxVfOffset = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpcClkMinMaxVfOffset') 

1061 if __nvmlDeviceGetGpcClkMinMaxVfOffset == NULL: 

1062 if handle == NULL: 

1063 handle = load_library() 

1064 __nvmlDeviceGetGpcClkMinMaxVfOffset = dlsym(handle, 'nvmlDeviceGetGpcClkMinMaxVfOffset') 

1065  

1066 global __nvmlDeviceGetMemClkMinMaxVfOffset 

1067 __nvmlDeviceGetMemClkMinMaxVfOffset = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMemClkMinMaxVfOffset') 

1068 if __nvmlDeviceGetMemClkMinMaxVfOffset == NULL: 

1069 if handle == NULL: 

1070 handle = load_library() 

1071 __nvmlDeviceGetMemClkMinMaxVfOffset = dlsym(handle, 'nvmlDeviceGetMemClkMinMaxVfOffset') 

1072  

1073 global __nvmlDeviceGetClockOffsets 

1074 __nvmlDeviceGetClockOffsets = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetClockOffsets') 

1075 if __nvmlDeviceGetClockOffsets == NULL: 

1076 if handle == NULL: 

1077 handle = load_library() 

1078 __nvmlDeviceGetClockOffsets = dlsym(handle, 'nvmlDeviceGetClockOffsets') 

1079  

1080 global __nvmlDeviceSetClockOffsets 

1081 __nvmlDeviceSetClockOffsets = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetClockOffsets') 

1082 if __nvmlDeviceSetClockOffsets == NULL: 

1083 if handle == NULL: 

1084 handle = load_library() 

1085 __nvmlDeviceSetClockOffsets = dlsym(handle, 'nvmlDeviceSetClockOffsets') 

1086  

1087 global __nvmlDeviceGetPerformanceModes 

1088 __nvmlDeviceGetPerformanceModes = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPerformanceModes') 

1089 if __nvmlDeviceGetPerformanceModes == NULL: 

1090 if handle == NULL: 

1091 handle = load_library() 

1092 __nvmlDeviceGetPerformanceModes = dlsym(handle, 'nvmlDeviceGetPerformanceModes') 

1093  

1094 global __nvmlDeviceGetCurrentClockFreqs 

1095 __nvmlDeviceGetCurrentClockFreqs = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetCurrentClockFreqs') 

1096 if __nvmlDeviceGetCurrentClockFreqs == NULL: 

1097 if handle == NULL: 

1098 handle = load_library() 

1099 __nvmlDeviceGetCurrentClockFreqs = dlsym(handle, 'nvmlDeviceGetCurrentClockFreqs') 

1100  

1101 global __nvmlDeviceGetPowerManagementLimit 

1102 __nvmlDeviceGetPowerManagementLimit = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPowerManagementLimit') 

1103 if __nvmlDeviceGetPowerManagementLimit == NULL: 

1104 if handle == NULL: 

1105 handle = load_library() 

1106 __nvmlDeviceGetPowerManagementLimit = dlsym(handle, 'nvmlDeviceGetPowerManagementLimit') 

1107  

1108 global __nvmlDeviceGetPowerManagementLimitConstraints 

1109 __nvmlDeviceGetPowerManagementLimitConstraints = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPowerManagementLimitConstraints') 

1110 if __nvmlDeviceGetPowerManagementLimitConstraints == NULL: 

1111 if handle == NULL: 

1112 handle = load_library() 

1113 __nvmlDeviceGetPowerManagementLimitConstraints = dlsym(handle, 'nvmlDeviceGetPowerManagementLimitConstraints') 

1114  

1115 global __nvmlDeviceGetPowerManagementDefaultLimit 

1116 __nvmlDeviceGetPowerManagementDefaultLimit = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPowerManagementDefaultLimit') 

1117 if __nvmlDeviceGetPowerManagementDefaultLimit == NULL: 

1118 if handle == NULL: 

1119 handle = load_library() 

1120 __nvmlDeviceGetPowerManagementDefaultLimit = dlsym(handle, 'nvmlDeviceGetPowerManagementDefaultLimit') 

1121  

1122 global __nvmlDeviceGetPowerUsage 

1123 __nvmlDeviceGetPowerUsage = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPowerUsage') 

1124 if __nvmlDeviceGetPowerUsage == NULL: 

1125 if handle == NULL: 

1126 handle = load_library() 

1127 __nvmlDeviceGetPowerUsage = dlsym(handle, 'nvmlDeviceGetPowerUsage') 

1128  

1129 global __nvmlDeviceGetTotalEnergyConsumption 

1130 __nvmlDeviceGetTotalEnergyConsumption = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetTotalEnergyConsumption') 

1131 if __nvmlDeviceGetTotalEnergyConsumption == NULL: 

1132 if handle == NULL: 

1133 handle = load_library() 

1134 __nvmlDeviceGetTotalEnergyConsumption = dlsym(handle, 'nvmlDeviceGetTotalEnergyConsumption') 

1135  

1136 global __nvmlDeviceGetEnforcedPowerLimit 

1137 __nvmlDeviceGetEnforcedPowerLimit = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetEnforcedPowerLimit') 

1138 if __nvmlDeviceGetEnforcedPowerLimit == NULL: 

1139 if handle == NULL: 

1140 handle = load_library() 

1141 __nvmlDeviceGetEnforcedPowerLimit = dlsym(handle, 'nvmlDeviceGetEnforcedPowerLimit') 

1142  

1143 global __nvmlDeviceGetGpuOperationMode 

1144 __nvmlDeviceGetGpuOperationMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpuOperationMode') 

1145 if __nvmlDeviceGetGpuOperationMode == NULL: 

1146 if handle == NULL: 

1147 handle = load_library() 

1148 __nvmlDeviceGetGpuOperationMode = dlsym(handle, 'nvmlDeviceGetGpuOperationMode') 

1149  

1150 global __nvmlDeviceGetMemoryInfo_v2 

1151 __nvmlDeviceGetMemoryInfo_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMemoryInfo_v2') 

1152 if __nvmlDeviceGetMemoryInfo_v2 == NULL: 

1153 if handle == NULL: 

1154 handle = load_library() 

1155 __nvmlDeviceGetMemoryInfo_v2 = dlsym(handle, 'nvmlDeviceGetMemoryInfo_v2') 

1156  

1157 global __nvmlDeviceGetComputeMode 

1158 __nvmlDeviceGetComputeMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetComputeMode') 

1159 if __nvmlDeviceGetComputeMode == NULL: 

1160 if handle == NULL: 

1161 handle = load_library() 

1162 __nvmlDeviceGetComputeMode = dlsym(handle, 'nvmlDeviceGetComputeMode') 

1163  

1164 global __nvmlDeviceGetCudaComputeCapability 

1165 __nvmlDeviceGetCudaComputeCapability = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetCudaComputeCapability') 

1166 if __nvmlDeviceGetCudaComputeCapability == NULL: 

1167 if handle == NULL: 

1168 handle = load_library() 

1169 __nvmlDeviceGetCudaComputeCapability = dlsym(handle, 'nvmlDeviceGetCudaComputeCapability') 

1170  

1171 global __nvmlDeviceGetDramEncryptionMode 

1172 __nvmlDeviceGetDramEncryptionMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetDramEncryptionMode') 

1173 if __nvmlDeviceGetDramEncryptionMode == NULL: 

1174 if handle == NULL: 

1175 handle = load_library() 

1176 __nvmlDeviceGetDramEncryptionMode = dlsym(handle, 'nvmlDeviceGetDramEncryptionMode') 

1177  

1178 global __nvmlDeviceSetDramEncryptionMode 

1179 __nvmlDeviceSetDramEncryptionMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetDramEncryptionMode') 

1180 if __nvmlDeviceSetDramEncryptionMode == NULL: 

1181 if handle == NULL: 

1182 handle = load_library() 

1183 __nvmlDeviceSetDramEncryptionMode = dlsym(handle, 'nvmlDeviceSetDramEncryptionMode') 

1184  

1185 global __nvmlDeviceGetEccMode 

1186 __nvmlDeviceGetEccMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetEccMode') 

1187 if __nvmlDeviceGetEccMode == NULL: 

1188 if handle == NULL: 

1189 handle = load_library() 

1190 __nvmlDeviceGetEccMode = dlsym(handle, 'nvmlDeviceGetEccMode') 

1191  

1192 global __nvmlDeviceGetDefaultEccMode 

1193 __nvmlDeviceGetDefaultEccMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetDefaultEccMode') 

1194 if __nvmlDeviceGetDefaultEccMode == NULL: 

1195 if handle == NULL: 

1196 handle = load_library() 

1197 __nvmlDeviceGetDefaultEccMode = dlsym(handle, 'nvmlDeviceGetDefaultEccMode') 

1198  

1199 global __nvmlDeviceGetBoardId 

1200 __nvmlDeviceGetBoardId = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetBoardId') 

1201 if __nvmlDeviceGetBoardId == NULL: 

1202 if handle == NULL: 

1203 handle = load_library() 

1204 __nvmlDeviceGetBoardId = dlsym(handle, 'nvmlDeviceGetBoardId') 

1205  

1206 global __nvmlDeviceGetMultiGpuBoard 

1207 __nvmlDeviceGetMultiGpuBoard = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMultiGpuBoard') 

1208 if __nvmlDeviceGetMultiGpuBoard == NULL: 

1209 if handle == NULL: 

1210 handle = load_library() 

1211 __nvmlDeviceGetMultiGpuBoard = dlsym(handle, 'nvmlDeviceGetMultiGpuBoard') 

1212  

1213 global __nvmlDeviceGetTotalEccErrors 

1214 __nvmlDeviceGetTotalEccErrors = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetTotalEccErrors') 

1215 if __nvmlDeviceGetTotalEccErrors == NULL: 

1216 if handle == NULL: 

1217 handle = load_library() 

1218 __nvmlDeviceGetTotalEccErrors = dlsym(handle, 'nvmlDeviceGetTotalEccErrors') 

1219  

1220 global __nvmlDeviceGetMemoryErrorCounter 

1221 __nvmlDeviceGetMemoryErrorCounter = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMemoryErrorCounter') 

1222 if __nvmlDeviceGetMemoryErrorCounter == NULL: 

1223 if handle == NULL: 

1224 handle = load_library() 

1225 __nvmlDeviceGetMemoryErrorCounter = dlsym(handle, 'nvmlDeviceGetMemoryErrorCounter') 

1226  

1227 global __nvmlDeviceGetUtilizationRates 

1228 __nvmlDeviceGetUtilizationRates = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetUtilizationRates') 

1229 if __nvmlDeviceGetUtilizationRates == NULL: 

1230 if handle == NULL: 

1231 handle = load_library() 

1232 __nvmlDeviceGetUtilizationRates = dlsym(handle, 'nvmlDeviceGetUtilizationRates') 

1233  

1234 global __nvmlDeviceGetEncoderUtilization 

1235 __nvmlDeviceGetEncoderUtilization = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetEncoderUtilization') 

1236 if __nvmlDeviceGetEncoderUtilization == NULL: 

1237 if handle == NULL: 

1238 handle = load_library() 

1239 __nvmlDeviceGetEncoderUtilization = dlsym(handle, 'nvmlDeviceGetEncoderUtilization') 

1240  

1241 global __nvmlDeviceGetEncoderCapacity 

1242 __nvmlDeviceGetEncoderCapacity = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetEncoderCapacity') 

1243 if __nvmlDeviceGetEncoderCapacity == NULL: 

1244 if handle == NULL: 

1245 handle = load_library() 

1246 __nvmlDeviceGetEncoderCapacity = dlsym(handle, 'nvmlDeviceGetEncoderCapacity') 

1247  

1248 global __nvmlDeviceGetEncoderStats 

1249 __nvmlDeviceGetEncoderStats = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetEncoderStats') 

1250 if __nvmlDeviceGetEncoderStats == NULL: 

1251 if handle == NULL: 

1252 handle = load_library() 

1253 __nvmlDeviceGetEncoderStats = dlsym(handle, 'nvmlDeviceGetEncoderStats') 

1254  

1255 global __nvmlDeviceGetEncoderSessions 

1256 __nvmlDeviceGetEncoderSessions = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetEncoderSessions') 

1257 if __nvmlDeviceGetEncoderSessions == NULL: 

1258 if handle == NULL: 

1259 handle = load_library() 

1260 __nvmlDeviceGetEncoderSessions = dlsym(handle, 'nvmlDeviceGetEncoderSessions') 

1261  

1262 global __nvmlDeviceGetDecoderUtilization 

1263 __nvmlDeviceGetDecoderUtilization = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetDecoderUtilization') 

1264 if __nvmlDeviceGetDecoderUtilization == NULL: 

1265 if handle == NULL: 

1266 handle = load_library() 

1267 __nvmlDeviceGetDecoderUtilization = dlsym(handle, 'nvmlDeviceGetDecoderUtilization') 

1268  

1269 global __nvmlDeviceGetJpgUtilization 

1270 __nvmlDeviceGetJpgUtilization = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetJpgUtilization') 

1271 if __nvmlDeviceGetJpgUtilization == NULL: 

1272 if handle == NULL: 

1273 handle = load_library() 

1274 __nvmlDeviceGetJpgUtilization = dlsym(handle, 'nvmlDeviceGetJpgUtilization') 

1275  

1276 global __nvmlDeviceGetOfaUtilization 

1277 __nvmlDeviceGetOfaUtilization = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetOfaUtilization') 

1278 if __nvmlDeviceGetOfaUtilization == NULL: 

1279 if handle == NULL: 

1280 handle = load_library() 

1281 __nvmlDeviceGetOfaUtilization = dlsym(handle, 'nvmlDeviceGetOfaUtilization') 

1282  

1283 global __nvmlDeviceGetFBCStats 

1284 __nvmlDeviceGetFBCStats = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetFBCStats') 

1285 if __nvmlDeviceGetFBCStats == NULL: 

1286 if handle == NULL: 

1287 handle = load_library() 

1288 __nvmlDeviceGetFBCStats = dlsym(handle, 'nvmlDeviceGetFBCStats') 

1289  

1290 global __nvmlDeviceGetFBCSessions 

1291 __nvmlDeviceGetFBCSessions = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetFBCSessions') 

1292 if __nvmlDeviceGetFBCSessions == NULL: 

1293 if handle == NULL: 

1294 handle = load_library() 

1295 __nvmlDeviceGetFBCSessions = dlsym(handle, 'nvmlDeviceGetFBCSessions') 

1296  

1297 global __nvmlDeviceGetDriverModel_v2 

1298 __nvmlDeviceGetDriverModel_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetDriverModel_v2') 

1299 if __nvmlDeviceGetDriverModel_v2 == NULL: 

1300 if handle == NULL: 

1301 handle = load_library() 

1302 __nvmlDeviceGetDriverModel_v2 = dlsym(handle, 'nvmlDeviceGetDriverModel_v2') 

1303  

1304 global __nvmlDeviceGetVbiosVersion 

1305 __nvmlDeviceGetVbiosVersion = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVbiosVersion') 

1306 if __nvmlDeviceGetVbiosVersion == NULL: 

1307 if handle == NULL: 

1308 handle = load_library() 

1309 __nvmlDeviceGetVbiosVersion = dlsym(handle, 'nvmlDeviceGetVbiosVersion') 

1310  

1311 global __nvmlDeviceGetBridgeChipInfo 

1312 __nvmlDeviceGetBridgeChipInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetBridgeChipInfo') 

1313 if __nvmlDeviceGetBridgeChipInfo == NULL: 

1314 if handle == NULL: 

1315 handle = load_library() 

1316 __nvmlDeviceGetBridgeChipInfo = dlsym(handle, 'nvmlDeviceGetBridgeChipInfo') 

1317  

1318 global __nvmlDeviceGetComputeRunningProcesses_v3 

1319 __nvmlDeviceGetComputeRunningProcesses_v3 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetComputeRunningProcesses_v3') 

1320 if __nvmlDeviceGetComputeRunningProcesses_v3 == NULL: 

1321 if handle == NULL: 

1322 handle = load_library() 

1323 __nvmlDeviceGetComputeRunningProcesses_v3 = dlsym(handle, 'nvmlDeviceGetComputeRunningProcesses_v3') 

1324  

1325 global __nvmlDeviceGetMPSComputeRunningProcesses_v3 

1326 __nvmlDeviceGetMPSComputeRunningProcesses_v3 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMPSComputeRunningProcesses_v3') 

1327 if __nvmlDeviceGetMPSComputeRunningProcesses_v3 == NULL: 

1328 if handle == NULL: 

1329 handle = load_library() 

1330 __nvmlDeviceGetMPSComputeRunningProcesses_v3 = dlsym(handle, 'nvmlDeviceGetMPSComputeRunningProcesses_v3') 

1331  

1332 global __nvmlDeviceGetRunningProcessDetailList 

1333 __nvmlDeviceGetRunningProcessDetailList = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetRunningProcessDetailList') 

1334 if __nvmlDeviceGetRunningProcessDetailList == NULL: 

1335 if handle == NULL: 

1336 handle = load_library() 

1337 __nvmlDeviceGetRunningProcessDetailList = dlsym(handle, 'nvmlDeviceGetRunningProcessDetailList') 

1338  

1339 global __nvmlDeviceOnSameBoard 

1340 __nvmlDeviceOnSameBoard = dlsym(RTLD_DEFAULT, 'nvmlDeviceOnSameBoard') 

1341 if __nvmlDeviceOnSameBoard == NULL: 

1342 if handle == NULL: 

1343 handle = load_library() 

1344 __nvmlDeviceOnSameBoard = dlsym(handle, 'nvmlDeviceOnSameBoard') 

1345  

1346 global __nvmlDeviceGetAPIRestriction 

1347 __nvmlDeviceGetAPIRestriction = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetAPIRestriction') 

1348 if __nvmlDeviceGetAPIRestriction == NULL: 

1349 if handle == NULL: 

1350 handle = load_library() 

1351 __nvmlDeviceGetAPIRestriction = dlsym(handle, 'nvmlDeviceGetAPIRestriction') 

1352  

1353 global __nvmlDeviceGetSamples 

1354 __nvmlDeviceGetSamples = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetSamples') 

1355 if __nvmlDeviceGetSamples == NULL: 

1356 if handle == NULL: 

1357 handle = load_library() 

1358 __nvmlDeviceGetSamples = dlsym(handle, 'nvmlDeviceGetSamples') 

1359  

1360 global __nvmlDeviceGetBAR1MemoryInfo 

1361 __nvmlDeviceGetBAR1MemoryInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetBAR1MemoryInfo') 

1362 if __nvmlDeviceGetBAR1MemoryInfo == NULL: 

1363 if handle == NULL: 

1364 handle = load_library() 

1365 __nvmlDeviceGetBAR1MemoryInfo = dlsym(handle, 'nvmlDeviceGetBAR1MemoryInfo') 

1366  

1367 global __nvmlDeviceGetIrqNum 

1368 __nvmlDeviceGetIrqNum = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetIrqNum') 

1369 if __nvmlDeviceGetIrqNum == NULL: 

1370 if handle == NULL: 

1371 handle = load_library() 

1372 __nvmlDeviceGetIrqNum = dlsym(handle, 'nvmlDeviceGetIrqNum') 

1373  

1374 global __nvmlDeviceGetNumGpuCores 

1375 __nvmlDeviceGetNumGpuCores = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNumGpuCores') 

1376 if __nvmlDeviceGetNumGpuCores == NULL: 

1377 if handle == NULL: 

1378 handle = load_library() 

1379 __nvmlDeviceGetNumGpuCores = dlsym(handle, 'nvmlDeviceGetNumGpuCores') 

1380  

1381 global __nvmlDeviceGetPowerSource 

1382 __nvmlDeviceGetPowerSource = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPowerSource') 

1383 if __nvmlDeviceGetPowerSource == NULL: 

1384 if handle == NULL: 

1385 handle = load_library() 

1386 __nvmlDeviceGetPowerSource = dlsym(handle, 'nvmlDeviceGetPowerSource') 

1387  

1388 global __nvmlDeviceGetMemoryBusWidth 

1389 __nvmlDeviceGetMemoryBusWidth = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMemoryBusWidth') 

1390 if __nvmlDeviceGetMemoryBusWidth == NULL: 

1391 if handle == NULL: 

1392 handle = load_library() 

1393 __nvmlDeviceGetMemoryBusWidth = dlsym(handle, 'nvmlDeviceGetMemoryBusWidth') 

1394  

1395 global __nvmlDeviceGetPcieLinkMaxSpeed 

1396 __nvmlDeviceGetPcieLinkMaxSpeed = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPcieLinkMaxSpeed') 

1397 if __nvmlDeviceGetPcieLinkMaxSpeed == NULL: 

1398 if handle == NULL: 

1399 handle = load_library() 

1400 __nvmlDeviceGetPcieLinkMaxSpeed = dlsym(handle, 'nvmlDeviceGetPcieLinkMaxSpeed') 

1401  

1402 global __nvmlDeviceGetPcieSpeed 

1403 __nvmlDeviceGetPcieSpeed = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPcieSpeed') 

1404 if __nvmlDeviceGetPcieSpeed == NULL: 

1405 if handle == NULL: 

1406 handle = load_library() 

1407 __nvmlDeviceGetPcieSpeed = dlsym(handle, 'nvmlDeviceGetPcieSpeed') 

1408  

1409 global __nvmlDeviceGetAdaptiveClockInfoStatus 

1410 __nvmlDeviceGetAdaptiveClockInfoStatus = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetAdaptiveClockInfoStatus') 

1411 if __nvmlDeviceGetAdaptiveClockInfoStatus == NULL: 

1412 if handle == NULL: 

1413 handle = load_library() 

1414 __nvmlDeviceGetAdaptiveClockInfoStatus = dlsym(handle, 'nvmlDeviceGetAdaptiveClockInfoStatus') 

1415  

1416 global __nvmlDeviceGetBusType 

1417 __nvmlDeviceGetBusType = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetBusType') 

1418 if __nvmlDeviceGetBusType == NULL: 

1419 if handle == NULL: 

1420 handle = load_library() 

1421 __nvmlDeviceGetBusType = dlsym(handle, 'nvmlDeviceGetBusType') 

1422  

1423 global __nvmlDeviceGetGpuFabricInfoV 

1424 __nvmlDeviceGetGpuFabricInfoV = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpuFabricInfoV') 

1425 if __nvmlDeviceGetGpuFabricInfoV == NULL: 

1426 if handle == NULL: 

1427 handle = load_library() 

1428 __nvmlDeviceGetGpuFabricInfoV = dlsym(handle, 'nvmlDeviceGetGpuFabricInfoV') 

1429  

1430 global __nvmlSystemGetConfComputeCapabilities 

1431 __nvmlSystemGetConfComputeCapabilities = dlsym(RTLD_DEFAULT, 'nvmlSystemGetConfComputeCapabilities') 

1432 if __nvmlSystemGetConfComputeCapabilities == NULL: 

1433 if handle == NULL: 

1434 handle = load_library() 

1435 __nvmlSystemGetConfComputeCapabilities = dlsym(handle, 'nvmlSystemGetConfComputeCapabilities') 

1436  

1437 global __nvmlSystemGetConfComputeState 

1438 __nvmlSystemGetConfComputeState = dlsym(RTLD_DEFAULT, 'nvmlSystemGetConfComputeState') 

1439 if __nvmlSystemGetConfComputeState == NULL: 

1440 if handle == NULL: 

1441 handle = load_library() 

1442 __nvmlSystemGetConfComputeState = dlsym(handle, 'nvmlSystemGetConfComputeState') 

1443  

1444 global __nvmlDeviceGetConfComputeMemSizeInfo 

1445 __nvmlDeviceGetConfComputeMemSizeInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetConfComputeMemSizeInfo') 

1446 if __nvmlDeviceGetConfComputeMemSizeInfo == NULL: 

1447 if handle == NULL: 

1448 handle = load_library() 

1449 __nvmlDeviceGetConfComputeMemSizeInfo = dlsym(handle, 'nvmlDeviceGetConfComputeMemSizeInfo') 

1450  

1451 global __nvmlSystemGetConfComputeGpusReadyState 

1452 __nvmlSystemGetConfComputeGpusReadyState = dlsym(RTLD_DEFAULT, 'nvmlSystemGetConfComputeGpusReadyState') 

1453 if __nvmlSystemGetConfComputeGpusReadyState == NULL: 

1454 if handle == NULL: 

1455 handle = load_library() 

1456 __nvmlSystemGetConfComputeGpusReadyState = dlsym(handle, 'nvmlSystemGetConfComputeGpusReadyState') 

1457  

1458 global __nvmlDeviceGetConfComputeProtectedMemoryUsage 

1459 __nvmlDeviceGetConfComputeProtectedMemoryUsage = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetConfComputeProtectedMemoryUsage') 

1460 if __nvmlDeviceGetConfComputeProtectedMemoryUsage == NULL: 

1461 if handle == NULL: 

1462 handle = load_library() 

1463 __nvmlDeviceGetConfComputeProtectedMemoryUsage = dlsym(handle, 'nvmlDeviceGetConfComputeProtectedMemoryUsage') 

1464  

1465 global __nvmlDeviceGetConfComputeGpuCertificate 

1466 __nvmlDeviceGetConfComputeGpuCertificate = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetConfComputeGpuCertificate') 

1467 if __nvmlDeviceGetConfComputeGpuCertificate == NULL: 

1468 if handle == NULL: 

1469 handle = load_library() 

1470 __nvmlDeviceGetConfComputeGpuCertificate = dlsym(handle, 'nvmlDeviceGetConfComputeGpuCertificate') 

1471  

1472 global __nvmlDeviceGetConfComputeGpuAttestationReport 

1473 __nvmlDeviceGetConfComputeGpuAttestationReport = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetConfComputeGpuAttestationReport') 

1474 if __nvmlDeviceGetConfComputeGpuAttestationReport == NULL: 

1475 if handle == NULL: 

1476 handle = load_library() 

1477 __nvmlDeviceGetConfComputeGpuAttestationReport = dlsym(handle, 'nvmlDeviceGetConfComputeGpuAttestationReport') 

1478  

1479 global __nvmlSystemGetConfComputeKeyRotationThresholdInfo 

1480 __nvmlSystemGetConfComputeKeyRotationThresholdInfo = dlsym(RTLD_DEFAULT, 'nvmlSystemGetConfComputeKeyRotationThresholdInfo') 

1481 if __nvmlSystemGetConfComputeKeyRotationThresholdInfo == NULL: 

1482 if handle == NULL: 

1483 handle = load_library() 

1484 __nvmlSystemGetConfComputeKeyRotationThresholdInfo = dlsym(handle, 'nvmlSystemGetConfComputeKeyRotationThresholdInfo') 

1485  

1486 global __nvmlDeviceSetConfComputeUnprotectedMemSize 

1487 __nvmlDeviceSetConfComputeUnprotectedMemSize = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetConfComputeUnprotectedMemSize') 

1488 if __nvmlDeviceSetConfComputeUnprotectedMemSize == NULL: 

1489 if handle == NULL: 

1490 handle = load_library() 

1491 __nvmlDeviceSetConfComputeUnprotectedMemSize = dlsym(handle, 'nvmlDeviceSetConfComputeUnprotectedMemSize') 

1492  

1493 global __nvmlSystemSetConfComputeGpusReadyState 

1494 __nvmlSystemSetConfComputeGpusReadyState = dlsym(RTLD_DEFAULT, 'nvmlSystemSetConfComputeGpusReadyState') 

1495 if __nvmlSystemSetConfComputeGpusReadyState == NULL: 

1496 if handle == NULL: 

1497 handle = load_library() 

1498 __nvmlSystemSetConfComputeGpusReadyState = dlsym(handle, 'nvmlSystemSetConfComputeGpusReadyState') 

1499  

1500 global __nvmlSystemSetConfComputeKeyRotationThresholdInfo 

1501 __nvmlSystemSetConfComputeKeyRotationThresholdInfo = dlsym(RTLD_DEFAULT, 'nvmlSystemSetConfComputeKeyRotationThresholdInfo') 

1502 if __nvmlSystemSetConfComputeKeyRotationThresholdInfo == NULL: 

1503 if handle == NULL: 

1504 handle = load_library() 

1505 __nvmlSystemSetConfComputeKeyRotationThresholdInfo = dlsym(handle, 'nvmlSystemSetConfComputeKeyRotationThresholdInfo') 

1506  

1507 global __nvmlSystemGetConfComputeSettings 

1508 __nvmlSystemGetConfComputeSettings = dlsym(RTLD_DEFAULT, 'nvmlSystemGetConfComputeSettings') 

1509 if __nvmlSystemGetConfComputeSettings == NULL: 

1510 if handle == NULL: 

1511 handle = load_library() 

1512 __nvmlSystemGetConfComputeSettings = dlsym(handle, 'nvmlSystemGetConfComputeSettings') 

1513  

1514 global __nvmlDeviceGetGspFirmwareVersion 

1515 __nvmlDeviceGetGspFirmwareVersion = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGspFirmwareVersion') 

1516 if __nvmlDeviceGetGspFirmwareVersion == NULL: 

1517 if handle == NULL: 

1518 handle = load_library() 

1519 __nvmlDeviceGetGspFirmwareVersion = dlsym(handle, 'nvmlDeviceGetGspFirmwareVersion') 

1520  

1521 global __nvmlDeviceGetGspFirmwareMode 

1522 __nvmlDeviceGetGspFirmwareMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGspFirmwareMode') 

1523 if __nvmlDeviceGetGspFirmwareMode == NULL: 

1524 if handle == NULL: 

1525 handle = load_library() 

1526 __nvmlDeviceGetGspFirmwareMode = dlsym(handle, 'nvmlDeviceGetGspFirmwareMode') 

1527  

1528 global __nvmlDeviceGetSramEccErrorStatus 

1529 __nvmlDeviceGetSramEccErrorStatus = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetSramEccErrorStatus') 

1530 if __nvmlDeviceGetSramEccErrorStatus == NULL: 

1531 if handle == NULL: 

1532 handle = load_library() 

1533 __nvmlDeviceGetSramEccErrorStatus = dlsym(handle, 'nvmlDeviceGetSramEccErrorStatus') 

1534  

1535 global __nvmlDeviceGetAccountingMode 

1536 __nvmlDeviceGetAccountingMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetAccountingMode') 

1537 if __nvmlDeviceGetAccountingMode == NULL: 

1538 if handle == NULL: 

1539 handle = load_library() 

1540 __nvmlDeviceGetAccountingMode = dlsym(handle, 'nvmlDeviceGetAccountingMode') 

1541  

1542 global __nvmlDeviceGetAccountingStats 

1543 __nvmlDeviceGetAccountingStats = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetAccountingStats') 

1544 if __nvmlDeviceGetAccountingStats == NULL: 

1545 if handle == NULL: 

1546 handle = load_library() 

1547 __nvmlDeviceGetAccountingStats = dlsym(handle, 'nvmlDeviceGetAccountingStats') 

1548  

1549 global __nvmlDeviceGetAccountingPids 

1550 __nvmlDeviceGetAccountingPids = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetAccountingPids') 

1551 if __nvmlDeviceGetAccountingPids == NULL: 

1552 if handle == NULL: 

1553 handle = load_library() 

1554 __nvmlDeviceGetAccountingPids = dlsym(handle, 'nvmlDeviceGetAccountingPids') 

1555  

1556 global __nvmlDeviceGetAccountingBufferSize 

1557 __nvmlDeviceGetAccountingBufferSize = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetAccountingBufferSize') 

1558 if __nvmlDeviceGetAccountingBufferSize == NULL: 

1559 if handle == NULL: 

1560 handle = load_library() 

1561 __nvmlDeviceGetAccountingBufferSize = dlsym(handle, 'nvmlDeviceGetAccountingBufferSize') 

1562  

1563 global __nvmlDeviceGetRetiredPages 

1564 __nvmlDeviceGetRetiredPages = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetRetiredPages') 

1565 if __nvmlDeviceGetRetiredPages == NULL: 

1566 if handle == NULL: 

1567 handle = load_library() 

1568 __nvmlDeviceGetRetiredPages = dlsym(handle, 'nvmlDeviceGetRetiredPages') 

1569  

1570 global __nvmlDeviceGetRetiredPages_v2 

1571 __nvmlDeviceGetRetiredPages_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetRetiredPages_v2') 

1572 if __nvmlDeviceGetRetiredPages_v2 == NULL: 

1573 if handle == NULL: 

1574 handle = load_library() 

1575 __nvmlDeviceGetRetiredPages_v2 = dlsym(handle, 'nvmlDeviceGetRetiredPages_v2') 

1576  

1577 global __nvmlDeviceGetRetiredPagesPendingStatus 

1578 __nvmlDeviceGetRetiredPagesPendingStatus = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetRetiredPagesPendingStatus') 

1579 if __nvmlDeviceGetRetiredPagesPendingStatus == NULL: 

1580 if handle == NULL: 

1581 handle = load_library() 

1582 __nvmlDeviceGetRetiredPagesPendingStatus = dlsym(handle, 'nvmlDeviceGetRetiredPagesPendingStatus') 

1583  

1584 global __nvmlDeviceGetRemappedRows 

1585 __nvmlDeviceGetRemappedRows = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetRemappedRows') 

1586 if __nvmlDeviceGetRemappedRows == NULL: 

1587 if handle == NULL: 

1588 handle = load_library() 

1589 __nvmlDeviceGetRemappedRows = dlsym(handle, 'nvmlDeviceGetRemappedRows') 

1590  

1591 global __nvmlDeviceGetRowRemapperHistogram 

1592 __nvmlDeviceGetRowRemapperHistogram = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetRowRemapperHistogram') 

1593 if __nvmlDeviceGetRowRemapperHistogram == NULL: 

1594 if handle == NULL: 

1595 handle = load_library() 

1596 __nvmlDeviceGetRowRemapperHistogram = dlsym(handle, 'nvmlDeviceGetRowRemapperHistogram') 

1597  

1598 global __nvmlDeviceGetArchitecture 

1599 __nvmlDeviceGetArchitecture = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetArchitecture') 

1600 if __nvmlDeviceGetArchitecture == NULL: 

1601 if handle == NULL: 

1602 handle = load_library() 

1603 __nvmlDeviceGetArchitecture = dlsym(handle, 'nvmlDeviceGetArchitecture') 

1604  

1605 global __nvmlDeviceGetClkMonStatus 

1606 __nvmlDeviceGetClkMonStatus = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetClkMonStatus') 

1607 if __nvmlDeviceGetClkMonStatus == NULL: 

1608 if handle == NULL: 

1609 handle = load_library() 

1610 __nvmlDeviceGetClkMonStatus = dlsym(handle, 'nvmlDeviceGetClkMonStatus') 

1611  

1612 global __nvmlDeviceGetProcessUtilization 

1613 __nvmlDeviceGetProcessUtilization = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetProcessUtilization') 

1614 if __nvmlDeviceGetProcessUtilization == NULL: 

1615 if handle == NULL: 

1616 handle = load_library() 

1617 __nvmlDeviceGetProcessUtilization = dlsym(handle, 'nvmlDeviceGetProcessUtilization') 

1618  

1619 global __nvmlDeviceGetProcessesUtilizationInfo 

1620 __nvmlDeviceGetProcessesUtilizationInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetProcessesUtilizationInfo') 

1621 if __nvmlDeviceGetProcessesUtilizationInfo == NULL: 

1622 if handle == NULL: 

1623 handle = load_library() 

1624 __nvmlDeviceGetProcessesUtilizationInfo = dlsym(handle, 'nvmlDeviceGetProcessesUtilizationInfo') 

1625  

1626 global __nvmlDeviceGetPlatformInfo 

1627 __nvmlDeviceGetPlatformInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPlatformInfo') 

1628 if __nvmlDeviceGetPlatformInfo == NULL: 

1629 if handle == NULL: 

1630 handle = load_library() 

1631 __nvmlDeviceGetPlatformInfo = dlsym(handle, 'nvmlDeviceGetPlatformInfo') 

1632  

1633 global __nvmlUnitSetLedState 

1634 __nvmlUnitSetLedState = dlsym(RTLD_DEFAULT, 'nvmlUnitSetLedState') 

1635 if __nvmlUnitSetLedState == NULL: 

1636 if handle == NULL: 

1637 handle = load_library() 

1638 __nvmlUnitSetLedState = dlsym(handle, 'nvmlUnitSetLedState') 

1639  

1640 global __nvmlDeviceSetPersistenceMode 

1641 __nvmlDeviceSetPersistenceMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetPersistenceMode') 

1642 if __nvmlDeviceSetPersistenceMode == NULL: 

1643 if handle == NULL: 

1644 handle = load_library() 

1645 __nvmlDeviceSetPersistenceMode = dlsym(handle, 'nvmlDeviceSetPersistenceMode') 

1646  

1647 global __nvmlDeviceSetComputeMode 

1648 __nvmlDeviceSetComputeMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetComputeMode') 

1649 if __nvmlDeviceSetComputeMode == NULL: 

1650 if handle == NULL: 

1651 handle = load_library() 

1652 __nvmlDeviceSetComputeMode = dlsym(handle, 'nvmlDeviceSetComputeMode') 

1653  

1654 global __nvmlDeviceSetEccMode 

1655 __nvmlDeviceSetEccMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetEccMode') 

1656 if __nvmlDeviceSetEccMode == NULL: 

1657 if handle == NULL: 

1658 handle = load_library() 

1659 __nvmlDeviceSetEccMode = dlsym(handle, 'nvmlDeviceSetEccMode') 

1660  

1661 global __nvmlDeviceClearEccErrorCounts 

1662 __nvmlDeviceClearEccErrorCounts = dlsym(RTLD_DEFAULT, 'nvmlDeviceClearEccErrorCounts') 

1663 if __nvmlDeviceClearEccErrorCounts == NULL: 

1664 if handle == NULL: 

1665 handle = load_library() 

1666 __nvmlDeviceClearEccErrorCounts = dlsym(handle, 'nvmlDeviceClearEccErrorCounts') 

1667  

1668 global __nvmlDeviceSetDriverModel 

1669 __nvmlDeviceSetDriverModel = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetDriverModel') 

1670 if __nvmlDeviceSetDriverModel == NULL: 

1671 if handle == NULL: 

1672 handle = load_library() 

1673 __nvmlDeviceSetDriverModel = dlsym(handle, 'nvmlDeviceSetDriverModel') 

1674  

1675 global __nvmlDeviceSetGpuLockedClocks 

1676 __nvmlDeviceSetGpuLockedClocks = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetGpuLockedClocks') 

1677 if __nvmlDeviceSetGpuLockedClocks == NULL: 

1678 if handle == NULL: 

1679 handle = load_library() 

1680 __nvmlDeviceSetGpuLockedClocks = dlsym(handle, 'nvmlDeviceSetGpuLockedClocks') 

1681  

1682 global __nvmlDeviceResetGpuLockedClocks 

1683 __nvmlDeviceResetGpuLockedClocks = dlsym(RTLD_DEFAULT, 'nvmlDeviceResetGpuLockedClocks') 

1684 if __nvmlDeviceResetGpuLockedClocks == NULL: 

1685 if handle == NULL: 

1686 handle = load_library() 

1687 __nvmlDeviceResetGpuLockedClocks = dlsym(handle, 'nvmlDeviceResetGpuLockedClocks') 

1688  

1689 global __nvmlDeviceSetMemoryLockedClocks 

1690 __nvmlDeviceSetMemoryLockedClocks = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetMemoryLockedClocks') 

1691 if __nvmlDeviceSetMemoryLockedClocks == NULL: 

1692 if handle == NULL: 

1693 handle = load_library() 

1694 __nvmlDeviceSetMemoryLockedClocks = dlsym(handle, 'nvmlDeviceSetMemoryLockedClocks') 

1695  

1696 global __nvmlDeviceResetMemoryLockedClocks 

1697 __nvmlDeviceResetMemoryLockedClocks = dlsym(RTLD_DEFAULT, 'nvmlDeviceResetMemoryLockedClocks') 

1698 if __nvmlDeviceResetMemoryLockedClocks == NULL: 

1699 if handle == NULL: 

1700 handle = load_library() 

1701 __nvmlDeviceResetMemoryLockedClocks = dlsym(handle, 'nvmlDeviceResetMemoryLockedClocks') 

1702  

1703 global __nvmlDeviceSetAutoBoostedClocksEnabled 

1704 __nvmlDeviceSetAutoBoostedClocksEnabled = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetAutoBoostedClocksEnabled') 

1705 if __nvmlDeviceSetAutoBoostedClocksEnabled == NULL: 

1706 if handle == NULL: 

1707 handle = load_library() 

1708 __nvmlDeviceSetAutoBoostedClocksEnabled = dlsym(handle, 'nvmlDeviceSetAutoBoostedClocksEnabled') 

1709  

1710 global __nvmlDeviceSetDefaultAutoBoostedClocksEnabled 

1711 __nvmlDeviceSetDefaultAutoBoostedClocksEnabled = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetDefaultAutoBoostedClocksEnabled') 

1712 if __nvmlDeviceSetDefaultAutoBoostedClocksEnabled == NULL: 

1713 if handle == NULL: 

1714 handle = load_library() 

1715 __nvmlDeviceSetDefaultAutoBoostedClocksEnabled = dlsym(handle, 'nvmlDeviceSetDefaultAutoBoostedClocksEnabled') 

1716  

1717 global __nvmlDeviceSetDefaultFanSpeed_v2 

1718 __nvmlDeviceSetDefaultFanSpeed_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetDefaultFanSpeed_v2') 

1719 if __nvmlDeviceSetDefaultFanSpeed_v2 == NULL: 

1720 if handle == NULL: 

1721 handle = load_library() 

1722 __nvmlDeviceSetDefaultFanSpeed_v2 = dlsym(handle, 'nvmlDeviceSetDefaultFanSpeed_v2') 

1723  

1724 global __nvmlDeviceSetFanControlPolicy 

1725 __nvmlDeviceSetFanControlPolicy = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetFanControlPolicy') 

1726 if __nvmlDeviceSetFanControlPolicy == NULL: 

1727 if handle == NULL: 

1728 handle = load_library() 

1729 __nvmlDeviceSetFanControlPolicy = dlsym(handle, 'nvmlDeviceSetFanControlPolicy') 

1730  

1731 global __nvmlDeviceSetTemperatureThreshold 

1732 __nvmlDeviceSetTemperatureThreshold = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetTemperatureThreshold') 

1733 if __nvmlDeviceSetTemperatureThreshold == NULL: 

1734 if handle == NULL: 

1735 handle = load_library() 

1736 __nvmlDeviceSetTemperatureThreshold = dlsym(handle, 'nvmlDeviceSetTemperatureThreshold') 

1737  

1738 global __nvmlDeviceSetPowerManagementLimit 

1739 __nvmlDeviceSetPowerManagementLimit = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetPowerManagementLimit') 

1740 if __nvmlDeviceSetPowerManagementLimit == NULL: 

1741 if handle == NULL: 

1742 handle = load_library() 

1743 __nvmlDeviceSetPowerManagementLimit = dlsym(handle, 'nvmlDeviceSetPowerManagementLimit') 

1744  

1745 global __nvmlDeviceSetGpuOperationMode 

1746 __nvmlDeviceSetGpuOperationMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetGpuOperationMode') 

1747 if __nvmlDeviceSetGpuOperationMode == NULL: 

1748 if handle == NULL: 

1749 handle = load_library() 

1750 __nvmlDeviceSetGpuOperationMode = dlsym(handle, 'nvmlDeviceSetGpuOperationMode') 

1751  

1752 global __nvmlDeviceSetAPIRestriction 

1753 __nvmlDeviceSetAPIRestriction = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetAPIRestriction') 

1754 if __nvmlDeviceSetAPIRestriction == NULL: 

1755 if handle == NULL: 

1756 handle = load_library() 

1757 __nvmlDeviceSetAPIRestriction = dlsym(handle, 'nvmlDeviceSetAPIRestriction') 

1758  

1759 global __nvmlDeviceSetFanSpeed_v2 

1760 __nvmlDeviceSetFanSpeed_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetFanSpeed_v2') 

1761 if __nvmlDeviceSetFanSpeed_v2 == NULL: 

1762 if handle == NULL: 

1763 handle = load_library() 

1764 __nvmlDeviceSetFanSpeed_v2 = dlsym(handle, 'nvmlDeviceSetFanSpeed_v2') 

1765  

1766 global __nvmlDeviceSetAccountingMode 

1767 __nvmlDeviceSetAccountingMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetAccountingMode') 

1768 if __nvmlDeviceSetAccountingMode == NULL: 

1769 if handle == NULL: 

1770 handle = load_library() 

1771 __nvmlDeviceSetAccountingMode = dlsym(handle, 'nvmlDeviceSetAccountingMode') 

1772  

1773 global __nvmlDeviceClearAccountingPids 

1774 __nvmlDeviceClearAccountingPids = dlsym(RTLD_DEFAULT, 'nvmlDeviceClearAccountingPids') 

1775 if __nvmlDeviceClearAccountingPids == NULL: 

1776 if handle == NULL: 

1777 handle = load_library() 

1778 __nvmlDeviceClearAccountingPids = dlsym(handle, 'nvmlDeviceClearAccountingPids') 

1779  

1780 global __nvmlDeviceSetPowerManagementLimit_v2 

1781 __nvmlDeviceSetPowerManagementLimit_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetPowerManagementLimit_v2') 

1782 if __nvmlDeviceSetPowerManagementLimit_v2 == NULL: 

1783 if handle == NULL: 

1784 handle = load_library() 

1785 __nvmlDeviceSetPowerManagementLimit_v2 = dlsym(handle, 'nvmlDeviceSetPowerManagementLimit_v2') 

1786  

1787 global __nvmlDeviceGetNvLinkState 

1788 __nvmlDeviceGetNvLinkState = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNvLinkState') 

1789 if __nvmlDeviceGetNvLinkState == NULL: 

1790 if handle == NULL: 

1791 handle = load_library() 

1792 __nvmlDeviceGetNvLinkState = dlsym(handle, 'nvmlDeviceGetNvLinkState') 

1793  

1794 global __nvmlDeviceGetNvLinkVersion 

1795 __nvmlDeviceGetNvLinkVersion = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNvLinkVersion') 

1796 if __nvmlDeviceGetNvLinkVersion == NULL: 

1797 if handle == NULL: 

1798 handle = load_library() 

1799 __nvmlDeviceGetNvLinkVersion = dlsym(handle, 'nvmlDeviceGetNvLinkVersion') 

1800  

1801 global __nvmlDeviceGetNvLinkCapability 

1802 __nvmlDeviceGetNvLinkCapability = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNvLinkCapability') 

1803 if __nvmlDeviceGetNvLinkCapability == NULL: 

1804 if handle == NULL: 

1805 handle = load_library() 

1806 __nvmlDeviceGetNvLinkCapability = dlsym(handle, 'nvmlDeviceGetNvLinkCapability') 

1807  

1808 global __nvmlDeviceGetNvLinkRemotePciInfo_v2 

1809 __nvmlDeviceGetNvLinkRemotePciInfo_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNvLinkRemotePciInfo_v2') 

1810 if __nvmlDeviceGetNvLinkRemotePciInfo_v2 == NULL: 

1811 if handle == NULL: 

1812 handle = load_library() 

1813 __nvmlDeviceGetNvLinkRemotePciInfo_v2 = dlsym(handle, 'nvmlDeviceGetNvLinkRemotePciInfo_v2') 

1814  

1815 global __nvmlDeviceGetNvLinkErrorCounter 

1816 __nvmlDeviceGetNvLinkErrorCounter = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNvLinkErrorCounter') 

1817 if __nvmlDeviceGetNvLinkErrorCounter == NULL: 

1818 if handle == NULL: 

1819 handle = load_library() 

1820 __nvmlDeviceGetNvLinkErrorCounter = dlsym(handle, 'nvmlDeviceGetNvLinkErrorCounter') 

1821  

1822 global __nvmlDeviceResetNvLinkErrorCounters 

1823 __nvmlDeviceResetNvLinkErrorCounters = dlsym(RTLD_DEFAULT, 'nvmlDeviceResetNvLinkErrorCounters') 

1824 if __nvmlDeviceResetNvLinkErrorCounters == NULL: 

1825 if handle == NULL: 

1826 handle = load_library() 

1827 __nvmlDeviceResetNvLinkErrorCounters = dlsym(handle, 'nvmlDeviceResetNvLinkErrorCounters') 

1828  

1829 global __nvmlDeviceGetNvLinkRemoteDeviceType 

1830 __nvmlDeviceGetNvLinkRemoteDeviceType = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNvLinkRemoteDeviceType') 

1831 if __nvmlDeviceGetNvLinkRemoteDeviceType == NULL: 

1832 if handle == NULL: 

1833 handle = load_library() 

1834 __nvmlDeviceGetNvLinkRemoteDeviceType = dlsym(handle, 'nvmlDeviceGetNvLinkRemoteDeviceType') 

1835  

1836 global __nvmlDeviceSetNvLinkDeviceLowPowerThreshold 

1837 __nvmlDeviceSetNvLinkDeviceLowPowerThreshold = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetNvLinkDeviceLowPowerThreshold') 

1838 if __nvmlDeviceSetNvLinkDeviceLowPowerThreshold == NULL: 

1839 if handle == NULL: 

1840 handle = load_library() 

1841 __nvmlDeviceSetNvLinkDeviceLowPowerThreshold = dlsym(handle, 'nvmlDeviceSetNvLinkDeviceLowPowerThreshold') 

1842  

1843 global __nvmlSystemSetNvlinkBwMode 

1844 __nvmlSystemSetNvlinkBwMode = dlsym(RTLD_DEFAULT, 'nvmlSystemSetNvlinkBwMode') 

1845 if __nvmlSystemSetNvlinkBwMode == NULL: 

1846 if handle == NULL: 

1847 handle = load_library() 

1848 __nvmlSystemSetNvlinkBwMode = dlsym(handle, 'nvmlSystemSetNvlinkBwMode') 

1849  

1850 global __nvmlSystemGetNvlinkBwMode 

1851 __nvmlSystemGetNvlinkBwMode = dlsym(RTLD_DEFAULT, 'nvmlSystemGetNvlinkBwMode') 

1852 if __nvmlSystemGetNvlinkBwMode == NULL: 

1853 if handle == NULL: 

1854 handle = load_library() 

1855 __nvmlSystemGetNvlinkBwMode = dlsym(handle, 'nvmlSystemGetNvlinkBwMode') 

1856  

1857 global __nvmlDeviceGetNvlinkSupportedBwModes 

1858 __nvmlDeviceGetNvlinkSupportedBwModes = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNvlinkSupportedBwModes') 

1859 if __nvmlDeviceGetNvlinkSupportedBwModes == NULL: 

1860 if handle == NULL: 

1861 handle = load_library() 

1862 __nvmlDeviceGetNvlinkSupportedBwModes = dlsym(handle, 'nvmlDeviceGetNvlinkSupportedBwModes') 

1863  

1864 global __nvmlDeviceGetNvlinkBwMode 

1865 __nvmlDeviceGetNvlinkBwMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNvlinkBwMode') 

1866 if __nvmlDeviceGetNvlinkBwMode == NULL: 

1867 if handle == NULL: 

1868 handle = load_library() 

1869 __nvmlDeviceGetNvlinkBwMode = dlsym(handle, 'nvmlDeviceGetNvlinkBwMode') 

1870  

1871 global __nvmlDeviceSetNvlinkBwMode 

1872 __nvmlDeviceSetNvlinkBwMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetNvlinkBwMode') 

1873 if __nvmlDeviceSetNvlinkBwMode == NULL: 

1874 if handle == NULL: 

1875 handle = load_library() 

1876 __nvmlDeviceSetNvlinkBwMode = dlsym(handle, 'nvmlDeviceSetNvlinkBwMode') 

1877  

1878 global __nvmlEventSetCreate 

1879 __nvmlEventSetCreate = dlsym(RTLD_DEFAULT, 'nvmlEventSetCreate') 

1880 if __nvmlEventSetCreate == NULL: 

1881 if handle == NULL: 

1882 handle = load_library() 

1883 __nvmlEventSetCreate = dlsym(handle, 'nvmlEventSetCreate') 

1884  

1885 global __nvmlDeviceRegisterEvents 

1886 __nvmlDeviceRegisterEvents = dlsym(RTLD_DEFAULT, 'nvmlDeviceRegisterEvents') 

1887 if __nvmlDeviceRegisterEvents == NULL: 

1888 if handle == NULL: 

1889 handle = load_library() 

1890 __nvmlDeviceRegisterEvents = dlsym(handle, 'nvmlDeviceRegisterEvents') 

1891  

1892 global __nvmlDeviceGetSupportedEventTypes 

1893 __nvmlDeviceGetSupportedEventTypes = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetSupportedEventTypes') 

1894 if __nvmlDeviceGetSupportedEventTypes == NULL: 

1895 if handle == NULL: 

1896 handle = load_library() 

1897 __nvmlDeviceGetSupportedEventTypes = dlsym(handle, 'nvmlDeviceGetSupportedEventTypes') 

1898  

1899 global __nvmlEventSetWait_v2 

1900 __nvmlEventSetWait_v2 = dlsym(RTLD_DEFAULT, 'nvmlEventSetWait_v2') 

1901 if __nvmlEventSetWait_v2 == NULL: 

1902 if handle == NULL: 

1903 handle = load_library() 

1904 __nvmlEventSetWait_v2 = dlsym(handle, 'nvmlEventSetWait_v2') 

1905  

1906 global __nvmlEventSetFree 

1907 __nvmlEventSetFree = dlsym(RTLD_DEFAULT, 'nvmlEventSetFree') 

1908 if __nvmlEventSetFree == NULL: 

1909 if handle == NULL: 

1910 handle = load_library() 

1911 __nvmlEventSetFree = dlsym(handle, 'nvmlEventSetFree') 

1912  

1913 global __nvmlSystemEventSetCreate 

1914 __nvmlSystemEventSetCreate = dlsym(RTLD_DEFAULT, 'nvmlSystemEventSetCreate') 

1915 if __nvmlSystemEventSetCreate == NULL: 

1916 if handle == NULL: 

1917 handle = load_library() 

1918 __nvmlSystemEventSetCreate = dlsym(handle, 'nvmlSystemEventSetCreate') 

1919  

1920 global __nvmlSystemEventSetFree 

1921 __nvmlSystemEventSetFree = dlsym(RTLD_DEFAULT, 'nvmlSystemEventSetFree') 

1922 if __nvmlSystemEventSetFree == NULL: 

1923 if handle == NULL: 

1924 handle = load_library() 

1925 __nvmlSystemEventSetFree = dlsym(handle, 'nvmlSystemEventSetFree') 

1926  

1927 global __nvmlSystemRegisterEvents 

1928 __nvmlSystemRegisterEvents = dlsym(RTLD_DEFAULT, 'nvmlSystemRegisterEvents') 

1929 if __nvmlSystemRegisterEvents == NULL: 

1930 if handle == NULL: 

1931 handle = load_library() 

1932 __nvmlSystemRegisterEvents = dlsym(handle, 'nvmlSystemRegisterEvents') 

1933  

1934 global __nvmlSystemEventSetWait 

1935 __nvmlSystemEventSetWait = dlsym(RTLD_DEFAULT, 'nvmlSystemEventSetWait') 

1936 if __nvmlSystemEventSetWait == NULL: 

1937 if handle == NULL: 

1938 handle = load_library() 

1939 __nvmlSystemEventSetWait = dlsym(handle, 'nvmlSystemEventSetWait') 

1940  

1941 global __nvmlDeviceModifyDrainState 

1942 __nvmlDeviceModifyDrainState = dlsym(RTLD_DEFAULT, 'nvmlDeviceModifyDrainState') 

1943 if __nvmlDeviceModifyDrainState == NULL: 

1944 if handle == NULL: 

1945 handle = load_library() 

1946 __nvmlDeviceModifyDrainState = dlsym(handle, 'nvmlDeviceModifyDrainState') 

1947  

1948 global __nvmlDeviceQueryDrainState 

1949 __nvmlDeviceQueryDrainState = dlsym(RTLD_DEFAULT, 'nvmlDeviceQueryDrainState') 

1950 if __nvmlDeviceQueryDrainState == NULL: 

1951 if handle == NULL: 

1952 handle = load_library() 

1953 __nvmlDeviceQueryDrainState = dlsym(handle, 'nvmlDeviceQueryDrainState') 

1954  

1955 global __nvmlDeviceRemoveGpu_v2 

1956 __nvmlDeviceRemoveGpu_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceRemoveGpu_v2') 

1957 if __nvmlDeviceRemoveGpu_v2 == NULL: 

1958 if handle == NULL: 

1959 handle = load_library() 

1960 __nvmlDeviceRemoveGpu_v2 = dlsym(handle, 'nvmlDeviceRemoveGpu_v2') 

1961  

1962 global __nvmlDeviceDiscoverGpus 

1963 __nvmlDeviceDiscoverGpus = dlsym(RTLD_DEFAULT, 'nvmlDeviceDiscoverGpus') 

1964 if __nvmlDeviceDiscoverGpus == NULL: 

1965 if handle == NULL: 

1966 handle = load_library() 

1967 __nvmlDeviceDiscoverGpus = dlsym(handle, 'nvmlDeviceDiscoverGpus') 

1968  

1969 global __nvmlDeviceGetFieldValues 

1970 __nvmlDeviceGetFieldValues = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetFieldValues') 

1971 if __nvmlDeviceGetFieldValues == NULL: 

1972 if handle == NULL: 

1973 handle = load_library() 

1974 __nvmlDeviceGetFieldValues = dlsym(handle, 'nvmlDeviceGetFieldValues') 

1975  

1976 global __nvmlDeviceClearFieldValues 

1977 __nvmlDeviceClearFieldValues = dlsym(RTLD_DEFAULT, 'nvmlDeviceClearFieldValues') 

1978 if __nvmlDeviceClearFieldValues == NULL: 

1979 if handle == NULL: 

1980 handle = load_library() 

1981 __nvmlDeviceClearFieldValues = dlsym(handle, 'nvmlDeviceClearFieldValues') 

1982  

1983 global __nvmlDeviceGetVirtualizationMode 

1984 __nvmlDeviceGetVirtualizationMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVirtualizationMode') 

1985 if __nvmlDeviceGetVirtualizationMode == NULL: 

1986 if handle == NULL: 

1987 handle = load_library() 

1988 __nvmlDeviceGetVirtualizationMode = dlsym(handle, 'nvmlDeviceGetVirtualizationMode') 

1989  

1990 global __nvmlDeviceGetHostVgpuMode 

1991 __nvmlDeviceGetHostVgpuMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetHostVgpuMode') 

1992 if __nvmlDeviceGetHostVgpuMode == NULL: 

1993 if handle == NULL: 

1994 handle = load_library() 

1995 __nvmlDeviceGetHostVgpuMode = dlsym(handle, 'nvmlDeviceGetHostVgpuMode') 

1996  

1997 global __nvmlDeviceSetVirtualizationMode 

1998 __nvmlDeviceSetVirtualizationMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetVirtualizationMode') 

1999 if __nvmlDeviceSetVirtualizationMode == NULL: 

2000 if handle == NULL: 

2001 handle = load_library() 

2002 __nvmlDeviceSetVirtualizationMode = dlsym(handle, 'nvmlDeviceSetVirtualizationMode') 

2003  

2004 global __nvmlDeviceGetVgpuHeterogeneousMode 

2005 __nvmlDeviceGetVgpuHeterogeneousMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuHeterogeneousMode') 

2006 if __nvmlDeviceGetVgpuHeterogeneousMode == NULL: 

2007 if handle == NULL: 

2008 handle = load_library() 

2009 __nvmlDeviceGetVgpuHeterogeneousMode = dlsym(handle, 'nvmlDeviceGetVgpuHeterogeneousMode') 

2010  

2011 global __nvmlDeviceSetVgpuHeterogeneousMode 

2012 __nvmlDeviceSetVgpuHeterogeneousMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetVgpuHeterogeneousMode') 

2013 if __nvmlDeviceSetVgpuHeterogeneousMode == NULL: 

2014 if handle == NULL: 

2015 handle = load_library() 

2016 __nvmlDeviceSetVgpuHeterogeneousMode = dlsym(handle, 'nvmlDeviceSetVgpuHeterogeneousMode') 

2017  

2018 global __nvmlVgpuInstanceGetPlacementId 

2019 __nvmlVgpuInstanceGetPlacementId = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetPlacementId') 

2020 if __nvmlVgpuInstanceGetPlacementId == NULL: 

2021 if handle == NULL: 

2022 handle = load_library() 

2023 __nvmlVgpuInstanceGetPlacementId = dlsym(handle, 'nvmlVgpuInstanceGetPlacementId') 

2024  

2025 global __nvmlDeviceGetVgpuTypeSupportedPlacements 

2026 __nvmlDeviceGetVgpuTypeSupportedPlacements = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuTypeSupportedPlacements') 

2027 if __nvmlDeviceGetVgpuTypeSupportedPlacements == NULL: 

2028 if handle == NULL: 

2029 handle = load_library() 

2030 __nvmlDeviceGetVgpuTypeSupportedPlacements = dlsym(handle, 'nvmlDeviceGetVgpuTypeSupportedPlacements') 

2031  

2032 global __nvmlDeviceGetVgpuTypeCreatablePlacements 

2033 __nvmlDeviceGetVgpuTypeCreatablePlacements = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuTypeCreatablePlacements') 

2034 if __nvmlDeviceGetVgpuTypeCreatablePlacements == NULL: 

2035 if handle == NULL: 

2036 handle = load_library() 

2037 __nvmlDeviceGetVgpuTypeCreatablePlacements = dlsym(handle, 'nvmlDeviceGetVgpuTypeCreatablePlacements') 

2038  

2039 global __nvmlVgpuTypeGetGspHeapSize 

2040 __nvmlVgpuTypeGetGspHeapSize = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetGspHeapSize') 

2041 if __nvmlVgpuTypeGetGspHeapSize == NULL: 

2042 if handle == NULL: 

2043 handle = load_library() 

2044 __nvmlVgpuTypeGetGspHeapSize = dlsym(handle, 'nvmlVgpuTypeGetGspHeapSize') 

2045  

2046 global __nvmlVgpuTypeGetFbReservation 

2047 __nvmlVgpuTypeGetFbReservation = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetFbReservation') 

2048 if __nvmlVgpuTypeGetFbReservation == NULL: 

2049 if handle == NULL: 

2050 handle = load_library() 

2051 __nvmlVgpuTypeGetFbReservation = dlsym(handle, 'nvmlVgpuTypeGetFbReservation') 

2052  

2053 global __nvmlVgpuInstanceGetRuntimeStateSize 

2054 __nvmlVgpuInstanceGetRuntimeStateSize = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetRuntimeStateSize') 

2055 if __nvmlVgpuInstanceGetRuntimeStateSize == NULL: 

2056 if handle == NULL: 

2057 handle = load_library() 

2058 __nvmlVgpuInstanceGetRuntimeStateSize = dlsym(handle, 'nvmlVgpuInstanceGetRuntimeStateSize') 

2059  

2060 global __nvmlDeviceSetVgpuCapabilities 

2061 __nvmlDeviceSetVgpuCapabilities = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetVgpuCapabilities') 

2062 if __nvmlDeviceSetVgpuCapabilities == NULL: 

2063 if handle == NULL: 

2064 handle = load_library() 

2065 __nvmlDeviceSetVgpuCapabilities = dlsym(handle, 'nvmlDeviceSetVgpuCapabilities') 

2066  

2067 global __nvmlDeviceGetGridLicensableFeatures_v4 

2068 __nvmlDeviceGetGridLicensableFeatures_v4 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGridLicensableFeatures_v4') 

2069 if __nvmlDeviceGetGridLicensableFeatures_v4 == NULL: 

2070 if handle == NULL: 

2071 handle = load_library() 

2072 __nvmlDeviceGetGridLicensableFeatures_v4 = dlsym(handle, 'nvmlDeviceGetGridLicensableFeatures_v4') 

2073  

2074 global __nvmlGetVgpuDriverCapabilities 

2075 __nvmlGetVgpuDriverCapabilities = dlsym(RTLD_DEFAULT, 'nvmlGetVgpuDriverCapabilities') 

2076 if __nvmlGetVgpuDriverCapabilities == NULL: 

2077 if handle == NULL: 

2078 handle = load_library() 

2079 __nvmlGetVgpuDriverCapabilities = dlsym(handle, 'nvmlGetVgpuDriverCapabilities') 

2080  

2081 global __nvmlDeviceGetVgpuCapabilities 

2082 __nvmlDeviceGetVgpuCapabilities = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuCapabilities') 

2083 if __nvmlDeviceGetVgpuCapabilities == NULL: 

2084 if handle == NULL: 

2085 handle = load_library() 

2086 __nvmlDeviceGetVgpuCapabilities = dlsym(handle, 'nvmlDeviceGetVgpuCapabilities') 

2087  

2088 global __nvmlDeviceGetSupportedVgpus 

2089 __nvmlDeviceGetSupportedVgpus = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetSupportedVgpus') 

2090 if __nvmlDeviceGetSupportedVgpus == NULL: 

2091 if handle == NULL: 

2092 handle = load_library() 

2093 __nvmlDeviceGetSupportedVgpus = dlsym(handle, 'nvmlDeviceGetSupportedVgpus') 

2094  

2095 global __nvmlDeviceGetCreatableVgpus 

2096 __nvmlDeviceGetCreatableVgpus = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetCreatableVgpus') 

2097 if __nvmlDeviceGetCreatableVgpus == NULL: 

2098 if handle == NULL: 

2099 handle = load_library() 

2100 __nvmlDeviceGetCreatableVgpus = dlsym(handle, 'nvmlDeviceGetCreatableVgpus') 

2101  

2102 global __nvmlVgpuTypeGetClass 

2103 __nvmlVgpuTypeGetClass = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetClass') 

2104 if __nvmlVgpuTypeGetClass == NULL: 

2105 if handle == NULL: 

2106 handle = load_library() 

2107 __nvmlVgpuTypeGetClass = dlsym(handle, 'nvmlVgpuTypeGetClass') 

2108  

2109 global __nvmlVgpuTypeGetName 

2110 __nvmlVgpuTypeGetName = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetName') 

2111 if __nvmlVgpuTypeGetName == NULL: 

2112 if handle == NULL: 

2113 handle = load_library() 

2114 __nvmlVgpuTypeGetName = dlsym(handle, 'nvmlVgpuTypeGetName') 

2115  

2116 global __nvmlVgpuTypeGetGpuInstanceProfileId 

2117 __nvmlVgpuTypeGetGpuInstanceProfileId = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetGpuInstanceProfileId') 

2118 if __nvmlVgpuTypeGetGpuInstanceProfileId == NULL: 

2119 if handle == NULL: 

2120 handle = load_library() 

2121 __nvmlVgpuTypeGetGpuInstanceProfileId = dlsym(handle, 'nvmlVgpuTypeGetGpuInstanceProfileId') 

2122  

2123 global __nvmlVgpuTypeGetDeviceID 

2124 __nvmlVgpuTypeGetDeviceID = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetDeviceID') 

2125 if __nvmlVgpuTypeGetDeviceID == NULL: 

2126 if handle == NULL: 

2127 handle = load_library() 

2128 __nvmlVgpuTypeGetDeviceID = dlsym(handle, 'nvmlVgpuTypeGetDeviceID') 

2129  

2130 global __nvmlVgpuTypeGetFramebufferSize 

2131 __nvmlVgpuTypeGetFramebufferSize = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetFramebufferSize') 

2132 if __nvmlVgpuTypeGetFramebufferSize == NULL: 

2133 if handle == NULL: 

2134 handle = load_library() 

2135 __nvmlVgpuTypeGetFramebufferSize = dlsym(handle, 'nvmlVgpuTypeGetFramebufferSize') 

2136  

2137 global __nvmlVgpuTypeGetNumDisplayHeads 

2138 __nvmlVgpuTypeGetNumDisplayHeads = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetNumDisplayHeads') 

2139 if __nvmlVgpuTypeGetNumDisplayHeads == NULL: 

2140 if handle == NULL: 

2141 handle = load_library() 

2142 __nvmlVgpuTypeGetNumDisplayHeads = dlsym(handle, 'nvmlVgpuTypeGetNumDisplayHeads') 

2143  

2144 global __nvmlVgpuTypeGetResolution 

2145 __nvmlVgpuTypeGetResolution = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetResolution') 

2146 if __nvmlVgpuTypeGetResolution == NULL: 

2147 if handle == NULL: 

2148 handle = load_library() 

2149 __nvmlVgpuTypeGetResolution = dlsym(handle, 'nvmlVgpuTypeGetResolution') 

2150  

2151 global __nvmlVgpuTypeGetLicense 

2152 __nvmlVgpuTypeGetLicense = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetLicense') 

2153 if __nvmlVgpuTypeGetLicense == NULL: 

2154 if handle == NULL: 

2155 handle = load_library() 

2156 __nvmlVgpuTypeGetLicense = dlsym(handle, 'nvmlVgpuTypeGetLicense') 

2157  

2158 global __nvmlVgpuTypeGetFrameRateLimit 

2159 __nvmlVgpuTypeGetFrameRateLimit = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetFrameRateLimit') 

2160 if __nvmlVgpuTypeGetFrameRateLimit == NULL: 

2161 if handle == NULL: 

2162 handle = load_library() 

2163 __nvmlVgpuTypeGetFrameRateLimit = dlsym(handle, 'nvmlVgpuTypeGetFrameRateLimit') 

2164  

2165 global __nvmlVgpuTypeGetMaxInstances 

2166 __nvmlVgpuTypeGetMaxInstances = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetMaxInstances') 

2167 if __nvmlVgpuTypeGetMaxInstances == NULL: 

2168 if handle == NULL: 

2169 handle = load_library() 

2170 __nvmlVgpuTypeGetMaxInstances = dlsym(handle, 'nvmlVgpuTypeGetMaxInstances') 

2171  

2172 global __nvmlVgpuTypeGetMaxInstancesPerVm 

2173 __nvmlVgpuTypeGetMaxInstancesPerVm = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetMaxInstancesPerVm') 

2174 if __nvmlVgpuTypeGetMaxInstancesPerVm == NULL: 

2175 if handle == NULL: 

2176 handle = load_library() 

2177 __nvmlVgpuTypeGetMaxInstancesPerVm = dlsym(handle, 'nvmlVgpuTypeGetMaxInstancesPerVm') 

2178  

2179 global __nvmlVgpuTypeGetBAR1Info 

2180 __nvmlVgpuTypeGetBAR1Info = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetBAR1Info') 

2181 if __nvmlVgpuTypeGetBAR1Info == NULL: 

2182 if handle == NULL: 

2183 handle = load_library() 

2184 __nvmlVgpuTypeGetBAR1Info = dlsym(handle, 'nvmlVgpuTypeGetBAR1Info') 

2185  

2186 global __nvmlDeviceGetActiveVgpus 

2187 __nvmlDeviceGetActiveVgpus = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetActiveVgpus') 

2188 if __nvmlDeviceGetActiveVgpus == NULL: 

2189 if handle == NULL: 

2190 handle = load_library() 

2191 __nvmlDeviceGetActiveVgpus = dlsym(handle, 'nvmlDeviceGetActiveVgpus') 

2192  

2193 global __nvmlVgpuInstanceGetVmID 

2194 __nvmlVgpuInstanceGetVmID = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetVmID') 

2195 if __nvmlVgpuInstanceGetVmID == NULL: 

2196 if handle == NULL: 

2197 handle = load_library() 

2198 __nvmlVgpuInstanceGetVmID = dlsym(handle, 'nvmlVgpuInstanceGetVmID') 

2199  

2200 global __nvmlVgpuInstanceGetUUID 

2201 __nvmlVgpuInstanceGetUUID = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetUUID') 

2202 if __nvmlVgpuInstanceGetUUID == NULL: 

2203 if handle == NULL: 

2204 handle = load_library() 

2205 __nvmlVgpuInstanceGetUUID = dlsym(handle, 'nvmlVgpuInstanceGetUUID') 

2206  

2207 global __nvmlVgpuInstanceGetVmDriverVersion 

2208 __nvmlVgpuInstanceGetVmDriverVersion = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetVmDriverVersion') 

2209 if __nvmlVgpuInstanceGetVmDriverVersion == NULL: 

2210 if handle == NULL: 

2211 handle = load_library() 

2212 __nvmlVgpuInstanceGetVmDriverVersion = dlsym(handle, 'nvmlVgpuInstanceGetVmDriverVersion') 

2213  

2214 global __nvmlVgpuInstanceGetFbUsage 

2215 __nvmlVgpuInstanceGetFbUsage = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetFbUsage') 

2216 if __nvmlVgpuInstanceGetFbUsage == NULL: 

2217 if handle == NULL: 

2218 handle = load_library() 

2219 __nvmlVgpuInstanceGetFbUsage = dlsym(handle, 'nvmlVgpuInstanceGetFbUsage') 

2220  

2221 global __nvmlVgpuInstanceGetLicenseStatus 

2222 __nvmlVgpuInstanceGetLicenseStatus = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetLicenseStatus') 

2223 if __nvmlVgpuInstanceGetLicenseStatus == NULL: 

2224 if handle == NULL: 

2225 handle = load_library() 

2226 __nvmlVgpuInstanceGetLicenseStatus = dlsym(handle, 'nvmlVgpuInstanceGetLicenseStatus') 

2227  

2228 global __nvmlVgpuInstanceGetType 

2229 __nvmlVgpuInstanceGetType = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetType') 

2230 if __nvmlVgpuInstanceGetType == NULL: 

2231 if handle == NULL: 

2232 handle = load_library() 

2233 __nvmlVgpuInstanceGetType = dlsym(handle, 'nvmlVgpuInstanceGetType') 

2234  

2235 global __nvmlVgpuInstanceGetFrameRateLimit 

2236 __nvmlVgpuInstanceGetFrameRateLimit = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetFrameRateLimit') 

2237 if __nvmlVgpuInstanceGetFrameRateLimit == NULL: 

2238 if handle == NULL: 

2239 handle = load_library() 

2240 __nvmlVgpuInstanceGetFrameRateLimit = dlsym(handle, 'nvmlVgpuInstanceGetFrameRateLimit') 

2241  

2242 global __nvmlVgpuInstanceGetEccMode 

2243 __nvmlVgpuInstanceGetEccMode = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetEccMode') 

2244 if __nvmlVgpuInstanceGetEccMode == NULL: 

2245 if handle == NULL: 

2246 handle = load_library() 

2247 __nvmlVgpuInstanceGetEccMode = dlsym(handle, 'nvmlVgpuInstanceGetEccMode') 

2248  

2249 global __nvmlVgpuInstanceGetEncoderCapacity 

2250 __nvmlVgpuInstanceGetEncoderCapacity = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetEncoderCapacity') 

2251 if __nvmlVgpuInstanceGetEncoderCapacity == NULL: 

2252 if handle == NULL: 

2253 handle = load_library() 

2254 __nvmlVgpuInstanceGetEncoderCapacity = dlsym(handle, 'nvmlVgpuInstanceGetEncoderCapacity') 

2255  

2256 global __nvmlVgpuInstanceSetEncoderCapacity 

2257 __nvmlVgpuInstanceSetEncoderCapacity = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceSetEncoderCapacity') 

2258 if __nvmlVgpuInstanceSetEncoderCapacity == NULL: 

2259 if handle == NULL: 

2260 handle = load_library() 

2261 __nvmlVgpuInstanceSetEncoderCapacity = dlsym(handle, 'nvmlVgpuInstanceSetEncoderCapacity') 

2262  

2263 global __nvmlVgpuInstanceGetEncoderStats 

2264 __nvmlVgpuInstanceGetEncoderStats = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetEncoderStats') 

2265 if __nvmlVgpuInstanceGetEncoderStats == NULL: 

2266 if handle == NULL: 

2267 handle = load_library() 

2268 __nvmlVgpuInstanceGetEncoderStats = dlsym(handle, 'nvmlVgpuInstanceGetEncoderStats') 

2269  

2270 global __nvmlVgpuInstanceGetEncoderSessions 

2271 __nvmlVgpuInstanceGetEncoderSessions = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetEncoderSessions') 

2272 if __nvmlVgpuInstanceGetEncoderSessions == NULL: 

2273 if handle == NULL: 

2274 handle = load_library() 

2275 __nvmlVgpuInstanceGetEncoderSessions = dlsym(handle, 'nvmlVgpuInstanceGetEncoderSessions') 

2276  

2277 global __nvmlVgpuInstanceGetFBCStats 

2278 __nvmlVgpuInstanceGetFBCStats = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetFBCStats') 

2279 if __nvmlVgpuInstanceGetFBCStats == NULL: 

2280 if handle == NULL: 

2281 handle = load_library() 

2282 __nvmlVgpuInstanceGetFBCStats = dlsym(handle, 'nvmlVgpuInstanceGetFBCStats') 

2283  

2284 global __nvmlVgpuInstanceGetFBCSessions 

2285 __nvmlVgpuInstanceGetFBCSessions = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetFBCSessions') 

2286 if __nvmlVgpuInstanceGetFBCSessions == NULL: 

2287 if handle == NULL: 

2288 handle = load_library() 

2289 __nvmlVgpuInstanceGetFBCSessions = dlsym(handle, 'nvmlVgpuInstanceGetFBCSessions') 

2290  

2291 global __nvmlVgpuInstanceGetGpuInstanceId 

2292 __nvmlVgpuInstanceGetGpuInstanceId = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetGpuInstanceId') 

2293 if __nvmlVgpuInstanceGetGpuInstanceId == NULL: 

2294 if handle == NULL: 

2295 handle = load_library() 

2296 __nvmlVgpuInstanceGetGpuInstanceId = dlsym(handle, 'nvmlVgpuInstanceGetGpuInstanceId') 

2297  

2298 global __nvmlVgpuInstanceGetGpuPciId 

2299 __nvmlVgpuInstanceGetGpuPciId = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetGpuPciId') 

2300 if __nvmlVgpuInstanceGetGpuPciId == NULL: 

2301 if handle == NULL: 

2302 handle = load_library() 

2303 __nvmlVgpuInstanceGetGpuPciId = dlsym(handle, 'nvmlVgpuInstanceGetGpuPciId') 

2304  

2305 global __nvmlVgpuTypeGetCapabilities 

2306 __nvmlVgpuTypeGetCapabilities = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetCapabilities') 

2307 if __nvmlVgpuTypeGetCapabilities == NULL: 

2308 if handle == NULL: 

2309 handle = load_library() 

2310 __nvmlVgpuTypeGetCapabilities = dlsym(handle, 'nvmlVgpuTypeGetCapabilities') 

2311  

2312 global __nvmlVgpuInstanceGetMdevUUID 

2313 __nvmlVgpuInstanceGetMdevUUID = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetMdevUUID') 

2314 if __nvmlVgpuInstanceGetMdevUUID == NULL: 

2315 if handle == NULL: 

2316 handle = load_library() 

2317 __nvmlVgpuInstanceGetMdevUUID = dlsym(handle, 'nvmlVgpuInstanceGetMdevUUID') 

2318  

2319 global __nvmlGpuInstanceGetCreatableVgpus 

2320 __nvmlGpuInstanceGetCreatableVgpus = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetCreatableVgpus') 

2321 if __nvmlGpuInstanceGetCreatableVgpus == NULL: 

2322 if handle == NULL: 

2323 handle = load_library() 

2324 __nvmlGpuInstanceGetCreatableVgpus = dlsym(handle, 'nvmlGpuInstanceGetCreatableVgpus') 

2325  

2326 global __nvmlVgpuTypeGetMaxInstancesPerGpuInstance 

2327 __nvmlVgpuTypeGetMaxInstancesPerGpuInstance = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetMaxInstancesPerGpuInstance') 

2328 if __nvmlVgpuTypeGetMaxInstancesPerGpuInstance == NULL: 

2329 if handle == NULL: 

2330 handle = load_library() 

2331 __nvmlVgpuTypeGetMaxInstancesPerGpuInstance = dlsym(handle, 'nvmlVgpuTypeGetMaxInstancesPerGpuInstance') 

2332  

2333 global __nvmlGpuInstanceGetActiveVgpus 

2334 __nvmlGpuInstanceGetActiveVgpus = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetActiveVgpus') 

2335 if __nvmlGpuInstanceGetActiveVgpus == NULL: 

2336 if handle == NULL: 

2337 handle = load_library() 

2338 __nvmlGpuInstanceGetActiveVgpus = dlsym(handle, 'nvmlGpuInstanceGetActiveVgpus') 

2339  

2340 global __nvmlGpuInstanceSetVgpuSchedulerState 

2341 __nvmlGpuInstanceSetVgpuSchedulerState = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceSetVgpuSchedulerState') 

2342 if __nvmlGpuInstanceSetVgpuSchedulerState == NULL: 

2343 if handle == NULL: 

2344 handle = load_library() 

2345 __nvmlGpuInstanceSetVgpuSchedulerState = dlsym(handle, 'nvmlGpuInstanceSetVgpuSchedulerState') 

2346  

2347 global __nvmlGpuInstanceGetVgpuSchedulerState 

2348 __nvmlGpuInstanceGetVgpuSchedulerState = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetVgpuSchedulerState') 

2349 if __nvmlGpuInstanceGetVgpuSchedulerState == NULL: 

2350 if handle == NULL: 

2351 handle = load_library() 

2352 __nvmlGpuInstanceGetVgpuSchedulerState = dlsym(handle, 'nvmlGpuInstanceGetVgpuSchedulerState') 

2353  

2354 global __nvmlGpuInstanceGetVgpuSchedulerLog 

2355 __nvmlGpuInstanceGetVgpuSchedulerLog = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetVgpuSchedulerLog') 

2356 if __nvmlGpuInstanceGetVgpuSchedulerLog == NULL: 

2357 if handle == NULL: 

2358 handle = load_library() 

2359 __nvmlGpuInstanceGetVgpuSchedulerLog = dlsym(handle, 'nvmlGpuInstanceGetVgpuSchedulerLog') 

2360  

2361 global __nvmlGpuInstanceGetVgpuTypeCreatablePlacements 

2362 __nvmlGpuInstanceGetVgpuTypeCreatablePlacements = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetVgpuTypeCreatablePlacements') 

2363 if __nvmlGpuInstanceGetVgpuTypeCreatablePlacements == NULL: 

2364 if handle == NULL: 

2365 handle = load_library() 

2366 __nvmlGpuInstanceGetVgpuTypeCreatablePlacements = dlsym(handle, 'nvmlGpuInstanceGetVgpuTypeCreatablePlacements') 

2367  

2368 global __nvmlGpuInstanceGetVgpuHeterogeneousMode 

2369 __nvmlGpuInstanceGetVgpuHeterogeneousMode = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetVgpuHeterogeneousMode') 

2370 if __nvmlGpuInstanceGetVgpuHeterogeneousMode == NULL: 

2371 if handle == NULL: 

2372 handle = load_library() 

2373 __nvmlGpuInstanceGetVgpuHeterogeneousMode = dlsym(handle, 'nvmlGpuInstanceGetVgpuHeterogeneousMode') 

2374  

2375 global __nvmlGpuInstanceSetVgpuHeterogeneousMode 

2376 __nvmlGpuInstanceSetVgpuHeterogeneousMode = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceSetVgpuHeterogeneousMode') 

2377 if __nvmlGpuInstanceSetVgpuHeterogeneousMode == NULL: 

2378 if handle == NULL: 

2379 handle = load_library() 

2380 __nvmlGpuInstanceSetVgpuHeterogeneousMode = dlsym(handle, 'nvmlGpuInstanceSetVgpuHeterogeneousMode') 

2381  

2382 global __nvmlVgpuInstanceGetMetadata 

2383 __nvmlVgpuInstanceGetMetadata = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetMetadata') 

2384 if __nvmlVgpuInstanceGetMetadata == NULL: 

2385 if handle == NULL: 

2386 handle = load_library() 

2387 __nvmlVgpuInstanceGetMetadata = dlsym(handle, 'nvmlVgpuInstanceGetMetadata') 

2388  

2389 global __nvmlDeviceGetVgpuMetadata 

2390 __nvmlDeviceGetVgpuMetadata = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuMetadata') 

2391 if __nvmlDeviceGetVgpuMetadata == NULL: 

2392 if handle == NULL: 

2393 handle = load_library() 

2394 __nvmlDeviceGetVgpuMetadata = dlsym(handle, 'nvmlDeviceGetVgpuMetadata') 

2395  

2396 global __nvmlGetVgpuCompatibility 

2397 __nvmlGetVgpuCompatibility = dlsym(RTLD_DEFAULT, 'nvmlGetVgpuCompatibility') 

2398 if __nvmlGetVgpuCompatibility == NULL: 

2399 if handle == NULL: 

2400 handle = load_library() 

2401 __nvmlGetVgpuCompatibility = dlsym(handle, 'nvmlGetVgpuCompatibility') 

2402  

2403 global __nvmlDeviceGetPgpuMetadataString 

2404 __nvmlDeviceGetPgpuMetadataString = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPgpuMetadataString') 

2405 if __nvmlDeviceGetPgpuMetadataString == NULL: 

2406 if handle == NULL: 

2407 handle = load_library() 

2408 __nvmlDeviceGetPgpuMetadataString = dlsym(handle, 'nvmlDeviceGetPgpuMetadataString') 

2409  

2410 global __nvmlDeviceGetVgpuSchedulerLog 

2411 __nvmlDeviceGetVgpuSchedulerLog = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuSchedulerLog') 

2412 if __nvmlDeviceGetVgpuSchedulerLog == NULL: 

2413 if handle == NULL: 

2414 handle = load_library() 

2415 __nvmlDeviceGetVgpuSchedulerLog = dlsym(handle, 'nvmlDeviceGetVgpuSchedulerLog') 

2416  

2417 global __nvmlDeviceGetVgpuSchedulerState 

2418 __nvmlDeviceGetVgpuSchedulerState = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuSchedulerState') 

2419 if __nvmlDeviceGetVgpuSchedulerState == NULL: 

2420 if handle == NULL: 

2421 handle = load_library() 

2422 __nvmlDeviceGetVgpuSchedulerState = dlsym(handle, 'nvmlDeviceGetVgpuSchedulerState') 

2423  

2424 global __nvmlDeviceGetVgpuSchedulerCapabilities 

2425 __nvmlDeviceGetVgpuSchedulerCapabilities = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuSchedulerCapabilities') 

2426 if __nvmlDeviceGetVgpuSchedulerCapabilities == NULL: 

2427 if handle == NULL: 

2428 handle = load_library() 

2429 __nvmlDeviceGetVgpuSchedulerCapabilities = dlsym(handle, 'nvmlDeviceGetVgpuSchedulerCapabilities') 

2430  

2431 global __nvmlDeviceSetVgpuSchedulerState 

2432 __nvmlDeviceSetVgpuSchedulerState = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetVgpuSchedulerState') 

2433 if __nvmlDeviceSetVgpuSchedulerState == NULL: 

2434 if handle == NULL: 

2435 handle = load_library() 

2436 __nvmlDeviceSetVgpuSchedulerState = dlsym(handle, 'nvmlDeviceSetVgpuSchedulerState') 

2437  

2438 global __nvmlGetVgpuVersion 

2439 __nvmlGetVgpuVersion = dlsym(RTLD_DEFAULT, 'nvmlGetVgpuVersion') 

2440 if __nvmlGetVgpuVersion == NULL: 

2441 if handle == NULL: 

2442 handle = load_library() 

2443 __nvmlGetVgpuVersion = dlsym(handle, 'nvmlGetVgpuVersion') 

2444  

2445 global __nvmlSetVgpuVersion 

2446 __nvmlSetVgpuVersion = dlsym(RTLD_DEFAULT, 'nvmlSetVgpuVersion') 

2447 if __nvmlSetVgpuVersion == NULL: 

2448 if handle == NULL: 

2449 handle = load_library() 

2450 __nvmlSetVgpuVersion = dlsym(handle, 'nvmlSetVgpuVersion') 

2451  

2452 global __nvmlDeviceGetVgpuUtilization 

2453 __nvmlDeviceGetVgpuUtilization = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuUtilization') 

2454 if __nvmlDeviceGetVgpuUtilization == NULL: 

2455 if handle == NULL: 

2456 handle = load_library() 

2457 __nvmlDeviceGetVgpuUtilization = dlsym(handle, 'nvmlDeviceGetVgpuUtilization') 

2458  

2459 global __nvmlDeviceGetVgpuInstancesUtilizationInfo 

2460 __nvmlDeviceGetVgpuInstancesUtilizationInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuInstancesUtilizationInfo') 

2461 if __nvmlDeviceGetVgpuInstancesUtilizationInfo == NULL: 

2462 if handle == NULL: 

2463 handle = load_library() 

2464 __nvmlDeviceGetVgpuInstancesUtilizationInfo = dlsym(handle, 'nvmlDeviceGetVgpuInstancesUtilizationInfo') 

2465  

2466 global __nvmlDeviceGetVgpuProcessUtilization 

2467 __nvmlDeviceGetVgpuProcessUtilization = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuProcessUtilization') 

2468 if __nvmlDeviceGetVgpuProcessUtilization == NULL: 

2469 if handle == NULL: 

2470 handle = load_library() 

2471 __nvmlDeviceGetVgpuProcessUtilization = dlsym(handle, 'nvmlDeviceGetVgpuProcessUtilization') 

2472  

2473 global __nvmlDeviceGetVgpuProcessesUtilizationInfo 

2474 __nvmlDeviceGetVgpuProcessesUtilizationInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuProcessesUtilizationInfo') 

2475 if __nvmlDeviceGetVgpuProcessesUtilizationInfo == NULL: 

2476 if handle == NULL: 

2477 handle = load_library() 

2478 __nvmlDeviceGetVgpuProcessesUtilizationInfo = dlsym(handle, 'nvmlDeviceGetVgpuProcessesUtilizationInfo') 

2479  

2480 global __nvmlVgpuInstanceGetAccountingMode 

2481 __nvmlVgpuInstanceGetAccountingMode = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetAccountingMode') 

2482 if __nvmlVgpuInstanceGetAccountingMode == NULL: 

2483 if handle == NULL: 

2484 handle = load_library() 

2485 __nvmlVgpuInstanceGetAccountingMode = dlsym(handle, 'nvmlVgpuInstanceGetAccountingMode') 

2486  

2487 global __nvmlVgpuInstanceGetAccountingPids 

2488 __nvmlVgpuInstanceGetAccountingPids = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetAccountingPids') 

2489 if __nvmlVgpuInstanceGetAccountingPids == NULL: 

2490 if handle == NULL: 

2491 handle = load_library() 

2492 __nvmlVgpuInstanceGetAccountingPids = dlsym(handle, 'nvmlVgpuInstanceGetAccountingPids') 

2493  

2494 global __nvmlVgpuInstanceGetAccountingStats 

2495 __nvmlVgpuInstanceGetAccountingStats = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetAccountingStats') 

2496 if __nvmlVgpuInstanceGetAccountingStats == NULL: 

2497 if handle == NULL: 

2498 handle = load_library() 

2499 __nvmlVgpuInstanceGetAccountingStats = dlsym(handle, 'nvmlVgpuInstanceGetAccountingStats') 

2500  

2501 global __nvmlVgpuInstanceClearAccountingPids 

2502 __nvmlVgpuInstanceClearAccountingPids = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceClearAccountingPids') 

2503 if __nvmlVgpuInstanceClearAccountingPids == NULL: 

2504 if handle == NULL: 

2505 handle = load_library() 

2506 __nvmlVgpuInstanceClearAccountingPids = dlsym(handle, 'nvmlVgpuInstanceClearAccountingPids') 

2507  

2508 global __nvmlVgpuInstanceGetLicenseInfo_v2 

2509 __nvmlVgpuInstanceGetLicenseInfo_v2 = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetLicenseInfo_v2') 

2510 if __nvmlVgpuInstanceGetLicenseInfo_v2 == NULL: 

2511 if handle == NULL: 

2512 handle = load_library() 

2513 __nvmlVgpuInstanceGetLicenseInfo_v2 = dlsym(handle, 'nvmlVgpuInstanceGetLicenseInfo_v2') 

2514  

2515 global __nvmlGetExcludedDeviceCount 

2516 __nvmlGetExcludedDeviceCount = dlsym(RTLD_DEFAULT, 'nvmlGetExcludedDeviceCount') 

2517 if __nvmlGetExcludedDeviceCount == NULL: 

2518 if handle == NULL: 

2519 handle = load_library() 

2520 __nvmlGetExcludedDeviceCount = dlsym(handle, 'nvmlGetExcludedDeviceCount') 

2521  

2522 global __nvmlGetExcludedDeviceInfoByIndex 

2523 __nvmlGetExcludedDeviceInfoByIndex = dlsym(RTLD_DEFAULT, 'nvmlGetExcludedDeviceInfoByIndex') 

2524 if __nvmlGetExcludedDeviceInfoByIndex == NULL: 

2525 if handle == NULL: 

2526 handle = load_library() 

2527 __nvmlGetExcludedDeviceInfoByIndex = dlsym(handle, 'nvmlGetExcludedDeviceInfoByIndex') 

2528  

2529 global __nvmlDeviceSetMigMode 

2530 __nvmlDeviceSetMigMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetMigMode') 

2531 if __nvmlDeviceSetMigMode == NULL: 

2532 if handle == NULL: 

2533 handle = load_library() 

2534 __nvmlDeviceSetMigMode = dlsym(handle, 'nvmlDeviceSetMigMode') 

2535  

2536 global __nvmlDeviceGetMigMode 

2537 __nvmlDeviceGetMigMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMigMode') 

2538 if __nvmlDeviceGetMigMode == NULL: 

2539 if handle == NULL: 

2540 handle = load_library() 

2541 __nvmlDeviceGetMigMode = dlsym(handle, 'nvmlDeviceGetMigMode') 

2542  

2543 global __nvmlDeviceGetGpuInstanceProfileInfoV 

2544 __nvmlDeviceGetGpuInstanceProfileInfoV = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpuInstanceProfileInfoV') 

2545 if __nvmlDeviceGetGpuInstanceProfileInfoV == NULL: 

2546 if handle == NULL: 

2547 handle = load_library() 

2548 __nvmlDeviceGetGpuInstanceProfileInfoV = dlsym(handle, 'nvmlDeviceGetGpuInstanceProfileInfoV') 

2549  

2550 global __nvmlDeviceGetGpuInstancePossiblePlacements_v2 

2551 __nvmlDeviceGetGpuInstancePossiblePlacements_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpuInstancePossiblePlacements_v2') 

2552 if __nvmlDeviceGetGpuInstancePossiblePlacements_v2 == NULL: 

2553 if handle == NULL: 

2554 handle = load_library() 

2555 __nvmlDeviceGetGpuInstancePossiblePlacements_v2 = dlsym(handle, 'nvmlDeviceGetGpuInstancePossiblePlacements_v2') 

2556  

2557 global __nvmlDeviceGetGpuInstanceRemainingCapacity 

2558 __nvmlDeviceGetGpuInstanceRemainingCapacity = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpuInstanceRemainingCapacity') 

2559 if __nvmlDeviceGetGpuInstanceRemainingCapacity == NULL: 

2560 if handle == NULL: 

2561 handle = load_library() 

2562 __nvmlDeviceGetGpuInstanceRemainingCapacity = dlsym(handle, 'nvmlDeviceGetGpuInstanceRemainingCapacity') 

2563  

2564 global __nvmlDeviceCreateGpuInstance 

2565 __nvmlDeviceCreateGpuInstance = dlsym(RTLD_DEFAULT, 'nvmlDeviceCreateGpuInstance') 

2566 if __nvmlDeviceCreateGpuInstance == NULL: 

2567 if handle == NULL: 

2568 handle = load_library() 

2569 __nvmlDeviceCreateGpuInstance = dlsym(handle, 'nvmlDeviceCreateGpuInstance') 

2570  

2571 global __nvmlDeviceCreateGpuInstanceWithPlacement 

2572 __nvmlDeviceCreateGpuInstanceWithPlacement = dlsym(RTLD_DEFAULT, 'nvmlDeviceCreateGpuInstanceWithPlacement') 

2573 if __nvmlDeviceCreateGpuInstanceWithPlacement == NULL: 

2574 if handle == NULL: 

2575 handle = load_library() 

2576 __nvmlDeviceCreateGpuInstanceWithPlacement = dlsym(handle, 'nvmlDeviceCreateGpuInstanceWithPlacement') 

2577  

2578 global __nvmlGpuInstanceDestroy 

2579 __nvmlGpuInstanceDestroy = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceDestroy') 

2580 if __nvmlGpuInstanceDestroy == NULL: 

2581 if handle == NULL: 

2582 handle = load_library() 

2583 __nvmlGpuInstanceDestroy = dlsym(handle, 'nvmlGpuInstanceDestroy') 

2584  

2585 global __nvmlDeviceGetGpuInstances 

2586 __nvmlDeviceGetGpuInstances = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpuInstances') 

2587 if __nvmlDeviceGetGpuInstances == NULL: 

2588 if handle == NULL: 

2589 handle = load_library() 

2590 __nvmlDeviceGetGpuInstances = dlsym(handle, 'nvmlDeviceGetGpuInstances') 

2591  

2592 global __nvmlDeviceGetGpuInstanceById 

2593 __nvmlDeviceGetGpuInstanceById = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpuInstanceById') 

2594 if __nvmlDeviceGetGpuInstanceById == NULL: 

2595 if handle == NULL: 

2596 handle = load_library() 

2597 __nvmlDeviceGetGpuInstanceById = dlsym(handle, 'nvmlDeviceGetGpuInstanceById') 

2598  

2599 global __nvmlGpuInstanceGetInfo 

2600 __nvmlGpuInstanceGetInfo = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetInfo') 

2601 if __nvmlGpuInstanceGetInfo == NULL: 

2602 if handle == NULL: 

2603 handle = load_library() 

2604 __nvmlGpuInstanceGetInfo = dlsym(handle, 'nvmlGpuInstanceGetInfo') 

2605  

2606 global __nvmlGpuInstanceGetComputeInstanceProfileInfoV 

2607 __nvmlGpuInstanceGetComputeInstanceProfileInfoV = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetComputeInstanceProfileInfoV') 

2608 if __nvmlGpuInstanceGetComputeInstanceProfileInfoV == NULL: 

2609 if handle == NULL: 

2610 handle = load_library() 

2611 __nvmlGpuInstanceGetComputeInstanceProfileInfoV = dlsym(handle, 'nvmlGpuInstanceGetComputeInstanceProfileInfoV') 

2612  

2613 global __nvmlGpuInstanceGetComputeInstanceRemainingCapacity 

2614 __nvmlGpuInstanceGetComputeInstanceRemainingCapacity = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetComputeInstanceRemainingCapacity') 

2615 if __nvmlGpuInstanceGetComputeInstanceRemainingCapacity == NULL: 

2616 if handle == NULL: 

2617 handle = load_library() 

2618 __nvmlGpuInstanceGetComputeInstanceRemainingCapacity = dlsym(handle, 'nvmlGpuInstanceGetComputeInstanceRemainingCapacity') 

2619  

2620 global __nvmlGpuInstanceGetComputeInstancePossiblePlacements 

2621 __nvmlGpuInstanceGetComputeInstancePossiblePlacements = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetComputeInstancePossiblePlacements') 

2622 if __nvmlGpuInstanceGetComputeInstancePossiblePlacements == NULL: 

2623 if handle == NULL: 

2624 handle = load_library() 

2625 __nvmlGpuInstanceGetComputeInstancePossiblePlacements = dlsym(handle, 'nvmlGpuInstanceGetComputeInstancePossiblePlacements') 

2626  

2627 global __nvmlGpuInstanceCreateComputeInstance 

2628 __nvmlGpuInstanceCreateComputeInstance = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceCreateComputeInstance') 

2629 if __nvmlGpuInstanceCreateComputeInstance == NULL: 

2630 if handle == NULL: 

2631 handle = load_library() 

2632 __nvmlGpuInstanceCreateComputeInstance = dlsym(handle, 'nvmlGpuInstanceCreateComputeInstance') 

2633  

2634 global __nvmlGpuInstanceCreateComputeInstanceWithPlacement 

2635 __nvmlGpuInstanceCreateComputeInstanceWithPlacement = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceCreateComputeInstanceWithPlacement') 

2636 if __nvmlGpuInstanceCreateComputeInstanceWithPlacement == NULL: 

2637 if handle == NULL: 

2638 handle = load_library() 

2639 __nvmlGpuInstanceCreateComputeInstanceWithPlacement = dlsym(handle, 'nvmlGpuInstanceCreateComputeInstanceWithPlacement') 

2640  

2641 global __nvmlComputeInstanceDestroy 

2642 __nvmlComputeInstanceDestroy = dlsym(RTLD_DEFAULT, 'nvmlComputeInstanceDestroy') 

2643 if __nvmlComputeInstanceDestroy == NULL: 

2644 if handle == NULL: 

2645 handle = load_library() 

2646 __nvmlComputeInstanceDestroy = dlsym(handle, 'nvmlComputeInstanceDestroy') 

2647  

2648 global __nvmlGpuInstanceGetComputeInstances 

2649 __nvmlGpuInstanceGetComputeInstances = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetComputeInstances') 

2650 if __nvmlGpuInstanceGetComputeInstances == NULL: 

2651 if handle == NULL: 

2652 handle = load_library() 

2653 __nvmlGpuInstanceGetComputeInstances = dlsym(handle, 'nvmlGpuInstanceGetComputeInstances') 

2654  

2655 global __nvmlGpuInstanceGetComputeInstanceById 

2656 __nvmlGpuInstanceGetComputeInstanceById = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetComputeInstanceById') 

2657 if __nvmlGpuInstanceGetComputeInstanceById == NULL: 

2658 if handle == NULL: 

2659 handle = load_library() 

2660 __nvmlGpuInstanceGetComputeInstanceById = dlsym(handle, 'nvmlGpuInstanceGetComputeInstanceById') 

2661  

2662 global __nvmlComputeInstanceGetInfo_v2 

2663 __nvmlComputeInstanceGetInfo_v2 = dlsym(RTLD_DEFAULT, 'nvmlComputeInstanceGetInfo_v2') 

2664 if __nvmlComputeInstanceGetInfo_v2 == NULL: 

2665 if handle == NULL: 

2666 handle = load_library() 

2667 __nvmlComputeInstanceGetInfo_v2 = dlsym(handle, 'nvmlComputeInstanceGetInfo_v2') 

2668  

2669 global __nvmlDeviceIsMigDeviceHandle 

2670 __nvmlDeviceIsMigDeviceHandle = dlsym(RTLD_DEFAULT, 'nvmlDeviceIsMigDeviceHandle') 

2671 if __nvmlDeviceIsMigDeviceHandle == NULL: 

2672 if handle == NULL: 

2673 handle = load_library() 

2674 __nvmlDeviceIsMigDeviceHandle = dlsym(handle, 'nvmlDeviceIsMigDeviceHandle') 

2675  

2676 global __nvmlDeviceGetGpuInstanceId 

2677 __nvmlDeviceGetGpuInstanceId = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpuInstanceId') 

2678 if __nvmlDeviceGetGpuInstanceId == NULL: 

2679 if handle == NULL: 

2680 handle = load_library() 

2681 __nvmlDeviceGetGpuInstanceId = dlsym(handle, 'nvmlDeviceGetGpuInstanceId') 

2682  

2683 global __nvmlDeviceGetComputeInstanceId 

2684 __nvmlDeviceGetComputeInstanceId = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetComputeInstanceId') 

2685 if __nvmlDeviceGetComputeInstanceId == NULL: 

2686 if handle == NULL: 

2687 handle = load_library() 

2688 __nvmlDeviceGetComputeInstanceId = dlsym(handle, 'nvmlDeviceGetComputeInstanceId') 

2689  

2690 global __nvmlDeviceGetMaxMigDeviceCount 

2691 __nvmlDeviceGetMaxMigDeviceCount = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMaxMigDeviceCount') 

2692 if __nvmlDeviceGetMaxMigDeviceCount == NULL: 

2693 if handle == NULL: 

2694 handle = load_library() 

2695 __nvmlDeviceGetMaxMigDeviceCount = dlsym(handle, 'nvmlDeviceGetMaxMigDeviceCount') 

2696  

2697 global __nvmlDeviceGetMigDeviceHandleByIndex 

2698 __nvmlDeviceGetMigDeviceHandleByIndex = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMigDeviceHandleByIndex') 

2699 if __nvmlDeviceGetMigDeviceHandleByIndex == NULL: 

2700 if handle == NULL: 

2701 handle = load_library() 

2702 __nvmlDeviceGetMigDeviceHandleByIndex = dlsym(handle, 'nvmlDeviceGetMigDeviceHandleByIndex') 

2703  

2704 global __nvmlDeviceGetDeviceHandleFromMigDeviceHandle 

2705 __nvmlDeviceGetDeviceHandleFromMigDeviceHandle = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetDeviceHandleFromMigDeviceHandle') 

2706 if __nvmlDeviceGetDeviceHandleFromMigDeviceHandle == NULL: 

2707 if handle == NULL: 

2708 handle = load_library() 

2709 __nvmlDeviceGetDeviceHandleFromMigDeviceHandle = dlsym(handle, 'nvmlDeviceGetDeviceHandleFromMigDeviceHandle') 

2710  

2711 global __nvmlGpmSampleGet 

2712 __nvmlGpmSampleGet = dlsym(RTLD_DEFAULT, 'nvmlGpmSampleGet') 

2713 if __nvmlGpmSampleGet == NULL: 

2714 if handle == NULL: 

2715 handle = load_library() 

2716 __nvmlGpmSampleGet = dlsym(handle, 'nvmlGpmSampleGet') 

2717  

2718 global __nvmlGpmMigSampleGet 

2719 __nvmlGpmMigSampleGet = dlsym(RTLD_DEFAULT, 'nvmlGpmMigSampleGet') 

2720 if __nvmlGpmMigSampleGet == NULL: 

2721 if handle == NULL: 

2722 handle = load_library() 

2723 __nvmlGpmMigSampleGet = dlsym(handle, 'nvmlGpmMigSampleGet') 

2724  

2725 global __nvmlGpmQueryDeviceSupport 

2726 __nvmlGpmQueryDeviceSupport = dlsym(RTLD_DEFAULT, 'nvmlGpmQueryDeviceSupport') 

2727 if __nvmlGpmQueryDeviceSupport == NULL: 

2728 if handle == NULL: 

2729 handle = load_library() 

2730 __nvmlGpmQueryDeviceSupport = dlsym(handle, 'nvmlGpmQueryDeviceSupport') 

2731  

2732 global __nvmlGpmQueryIfStreamingEnabled 

2733 __nvmlGpmQueryIfStreamingEnabled = dlsym(RTLD_DEFAULT, 'nvmlGpmQueryIfStreamingEnabled') 

2734 if __nvmlGpmQueryIfStreamingEnabled == NULL: 

2735 if handle == NULL: 

2736 handle = load_library() 

2737 __nvmlGpmQueryIfStreamingEnabled = dlsym(handle, 'nvmlGpmQueryIfStreamingEnabled') 

2738  

2739 global __nvmlGpmSetStreamingEnabled 

2740 __nvmlGpmSetStreamingEnabled = dlsym(RTLD_DEFAULT, 'nvmlGpmSetStreamingEnabled') 

2741 if __nvmlGpmSetStreamingEnabled == NULL: 

2742 if handle == NULL: 

2743 handle = load_library() 

2744 __nvmlGpmSetStreamingEnabled = dlsym(handle, 'nvmlGpmSetStreamingEnabled') 

2745  

2746 global __nvmlDeviceGetCapabilities 

2747 __nvmlDeviceGetCapabilities = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetCapabilities') 

2748 if __nvmlDeviceGetCapabilities == NULL: 

2749 if handle == NULL: 

2750 handle = load_library() 

2751 __nvmlDeviceGetCapabilities = dlsym(handle, 'nvmlDeviceGetCapabilities') 

2752  

2753 global __nvmlDeviceWorkloadPowerProfileClearRequestedProfiles 

2754 __nvmlDeviceWorkloadPowerProfileClearRequestedProfiles = dlsym(RTLD_DEFAULT, 'nvmlDeviceWorkloadPowerProfileClearRequestedProfiles') 

2755 if __nvmlDeviceWorkloadPowerProfileClearRequestedProfiles == NULL: 

2756 if handle == NULL: 

2757 handle = load_library() 

2758 __nvmlDeviceWorkloadPowerProfileClearRequestedProfiles = dlsym(handle, 'nvmlDeviceWorkloadPowerProfileClearRequestedProfiles') 

2759  

2760 global __nvmlDevicePowerSmoothingActivatePresetProfile 

2761 __nvmlDevicePowerSmoothingActivatePresetProfile = dlsym(RTLD_DEFAULT, 'nvmlDevicePowerSmoothingActivatePresetProfile') 

2762 if __nvmlDevicePowerSmoothingActivatePresetProfile == NULL: 

2763 if handle == NULL: 

2764 handle = load_library() 

2765 __nvmlDevicePowerSmoothingActivatePresetProfile = dlsym(handle, 'nvmlDevicePowerSmoothingActivatePresetProfile') 

2766  

2767 global __nvmlDevicePowerSmoothingUpdatePresetProfileParam 

2768 __nvmlDevicePowerSmoothingUpdatePresetProfileParam = dlsym(RTLD_DEFAULT, 'nvmlDevicePowerSmoothingUpdatePresetProfileParam') 

2769 if __nvmlDevicePowerSmoothingUpdatePresetProfileParam == NULL: 

2770 if handle == NULL: 

2771 handle = load_library() 

2772 __nvmlDevicePowerSmoothingUpdatePresetProfileParam = dlsym(handle, 'nvmlDevicePowerSmoothingUpdatePresetProfileParam') 

2773  

2774 global __nvmlDevicePowerSmoothingSetState 

2775 __nvmlDevicePowerSmoothingSetState = dlsym(RTLD_DEFAULT, 'nvmlDevicePowerSmoothingSetState') 

2776 if __nvmlDevicePowerSmoothingSetState == NULL: 

2777 if handle == NULL: 

2778 handle = load_library() 

2779 __nvmlDevicePowerSmoothingSetState = dlsym(handle, 'nvmlDevicePowerSmoothingSetState') 

2780  

2781 global __nvmlDeviceGetAddressingMode 

2782 __nvmlDeviceGetAddressingMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetAddressingMode') 

2783 if __nvmlDeviceGetAddressingMode == NULL: 

2784 if handle == NULL: 

2785 handle = load_library() 

2786 __nvmlDeviceGetAddressingMode = dlsym(handle, 'nvmlDeviceGetAddressingMode') 

2787  

2788 global __nvmlDeviceGetRepairStatus 

2789 __nvmlDeviceGetRepairStatus = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetRepairStatus') 

2790 if __nvmlDeviceGetRepairStatus == NULL: 

2791 if handle == NULL: 

2792 handle = load_library() 

2793 __nvmlDeviceGetRepairStatus = dlsym(handle, 'nvmlDeviceGetRepairStatus') 

2794  

2795 global __nvmlDeviceGetPowerMizerMode_v1 

2796 __nvmlDeviceGetPowerMizerMode_v1 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPowerMizerMode_v1') 

2797 if __nvmlDeviceGetPowerMizerMode_v1 == NULL: 

2798 if handle == NULL: 

2799 handle = load_library() 

2800 __nvmlDeviceGetPowerMizerMode_v1 = dlsym(handle, 'nvmlDeviceGetPowerMizerMode_v1') 

2801  

2802 global __nvmlDeviceSetPowerMizerMode_v1 

2803 __nvmlDeviceSetPowerMizerMode_v1 = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetPowerMizerMode_v1') 

2804 if __nvmlDeviceSetPowerMizerMode_v1 == NULL: 

2805 if handle == NULL: 

2806 handle = load_library() 

2807 __nvmlDeviceSetPowerMizerMode_v1 = dlsym(handle, 'nvmlDeviceSetPowerMizerMode_v1') 

2808  

2809 global __nvmlDeviceGetPdi 

2810 __nvmlDeviceGetPdi = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPdi') 

2811 if __nvmlDeviceGetPdi == NULL: 

2812 if handle == NULL: 

2813 handle = load_library() 

2814 __nvmlDeviceGetPdi = dlsym(handle, 'nvmlDeviceGetPdi') 

2815  

2816 global __nvmlDeviceSetHostname_v1 

2817 __nvmlDeviceSetHostname_v1 = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetHostname_v1') 

2818 if __nvmlDeviceSetHostname_v1 == NULL: 

2819 if handle == NULL: 

2820 handle = load_library() 

2821 __nvmlDeviceSetHostname_v1 = dlsym(handle, 'nvmlDeviceSetHostname_v1') 

2822  

2823 global __nvmlDeviceGetHostname_v1 

2824 __nvmlDeviceGetHostname_v1 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetHostname_v1') 

2825 if __nvmlDeviceGetHostname_v1 == NULL: 

2826 if handle == NULL: 

2827 handle = load_library() 

2828 __nvmlDeviceGetHostname_v1 = dlsym(handle, 'nvmlDeviceGetHostname_v1') 

2829  

2830 global __nvmlDeviceGetNvLinkInfo 

2831 __nvmlDeviceGetNvLinkInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNvLinkInfo') 

2832 if __nvmlDeviceGetNvLinkInfo == NULL: 

2833 if handle == NULL: 

2834 handle = load_library() 

2835 __nvmlDeviceGetNvLinkInfo = dlsym(handle, 'nvmlDeviceGetNvLinkInfo') 

2836  

2837 global __nvmlDeviceReadWritePRM_v1 

2838 __nvmlDeviceReadWritePRM_v1 = dlsym(RTLD_DEFAULT, 'nvmlDeviceReadWritePRM_v1') 

2839 if __nvmlDeviceReadWritePRM_v1 == NULL: 

2840 if handle == NULL: 

2841 handle = load_library() 

2842 __nvmlDeviceReadWritePRM_v1 = dlsym(handle, 'nvmlDeviceReadWritePRM_v1') 

2843  

2844 global __nvmlDeviceGetGpuInstanceProfileInfoByIdV 

2845 __nvmlDeviceGetGpuInstanceProfileInfoByIdV = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpuInstanceProfileInfoByIdV') 

2846 if __nvmlDeviceGetGpuInstanceProfileInfoByIdV == NULL: 

2847 if handle == NULL: 

2848 handle = load_library() 

2849 __nvmlDeviceGetGpuInstanceProfileInfoByIdV = dlsym(handle, 'nvmlDeviceGetGpuInstanceProfileInfoByIdV') 

2850  

2851 global __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts 

2852 __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts') 

2853 if __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts == NULL: 

2854 if handle == NULL: 

2855 handle = load_library() 

2856 __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts = dlsym(handle, 'nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts') 

2857  

2858 global __nvmlDeviceGetUnrepairableMemoryFlag_v1 

2859 __nvmlDeviceGetUnrepairableMemoryFlag_v1 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetUnrepairableMemoryFlag_v1') 

2860 if __nvmlDeviceGetUnrepairableMemoryFlag_v1 == NULL: 

2861 if handle == NULL: 

2862 handle = load_library() 

2863 __nvmlDeviceGetUnrepairableMemoryFlag_v1 = dlsym(handle, 'nvmlDeviceGetUnrepairableMemoryFlag_v1') 

2864  

2865 global __nvmlDeviceReadPRMCounters_v1 

2866 __nvmlDeviceReadPRMCounters_v1 = dlsym(RTLD_DEFAULT, 'nvmlDeviceReadPRMCounters_v1') 

2867 if __nvmlDeviceReadPRMCounters_v1 == NULL: 

2868 if handle == NULL: 

2869 handle = load_library() 

2870 __nvmlDeviceReadPRMCounters_v1 = dlsym(handle, 'nvmlDeviceReadPRMCounters_v1') 

2871  

2872 global __nvmlDeviceSetRusdSettings_v1 

2873 __nvmlDeviceSetRusdSettings_v1 = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetRusdSettings_v1') 

2874 if __nvmlDeviceSetRusdSettings_v1 == NULL: 

2875 if handle == NULL: 

2876 handle = load_library() 

2877 __nvmlDeviceSetRusdSettings_v1 = dlsym(handle, 'nvmlDeviceSetRusdSettings_v1') 

2878  

2879 __py_nvml_init = True 

2880 return 0 

2881  

2882  

2883cdef inline int _check_or_init_nvml() except -1 nogil: 

2884 if __py_nvml_init: 

2885 return 0 

2886  

2887 return _init_nvml() 

2888  

2889  

2890cdef dict func_ptrs = None 

2891  

2892  

2893cpdef dict _inspect_function_pointers(): 

2894 global func_ptrs 

2895 if func_ptrs is not None: 

2896 return func_ptrs 

2897  

2898 _check_or_init_nvml() 

2899 cdef dict data = {} 

2900  

2901 global __nvmlInit_v2 

2902 data["__nvmlInit_v2"] = <intptr_t>__nvmlInit_v2 

2903  

2904 global __nvmlInitWithFlags 

2905 data["__nvmlInitWithFlags"] = <intptr_t>__nvmlInitWithFlags 

2906  

2907 global __nvmlShutdown 

2908 data["__nvmlShutdown"] = <intptr_t>__nvmlShutdown 

2909  

2910 global __nvmlErrorString 

2911 data["__nvmlErrorString"] = <intptr_t>__nvmlErrorString 

2912  

2913 global __nvmlSystemGetDriverVersion 

2914 data["__nvmlSystemGetDriverVersion"] = <intptr_t>__nvmlSystemGetDriverVersion 

2915  

2916 global __nvmlSystemGetNVMLVersion 

2917 data["__nvmlSystemGetNVMLVersion"] = <intptr_t>__nvmlSystemGetNVMLVersion 

2918  

2919 global __nvmlSystemGetCudaDriverVersion 

2920 data["__nvmlSystemGetCudaDriverVersion"] = <intptr_t>__nvmlSystemGetCudaDriverVersion 

2921  

2922 global __nvmlSystemGetCudaDriverVersion_v2 

2923 data["__nvmlSystemGetCudaDriverVersion_v2"] = <intptr_t>__nvmlSystemGetCudaDriverVersion_v2 

2924  

2925 global __nvmlSystemGetProcessName 

2926 data["__nvmlSystemGetProcessName"] = <intptr_t>__nvmlSystemGetProcessName 

2927  

2928 global __nvmlSystemGetHicVersion 

2929 data["__nvmlSystemGetHicVersion"] = <intptr_t>__nvmlSystemGetHicVersion 

2930  

2931 global __nvmlSystemGetTopologyGpuSet 

2932 data["__nvmlSystemGetTopologyGpuSet"] = <intptr_t>__nvmlSystemGetTopologyGpuSet 

2933  

2934 global __nvmlSystemGetDriverBranch 

2935 data["__nvmlSystemGetDriverBranch"] = <intptr_t>__nvmlSystemGetDriverBranch 

2936  

2937 global __nvmlUnitGetCount 

2938 data["__nvmlUnitGetCount"] = <intptr_t>__nvmlUnitGetCount 

2939  

2940 global __nvmlUnitGetHandleByIndex 

2941 data["__nvmlUnitGetHandleByIndex"] = <intptr_t>__nvmlUnitGetHandleByIndex 

2942  

2943 global __nvmlUnitGetUnitInfo 

2944 data["__nvmlUnitGetUnitInfo"] = <intptr_t>__nvmlUnitGetUnitInfo 

2945  

2946 global __nvmlUnitGetLedState 

2947 data["__nvmlUnitGetLedState"] = <intptr_t>__nvmlUnitGetLedState 

2948  

2949 global __nvmlUnitGetPsuInfo 

2950 data["__nvmlUnitGetPsuInfo"] = <intptr_t>__nvmlUnitGetPsuInfo 

2951  

2952 global __nvmlUnitGetTemperature 

2953 data["__nvmlUnitGetTemperature"] = <intptr_t>__nvmlUnitGetTemperature 

2954  

2955 global __nvmlUnitGetFanSpeedInfo 

2956 data["__nvmlUnitGetFanSpeedInfo"] = <intptr_t>__nvmlUnitGetFanSpeedInfo 

2957  

2958 global __nvmlUnitGetDevices 

2959 data["__nvmlUnitGetDevices"] = <intptr_t>__nvmlUnitGetDevices 

2960  

2961 global __nvmlDeviceGetCount_v2 

2962 data["__nvmlDeviceGetCount_v2"] = <intptr_t>__nvmlDeviceGetCount_v2 

2963  

2964 global __nvmlDeviceGetAttributes_v2 

2965 data["__nvmlDeviceGetAttributes_v2"] = <intptr_t>__nvmlDeviceGetAttributes_v2 

2966  

2967 global __nvmlDeviceGetHandleByIndex_v2 

2968 data["__nvmlDeviceGetHandleByIndex_v2"] = <intptr_t>__nvmlDeviceGetHandleByIndex_v2 

2969  

2970 global __nvmlDeviceGetHandleBySerial 

2971 data["__nvmlDeviceGetHandleBySerial"] = <intptr_t>__nvmlDeviceGetHandleBySerial 

2972  

2973 global __nvmlDeviceGetHandleByUUID 

2974 data["__nvmlDeviceGetHandleByUUID"] = <intptr_t>__nvmlDeviceGetHandleByUUID 

2975  

2976 global __nvmlDeviceGetHandleByUUIDV 

2977 data["__nvmlDeviceGetHandleByUUIDV"] = <intptr_t>__nvmlDeviceGetHandleByUUIDV 

2978  

2979 global __nvmlDeviceGetHandleByPciBusId_v2 

2980 data["__nvmlDeviceGetHandleByPciBusId_v2"] = <intptr_t>__nvmlDeviceGetHandleByPciBusId_v2 

2981  

2982 global __nvmlDeviceGetName 

2983 data["__nvmlDeviceGetName"] = <intptr_t>__nvmlDeviceGetName 

2984  

2985 global __nvmlDeviceGetBrand 

2986 data["__nvmlDeviceGetBrand"] = <intptr_t>__nvmlDeviceGetBrand 

2987  

2988 global __nvmlDeviceGetIndex 

2989 data["__nvmlDeviceGetIndex"] = <intptr_t>__nvmlDeviceGetIndex 

2990  

2991 global __nvmlDeviceGetSerial 

2992 data["__nvmlDeviceGetSerial"] = <intptr_t>__nvmlDeviceGetSerial 

2993  

2994 global __nvmlDeviceGetModuleId 

2995 data["__nvmlDeviceGetModuleId"] = <intptr_t>__nvmlDeviceGetModuleId 

2996  

2997 global __nvmlDeviceGetC2cModeInfoV 

2998 data["__nvmlDeviceGetC2cModeInfoV"] = <intptr_t>__nvmlDeviceGetC2cModeInfoV 

2999  

3000 global __nvmlDeviceGetMemoryAffinity 

3001 data["__nvmlDeviceGetMemoryAffinity"] = <intptr_t>__nvmlDeviceGetMemoryAffinity 

3002  

3003 global __nvmlDeviceGetCpuAffinityWithinScope 

3004 data["__nvmlDeviceGetCpuAffinityWithinScope"] = <intptr_t>__nvmlDeviceGetCpuAffinityWithinScope 

3005  

3006 global __nvmlDeviceGetCpuAffinity 

3007 data["__nvmlDeviceGetCpuAffinity"] = <intptr_t>__nvmlDeviceGetCpuAffinity 

3008  

3009 global __nvmlDeviceSetCpuAffinity 

3010 data["__nvmlDeviceSetCpuAffinity"] = <intptr_t>__nvmlDeviceSetCpuAffinity 

3011  

3012 global __nvmlDeviceClearCpuAffinity 

3013 data["__nvmlDeviceClearCpuAffinity"] = <intptr_t>__nvmlDeviceClearCpuAffinity 

3014  

3015 global __nvmlDeviceGetNumaNodeId 

3016 data["__nvmlDeviceGetNumaNodeId"] = <intptr_t>__nvmlDeviceGetNumaNodeId 

3017  

3018 global __nvmlDeviceGetTopologyCommonAncestor 

3019 data["__nvmlDeviceGetTopologyCommonAncestor"] = <intptr_t>__nvmlDeviceGetTopologyCommonAncestor 

3020  

3021 global __nvmlDeviceGetTopologyNearestGpus 

3022 data["__nvmlDeviceGetTopologyNearestGpus"] = <intptr_t>__nvmlDeviceGetTopologyNearestGpus 

3023  

3024 global __nvmlDeviceGetP2PStatus 

3025 data["__nvmlDeviceGetP2PStatus"] = <intptr_t>__nvmlDeviceGetP2PStatus 

3026  

3027 global __nvmlDeviceGetUUID 

3028 data["__nvmlDeviceGetUUID"] = <intptr_t>__nvmlDeviceGetUUID 

3029  

3030 global __nvmlDeviceGetMinorNumber 

3031 data["__nvmlDeviceGetMinorNumber"] = <intptr_t>__nvmlDeviceGetMinorNumber 

3032  

3033 global __nvmlDeviceGetBoardPartNumber 

3034 data["__nvmlDeviceGetBoardPartNumber"] = <intptr_t>__nvmlDeviceGetBoardPartNumber 

3035  

3036 global __nvmlDeviceGetInforomVersion 

3037 data["__nvmlDeviceGetInforomVersion"] = <intptr_t>__nvmlDeviceGetInforomVersion 

3038  

3039 global __nvmlDeviceGetInforomImageVersion 

3040 data["__nvmlDeviceGetInforomImageVersion"] = <intptr_t>__nvmlDeviceGetInforomImageVersion 

3041  

3042 global __nvmlDeviceGetInforomConfigurationChecksum 

3043 data["__nvmlDeviceGetInforomConfigurationChecksum"] = <intptr_t>__nvmlDeviceGetInforomConfigurationChecksum 

3044  

3045 global __nvmlDeviceValidateInforom 

3046 data["__nvmlDeviceValidateInforom"] = <intptr_t>__nvmlDeviceValidateInforom 

3047  

3048 global __nvmlDeviceGetLastBBXFlushTime 

3049 data["__nvmlDeviceGetLastBBXFlushTime"] = <intptr_t>__nvmlDeviceGetLastBBXFlushTime 

3050  

3051 global __nvmlDeviceGetDisplayMode 

3052 data["__nvmlDeviceGetDisplayMode"] = <intptr_t>__nvmlDeviceGetDisplayMode 

3053  

3054 global __nvmlDeviceGetDisplayActive 

3055 data["__nvmlDeviceGetDisplayActive"] = <intptr_t>__nvmlDeviceGetDisplayActive 

3056  

3057 global __nvmlDeviceGetPersistenceMode 

3058 data["__nvmlDeviceGetPersistenceMode"] = <intptr_t>__nvmlDeviceGetPersistenceMode 

3059  

3060 global __nvmlDeviceGetPciInfoExt 

3061 data["__nvmlDeviceGetPciInfoExt"] = <intptr_t>__nvmlDeviceGetPciInfoExt 

3062  

3063 global __nvmlDeviceGetPciInfo_v3 

3064 data["__nvmlDeviceGetPciInfo_v3"] = <intptr_t>__nvmlDeviceGetPciInfo_v3 

3065  

3066 global __nvmlDeviceGetMaxPcieLinkGeneration 

3067 data["__nvmlDeviceGetMaxPcieLinkGeneration"] = <intptr_t>__nvmlDeviceGetMaxPcieLinkGeneration 

3068  

3069 global __nvmlDeviceGetGpuMaxPcieLinkGeneration 

3070 data["__nvmlDeviceGetGpuMaxPcieLinkGeneration"] = <intptr_t>__nvmlDeviceGetGpuMaxPcieLinkGeneration 

3071  

3072 global __nvmlDeviceGetMaxPcieLinkWidth 

3073 data["__nvmlDeviceGetMaxPcieLinkWidth"] = <intptr_t>__nvmlDeviceGetMaxPcieLinkWidth 

3074  

3075 global __nvmlDeviceGetCurrPcieLinkGeneration 

3076 data["__nvmlDeviceGetCurrPcieLinkGeneration"] = <intptr_t>__nvmlDeviceGetCurrPcieLinkGeneration 

3077  

3078 global __nvmlDeviceGetCurrPcieLinkWidth 

3079 data["__nvmlDeviceGetCurrPcieLinkWidth"] = <intptr_t>__nvmlDeviceGetCurrPcieLinkWidth 

3080  

3081 global __nvmlDeviceGetPcieThroughput 

3082 data["__nvmlDeviceGetPcieThroughput"] = <intptr_t>__nvmlDeviceGetPcieThroughput 

3083  

3084 global __nvmlDeviceGetPcieReplayCounter 

3085 data["__nvmlDeviceGetPcieReplayCounter"] = <intptr_t>__nvmlDeviceGetPcieReplayCounter 

3086  

3087 global __nvmlDeviceGetClockInfo 

3088 data["__nvmlDeviceGetClockInfo"] = <intptr_t>__nvmlDeviceGetClockInfo 

3089  

3090 global __nvmlDeviceGetMaxClockInfo 

3091 data["__nvmlDeviceGetMaxClockInfo"] = <intptr_t>__nvmlDeviceGetMaxClockInfo 

3092  

3093 global __nvmlDeviceGetGpcClkVfOffset 

3094 data["__nvmlDeviceGetGpcClkVfOffset"] = <intptr_t>__nvmlDeviceGetGpcClkVfOffset 

3095  

3096 global __nvmlDeviceGetClock 

3097 data["__nvmlDeviceGetClock"] = <intptr_t>__nvmlDeviceGetClock 

3098  

3099 global __nvmlDeviceGetMaxCustomerBoostClock 

3100 data["__nvmlDeviceGetMaxCustomerBoostClock"] = <intptr_t>__nvmlDeviceGetMaxCustomerBoostClock 

3101  

3102 global __nvmlDeviceGetSupportedMemoryClocks 

3103 data["__nvmlDeviceGetSupportedMemoryClocks"] = <intptr_t>__nvmlDeviceGetSupportedMemoryClocks 

3104  

3105 global __nvmlDeviceGetSupportedGraphicsClocks 

3106 data["__nvmlDeviceGetSupportedGraphicsClocks"] = <intptr_t>__nvmlDeviceGetSupportedGraphicsClocks 

3107  

3108 global __nvmlDeviceGetAutoBoostedClocksEnabled 

3109 data["__nvmlDeviceGetAutoBoostedClocksEnabled"] = <intptr_t>__nvmlDeviceGetAutoBoostedClocksEnabled 

3110  

3111 global __nvmlDeviceGetFanSpeed 

3112 data["__nvmlDeviceGetFanSpeed"] = <intptr_t>__nvmlDeviceGetFanSpeed 

3113  

3114 global __nvmlDeviceGetFanSpeed_v2 

3115 data["__nvmlDeviceGetFanSpeed_v2"] = <intptr_t>__nvmlDeviceGetFanSpeed_v2 

3116  

3117 global __nvmlDeviceGetFanSpeedRPM 

3118 data["__nvmlDeviceGetFanSpeedRPM"] = <intptr_t>__nvmlDeviceGetFanSpeedRPM 

3119  

3120 global __nvmlDeviceGetTargetFanSpeed 

3121 data["__nvmlDeviceGetTargetFanSpeed"] = <intptr_t>__nvmlDeviceGetTargetFanSpeed 

3122  

3123 global __nvmlDeviceGetMinMaxFanSpeed 

3124 data["__nvmlDeviceGetMinMaxFanSpeed"] = <intptr_t>__nvmlDeviceGetMinMaxFanSpeed 

3125  

3126 global __nvmlDeviceGetFanControlPolicy_v2 

3127 data["__nvmlDeviceGetFanControlPolicy_v2"] = <intptr_t>__nvmlDeviceGetFanControlPolicy_v2 

3128  

3129 global __nvmlDeviceGetNumFans 

3130 data["__nvmlDeviceGetNumFans"] = <intptr_t>__nvmlDeviceGetNumFans 

3131  

3132 global __nvmlDeviceGetCoolerInfo 

3133 data["__nvmlDeviceGetCoolerInfo"] = <intptr_t>__nvmlDeviceGetCoolerInfo 

3134  

3135 global __nvmlDeviceGetTemperatureV 

3136 data["__nvmlDeviceGetTemperatureV"] = <intptr_t>__nvmlDeviceGetTemperatureV 

3137  

3138 global __nvmlDeviceGetTemperatureThreshold 

3139 data["__nvmlDeviceGetTemperatureThreshold"] = <intptr_t>__nvmlDeviceGetTemperatureThreshold 

3140  

3141 global __nvmlDeviceGetMarginTemperature 

3142 data["__nvmlDeviceGetMarginTemperature"] = <intptr_t>__nvmlDeviceGetMarginTemperature 

3143  

3144 global __nvmlDeviceGetThermalSettings 

3145 data["__nvmlDeviceGetThermalSettings"] = <intptr_t>__nvmlDeviceGetThermalSettings 

3146  

3147 global __nvmlDeviceGetPerformanceState 

3148 data["__nvmlDeviceGetPerformanceState"] = <intptr_t>__nvmlDeviceGetPerformanceState 

3149  

3150 global __nvmlDeviceGetCurrentClocksEventReasons 

3151 data["__nvmlDeviceGetCurrentClocksEventReasons"] = <intptr_t>__nvmlDeviceGetCurrentClocksEventReasons 

3152  

3153 global __nvmlDeviceGetSupportedClocksEventReasons 

3154 data["__nvmlDeviceGetSupportedClocksEventReasons"] = <intptr_t>__nvmlDeviceGetSupportedClocksEventReasons 

3155  

3156 global __nvmlDeviceGetPowerState 

3157 data["__nvmlDeviceGetPowerState"] = <intptr_t>__nvmlDeviceGetPowerState 

3158  

3159 global __nvmlDeviceGetDynamicPstatesInfo 

3160 data["__nvmlDeviceGetDynamicPstatesInfo"] = <intptr_t>__nvmlDeviceGetDynamicPstatesInfo 

3161  

3162 global __nvmlDeviceGetMemClkVfOffset 

3163 data["__nvmlDeviceGetMemClkVfOffset"] = <intptr_t>__nvmlDeviceGetMemClkVfOffset 

3164  

3165 global __nvmlDeviceGetMinMaxClockOfPState 

3166 data["__nvmlDeviceGetMinMaxClockOfPState"] = <intptr_t>__nvmlDeviceGetMinMaxClockOfPState 

3167  

3168 global __nvmlDeviceGetSupportedPerformanceStates 

3169 data["__nvmlDeviceGetSupportedPerformanceStates"] = <intptr_t>__nvmlDeviceGetSupportedPerformanceStates 

3170  

3171 global __nvmlDeviceGetGpcClkMinMaxVfOffset 

3172 data["__nvmlDeviceGetGpcClkMinMaxVfOffset"] = <intptr_t>__nvmlDeviceGetGpcClkMinMaxVfOffset 

3173  

3174 global __nvmlDeviceGetMemClkMinMaxVfOffset 

3175 data["__nvmlDeviceGetMemClkMinMaxVfOffset"] = <intptr_t>__nvmlDeviceGetMemClkMinMaxVfOffset 

3176  

3177 global __nvmlDeviceGetClockOffsets 

3178 data["__nvmlDeviceGetClockOffsets"] = <intptr_t>__nvmlDeviceGetClockOffsets 

3179  

3180 global __nvmlDeviceSetClockOffsets 

3181 data["__nvmlDeviceSetClockOffsets"] = <intptr_t>__nvmlDeviceSetClockOffsets 

3182  

3183 global __nvmlDeviceGetPerformanceModes 

3184 data["__nvmlDeviceGetPerformanceModes"] = <intptr_t>__nvmlDeviceGetPerformanceModes 

3185  

3186 global __nvmlDeviceGetCurrentClockFreqs 

3187 data["__nvmlDeviceGetCurrentClockFreqs"] = <intptr_t>__nvmlDeviceGetCurrentClockFreqs 

3188  

3189 global __nvmlDeviceGetPowerManagementLimit 

3190 data["__nvmlDeviceGetPowerManagementLimit"] = <intptr_t>__nvmlDeviceGetPowerManagementLimit 

3191  

3192 global __nvmlDeviceGetPowerManagementLimitConstraints 

3193 data["__nvmlDeviceGetPowerManagementLimitConstraints"] = <intptr_t>__nvmlDeviceGetPowerManagementLimitConstraints 

3194  

3195 global __nvmlDeviceGetPowerManagementDefaultLimit 

3196 data["__nvmlDeviceGetPowerManagementDefaultLimit"] = <intptr_t>__nvmlDeviceGetPowerManagementDefaultLimit 

3197  

3198 global __nvmlDeviceGetPowerUsage 

3199 data["__nvmlDeviceGetPowerUsage"] = <intptr_t>__nvmlDeviceGetPowerUsage 

3200  

3201 global __nvmlDeviceGetTotalEnergyConsumption 

3202 data["__nvmlDeviceGetTotalEnergyConsumption"] = <intptr_t>__nvmlDeviceGetTotalEnergyConsumption 

3203  

3204 global __nvmlDeviceGetEnforcedPowerLimit 

3205 data["__nvmlDeviceGetEnforcedPowerLimit"] = <intptr_t>__nvmlDeviceGetEnforcedPowerLimit 

3206  

3207 global __nvmlDeviceGetGpuOperationMode 

3208 data["__nvmlDeviceGetGpuOperationMode"] = <intptr_t>__nvmlDeviceGetGpuOperationMode 

3209  

3210 global __nvmlDeviceGetMemoryInfo_v2 

3211 data["__nvmlDeviceGetMemoryInfo_v2"] = <intptr_t>__nvmlDeviceGetMemoryInfo_v2 

3212  

3213 global __nvmlDeviceGetComputeMode 

3214 data["__nvmlDeviceGetComputeMode"] = <intptr_t>__nvmlDeviceGetComputeMode 

3215  

3216 global __nvmlDeviceGetCudaComputeCapability 

3217 data["__nvmlDeviceGetCudaComputeCapability"] = <intptr_t>__nvmlDeviceGetCudaComputeCapability 

3218  

3219 global __nvmlDeviceGetDramEncryptionMode 

3220 data["__nvmlDeviceGetDramEncryptionMode"] = <intptr_t>__nvmlDeviceGetDramEncryptionMode 

3221  

3222 global __nvmlDeviceSetDramEncryptionMode 

3223 data["__nvmlDeviceSetDramEncryptionMode"] = <intptr_t>__nvmlDeviceSetDramEncryptionMode 

3224  

3225 global __nvmlDeviceGetEccMode 

3226 data["__nvmlDeviceGetEccMode"] = <intptr_t>__nvmlDeviceGetEccMode 

3227  

3228 global __nvmlDeviceGetDefaultEccMode 

3229 data["__nvmlDeviceGetDefaultEccMode"] = <intptr_t>__nvmlDeviceGetDefaultEccMode 

3230  

3231 global __nvmlDeviceGetBoardId 

3232 data["__nvmlDeviceGetBoardId"] = <intptr_t>__nvmlDeviceGetBoardId 

3233  

3234 global __nvmlDeviceGetMultiGpuBoard 

3235 data["__nvmlDeviceGetMultiGpuBoard"] = <intptr_t>__nvmlDeviceGetMultiGpuBoard 

3236  

3237 global __nvmlDeviceGetTotalEccErrors 

3238 data["__nvmlDeviceGetTotalEccErrors"] = <intptr_t>__nvmlDeviceGetTotalEccErrors 

3239  

3240 global __nvmlDeviceGetMemoryErrorCounter 

3241 data["__nvmlDeviceGetMemoryErrorCounter"] = <intptr_t>__nvmlDeviceGetMemoryErrorCounter 

3242  

3243 global __nvmlDeviceGetUtilizationRates 

3244 data["__nvmlDeviceGetUtilizationRates"] = <intptr_t>__nvmlDeviceGetUtilizationRates 

3245  

3246 global __nvmlDeviceGetEncoderUtilization 

3247 data["__nvmlDeviceGetEncoderUtilization"] = <intptr_t>__nvmlDeviceGetEncoderUtilization 

3248  

3249 global __nvmlDeviceGetEncoderCapacity 

3250 data["__nvmlDeviceGetEncoderCapacity"] = <intptr_t>__nvmlDeviceGetEncoderCapacity 

3251  

3252 global __nvmlDeviceGetEncoderStats 

3253 data["__nvmlDeviceGetEncoderStats"] = <intptr_t>__nvmlDeviceGetEncoderStats 

3254  

3255 global __nvmlDeviceGetEncoderSessions 

3256 data["__nvmlDeviceGetEncoderSessions"] = <intptr_t>__nvmlDeviceGetEncoderSessions 

3257  

3258 global __nvmlDeviceGetDecoderUtilization 

3259 data["__nvmlDeviceGetDecoderUtilization"] = <intptr_t>__nvmlDeviceGetDecoderUtilization 

3260  

3261 global __nvmlDeviceGetJpgUtilization 

3262 data["__nvmlDeviceGetJpgUtilization"] = <intptr_t>__nvmlDeviceGetJpgUtilization 

3263  

3264 global __nvmlDeviceGetOfaUtilization 

3265 data["__nvmlDeviceGetOfaUtilization"] = <intptr_t>__nvmlDeviceGetOfaUtilization 

3266  

3267 global __nvmlDeviceGetFBCStats 

3268 data["__nvmlDeviceGetFBCStats"] = <intptr_t>__nvmlDeviceGetFBCStats 

3269  

3270 global __nvmlDeviceGetFBCSessions 

3271 data["__nvmlDeviceGetFBCSessions"] = <intptr_t>__nvmlDeviceGetFBCSessions 

3272  

3273 global __nvmlDeviceGetDriverModel_v2 

3274 data["__nvmlDeviceGetDriverModel_v2"] = <intptr_t>__nvmlDeviceGetDriverModel_v2 

3275  

3276 global __nvmlDeviceGetVbiosVersion 

3277 data["__nvmlDeviceGetVbiosVersion"] = <intptr_t>__nvmlDeviceGetVbiosVersion 

3278  

3279 global __nvmlDeviceGetBridgeChipInfo 

3280 data["__nvmlDeviceGetBridgeChipInfo"] = <intptr_t>__nvmlDeviceGetBridgeChipInfo 

3281  

3282 global __nvmlDeviceGetComputeRunningProcesses_v3 

3283 data["__nvmlDeviceGetComputeRunningProcesses_v3"] = <intptr_t>__nvmlDeviceGetComputeRunningProcesses_v3 

3284  

3285 global __nvmlDeviceGetMPSComputeRunningProcesses_v3 

3286 data["__nvmlDeviceGetMPSComputeRunningProcesses_v3"] = <intptr_t>__nvmlDeviceGetMPSComputeRunningProcesses_v3 

3287  

3288 global __nvmlDeviceGetRunningProcessDetailList 

3289 data["__nvmlDeviceGetRunningProcessDetailList"] = <intptr_t>__nvmlDeviceGetRunningProcessDetailList 

3290  

3291 global __nvmlDeviceOnSameBoard 

3292 data["__nvmlDeviceOnSameBoard"] = <intptr_t>__nvmlDeviceOnSameBoard 

3293  

3294 global __nvmlDeviceGetAPIRestriction 

3295 data["__nvmlDeviceGetAPIRestriction"] = <intptr_t>__nvmlDeviceGetAPIRestriction 

3296  

3297 global __nvmlDeviceGetSamples 

3298 data["__nvmlDeviceGetSamples"] = <intptr_t>__nvmlDeviceGetSamples 

3299  

3300 global __nvmlDeviceGetBAR1MemoryInfo 

3301 data["__nvmlDeviceGetBAR1MemoryInfo"] = <intptr_t>__nvmlDeviceGetBAR1MemoryInfo 

3302  

3303 global __nvmlDeviceGetIrqNum 

3304 data["__nvmlDeviceGetIrqNum"] = <intptr_t>__nvmlDeviceGetIrqNum 

3305  

3306 global __nvmlDeviceGetNumGpuCores 

3307 data["__nvmlDeviceGetNumGpuCores"] = <intptr_t>__nvmlDeviceGetNumGpuCores 

3308  

3309 global __nvmlDeviceGetPowerSource 

3310 data["__nvmlDeviceGetPowerSource"] = <intptr_t>__nvmlDeviceGetPowerSource 

3311  

3312 global __nvmlDeviceGetMemoryBusWidth 

3313 data["__nvmlDeviceGetMemoryBusWidth"] = <intptr_t>__nvmlDeviceGetMemoryBusWidth 

3314  

3315 global __nvmlDeviceGetPcieLinkMaxSpeed 

3316 data["__nvmlDeviceGetPcieLinkMaxSpeed"] = <intptr_t>__nvmlDeviceGetPcieLinkMaxSpeed 

3317  

3318 global __nvmlDeviceGetPcieSpeed 

3319 data["__nvmlDeviceGetPcieSpeed"] = <intptr_t>__nvmlDeviceGetPcieSpeed 

3320  

3321 global __nvmlDeviceGetAdaptiveClockInfoStatus 

3322 data["__nvmlDeviceGetAdaptiveClockInfoStatus"] = <intptr_t>__nvmlDeviceGetAdaptiveClockInfoStatus 

3323  

3324 global __nvmlDeviceGetBusType 

3325 data["__nvmlDeviceGetBusType"] = <intptr_t>__nvmlDeviceGetBusType 

3326  

3327 global __nvmlDeviceGetGpuFabricInfoV 

3328 data["__nvmlDeviceGetGpuFabricInfoV"] = <intptr_t>__nvmlDeviceGetGpuFabricInfoV 

3329  

3330 global __nvmlSystemGetConfComputeCapabilities 

3331 data["__nvmlSystemGetConfComputeCapabilities"] = <intptr_t>__nvmlSystemGetConfComputeCapabilities 

3332  

3333 global __nvmlSystemGetConfComputeState 

3334 data["__nvmlSystemGetConfComputeState"] = <intptr_t>__nvmlSystemGetConfComputeState 

3335  

3336 global __nvmlDeviceGetConfComputeMemSizeInfo 

3337 data["__nvmlDeviceGetConfComputeMemSizeInfo"] = <intptr_t>__nvmlDeviceGetConfComputeMemSizeInfo 

3338  

3339 global __nvmlSystemGetConfComputeGpusReadyState 

3340 data["__nvmlSystemGetConfComputeGpusReadyState"] = <intptr_t>__nvmlSystemGetConfComputeGpusReadyState 

3341  

3342 global __nvmlDeviceGetConfComputeProtectedMemoryUsage 

3343 data["__nvmlDeviceGetConfComputeProtectedMemoryUsage"] = <intptr_t>__nvmlDeviceGetConfComputeProtectedMemoryUsage 

3344  

3345 global __nvmlDeviceGetConfComputeGpuCertificate 

3346 data["__nvmlDeviceGetConfComputeGpuCertificate"] = <intptr_t>__nvmlDeviceGetConfComputeGpuCertificate 

3347  

3348 global __nvmlDeviceGetConfComputeGpuAttestationReport 

3349 data["__nvmlDeviceGetConfComputeGpuAttestationReport"] = <intptr_t>__nvmlDeviceGetConfComputeGpuAttestationReport 

3350  

3351 global __nvmlSystemGetConfComputeKeyRotationThresholdInfo 

3352 data["__nvmlSystemGetConfComputeKeyRotationThresholdInfo"] = <intptr_t>__nvmlSystemGetConfComputeKeyRotationThresholdInfo 

3353  

3354 global __nvmlDeviceSetConfComputeUnprotectedMemSize 

3355 data["__nvmlDeviceSetConfComputeUnprotectedMemSize"] = <intptr_t>__nvmlDeviceSetConfComputeUnprotectedMemSize 

3356  

3357 global __nvmlSystemSetConfComputeGpusReadyState 

3358 data["__nvmlSystemSetConfComputeGpusReadyState"] = <intptr_t>__nvmlSystemSetConfComputeGpusReadyState 

3359  

3360 global __nvmlSystemSetConfComputeKeyRotationThresholdInfo 

3361 data["__nvmlSystemSetConfComputeKeyRotationThresholdInfo"] = <intptr_t>__nvmlSystemSetConfComputeKeyRotationThresholdInfo 

3362  

3363 global __nvmlSystemGetConfComputeSettings 

3364 data["__nvmlSystemGetConfComputeSettings"] = <intptr_t>__nvmlSystemGetConfComputeSettings 

3365  

3366 global __nvmlDeviceGetGspFirmwareVersion 

3367 data["__nvmlDeviceGetGspFirmwareVersion"] = <intptr_t>__nvmlDeviceGetGspFirmwareVersion 

3368  

3369 global __nvmlDeviceGetGspFirmwareMode 

3370 data["__nvmlDeviceGetGspFirmwareMode"] = <intptr_t>__nvmlDeviceGetGspFirmwareMode 

3371  

3372 global __nvmlDeviceGetSramEccErrorStatus 

3373 data["__nvmlDeviceGetSramEccErrorStatus"] = <intptr_t>__nvmlDeviceGetSramEccErrorStatus 

3374  

3375 global __nvmlDeviceGetAccountingMode 

3376 data["__nvmlDeviceGetAccountingMode"] = <intptr_t>__nvmlDeviceGetAccountingMode 

3377  

3378 global __nvmlDeviceGetAccountingStats 

3379 data["__nvmlDeviceGetAccountingStats"] = <intptr_t>__nvmlDeviceGetAccountingStats 

3380  

3381 global __nvmlDeviceGetAccountingPids 

3382 data["__nvmlDeviceGetAccountingPids"] = <intptr_t>__nvmlDeviceGetAccountingPids 

3383  

3384 global __nvmlDeviceGetAccountingBufferSize 

3385 data["__nvmlDeviceGetAccountingBufferSize"] = <intptr_t>__nvmlDeviceGetAccountingBufferSize 

3386  

3387 global __nvmlDeviceGetRetiredPages 

3388 data["__nvmlDeviceGetRetiredPages"] = <intptr_t>__nvmlDeviceGetRetiredPages 

3389  

3390 global __nvmlDeviceGetRetiredPages_v2 

3391 data["__nvmlDeviceGetRetiredPages_v2"] = <intptr_t>__nvmlDeviceGetRetiredPages_v2 

3392  

3393 global __nvmlDeviceGetRetiredPagesPendingStatus 

3394 data["__nvmlDeviceGetRetiredPagesPendingStatus"] = <intptr_t>__nvmlDeviceGetRetiredPagesPendingStatus 

3395  

3396 global __nvmlDeviceGetRemappedRows 

3397 data["__nvmlDeviceGetRemappedRows"] = <intptr_t>__nvmlDeviceGetRemappedRows 

3398  

3399 global __nvmlDeviceGetRowRemapperHistogram 

3400 data["__nvmlDeviceGetRowRemapperHistogram"] = <intptr_t>__nvmlDeviceGetRowRemapperHistogram 

3401  

3402 global __nvmlDeviceGetArchitecture 

3403 data["__nvmlDeviceGetArchitecture"] = <intptr_t>__nvmlDeviceGetArchitecture 

3404  

3405 global __nvmlDeviceGetClkMonStatus 

3406 data["__nvmlDeviceGetClkMonStatus"] = <intptr_t>__nvmlDeviceGetClkMonStatus 

3407  

3408 global __nvmlDeviceGetProcessUtilization 

3409 data["__nvmlDeviceGetProcessUtilization"] = <intptr_t>__nvmlDeviceGetProcessUtilization 

3410  

3411 global __nvmlDeviceGetProcessesUtilizationInfo 

3412 data["__nvmlDeviceGetProcessesUtilizationInfo"] = <intptr_t>__nvmlDeviceGetProcessesUtilizationInfo 

3413  

3414 global __nvmlDeviceGetPlatformInfo 

3415 data["__nvmlDeviceGetPlatformInfo"] = <intptr_t>__nvmlDeviceGetPlatformInfo 

3416  

3417 global __nvmlUnitSetLedState 

3418 data["__nvmlUnitSetLedState"] = <intptr_t>__nvmlUnitSetLedState 

3419  

3420 global __nvmlDeviceSetPersistenceMode 

3421 data["__nvmlDeviceSetPersistenceMode"] = <intptr_t>__nvmlDeviceSetPersistenceMode 

3422  

3423 global __nvmlDeviceSetComputeMode 

3424 data["__nvmlDeviceSetComputeMode"] = <intptr_t>__nvmlDeviceSetComputeMode 

3425  

3426 global __nvmlDeviceSetEccMode 

3427 data["__nvmlDeviceSetEccMode"] = <intptr_t>__nvmlDeviceSetEccMode 

3428  

3429 global __nvmlDeviceClearEccErrorCounts 

3430 data["__nvmlDeviceClearEccErrorCounts"] = <intptr_t>__nvmlDeviceClearEccErrorCounts 

3431  

3432 global __nvmlDeviceSetDriverModel 

3433 data["__nvmlDeviceSetDriverModel"] = <intptr_t>__nvmlDeviceSetDriverModel 

3434  

3435 global __nvmlDeviceSetGpuLockedClocks 

3436 data["__nvmlDeviceSetGpuLockedClocks"] = <intptr_t>__nvmlDeviceSetGpuLockedClocks 

3437  

3438 global __nvmlDeviceResetGpuLockedClocks 

3439 data["__nvmlDeviceResetGpuLockedClocks"] = <intptr_t>__nvmlDeviceResetGpuLockedClocks 

3440  

3441 global __nvmlDeviceSetMemoryLockedClocks 

3442 data["__nvmlDeviceSetMemoryLockedClocks"] = <intptr_t>__nvmlDeviceSetMemoryLockedClocks 

3443  

3444 global __nvmlDeviceResetMemoryLockedClocks 

3445 data["__nvmlDeviceResetMemoryLockedClocks"] = <intptr_t>__nvmlDeviceResetMemoryLockedClocks 

3446  

3447 global __nvmlDeviceSetAutoBoostedClocksEnabled 

3448 data["__nvmlDeviceSetAutoBoostedClocksEnabled"] = <intptr_t>__nvmlDeviceSetAutoBoostedClocksEnabled 

3449  

3450 global __nvmlDeviceSetDefaultAutoBoostedClocksEnabled 

3451 data["__nvmlDeviceSetDefaultAutoBoostedClocksEnabled"] = <intptr_t>__nvmlDeviceSetDefaultAutoBoostedClocksEnabled 

3452  

3453 global __nvmlDeviceSetDefaultFanSpeed_v2 

3454 data["__nvmlDeviceSetDefaultFanSpeed_v2"] = <intptr_t>__nvmlDeviceSetDefaultFanSpeed_v2 

3455  

3456 global __nvmlDeviceSetFanControlPolicy 

3457 data["__nvmlDeviceSetFanControlPolicy"] = <intptr_t>__nvmlDeviceSetFanControlPolicy 

3458  

3459 global __nvmlDeviceSetTemperatureThreshold 

3460 data["__nvmlDeviceSetTemperatureThreshold"] = <intptr_t>__nvmlDeviceSetTemperatureThreshold 

3461  

3462 global __nvmlDeviceSetPowerManagementLimit 

3463 data["__nvmlDeviceSetPowerManagementLimit"] = <intptr_t>__nvmlDeviceSetPowerManagementLimit 

3464  

3465 global __nvmlDeviceSetGpuOperationMode 

3466 data["__nvmlDeviceSetGpuOperationMode"] = <intptr_t>__nvmlDeviceSetGpuOperationMode 

3467  

3468 global __nvmlDeviceSetAPIRestriction 

3469 data["__nvmlDeviceSetAPIRestriction"] = <intptr_t>__nvmlDeviceSetAPIRestriction 

3470  

3471 global __nvmlDeviceSetFanSpeed_v2 

3472 data["__nvmlDeviceSetFanSpeed_v2"] = <intptr_t>__nvmlDeviceSetFanSpeed_v2 

3473  

3474 global __nvmlDeviceSetAccountingMode 

3475 data["__nvmlDeviceSetAccountingMode"] = <intptr_t>__nvmlDeviceSetAccountingMode 

3476  

3477 global __nvmlDeviceClearAccountingPids 

3478 data["__nvmlDeviceClearAccountingPids"] = <intptr_t>__nvmlDeviceClearAccountingPids 

3479  

3480 global __nvmlDeviceSetPowerManagementLimit_v2 

3481 data["__nvmlDeviceSetPowerManagementLimit_v2"] = <intptr_t>__nvmlDeviceSetPowerManagementLimit_v2 

3482  

3483 global __nvmlDeviceGetNvLinkState 

3484 data["__nvmlDeviceGetNvLinkState"] = <intptr_t>__nvmlDeviceGetNvLinkState 

3485  

3486 global __nvmlDeviceGetNvLinkVersion 

3487 data["__nvmlDeviceGetNvLinkVersion"] = <intptr_t>__nvmlDeviceGetNvLinkVersion 

3488  

3489 global __nvmlDeviceGetNvLinkCapability 

3490 data["__nvmlDeviceGetNvLinkCapability"] = <intptr_t>__nvmlDeviceGetNvLinkCapability 

3491  

3492 global __nvmlDeviceGetNvLinkRemotePciInfo_v2 

3493 data["__nvmlDeviceGetNvLinkRemotePciInfo_v2"] = <intptr_t>__nvmlDeviceGetNvLinkRemotePciInfo_v2 

3494  

3495 global __nvmlDeviceGetNvLinkErrorCounter 

3496 data["__nvmlDeviceGetNvLinkErrorCounter"] = <intptr_t>__nvmlDeviceGetNvLinkErrorCounter 

3497  

3498 global __nvmlDeviceResetNvLinkErrorCounters 

3499 data["__nvmlDeviceResetNvLinkErrorCounters"] = <intptr_t>__nvmlDeviceResetNvLinkErrorCounters 

3500  

3501 global __nvmlDeviceGetNvLinkRemoteDeviceType 

3502 data["__nvmlDeviceGetNvLinkRemoteDeviceType"] = <intptr_t>__nvmlDeviceGetNvLinkRemoteDeviceType 

3503  

3504 global __nvmlDeviceSetNvLinkDeviceLowPowerThreshold 

3505 data["__nvmlDeviceSetNvLinkDeviceLowPowerThreshold"] = <intptr_t>__nvmlDeviceSetNvLinkDeviceLowPowerThreshold 

3506  

3507 global __nvmlSystemSetNvlinkBwMode 

3508 data["__nvmlSystemSetNvlinkBwMode"] = <intptr_t>__nvmlSystemSetNvlinkBwMode 

3509  

3510 global __nvmlSystemGetNvlinkBwMode 

3511 data["__nvmlSystemGetNvlinkBwMode"] = <intptr_t>__nvmlSystemGetNvlinkBwMode 

3512  

3513 global __nvmlDeviceGetNvlinkSupportedBwModes 

3514 data["__nvmlDeviceGetNvlinkSupportedBwModes"] = <intptr_t>__nvmlDeviceGetNvlinkSupportedBwModes 

3515  

3516 global __nvmlDeviceGetNvlinkBwMode 

3517 data["__nvmlDeviceGetNvlinkBwMode"] = <intptr_t>__nvmlDeviceGetNvlinkBwMode 

3518  

3519 global __nvmlDeviceSetNvlinkBwMode 

3520 data["__nvmlDeviceSetNvlinkBwMode"] = <intptr_t>__nvmlDeviceSetNvlinkBwMode 

3521  

3522 global __nvmlEventSetCreate 

3523 data["__nvmlEventSetCreate"] = <intptr_t>__nvmlEventSetCreate 

3524  

3525 global __nvmlDeviceRegisterEvents 

3526 data["__nvmlDeviceRegisterEvents"] = <intptr_t>__nvmlDeviceRegisterEvents 

3527  

3528 global __nvmlDeviceGetSupportedEventTypes 

3529 data["__nvmlDeviceGetSupportedEventTypes"] = <intptr_t>__nvmlDeviceGetSupportedEventTypes 

3530  

3531 global __nvmlEventSetWait_v2 

3532 data["__nvmlEventSetWait_v2"] = <intptr_t>__nvmlEventSetWait_v2 

3533  

3534 global __nvmlEventSetFree 

3535 data["__nvmlEventSetFree"] = <intptr_t>__nvmlEventSetFree 

3536  

3537 global __nvmlSystemEventSetCreate 

3538 data["__nvmlSystemEventSetCreate"] = <intptr_t>__nvmlSystemEventSetCreate 

3539  

3540 global __nvmlSystemEventSetFree 

3541 data["__nvmlSystemEventSetFree"] = <intptr_t>__nvmlSystemEventSetFree 

3542  

3543 global __nvmlSystemRegisterEvents 

3544 data["__nvmlSystemRegisterEvents"] = <intptr_t>__nvmlSystemRegisterEvents 

3545  

3546 global __nvmlSystemEventSetWait 

3547 data["__nvmlSystemEventSetWait"] = <intptr_t>__nvmlSystemEventSetWait 

3548  

3549 global __nvmlDeviceModifyDrainState 

3550 data["__nvmlDeviceModifyDrainState"] = <intptr_t>__nvmlDeviceModifyDrainState 

3551  

3552 global __nvmlDeviceQueryDrainState 

3553 data["__nvmlDeviceQueryDrainState"] = <intptr_t>__nvmlDeviceQueryDrainState 

3554  

3555 global __nvmlDeviceRemoveGpu_v2 

3556 data["__nvmlDeviceRemoveGpu_v2"] = <intptr_t>__nvmlDeviceRemoveGpu_v2 

3557  

3558 global __nvmlDeviceDiscoverGpus 

3559 data["__nvmlDeviceDiscoverGpus"] = <intptr_t>__nvmlDeviceDiscoverGpus 

3560  

3561 global __nvmlDeviceGetFieldValues 

3562 data["__nvmlDeviceGetFieldValues"] = <intptr_t>__nvmlDeviceGetFieldValues 

3563  

3564 global __nvmlDeviceClearFieldValues 

3565 data["__nvmlDeviceClearFieldValues"] = <intptr_t>__nvmlDeviceClearFieldValues 

3566  

3567 global __nvmlDeviceGetVirtualizationMode 

3568 data["__nvmlDeviceGetVirtualizationMode"] = <intptr_t>__nvmlDeviceGetVirtualizationMode 

3569  

3570 global __nvmlDeviceGetHostVgpuMode 

3571 data["__nvmlDeviceGetHostVgpuMode"] = <intptr_t>__nvmlDeviceGetHostVgpuMode 

3572  

3573 global __nvmlDeviceSetVirtualizationMode 

3574 data["__nvmlDeviceSetVirtualizationMode"] = <intptr_t>__nvmlDeviceSetVirtualizationMode 

3575  

3576 global __nvmlDeviceGetVgpuHeterogeneousMode 

3577 data["__nvmlDeviceGetVgpuHeterogeneousMode"] = <intptr_t>__nvmlDeviceGetVgpuHeterogeneousMode 

3578  

3579 global __nvmlDeviceSetVgpuHeterogeneousMode 

3580 data["__nvmlDeviceSetVgpuHeterogeneousMode"] = <intptr_t>__nvmlDeviceSetVgpuHeterogeneousMode 

3581  

3582 global __nvmlVgpuInstanceGetPlacementId 

3583 data["__nvmlVgpuInstanceGetPlacementId"] = <intptr_t>__nvmlVgpuInstanceGetPlacementId 

3584  

3585 global __nvmlDeviceGetVgpuTypeSupportedPlacements 

3586 data["__nvmlDeviceGetVgpuTypeSupportedPlacements"] = <intptr_t>__nvmlDeviceGetVgpuTypeSupportedPlacements 

3587  

3588 global __nvmlDeviceGetVgpuTypeCreatablePlacements 

3589 data["__nvmlDeviceGetVgpuTypeCreatablePlacements"] = <intptr_t>__nvmlDeviceGetVgpuTypeCreatablePlacements 

3590  

3591 global __nvmlVgpuTypeGetGspHeapSize 

3592 data["__nvmlVgpuTypeGetGspHeapSize"] = <intptr_t>__nvmlVgpuTypeGetGspHeapSize 

3593  

3594 global __nvmlVgpuTypeGetFbReservation 

3595 data["__nvmlVgpuTypeGetFbReservation"] = <intptr_t>__nvmlVgpuTypeGetFbReservation 

3596  

3597 global __nvmlVgpuInstanceGetRuntimeStateSize 

3598 data["__nvmlVgpuInstanceGetRuntimeStateSize"] = <intptr_t>__nvmlVgpuInstanceGetRuntimeStateSize 

3599  

3600 global __nvmlDeviceSetVgpuCapabilities 

3601 data["__nvmlDeviceSetVgpuCapabilities"] = <intptr_t>__nvmlDeviceSetVgpuCapabilities 

3602  

3603 global __nvmlDeviceGetGridLicensableFeatures_v4 

3604 data["__nvmlDeviceGetGridLicensableFeatures_v4"] = <intptr_t>__nvmlDeviceGetGridLicensableFeatures_v4 

3605  

3606 global __nvmlGetVgpuDriverCapabilities 

3607 data["__nvmlGetVgpuDriverCapabilities"] = <intptr_t>__nvmlGetVgpuDriverCapabilities 

3608  

3609 global __nvmlDeviceGetVgpuCapabilities 

3610 data["__nvmlDeviceGetVgpuCapabilities"] = <intptr_t>__nvmlDeviceGetVgpuCapabilities 

3611  

3612 global __nvmlDeviceGetSupportedVgpus 

3613 data["__nvmlDeviceGetSupportedVgpus"] = <intptr_t>__nvmlDeviceGetSupportedVgpus 

3614  

3615 global __nvmlDeviceGetCreatableVgpus 

3616 data["__nvmlDeviceGetCreatableVgpus"] = <intptr_t>__nvmlDeviceGetCreatableVgpus 

3617  

3618 global __nvmlVgpuTypeGetClass 

3619 data["__nvmlVgpuTypeGetClass"] = <intptr_t>__nvmlVgpuTypeGetClass 

3620  

3621 global __nvmlVgpuTypeGetName 

3622 data["__nvmlVgpuTypeGetName"] = <intptr_t>__nvmlVgpuTypeGetName 

3623  

3624 global __nvmlVgpuTypeGetGpuInstanceProfileId 

3625 data["__nvmlVgpuTypeGetGpuInstanceProfileId"] = <intptr_t>__nvmlVgpuTypeGetGpuInstanceProfileId 

3626  

3627 global __nvmlVgpuTypeGetDeviceID 

3628 data["__nvmlVgpuTypeGetDeviceID"] = <intptr_t>__nvmlVgpuTypeGetDeviceID 

3629  

3630 global __nvmlVgpuTypeGetFramebufferSize 

3631 data["__nvmlVgpuTypeGetFramebufferSize"] = <intptr_t>__nvmlVgpuTypeGetFramebufferSize 

3632  

3633 global __nvmlVgpuTypeGetNumDisplayHeads 

3634 data["__nvmlVgpuTypeGetNumDisplayHeads"] = <intptr_t>__nvmlVgpuTypeGetNumDisplayHeads 

3635  

3636 global __nvmlVgpuTypeGetResolution 

3637 data["__nvmlVgpuTypeGetResolution"] = <intptr_t>__nvmlVgpuTypeGetResolution 

3638  

3639 global __nvmlVgpuTypeGetLicense 

3640 data["__nvmlVgpuTypeGetLicense"] = <intptr_t>__nvmlVgpuTypeGetLicense 

3641  

3642 global __nvmlVgpuTypeGetFrameRateLimit 

3643 data["__nvmlVgpuTypeGetFrameRateLimit"] = <intptr_t>__nvmlVgpuTypeGetFrameRateLimit 

3644  

3645 global __nvmlVgpuTypeGetMaxInstances 

3646 data["__nvmlVgpuTypeGetMaxInstances"] = <intptr_t>__nvmlVgpuTypeGetMaxInstances 

3647  

3648 global __nvmlVgpuTypeGetMaxInstancesPerVm 

3649 data["__nvmlVgpuTypeGetMaxInstancesPerVm"] = <intptr_t>__nvmlVgpuTypeGetMaxInstancesPerVm 

3650  

3651 global __nvmlVgpuTypeGetBAR1Info 

3652 data["__nvmlVgpuTypeGetBAR1Info"] = <intptr_t>__nvmlVgpuTypeGetBAR1Info 

3653  

3654 global __nvmlDeviceGetActiveVgpus 

3655 data["__nvmlDeviceGetActiveVgpus"] = <intptr_t>__nvmlDeviceGetActiveVgpus 

3656  

3657 global __nvmlVgpuInstanceGetVmID 

3658 data["__nvmlVgpuInstanceGetVmID"] = <intptr_t>__nvmlVgpuInstanceGetVmID 

3659  

3660 global __nvmlVgpuInstanceGetUUID 

3661 data["__nvmlVgpuInstanceGetUUID"] = <intptr_t>__nvmlVgpuInstanceGetUUID 

3662  

3663 global __nvmlVgpuInstanceGetVmDriverVersion 

3664 data["__nvmlVgpuInstanceGetVmDriverVersion"] = <intptr_t>__nvmlVgpuInstanceGetVmDriverVersion 

3665  

3666 global __nvmlVgpuInstanceGetFbUsage 

3667 data["__nvmlVgpuInstanceGetFbUsage"] = <intptr_t>__nvmlVgpuInstanceGetFbUsage 

3668  

3669 global __nvmlVgpuInstanceGetLicenseStatus 

3670 data["__nvmlVgpuInstanceGetLicenseStatus"] = <intptr_t>__nvmlVgpuInstanceGetLicenseStatus 

3671  

3672 global __nvmlVgpuInstanceGetType 

3673 data["__nvmlVgpuInstanceGetType"] = <intptr_t>__nvmlVgpuInstanceGetType 

3674  

3675 global __nvmlVgpuInstanceGetFrameRateLimit 

3676 data["__nvmlVgpuInstanceGetFrameRateLimit"] = <intptr_t>__nvmlVgpuInstanceGetFrameRateLimit 

3677  

3678 global __nvmlVgpuInstanceGetEccMode 

3679 data["__nvmlVgpuInstanceGetEccMode"] = <intptr_t>__nvmlVgpuInstanceGetEccMode 

3680  

3681 global __nvmlVgpuInstanceGetEncoderCapacity 

3682 data["__nvmlVgpuInstanceGetEncoderCapacity"] = <intptr_t>__nvmlVgpuInstanceGetEncoderCapacity 

3683  

3684 global __nvmlVgpuInstanceSetEncoderCapacity 

3685 data["__nvmlVgpuInstanceSetEncoderCapacity"] = <intptr_t>__nvmlVgpuInstanceSetEncoderCapacity 

3686  

3687 global __nvmlVgpuInstanceGetEncoderStats 

3688 data["__nvmlVgpuInstanceGetEncoderStats"] = <intptr_t>__nvmlVgpuInstanceGetEncoderStats 

3689  

3690 global __nvmlVgpuInstanceGetEncoderSessions 

3691 data["__nvmlVgpuInstanceGetEncoderSessions"] = <intptr_t>__nvmlVgpuInstanceGetEncoderSessions 

3692  

3693 global __nvmlVgpuInstanceGetFBCStats 

3694 data["__nvmlVgpuInstanceGetFBCStats"] = <intptr_t>__nvmlVgpuInstanceGetFBCStats 

3695  

3696 global __nvmlVgpuInstanceGetFBCSessions 

3697 data["__nvmlVgpuInstanceGetFBCSessions"] = <intptr_t>__nvmlVgpuInstanceGetFBCSessions 

3698  

3699 global __nvmlVgpuInstanceGetGpuInstanceId 

3700 data["__nvmlVgpuInstanceGetGpuInstanceId"] = <intptr_t>__nvmlVgpuInstanceGetGpuInstanceId 

3701  

3702 global __nvmlVgpuInstanceGetGpuPciId 

3703 data["__nvmlVgpuInstanceGetGpuPciId"] = <intptr_t>__nvmlVgpuInstanceGetGpuPciId 

3704  

3705 global __nvmlVgpuTypeGetCapabilities 

3706 data["__nvmlVgpuTypeGetCapabilities"] = <intptr_t>__nvmlVgpuTypeGetCapabilities 

3707  

3708 global __nvmlVgpuInstanceGetMdevUUID 

3709 data["__nvmlVgpuInstanceGetMdevUUID"] = <intptr_t>__nvmlVgpuInstanceGetMdevUUID 

3710  

3711 global __nvmlGpuInstanceGetCreatableVgpus 

3712 data["__nvmlGpuInstanceGetCreatableVgpus"] = <intptr_t>__nvmlGpuInstanceGetCreatableVgpus 

3713  

3714 global __nvmlVgpuTypeGetMaxInstancesPerGpuInstance 

3715 data["__nvmlVgpuTypeGetMaxInstancesPerGpuInstance"] = <intptr_t>__nvmlVgpuTypeGetMaxInstancesPerGpuInstance 

3716  

3717 global __nvmlGpuInstanceGetActiveVgpus 

3718 data["__nvmlGpuInstanceGetActiveVgpus"] = <intptr_t>__nvmlGpuInstanceGetActiveVgpus 

3719  

3720 global __nvmlGpuInstanceSetVgpuSchedulerState 

3721 data["__nvmlGpuInstanceSetVgpuSchedulerState"] = <intptr_t>__nvmlGpuInstanceSetVgpuSchedulerState 

3722  

3723 global __nvmlGpuInstanceGetVgpuSchedulerState 

3724 data["__nvmlGpuInstanceGetVgpuSchedulerState"] = <intptr_t>__nvmlGpuInstanceGetVgpuSchedulerState 

3725  

3726 global __nvmlGpuInstanceGetVgpuSchedulerLog 

3727 data["__nvmlGpuInstanceGetVgpuSchedulerLog"] = <intptr_t>__nvmlGpuInstanceGetVgpuSchedulerLog 

3728  

3729 global __nvmlGpuInstanceGetVgpuTypeCreatablePlacements 

3730 data["__nvmlGpuInstanceGetVgpuTypeCreatablePlacements"] = <intptr_t>__nvmlGpuInstanceGetVgpuTypeCreatablePlacements 

3731  

3732 global __nvmlGpuInstanceGetVgpuHeterogeneousMode 

3733 data["__nvmlGpuInstanceGetVgpuHeterogeneousMode"] = <intptr_t>__nvmlGpuInstanceGetVgpuHeterogeneousMode 

3734  

3735 global __nvmlGpuInstanceSetVgpuHeterogeneousMode 

3736 data["__nvmlGpuInstanceSetVgpuHeterogeneousMode"] = <intptr_t>__nvmlGpuInstanceSetVgpuHeterogeneousMode 

3737  

3738 global __nvmlVgpuInstanceGetMetadata 

3739 data["__nvmlVgpuInstanceGetMetadata"] = <intptr_t>__nvmlVgpuInstanceGetMetadata 

3740  

3741 global __nvmlDeviceGetVgpuMetadata 

3742 data["__nvmlDeviceGetVgpuMetadata"] = <intptr_t>__nvmlDeviceGetVgpuMetadata 

3743  

3744 global __nvmlGetVgpuCompatibility 

3745 data["__nvmlGetVgpuCompatibility"] = <intptr_t>__nvmlGetVgpuCompatibility 

3746  

3747 global __nvmlDeviceGetPgpuMetadataString 

3748 data["__nvmlDeviceGetPgpuMetadataString"] = <intptr_t>__nvmlDeviceGetPgpuMetadataString 

3749  

3750 global __nvmlDeviceGetVgpuSchedulerLog 

3751 data["__nvmlDeviceGetVgpuSchedulerLog"] = <intptr_t>__nvmlDeviceGetVgpuSchedulerLog 

3752  

3753 global __nvmlDeviceGetVgpuSchedulerState 

3754 data["__nvmlDeviceGetVgpuSchedulerState"] = <intptr_t>__nvmlDeviceGetVgpuSchedulerState 

3755  

3756 global __nvmlDeviceGetVgpuSchedulerCapabilities 

3757 data["__nvmlDeviceGetVgpuSchedulerCapabilities"] = <intptr_t>__nvmlDeviceGetVgpuSchedulerCapabilities 

3758  

3759 global __nvmlDeviceSetVgpuSchedulerState 

3760 data["__nvmlDeviceSetVgpuSchedulerState"] = <intptr_t>__nvmlDeviceSetVgpuSchedulerState 

3761  

3762 global __nvmlGetVgpuVersion 

3763 data["__nvmlGetVgpuVersion"] = <intptr_t>__nvmlGetVgpuVersion 

3764  

3765 global __nvmlSetVgpuVersion 

3766 data["__nvmlSetVgpuVersion"] = <intptr_t>__nvmlSetVgpuVersion 

3767  

3768 global __nvmlDeviceGetVgpuUtilization 

3769 data["__nvmlDeviceGetVgpuUtilization"] = <intptr_t>__nvmlDeviceGetVgpuUtilization 

3770  

3771 global __nvmlDeviceGetVgpuInstancesUtilizationInfo 

3772 data["__nvmlDeviceGetVgpuInstancesUtilizationInfo"] = <intptr_t>__nvmlDeviceGetVgpuInstancesUtilizationInfo 

3773  

3774 global __nvmlDeviceGetVgpuProcessUtilization 

3775 data["__nvmlDeviceGetVgpuProcessUtilization"] = <intptr_t>__nvmlDeviceGetVgpuProcessUtilization 

3776  

3777 global __nvmlDeviceGetVgpuProcessesUtilizationInfo 

3778 data["__nvmlDeviceGetVgpuProcessesUtilizationInfo"] = <intptr_t>__nvmlDeviceGetVgpuProcessesUtilizationInfo 

3779  

3780 global __nvmlVgpuInstanceGetAccountingMode 

3781 data["__nvmlVgpuInstanceGetAccountingMode"] = <intptr_t>__nvmlVgpuInstanceGetAccountingMode 

3782  

3783 global __nvmlVgpuInstanceGetAccountingPids 

3784 data["__nvmlVgpuInstanceGetAccountingPids"] = <intptr_t>__nvmlVgpuInstanceGetAccountingPids 

3785  

3786 global __nvmlVgpuInstanceGetAccountingStats 

3787 data["__nvmlVgpuInstanceGetAccountingStats"] = <intptr_t>__nvmlVgpuInstanceGetAccountingStats 

3788  

3789 global __nvmlVgpuInstanceClearAccountingPids 

3790 data["__nvmlVgpuInstanceClearAccountingPids"] = <intptr_t>__nvmlVgpuInstanceClearAccountingPids 

3791  

3792 global __nvmlVgpuInstanceGetLicenseInfo_v2 

3793 data["__nvmlVgpuInstanceGetLicenseInfo_v2"] = <intptr_t>__nvmlVgpuInstanceGetLicenseInfo_v2 

3794  

3795 global __nvmlGetExcludedDeviceCount 

3796 data["__nvmlGetExcludedDeviceCount"] = <intptr_t>__nvmlGetExcludedDeviceCount 

3797  

3798 global __nvmlGetExcludedDeviceInfoByIndex 

3799 data["__nvmlGetExcludedDeviceInfoByIndex"] = <intptr_t>__nvmlGetExcludedDeviceInfoByIndex 

3800  

3801 global __nvmlDeviceSetMigMode 

3802 data["__nvmlDeviceSetMigMode"] = <intptr_t>__nvmlDeviceSetMigMode 

3803  

3804 global __nvmlDeviceGetMigMode 

3805 data["__nvmlDeviceGetMigMode"] = <intptr_t>__nvmlDeviceGetMigMode 

3806  

3807 global __nvmlDeviceGetGpuInstanceProfileInfoV 

3808 data["__nvmlDeviceGetGpuInstanceProfileInfoV"] = <intptr_t>__nvmlDeviceGetGpuInstanceProfileInfoV 

3809  

3810 global __nvmlDeviceGetGpuInstancePossiblePlacements_v2 

3811 data["__nvmlDeviceGetGpuInstancePossiblePlacements_v2"] = <intptr_t>__nvmlDeviceGetGpuInstancePossiblePlacements_v2 

3812  

3813 global __nvmlDeviceGetGpuInstanceRemainingCapacity 

3814 data["__nvmlDeviceGetGpuInstanceRemainingCapacity"] = <intptr_t>__nvmlDeviceGetGpuInstanceRemainingCapacity 

3815  

3816 global __nvmlDeviceCreateGpuInstance 

3817 data["__nvmlDeviceCreateGpuInstance"] = <intptr_t>__nvmlDeviceCreateGpuInstance 

3818  

3819 global __nvmlDeviceCreateGpuInstanceWithPlacement 

3820 data["__nvmlDeviceCreateGpuInstanceWithPlacement"] = <intptr_t>__nvmlDeviceCreateGpuInstanceWithPlacement 

3821  

3822 global __nvmlGpuInstanceDestroy 

3823 data["__nvmlGpuInstanceDestroy"] = <intptr_t>__nvmlGpuInstanceDestroy 

3824  

3825 global __nvmlDeviceGetGpuInstances 

3826 data["__nvmlDeviceGetGpuInstances"] = <intptr_t>__nvmlDeviceGetGpuInstances 

3827  

3828 global __nvmlDeviceGetGpuInstanceById 

3829 data["__nvmlDeviceGetGpuInstanceById"] = <intptr_t>__nvmlDeviceGetGpuInstanceById 

3830  

3831 global __nvmlGpuInstanceGetInfo 

3832 data["__nvmlGpuInstanceGetInfo"] = <intptr_t>__nvmlGpuInstanceGetInfo 

3833  

3834 global __nvmlGpuInstanceGetComputeInstanceProfileInfoV 

3835 data["__nvmlGpuInstanceGetComputeInstanceProfileInfoV"] = <intptr_t>__nvmlGpuInstanceGetComputeInstanceProfileInfoV 

3836  

3837 global __nvmlGpuInstanceGetComputeInstanceRemainingCapacity 

3838 data["__nvmlGpuInstanceGetComputeInstanceRemainingCapacity"] = <intptr_t>__nvmlGpuInstanceGetComputeInstanceRemainingCapacity 

3839  

3840 global __nvmlGpuInstanceGetComputeInstancePossiblePlacements 

3841 data["__nvmlGpuInstanceGetComputeInstancePossiblePlacements"] = <intptr_t>__nvmlGpuInstanceGetComputeInstancePossiblePlacements 

3842  

3843 global __nvmlGpuInstanceCreateComputeInstance 

3844 data["__nvmlGpuInstanceCreateComputeInstance"] = <intptr_t>__nvmlGpuInstanceCreateComputeInstance 

3845  

3846 global __nvmlGpuInstanceCreateComputeInstanceWithPlacement 

3847 data["__nvmlGpuInstanceCreateComputeInstanceWithPlacement"] = <intptr_t>__nvmlGpuInstanceCreateComputeInstanceWithPlacement 

3848  

3849 global __nvmlComputeInstanceDestroy 

3850 data["__nvmlComputeInstanceDestroy"] = <intptr_t>__nvmlComputeInstanceDestroy 

3851  

3852 global __nvmlGpuInstanceGetComputeInstances 

3853 data["__nvmlGpuInstanceGetComputeInstances"] = <intptr_t>__nvmlGpuInstanceGetComputeInstances 

3854  

3855 global __nvmlGpuInstanceGetComputeInstanceById 

3856 data["__nvmlGpuInstanceGetComputeInstanceById"] = <intptr_t>__nvmlGpuInstanceGetComputeInstanceById 

3857  

3858 global __nvmlComputeInstanceGetInfo_v2 

3859 data["__nvmlComputeInstanceGetInfo_v2"] = <intptr_t>__nvmlComputeInstanceGetInfo_v2 

3860  

3861 global __nvmlDeviceIsMigDeviceHandle 

3862 data["__nvmlDeviceIsMigDeviceHandle"] = <intptr_t>__nvmlDeviceIsMigDeviceHandle 

3863  

3864 global __nvmlDeviceGetGpuInstanceId 

3865 data["__nvmlDeviceGetGpuInstanceId"] = <intptr_t>__nvmlDeviceGetGpuInstanceId 

3866  

3867 global __nvmlDeviceGetComputeInstanceId 

3868 data["__nvmlDeviceGetComputeInstanceId"] = <intptr_t>__nvmlDeviceGetComputeInstanceId 

3869  

3870 global __nvmlDeviceGetMaxMigDeviceCount 

3871 data["__nvmlDeviceGetMaxMigDeviceCount"] = <intptr_t>__nvmlDeviceGetMaxMigDeviceCount 

3872  

3873 global __nvmlDeviceGetMigDeviceHandleByIndex 

3874 data["__nvmlDeviceGetMigDeviceHandleByIndex"] = <intptr_t>__nvmlDeviceGetMigDeviceHandleByIndex 

3875  

3876 global __nvmlDeviceGetDeviceHandleFromMigDeviceHandle 

3877 data["__nvmlDeviceGetDeviceHandleFromMigDeviceHandle"] = <intptr_t>__nvmlDeviceGetDeviceHandleFromMigDeviceHandle 

3878  

3879 global __nvmlGpmSampleGet 

3880 data["__nvmlGpmSampleGet"] = <intptr_t>__nvmlGpmSampleGet 

3881  

3882 global __nvmlGpmMigSampleGet 

3883 data["__nvmlGpmMigSampleGet"] = <intptr_t>__nvmlGpmMigSampleGet 

3884  

3885 global __nvmlGpmQueryDeviceSupport 

3886 data["__nvmlGpmQueryDeviceSupport"] = <intptr_t>__nvmlGpmQueryDeviceSupport 

3887  

3888 global __nvmlGpmQueryIfStreamingEnabled 

3889 data["__nvmlGpmQueryIfStreamingEnabled"] = <intptr_t>__nvmlGpmQueryIfStreamingEnabled 

3890  

3891 global __nvmlGpmSetStreamingEnabled 

3892 data["__nvmlGpmSetStreamingEnabled"] = <intptr_t>__nvmlGpmSetStreamingEnabled 

3893  

3894 global __nvmlDeviceGetCapabilities 

3895 data["__nvmlDeviceGetCapabilities"] = <intptr_t>__nvmlDeviceGetCapabilities 

3896  

3897 global __nvmlDeviceWorkloadPowerProfileClearRequestedProfiles 

3898 data["__nvmlDeviceWorkloadPowerProfileClearRequestedProfiles"] = <intptr_t>__nvmlDeviceWorkloadPowerProfileClearRequestedProfiles 

3899  

3900 global __nvmlDevicePowerSmoothingActivatePresetProfile 

3901 data["__nvmlDevicePowerSmoothingActivatePresetProfile"] = <intptr_t>__nvmlDevicePowerSmoothingActivatePresetProfile 

3902  

3903 global __nvmlDevicePowerSmoothingUpdatePresetProfileParam 

3904 data["__nvmlDevicePowerSmoothingUpdatePresetProfileParam"] = <intptr_t>__nvmlDevicePowerSmoothingUpdatePresetProfileParam 

3905  

3906 global __nvmlDevicePowerSmoothingSetState 

3907 data["__nvmlDevicePowerSmoothingSetState"] = <intptr_t>__nvmlDevicePowerSmoothingSetState 

3908  

3909 global __nvmlDeviceGetAddressingMode 

3910 data["__nvmlDeviceGetAddressingMode"] = <intptr_t>__nvmlDeviceGetAddressingMode 

3911  

3912 global __nvmlDeviceGetRepairStatus 

3913 data["__nvmlDeviceGetRepairStatus"] = <intptr_t>__nvmlDeviceGetRepairStatus 

3914  

3915 global __nvmlDeviceGetPowerMizerMode_v1 

3916 data["__nvmlDeviceGetPowerMizerMode_v1"] = <intptr_t>__nvmlDeviceGetPowerMizerMode_v1 

3917  

3918 global __nvmlDeviceSetPowerMizerMode_v1 

3919 data["__nvmlDeviceSetPowerMizerMode_v1"] = <intptr_t>__nvmlDeviceSetPowerMizerMode_v1 

3920  

3921 global __nvmlDeviceGetPdi 

3922 data["__nvmlDeviceGetPdi"] = <intptr_t>__nvmlDeviceGetPdi 

3923  

3924 global __nvmlDeviceSetHostname_v1 

3925 data["__nvmlDeviceSetHostname_v1"] = <intptr_t>__nvmlDeviceSetHostname_v1 

3926  

3927 global __nvmlDeviceGetHostname_v1 

3928 data["__nvmlDeviceGetHostname_v1"] = <intptr_t>__nvmlDeviceGetHostname_v1 

3929  

3930 global __nvmlDeviceGetNvLinkInfo 

3931 data["__nvmlDeviceGetNvLinkInfo"] = <intptr_t>__nvmlDeviceGetNvLinkInfo 

3932  

3933 global __nvmlDeviceReadWritePRM_v1 

3934 data["__nvmlDeviceReadWritePRM_v1"] = <intptr_t>__nvmlDeviceReadWritePRM_v1 

3935  

3936 global __nvmlDeviceGetGpuInstanceProfileInfoByIdV 

3937 data["__nvmlDeviceGetGpuInstanceProfileInfoByIdV"] = <intptr_t>__nvmlDeviceGetGpuInstanceProfileInfoByIdV 

3938  

3939 global __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts 

3940 data["__nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts"] = <intptr_t>__nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts 

3941  

3942 global __nvmlDeviceGetUnrepairableMemoryFlag_v1 

3943 data["__nvmlDeviceGetUnrepairableMemoryFlag_v1"] = <intptr_t>__nvmlDeviceGetUnrepairableMemoryFlag_v1 

3944  

3945 global __nvmlDeviceReadPRMCounters_v1 

3946 data["__nvmlDeviceReadPRMCounters_v1"] = <intptr_t>__nvmlDeviceReadPRMCounters_v1 

3947  

3948 global __nvmlDeviceSetRusdSettings_v1 

3949 data["__nvmlDeviceSetRusdSettings_v1"] = <intptr_t>__nvmlDeviceSetRusdSettings_v1 

3950  

3951 func_ptrs = data 

3952 return data 

3953  

3954  

3955cpdef _inspect_function_pointer(str name): 

3956 global func_ptrs 

3957 if func_ptrs is None: 

3958 func_ptrs = _inspect_function_pointers() 

3959 return func_ptrs[name] 

3960  

3961  

3962############################################################################### 

3963# Wrapper functions 

3964############################################################################### 

3965  

3966cdef nvmlReturn_t _nvmlInit_v2() except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

3967 global __nvmlInit_v2 

3968 _check_or_init_nvml() 

3969 if __nvmlInit_v2 == NULL: 

3970 with gil: 

3971 raise FunctionNotFoundError("function nvmlInit_v2 is not found") 

3972 return (<nvmlReturn_t (*)() noexcept nogil>__nvmlInit_v2)( 

3973 ) 

3974  

3975  

3976cdef nvmlReturn_t _nvmlInitWithFlags(unsigned int flags) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

3977 global __nvmlInitWithFlags 

3978 _check_or_init_nvml() 

3979 if __nvmlInitWithFlags == NULL: 

3980 with gil: 

3981 raise FunctionNotFoundError("function nvmlInitWithFlags is not found") 

3982 return (<nvmlReturn_t (*)(unsigned int) noexcept nogil>__nvmlInitWithFlags)( 

3983 flags) 

3984  

3985  

3986cdef nvmlReturn_t _nvmlShutdown() except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

3987 global __nvmlShutdown 

3988 _check_or_init_nvml() 

3989 if __nvmlShutdown == NULL: 

3990 with gil: 

3991 raise FunctionNotFoundError("function nvmlShutdown is not found") 

3992 return (<nvmlReturn_t (*)() noexcept nogil>__nvmlShutdown)( 

3993 ) 

3994  

3995  

3996cdef const char* _nvmlErrorString(nvmlReturn_t result) except?NULL nogil: 

3997 global __nvmlErrorString 

3998 _check_or_init_nvml() 

3999 if __nvmlErrorString == NULL: 

4000 with gil: 

4001 raise FunctionNotFoundError("function nvmlErrorString is not found") 

4002 return (<const char* (*)(nvmlReturn_t) noexcept nogil>__nvmlErrorString)( 

4003 result) 

4004  

4005  

4006cdef nvmlReturn_t _nvmlSystemGetDriverVersion(char* version, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4007 global __nvmlSystemGetDriverVersion 

4008 _check_or_init_nvml() 

4009 if __nvmlSystemGetDriverVersion == NULL: 

4010 with gil: 

4011 raise FunctionNotFoundError("function nvmlSystemGetDriverVersion is not found") 

4012 return (<nvmlReturn_t (*)(char*, unsigned int) noexcept nogil>__nvmlSystemGetDriverVersion)( 

4013 version, length) 

4014  

4015  

4016cdef nvmlReturn_t _nvmlSystemGetNVMLVersion(char* version, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4017 global __nvmlSystemGetNVMLVersion 

4018 _check_or_init_nvml() 

4019 if __nvmlSystemGetNVMLVersion == NULL: 

4020 with gil: 

4021 raise FunctionNotFoundError("function nvmlSystemGetNVMLVersion is not found") 

4022 return (<nvmlReturn_t (*)(char*, unsigned int) noexcept nogil>__nvmlSystemGetNVMLVersion)( 

4023 version, length) 

4024  

4025  

4026cdef nvmlReturn_t _nvmlSystemGetCudaDriverVersion(int* cudaDriverVersion) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4027 global __nvmlSystemGetCudaDriverVersion 

4028 _check_or_init_nvml() 

4029 if __nvmlSystemGetCudaDriverVersion == NULL: 

4030 with gil: 

4031 raise FunctionNotFoundError("function nvmlSystemGetCudaDriverVersion is not found") 

4032 return (<nvmlReturn_t (*)(int*) noexcept nogil>__nvmlSystemGetCudaDriverVersion)( 

4033 cudaDriverVersion) 

4034  

4035  

4036cdef nvmlReturn_t _nvmlSystemGetCudaDriverVersion_v2(int* cudaDriverVersion) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4037 global __nvmlSystemGetCudaDriverVersion_v2 

4038 _check_or_init_nvml() 

4039 if __nvmlSystemGetCudaDriverVersion_v2 == NULL: 

4040 with gil: 

4041 raise FunctionNotFoundError("function nvmlSystemGetCudaDriverVersion_v2 is not found") 

4042 return (<nvmlReturn_t (*)(int*) noexcept nogil>__nvmlSystemGetCudaDriverVersion_v2)( 

4043 cudaDriverVersion) 

4044  

4045  

4046cdef nvmlReturn_t _nvmlSystemGetProcessName(unsigned int pid, char* name, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4047 global __nvmlSystemGetProcessName 

4048 _check_or_init_nvml() 

4049 if __nvmlSystemGetProcessName == NULL: 

4050 with gil: 

4051 raise FunctionNotFoundError("function nvmlSystemGetProcessName is not found") 

4052 return (<nvmlReturn_t (*)(unsigned int, char*, unsigned int) noexcept nogil>__nvmlSystemGetProcessName)( 

4053 pid, name, length) 

4054  

4055  

4056cdef nvmlReturn_t _nvmlSystemGetHicVersion(unsigned int* hwbcCount, nvmlHwbcEntry_t* hwbcEntries) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4057 global __nvmlSystemGetHicVersion 

4058 _check_or_init_nvml() 

4059 if __nvmlSystemGetHicVersion == NULL: 

4060 with gil: 

4061 raise FunctionNotFoundError("function nvmlSystemGetHicVersion is not found") 

4062 return (<nvmlReturn_t (*)(unsigned int*, nvmlHwbcEntry_t*) noexcept nogil>__nvmlSystemGetHicVersion)( 

4063 hwbcCount, hwbcEntries) 

4064  

4065  

4066cdef nvmlReturn_t _nvmlSystemGetTopologyGpuSet(unsigned int cpuNumber, unsigned int* count, nvmlDevice_t* deviceArray) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4067 global __nvmlSystemGetTopologyGpuSet 

4068 _check_or_init_nvml() 

4069 if __nvmlSystemGetTopologyGpuSet == NULL: 

4070 with gil: 

4071 raise FunctionNotFoundError("function nvmlSystemGetTopologyGpuSet is not found") 

4072 return (<nvmlReturn_t (*)(unsigned int, unsigned int*, nvmlDevice_t*) noexcept nogil>__nvmlSystemGetTopologyGpuSet)( 

4073 cpuNumber, count, deviceArray) 

4074  

4075  

4076cdef nvmlReturn_t _nvmlSystemGetDriverBranch(nvmlSystemDriverBranchInfo_t* branchInfo, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4077 global __nvmlSystemGetDriverBranch 

4078 _check_or_init_nvml() 

4079 if __nvmlSystemGetDriverBranch == NULL: 

4080 with gil: 

4081 raise FunctionNotFoundError("function nvmlSystemGetDriverBranch is not found") 

4082 return (<nvmlReturn_t (*)(nvmlSystemDriverBranchInfo_t*, unsigned int) noexcept nogil>__nvmlSystemGetDriverBranch)( 

4083 branchInfo, length) 

4084  

4085  

4086cdef nvmlReturn_t _nvmlUnitGetCount(unsigned int* unitCount) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4087 global __nvmlUnitGetCount 

4088 _check_or_init_nvml() 

4089 if __nvmlUnitGetCount == NULL: 

4090 with gil: 

4091 raise FunctionNotFoundError("function nvmlUnitGetCount is not found") 

4092 return (<nvmlReturn_t (*)(unsigned int*) noexcept nogil>__nvmlUnitGetCount)( 

4093 unitCount) 

4094  

4095  

4096cdef nvmlReturn_t _nvmlUnitGetHandleByIndex(unsigned int index, nvmlUnit_t* unit) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4097 global __nvmlUnitGetHandleByIndex 

4098 _check_or_init_nvml() 

4099 if __nvmlUnitGetHandleByIndex == NULL: 

4100 with gil: 

4101 raise FunctionNotFoundError("function nvmlUnitGetHandleByIndex is not found") 

4102 return (<nvmlReturn_t (*)(unsigned int, nvmlUnit_t*) noexcept nogil>__nvmlUnitGetHandleByIndex)( 

4103 index, unit) 

4104  

4105  

4106cdef nvmlReturn_t _nvmlUnitGetUnitInfo(nvmlUnit_t unit, nvmlUnitInfo_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4107 global __nvmlUnitGetUnitInfo 

4108 _check_or_init_nvml() 

4109 if __nvmlUnitGetUnitInfo == NULL: 

4110 with gil: 

4111 raise FunctionNotFoundError("function nvmlUnitGetUnitInfo is not found") 

4112 return (<nvmlReturn_t (*)(nvmlUnit_t, nvmlUnitInfo_t*) noexcept nogil>__nvmlUnitGetUnitInfo)( 

4113 unit, info) 

4114  

4115  

4116cdef nvmlReturn_t _nvmlUnitGetLedState(nvmlUnit_t unit, nvmlLedState_t* state) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4117 global __nvmlUnitGetLedState 

4118 _check_or_init_nvml() 

4119 if __nvmlUnitGetLedState == NULL: 

4120 with gil: 

4121 raise FunctionNotFoundError("function nvmlUnitGetLedState is not found") 

4122 return (<nvmlReturn_t (*)(nvmlUnit_t, nvmlLedState_t*) noexcept nogil>__nvmlUnitGetLedState)( 

4123 unit, state) 

4124  

4125  

4126cdef nvmlReturn_t _nvmlUnitGetPsuInfo(nvmlUnit_t unit, nvmlPSUInfo_t* psu) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4127 global __nvmlUnitGetPsuInfo 

4128 _check_or_init_nvml() 

4129 if __nvmlUnitGetPsuInfo == NULL: 

4130 with gil: 

4131 raise FunctionNotFoundError("function nvmlUnitGetPsuInfo is not found") 

4132 return (<nvmlReturn_t (*)(nvmlUnit_t, nvmlPSUInfo_t*) noexcept nogil>__nvmlUnitGetPsuInfo)( 

4133 unit, psu) 

4134  

4135  

4136cdef nvmlReturn_t _nvmlUnitGetTemperature(nvmlUnit_t unit, unsigned int type, unsigned int* temp) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4137 global __nvmlUnitGetTemperature 

4138 _check_or_init_nvml() 

4139 if __nvmlUnitGetTemperature == NULL: 

4140 with gil: 

4141 raise FunctionNotFoundError("function nvmlUnitGetTemperature is not found") 

4142 return (<nvmlReturn_t (*)(nvmlUnit_t, unsigned int, unsigned int*) noexcept nogil>__nvmlUnitGetTemperature)( 

4143 unit, type, temp) 

4144  

4145  

4146cdef nvmlReturn_t _nvmlUnitGetFanSpeedInfo(nvmlUnit_t unit, nvmlUnitFanSpeeds_t* fanSpeeds) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4147 global __nvmlUnitGetFanSpeedInfo 

4148 _check_or_init_nvml() 

4149 if __nvmlUnitGetFanSpeedInfo == NULL: 

4150 with gil: 

4151 raise FunctionNotFoundError("function nvmlUnitGetFanSpeedInfo is not found") 

4152 return (<nvmlReturn_t (*)(nvmlUnit_t, nvmlUnitFanSpeeds_t*) noexcept nogil>__nvmlUnitGetFanSpeedInfo)( 

4153 unit, fanSpeeds) 

4154  

4155  

4156cdef nvmlReturn_t _nvmlUnitGetDevices(nvmlUnit_t unit, unsigned int* deviceCount, nvmlDevice_t* devices) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4157 global __nvmlUnitGetDevices 

4158 _check_or_init_nvml() 

4159 if __nvmlUnitGetDevices == NULL: 

4160 with gil: 

4161 raise FunctionNotFoundError("function nvmlUnitGetDevices is not found") 

4162 return (<nvmlReturn_t (*)(nvmlUnit_t, unsigned int*, nvmlDevice_t*) noexcept nogil>__nvmlUnitGetDevices)( 

4163 unit, deviceCount, devices) 

4164  

4165  

4166cdef nvmlReturn_t _nvmlDeviceGetCount_v2(unsigned int* deviceCount) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4167 global __nvmlDeviceGetCount_v2 

4168 _check_or_init_nvml() 

4169 if __nvmlDeviceGetCount_v2 == NULL: 

4170 with gil: 

4171 raise FunctionNotFoundError("function nvmlDeviceGetCount_v2 is not found") 

4172 return (<nvmlReturn_t (*)(unsigned int*) noexcept nogil>__nvmlDeviceGetCount_v2)( 

4173 deviceCount) 

4174  

4175  

4176cdef nvmlReturn_t _nvmlDeviceGetAttributes_v2(nvmlDevice_t device, nvmlDeviceAttributes_t* attributes) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4177 global __nvmlDeviceGetAttributes_v2 

4178 _check_or_init_nvml() 

4179 if __nvmlDeviceGetAttributes_v2 == NULL: 

4180 with gil: 

4181 raise FunctionNotFoundError("function nvmlDeviceGetAttributes_v2 is not found") 

4182 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlDeviceAttributes_t*) noexcept nogil>__nvmlDeviceGetAttributes_v2)( 

4183 device, attributes) 

4184  

4185  

4186cdef nvmlReturn_t _nvmlDeviceGetHandleByIndex_v2(unsigned int index, nvmlDevice_t* device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4187 global __nvmlDeviceGetHandleByIndex_v2 

4188 _check_or_init_nvml() 

4189 if __nvmlDeviceGetHandleByIndex_v2 == NULL: 

4190 with gil: 

4191 raise FunctionNotFoundError("function nvmlDeviceGetHandleByIndex_v2 is not found") 

4192 return (<nvmlReturn_t (*)(unsigned int, nvmlDevice_t*) noexcept nogil>__nvmlDeviceGetHandleByIndex_v2)( 

4193 index, device) 

4194  

4195  

4196cdef nvmlReturn_t _nvmlDeviceGetHandleBySerial(const char* serial, nvmlDevice_t* device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4197 global __nvmlDeviceGetHandleBySerial 

4198 _check_or_init_nvml() 

4199 if __nvmlDeviceGetHandleBySerial == NULL: 

4200 with gil: 

4201 raise FunctionNotFoundError("function nvmlDeviceGetHandleBySerial is not found") 

4202 return (<nvmlReturn_t (*)(const char*, nvmlDevice_t*) noexcept nogil>__nvmlDeviceGetHandleBySerial)( 

4203 serial, device) 

4204  

4205  

4206cdef nvmlReturn_t _nvmlDeviceGetHandleByUUID(const char* uuid, nvmlDevice_t* device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4207 global __nvmlDeviceGetHandleByUUID 

4208 _check_or_init_nvml() 

4209 if __nvmlDeviceGetHandleByUUID == NULL: 

4210 with gil: 

4211 raise FunctionNotFoundError("function nvmlDeviceGetHandleByUUID is not found") 

4212 return (<nvmlReturn_t (*)(const char*, nvmlDevice_t*) noexcept nogil>__nvmlDeviceGetHandleByUUID)( 

4213 uuid, device) 

4214  

4215  

4216cdef nvmlReturn_t _nvmlDeviceGetHandleByUUIDV(const nvmlUUID_t* uuid, nvmlDevice_t* device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4217 global __nvmlDeviceGetHandleByUUIDV 

4218 _check_or_init_nvml() 

4219 if __nvmlDeviceGetHandleByUUIDV == NULL: 

4220 with gil: 

4221 raise FunctionNotFoundError("function nvmlDeviceGetHandleByUUIDV is not found") 

4222 return (<nvmlReturn_t (*)(const nvmlUUID_t*, nvmlDevice_t*) noexcept nogil>__nvmlDeviceGetHandleByUUIDV)( 

4223 uuid, device) 

4224  

4225  

4226cdef nvmlReturn_t _nvmlDeviceGetHandleByPciBusId_v2(const char* pciBusId, nvmlDevice_t* device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4227 global __nvmlDeviceGetHandleByPciBusId_v2 

4228 _check_or_init_nvml() 

4229 if __nvmlDeviceGetHandleByPciBusId_v2 == NULL: 

4230 with gil: 

4231 raise FunctionNotFoundError("function nvmlDeviceGetHandleByPciBusId_v2 is not found") 

4232 return (<nvmlReturn_t (*)(const char*, nvmlDevice_t*) noexcept nogil>__nvmlDeviceGetHandleByPciBusId_v2)( 

4233 pciBusId, device) 

4234  

4235  

4236cdef nvmlReturn_t _nvmlDeviceGetName(nvmlDevice_t device, char* name, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4237 global __nvmlDeviceGetName 

4238 _check_or_init_nvml() 

4239 if __nvmlDeviceGetName == NULL: 

4240 with gil: 

4241 raise FunctionNotFoundError("function nvmlDeviceGetName is not found") 

4242 return (<nvmlReturn_t (*)(nvmlDevice_t, char*, unsigned int) noexcept nogil>__nvmlDeviceGetName)( 

4243 device, name, length) 

4244  

4245  

4246cdef nvmlReturn_t _nvmlDeviceGetBrand(nvmlDevice_t device, nvmlBrandType_t* type) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4247 global __nvmlDeviceGetBrand 

4248 _check_or_init_nvml() 

4249 if __nvmlDeviceGetBrand == NULL: 

4250 with gil: 

4251 raise FunctionNotFoundError("function nvmlDeviceGetBrand is not found") 

4252 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlBrandType_t*) noexcept nogil>__nvmlDeviceGetBrand)( 

4253 device, type) 

4254  

4255  

4256cdef nvmlReturn_t _nvmlDeviceGetIndex(nvmlDevice_t device, unsigned int* index) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4257 global __nvmlDeviceGetIndex 

4258 _check_or_init_nvml() 

4259 if __nvmlDeviceGetIndex == NULL: 

4260 with gil: 

4261 raise FunctionNotFoundError("function nvmlDeviceGetIndex is not found") 

4262 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetIndex)( 

4263 device, index) 

4264  

4265  

4266cdef nvmlReturn_t _nvmlDeviceGetSerial(nvmlDevice_t device, char* serial, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4267 global __nvmlDeviceGetSerial 

4268 _check_or_init_nvml() 

4269 if __nvmlDeviceGetSerial == NULL: 

4270 with gil: 

4271 raise FunctionNotFoundError("function nvmlDeviceGetSerial is not found") 

4272 return (<nvmlReturn_t (*)(nvmlDevice_t, char*, unsigned int) noexcept nogil>__nvmlDeviceGetSerial)( 

4273 device, serial, length) 

4274  

4275  

4276cdef nvmlReturn_t _nvmlDeviceGetModuleId(nvmlDevice_t device, unsigned int* moduleId) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4277 global __nvmlDeviceGetModuleId 

4278 _check_or_init_nvml() 

4279 if __nvmlDeviceGetModuleId == NULL: 

4280 with gil: 

4281 raise FunctionNotFoundError("function nvmlDeviceGetModuleId is not found") 

4282 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetModuleId)( 

4283 device, moduleId) 

4284  

4285  

4286cdef nvmlReturn_t _nvmlDeviceGetC2cModeInfoV(nvmlDevice_t device, nvmlC2cModeInfo_v1_t* c2cModeInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4287 global __nvmlDeviceGetC2cModeInfoV 

4288 _check_or_init_nvml() 

4289 if __nvmlDeviceGetC2cModeInfoV == NULL: 

4290 with gil: 

4291 raise FunctionNotFoundError("function nvmlDeviceGetC2cModeInfoV is not found") 

4292 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlC2cModeInfo_v1_t*) noexcept nogil>__nvmlDeviceGetC2cModeInfoV)( 

4293 device, c2cModeInfo) 

4294  

4295  

4296cdef nvmlReturn_t _nvmlDeviceGetMemoryAffinity(nvmlDevice_t device, unsigned int nodeSetSize, unsigned long* nodeSet, nvmlAffinityScope_t scope) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4297 global __nvmlDeviceGetMemoryAffinity 

4298 _check_or_init_nvml() 

4299 if __nvmlDeviceGetMemoryAffinity == NULL: 

4300 with gil: 

4301 raise FunctionNotFoundError("function nvmlDeviceGetMemoryAffinity is not found") 

4302 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, unsigned long*, nvmlAffinityScope_t) noexcept nogil>__nvmlDeviceGetMemoryAffinity)( 

4303 device, nodeSetSize, nodeSet, scope) 

4304  

4305  

4306cdef nvmlReturn_t _nvmlDeviceGetCpuAffinityWithinScope(nvmlDevice_t device, unsigned int cpuSetSize, unsigned long* cpuSet, nvmlAffinityScope_t scope) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4307 global __nvmlDeviceGetCpuAffinityWithinScope 

4308 _check_or_init_nvml() 

4309 if __nvmlDeviceGetCpuAffinityWithinScope == NULL: 

4310 with gil: 

4311 raise FunctionNotFoundError("function nvmlDeviceGetCpuAffinityWithinScope is not found") 

4312 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, unsigned long*, nvmlAffinityScope_t) noexcept nogil>__nvmlDeviceGetCpuAffinityWithinScope)( 

4313 device, cpuSetSize, cpuSet, scope) 

4314  

4315  

4316cdef nvmlReturn_t _nvmlDeviceGetCpuAffinity(nvmlDevice_t device, unsigned int cpuSetSize, unsigned long* cpuSet) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4317 global __nvmlDeviceGetCpuAffinity 

4318 _check_or_init_nvml() 

4319 if __nvmlDeviceGetCpuAffinity == NULL: 

4320 with gil: 

4321 raise FunctionNotFoundError("function nvmlDeviceGetCpuAffinity is not found") 

4322 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, unsigned long*) noexcept nogil>__nvmlDeviceGetCpuAffinity)( 

4323 device, cpuSetSize, cpuSet) 

4324  

4325  

4326cdef nvmlReturn_t _nvmlDeviceSetCpuAffinity(nvmlDevice_t device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4327 global __nvmlDeviceSetCpuAffinity 

4328 _check_or_init_nvml() 

4329 if __nvmlDeviceSetCpuAffinity == NULL: 

4330 with gil: 

4331 raise FunctionNotFoundError("function nvmlDeviceSetCpuAffinity is not found") 

4332 return (<nvmlReturn_t (*)(nvmlDevice_t) noexcept nogil>__nvmlDeviceSetCpuAffinity)( 

4333 device) 

4334  

4335  

4336cdef nvmlReturn_t _nvmlDeviceClearCpuAffinity(nvmlDevice_t device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4337 global __nvmlDeviceClearCpuAffinity 

4338 _check_or_init_nvml() 

4339 if __nvmlDeviceClearCpuAffinity == NULL: 

4340 with gil: 

4341 raise FunctionNotFoundError("function nvmlDeviceClearCpuAffinity is not found") 

4342 return (<nvmlReturn_t (*)(nvmlDevice_t) noexcept nogil>__nvmlDeviceClearCpuAffinity)( 

4343 device) 

4344  

4345  

4346cdef nvmlReturn_t _nvmlDeviceGetNumaNodeId(nvmlDevice_t device, unsigned int* node) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4347 global __nvmlDeviceGetNumaNodeId 

4348 _check_or_init_nvml() 

4349 if __nvmlDeviceGetNumaNodeId == NULL: 

4350 with gil: 

4351 raise FunctionNotFoundError("function nvmlDeviceGetNumaNodeId is not found") 

4352 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetNumaNodeId)( 

4353 device, node) 

4354  

4355  

4356cdef nvmlReturn_t _nvmlDeviceGetTopologyCommonAncestor(nvmlDevice_t device1, nvmlDevice_t device2, nvmlGpuTopologyLevel_t* pathInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4357 global __nvmlDeviceGetTopologyCommonAncestor 

4358 _check_or_init_nvml() 

4359 if __nvmlDeviceGetTopologyCommonAncestor == NULL: 

4360 with gil: 

4361 raise FunctionNotFoundError("function nvmlDeviceGetTopologyCommonAncestor is not found") 

4362 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlDevice_t, nvmlGpuTopologyLevel_t*) noexcept nogil>__nvmlDeviceGetTopologyCommonAncestor)( 

4363 device1, device2, pathInfo) 

4364  

4365  

4366cdef nvmlReturn_t _nvmlDeviceGetTopologyNearestGpus(nvmlDevice_t device, nvmlGpuTopologyLevel_t level, unsigned int* count, nvmlDevice_t* deviceArray) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4367 global __nvmlDeviceGetTopologyNearestGpus 

4368 _check_or_init_nvml() 

4369 if __nvmlDeviceGetTopologyNearestGpus == NULL: 

4370 with gil: 

4371 raise FunctionNotFoundError("function nvmlDeviceGetTopologyNearestGpus is not found") 

4372 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlGpuTopologyLevel_t, unsigned int*, nvmlDevice_t*) noexcept nogil>__nvmlDeviceGetTopologyNearestGpus)( 

4373 device, level, count, deviceArray) 

4374  

4375  

4376cdef nvmlReturn_t _nvmlDeviceGetP2PStatus(nvmlDevice_t device1, nvmlDevice_t device2, nvmlGpuP2PCapsIndex_t p2pIndex, nvmlGpuP2PStatus_t* p2pStatus) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4377 global __nvmlDeviceGetP2PStatus 

4378 _check_or_init_nvml() 

4379 if __nvmlDeviceGetP2PStatus == NULL: 

4380 with gil: 

4381 raise FunctionNotFoundError("function nvmlDeviceGetP2PStatus is not found") 

4382 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlDevice_t, nvmlGpuP2PCapsIndex_t, nvmlGpuP2PStatus_t*) noexcept nogil>__nvmlDeviceGetP2PStatus)( 

4383 device1, device2, p2pIndex, p2pStatus) 

4384  

4385  

4386cdef nvmlReturn_t _nvmlDeviceGetUUID(nvmlDevice_t device, char* uuid, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4387 global __nvmlDeviceGetUUID 

4388 _check_or_init_nvml() 

4389 if __nvmlDeviceGetUUID == NULL: 

4390 with gil: 

4391 raise FunctionNotFoundError("function nvmlDeviceGetUUID is not found") 

4392 return (<nvmlReturn_t (*)(nvmlDevice_t, char*, unsigned int) noexcept nogil>__nvmlDeviceGetUUID)( 

4393 device, uuid, length) 

4394  

4395  

4396cdef nvmlReturn_t _nvmlDeviceGetMinorNumber(nvmlDevice_t device, unsigned int* minorNumber) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4397 global __nvmlDeviceGetMinorNumber 

4398 _check_or_init_nvml() 

4399 if __nvmlDeviceGetMinorNumber == NULL: 

4400 with gil: 

4401 raise FunctionNotFoundError("function nvmlDeviceGetMinorNumber is not found") 

4402 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetMinorNumber)( 

4403 device, minorNumber) 

4404  

4405  

4406cdef nvmlReturn_t _nvmlDeviceGetBoardPartNumber(nvmlDevice_t device, char* partNumber, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4407 global __nvmlDeviceGetBoardPartNumber 

4408 _check_or_init_nvml() 

4409 if __nvmlDeviceGetBoardPartNumber == NULL: 

4410 with gil: 

4411 raise FunctionNotFoundError("function nvmlDeviceGetBoardPartNumber is not found") 

4412 return (<nvmlReturn_t (*)(nvmlDevice_t, char*, unsigned int) noexcept nogil>__nvmlDeviceGetBoardPartNumber)( 

4413 device, partNumber, length) 

4414  

4415  

4416cdef nvmlReturn_t _nvmlDeviceGetInforomVersion(nvmlDevice_t device, nvmlInforomObject_t object, char* version, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4417 global __nvmlDeviceGetInforomVersion 

4418 _check_or_init_nvml() 

4419 if __nvmlDeviceGetInforomVersion == NULL: 

4420 with gil: 

4421 raise FunctionNotFoundError("function nvmlDeviceGetInforomVersion is not found") 

4422 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlInforomObject_t, char*, unsigned int) noexcept nogil>__nvmlDeviceGetInforomVersion)( 

4423 device, object, version, length) 

4424  

4425  

4426cdef nvmlReturn_t _nvmlDeviceGetInforomImageVersion(nvmlDevice_t device, char* version, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4427 global __nvmlDeviceGetInforomImageVersion 

4428 _check_or_init_nvml() 

4429 if __nvmlDeviceGetInforomImageVersion == NULL: 

4430 with gil: 

4431 raise FunctionNotFoundError("function nvmlDeviceGetInforomImageVersion is not found") 

4432 return (<nvmlReturn_t (*)(nvmlDevice_t, char*, unsigned int) noexcept nogil>__nvmlDeviceGetInforomImageVersion)( 

4433 device, version, length) 

4434  

4435  

4436cdef nvmlReturn_t _nvmlDeviceGetInforomConfigurationChecksum(nvmlDevice_t device, unsigned int* checksum) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4437 global __nvmlDeviceGetInforomConfigurationChecksum 

4438 _check_or_init_nvml() 

4439 if __nvmlDeviceGetInforomConfigurationChecksum == NULL: 

4440 with gil: 

4441 raise FunctionNotFoundError("function nvmlDeviceGetInforomConfigurationChecksum is not found") 

4442 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetInforomConfigurationChecksum)( 

4443 device, checksum) 

4444  

4445  

4446cdef nvmlReturn_t _nvmlDeviceValidateInforom(nvmlDevice_t device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4447 global __nvmlDeviceValidateInforom 

4448 _check_or_init_nvml() 

4449 if __nvmlDeviceValidateInforom == NULL: 

4450 with gil: 

4451 raise FunctionNotFoundError("function nvmlDeviceValidateInforom is not found") 

4452 return (<nvmlReturn_t (*)(nvmlDevice_t) noexcept nogil>__nvmlDeviceValidateInforom)( 

4453 device) 

4454  

4455  

4456cdef nvmlReturn_t _nvmlDeviceGetLastBBXFlushTime(nvmlDevice_t device, unsigned long long* timestamp, unsigned long* durationUs) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4457 global __nvmlDeviceGetLastBBXFlushTime 

4458 _check_or_init_nvml() 

4459 if __nvmlDeviceGetLastBBXFlushTime == NULL: 

4460 with gil: 

4461 raise FunctionNotFoundError("function nvmlDeviceGetLastBBXFlushTime is not found") 

4462 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned long long*, unsigned long*) noexcept nogil>__nvmlDeviceGetLastBBXFlushTime)( 

4463 device, timestamp, durationUs) 

4464  

4465  

4466cdef nvmlReturn_t _nvmlDeviceGetDisplayMode(nvmlDevice_t device, nvmlEnableState_t* display) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4467 global __nvmlDeviceGetDisplayMode 

4468 _check_or_init_nvml() 

4469 if __nvmlDeviceGetDisplayMode == NULL: 

4470 with gil: 

4471 raise FunctionNotFoundError("function nvmlDeviceGetDisplayMode is not found") 

4472 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEnableState_t*) noexcept nogil>__nvmlDeviceGetDisplayMode)( 

4473 device, display) 

4474  

4475  

4476cdef nvmlReturn_t _nvmlDeviceGetDisplayActive(nvmlDevice_t device, nvmlEnableState_t* isActive) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4477 global __nvmlDeviceGetDisplayActive 

4478 _check_or_init_nvml() 

4479 if __nvmlDeviceGetDisplayActive == NULL: 

4480 with gil: 

4481 raise FunctionNotFoundError("function nvmlDeviceGetDisplayActive is not found") 

4482 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEnableState_t*) noexcept nogil>__nvmlDeviceGetDisplayActive)( 

4483 device, isActive) 

4484  

4485  

4486cdef nvmlReturn_t _nvmlDeviceGetPersistenceMode(nvmlDevice_t device, nvmlEnableState_t* mode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4487 global __nvmlDeviceGetPersistenceMode 

4488 _check_or_init_nvml() 

4489 if __nvmlDeviceGetPersistenceMode == NULL: 

4490 with gil: 

4491 raise FunctionNotFoundError("function nvmlDeviceGetPersistenceMode is not found") 

4492 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEnableState_t*) noexcept nogil>__nvmlDeviceGetPersistenceMode)( 

4493 device, mode) 

4494  

4495  

4496cdef nvmlReturn_t _nvmlDeviceGetPciInfoExt(nvmlDevice_t device, nvmlPciInfoExt_t* pci) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4497 global __nvmlDeviceGetPciInfoExt 

4498 _check_or_init_nvml() 

4499 if __nvmlDeviceGetPciInfoExt == NULL: 

4500 with gil: 

4501 raise FunctionNotFoundError("function nvmlDeviceGetPciInfoExt is not found") 

4502 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPciInfoExt_t*) noexcept nogil>__nvmlDeviceGetPciInfoExt)( 

4503 device, pci) 

4504  

4505  

4506cdef nvmlReturn_t _nvmlDeviceGetPciInfo_v3(nvmlDevice_t device, nvmlPciInfo_t* pci) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4507 global __nvmlDeviceGetPciInfo_v3 

4508 _check_or_init_nvml() 

4509 if __nvmlDeviceGetPciInfo_v3 == NULL: 

4510 with gil: 

4511 raise FunctionNotFoundError("function nvmlDeviceGetPciInfo_v3 is not found") 

4512 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPciInfo_t*) noexcept nogil>__nvmlDeviceGetPciInfo_v3)( 

4513 device, pci) 

4514  

4515  

4516cdef nvmlReturn_t _nvmlDeviceGetMaxPcieLinkGeneration(nvmlDevice_t device, unsigned int* maxLinkGen) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4517 global __nvmlDeviceGetMaxPcieLinkGeneration 

4518 _check_or_init_nvml() 

4519 if __nvmlDeviceGetMaxPcieLinkGeneration == NULL: 

4520 with gil: 

4521 raise FunctionNotFoundError("function nvmlDeviceGetMaxPcieLinkGeneration is not found") 

4522 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetMaxPcieLinkGeneration)( 

4523 device, maxLinkGen) 

4524  

4525  

4526cdef nvmlReturn_t _nvmlDeviceGetGpuMaxPcieLinkGeneration(nvmlDevice_t device, unsigned int* maxLinkGenDevice) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4527 global __nvmlDeviceGetGpuMaxPcieLinkGeneration 

4528 _check_or_init_nvml() 

4529 if __nvmlDeviceGetGpuMaxPcieLinkGeneration == NULL: 

4530 with gil: 

4531 raise FunctionNotFoundError("function nvmlDeviceGetGpuMaxPcieLinkGeneration is not found") 

4532 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetGpuMaxPcieLinkGeneration)( 

4533 device, maxLinkGenDevice) 

4534  

4535  

4536cdef nvmlReturn_t _nvmlDeviceGetMaxPcieLinkWidth(nvmlDevice_t device, unsigned int* maxLinkWidth) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4537 global __nvmlDeviceGetMaxPcieLinkWidth 

4538 _check_or_init_nvml() 

4539 if __nvmlDeviceGetMaxPcieLinkWidth == NULL: 

4540 with gil: 

4541 raise FunctionNotFoundError("function nvmlDeviceGetMaxPcieLinkWidth is not found") 

4542 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetMaxPcieLinkWidth)( 

4543 device, maxLinkWidth) 

4544  

4545  

4546cdef nvmlReturn_t _nvmlDeviceGetCurrPcieLinkGeneration(nvmlDevice_t device, unsigned int* currLinkGen) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4547 global __nvmlDeviceGetCurrPcieLinkGeneration 

4548 _check_or_init_nvml() 

4549 if __nvmlDeviceGetCurrPcieLinkGeneration == NULL: 

4550 with gil: 

4551 raise FunctionNotFoundError("function nvmlDeviceGetCurrPcieLinkGeneration is not found") 

4552 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetCurrPcieLinkGeneration)( 

4553 device, currLinkGen) 

4554  

4555  

4556cdef nvmlReturn_t _nvmlDeviceGetCurrPcieLinkWidth(nvmlDevice_t device, unsigned int* currLinkWidth) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4557 global __nvmlDeviceGetCurrPcieLinkWidth 

4558 _check_or_init_nvml() 

4559 if __nvmlDeviceGetCurrPcieLinkWidth == NULL: 

4560 with gil: 

4561 raise FunctionNotFoundError("function nvmlDeviceGetCurrPcieLinkWidth is not found") 

4562 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetCurrPcieLinkWidth)( 

4563 device, currLinkWidth) 

4564  

4565  

4566cdef nvmlReturn_t _nvmlDeviceGetPcieThroughput(nvmlDevice_t device, nvmlPcieUtilCounter_t counter, unsigned int* value) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4567 global __nvmlDeviceGetPcieThroughput 

4568 _check_or_init_nvml() 

4569 if __nvmlDeviceGetPcieThroughput == NULL: 

4570 with gil: 

4571 raise FunctionNotFoundError("function nvmlDeviceGetPcieThroughput is not found") 

4572 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPcieUtilCounter_t, unsigned int*) noexcept nogil>__nvmlDeviceGetPcieThroughput)( 

4573 device, counter, value) 

4574  

4575  

4576cdef nvmlReturn_t _nvmlDeviceGetPcieReplayCounter(nvmlDevice_t device, unsigned int* value) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4577 global __nvmlDeviceGetPcieReplayCounter 

4578 _check_or_init_nvml() 

4579 if __nvmlDeviceGetPcieReplayCounter == NULL: 

4580 with gil: 

4581 raise FunctionNotFoundError("function nvmlDeviceGetPcieReplayCounter is not found") 

4582 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetPcieReplayCounter)( 

4583 device, value) 

4584  

4585  

4586cdef nvmlReturn_t _nvmlDeviceGetClockInfo(nvmlDevice_t device, nvmlClockType_t type, unsigned int* clock) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4587 global __nvmlDeviceGetClockInfo 

4588 _check_or_init_nvml() 

4589 if __nvmlDeviceGetClockInfo == NULL: 

4590 with gil: 

4591 raise FunctionNotFoundError("function nvmlDeviceGetClockInfo is not found") 

4592 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlClockType_t, unsigned int*) noexcept nogil>__nvmlDeviceGetClockInfo)( 

4593 device, type, clock) 

4594  

4595  

4596cdef nvmlReturn_t _nvmlDeviceGetMaxClockInfo(nvmlDevice_t device, nvmlClockType_t type, unsigned int* clock) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4597 global __nvmlDeviceGetMaxClockInfo 

4598 _check_or_init_nvml() 

4599 if __nvmlDeviceGetMaxClockInfo == NULL: 

4600 with gil: 

4601 raise FunctionNotFoundError("function nvmlDeviceGetMaxClockInfo is not found") 

4602 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlClockType_t, unsigned int*) noexcept nogil>__nvmlDeviceGetMaxClockInfo)( 

4603 device, type, clock) 

4604  

4605  

4606cdef nvmlReturn_t _nvmlDeviceGetGpcClkVfOffset(nvmlDevice_t device, int* offset) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4607 global __nvmlDeviceGetGpcClkVfOffset 

4608 _check_or_init_nvml() 

4609 if __nvmlDeviceGetGpcClkVfOffset == NULL: 

4610 with gil: 

4611 raise FunctionNotFoundError("function nvmlDeviceGetGpcClkVfOffset is not found") 

4612 return (<nvmlReturn_t (*)(nvmlDevice_t, int*) noexcept nogil>__nvmlDeviceGetGpcClkVfOffset)( 

4613 device, offset) 

4614  

4615  

4616cdef nvmlReturn_t _nvmlDeviceGetClock(nvmlDevice_t device, nvmlClockType_t clockType, nvmlClockId_t clockId, unsigned int* clockMHz) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4617 global __nvmlDeviceGetClock 

4618 _check_or_init_nvml() 

4619 if __nvmlDeviceGetClock == NULL: 

4620 with gil: 

4621 raise FunctionNotFoundError("function nvmlDeviceGetClock is not found") 

4622 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlClockType_t, nvmlClockId_t, unsigned int*) noexcept nogil>__nvmlDeviceGetClock)( 

4623 device, clockType, clockId, clockMHz) 

4624  

4625  

4626cdef nvmlReturn_t _nvmlDeviceGetMaxCustomerBoostClock(nvmlDevice_t device, nvmlClockType_t clockType, unsigned int* clockMHz) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4627 global __nvmlDeviceGetMaxCustomerBoostClock 

4628 _check_or_init_nvml() 

4629 if __nvmlDeviceGetMaxCustomerBoostClock == NULL: 

4630 with gil: 

4631 raise FunctionNotFoundError("function nvmlDeviceGetMaxCustomerBoostClock is not found") 

4632 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlClockType_t, unsigned int*) noexcept nogil>__nvmlDeviceGetMaxCustomerBoostClock)( 

4633 device, clockType, clockMHz) 

4634  

4635  

4636cdef nvmlReturn_t _nvmlDeviceGetSupportedMemoryClocks(nvmlDevice_t device, unsigned int* count, unsigned int* clocksMHz) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4637 global __nvmlDeviceGetSupportedMemoryClocks 

4638 _check_or_init_nvml() 

4639 if __nvmlDeviceGetSupportedMemoryClocks == NULL: 

4640 with gil: 

4641 raise FunctionNotFoundError("function nvmlDeviceGetSupportedMemoryClocks is not found") 

4642 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, unsigned int*) noexcept nogil>__nvmlDeviceGetSupportedMemoryClocks)( 

4643 device, count, clocksMHz) 

4644  

4645  

4646cdef nvmlReturn_t _nvmlDeviceGetSupportedGraphicsClocks(nvmlDevice_t device, unsigned int memoryClockMHz, unsigned int* count, unsigned int* clocksMHz) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4647 global __nvmlDeviceGetSupportedGraphicsClocks 

4648 _check_or_init_nvml() 

4649 if __nvmlDeviceGetSupportedGraphicsClocks == NULL: 

4650 with gil: 

4651 raise FunctionNotFoundError("function nvmlDeviceGetSupportedGraphicsClocks is not found") 

4652 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, unsigned int*, unsigned int*) noexcept nogil>__nvmlDeviceGetSupportedGraphicsClocks)( 

4653 device, memoryClockMHz, count, clocksMHz) 

4654  

4655  

4656cdef nvmlReturn_t _nvmlDeviceGetAutoBoostedClocksEnabled(nvmlDevice_t device, nvmlEnableState_t* isEnabled, nvmlEnableState_t* defaultIsEnabled) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4657 global __nvmlDeviceGetAutoBoostedClocksEnabled 

4658 _check_or_init_nvml() 

4659 if __nvmlDeviceGetAutoBoostedClocksEnabled == NULL: 

4660 with gil: 

4661 raise FunctionNotFoundError("function nvmlDeviceGetAutoBoostedClocksEnabled is not found") 

4662 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEnableState_t*, nvmlEnableState_t*) noexcept nogil>__nvmlDeviceGetAutoBoostedClocksEnabled)( 

4663 device, isEnabled, defaultIsEnabled) 

4664  

4665  

4666cdef nvmlReturn_t _nvmlDeviceGetFanSpeed(nvmlDevice_t device, unsigned int* speed) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4667 global __nvmlDeviceGetFanSpeed 

4668 _check_or_init_nvml() 

4669 if __nvmlDeviceGetFanSpeed == NULL: 

4670 with gil: 

4671 raise FunctionNotFoundError("function nvmlDeviceGetFanSpeed is not found") 

4672 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetFanSpeed)( 

4673 device, speed) 

4674  

4675  

4676cdef nvmlReturn_t _nvmlDeviceGetFanSpeed_v2(nvmlDevice_t device, unsigned int fan, unsigned int* speed) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4677 global __nvmlDeviceGetFanSpeed_v2 

4678 _check_or_init_nvml() 

4679 if __nvmlDeviceGetFanSpeed_v2 == NULL: 

4680 with gil: 

4681 raise FunctionNotFoundError("function nvmlDeviceGetFanSpeed_v2 is not found") 

4682 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, unsigned int*) noexcept nogil>__nvmlDeviceGetFanSpeed_v2)( 

4683 device, fan, speed) 

4684  

4685  

4686cdef nvmlReturn_t _nvmlDeviceGetFanSpeedRPM(nvmlDevice_t device, nvmlFanSpeedInfo_t* fanSpeed) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4687 global __nvmlDeviceGetFanSpeedRPM 

4688 _check_or_init_nvml() 

4689 if __nvmlDeviceGetFanSpeedRPM == NULL: 

4690 with gil: 

4691 raise FunctionNotFoundError("function nvmlDeviceGetFanSpeedRPM is not found") 

4692 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlFanSpeedInfo_t*) noexcept nogil>__nvmlDeviceGetFanSpeedRPM)( 

4693 device, fanSpeed) 

4694  

4695  

4696cdef nvmlReturn_t _nvmlDeviceGetTargetFanSpeed(nvmlDevice_t device, unsigned int fan, unsigned int* targetSpeed) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4697 global __nvmlDeviceGetTargetFanSpeed 

4698 _check_or_init_nvml() 

4699 if __nvmlDeviceGetTargetFanSpeed == NULL: 

4700 with gil: 

4701 raise FunctionNotFoundError("function nvmlDeviceGetTargetFanSpeed is not found") 

4702 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, unsigned int*) noexcept nogil>__nvmlDeviceGetTargetFanSpeed)( 

4703 device, fan, targetSpeed) 

4704  

4705  

4706cdef nvmlReturn_t _nvmlDeviceGetMinMaxFanSpeed(nvmlDevice_t device, unsigned int* minSpeed, unsigned int* maxSpeed) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4707 global __nvmlDeviceGetMinMaxFanSpeed 

4708 _check_or_init_nvml() 

4709 if __nvmlDeviceGetMinMaxFanSpeed == NULL: 

4710 with gil: 

4711 raise FunctionNotFoundError("function nvmlDeviceGetMinMaxFanSpeed is not found") 

4712 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, unsigned int*) noexcept nogil>__nvmlDeviceGetMinMaxFanSpeed)( 

4713 device, minSpeed, maxSpeed) 

4714  

4715  

4716cdef nvmlReturn_t _nvmlDeviceGetFanControlPolicy_v2(nvmlDevice_t device, unsigned int fan, nvmlFanControlPolicy_t* policy) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4717 global __nvmlDeviceGetFanControlPolicy_v2 

4718 _check_or_init_nvml() 

4719 if __nvmlDeviceGetFanControlPolicy_v2 == NULL: 

4720 with gil: 

4721 raise FunctionNotFoundError("function nvmlDeviceGetFanControlPolicy_v2 is not found") 

4722 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlFanControlPolicy_t*) noexcept nogil>__nvmlDeviceGetFanControlPolicy_v2)( 

4723 device, fan, policy) 

4724  

4725  

4726cdef nvmlReturn_t _nvmlDeviceGetNumFans(nvmlDevice_t device, unsigned int* numFans) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4727 global __nvmlDeviceGetNumFans 

4728 _check_or_init_nvml() 

4729 if __nvmlDeviceGetNumFans == NULL: 

4730 with gil: 

4731 raise FunctionNotFoundError("function nvmlDeviceGetNumFans is not found") 

4732 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetNumFans)( 

4733 device, numFans) 

4734  

4735  

4736cdef nvmlReturn_t _nvmlDeviceGetCoolerInfo(nvmlDevice_t device, nvmlCoolerInfo_t* coolerInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4737 global __nvmlDeviceGetCoolerInfo 

4738 _check_or_init_nvml() 

4739 if __nvmlDeviceGetCoolerInfo == NULL: 

4740 with gil: 

4741 raise FunctionNotFoundError("function nvmlDeviceGetCoolerInfo is not found") 

4742 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlCoolerInfo_t*) noexcept nogil>__nvmlDeviceGetCoolerInfo)( 

4743 device, coolerInfo) 

4744  

4745  

4746cdef nvmlReturn_t _nvmlDeviceGetTemperatureV(nvmlDevice_t device, nvmlTemperature_t* temperature) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4747 global __nvmlDeviceGetTemperatureV 

4748 _check_or_init_nvml() 

4749 if __nvmlDeviceGetTemperatureV == NULL: 

4750 with gil: 

4751 raise FunctionNotFoundError("function nvmlDeviceGetTemperatureV is not found") 

4752 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlTemperature_t*) noexcept nogil>__nvmlDeviceGetTemperatureV)( 

4753 device, temperature) 

4754  

4755  

4756cdef nvmlReturn_t _nvmlDeviceGetTemperatureThreshold(nvmlDevice_t device, nvmlTemperatureThresholds_t thresholdType, unsigned int* temp) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4757 global __nvmlDeviceGetTemperatureThreshold 

4758 _check_or_init_nvml() 

4759 if __nvmlDeviceGetTemperatureThreshold == NULL: 

4760 with gil: 

4761 raise FunctionNotFoundError("function nvmlDeviceGetTemperatureThreshold is not found") 

4762 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlTemperatureThresholds_t, unsigned int*) noexcept nogil>__nvmlDeviceGetTemperatureThreshold)( 

4763 device, thresholdType, temp) 

4764  

4765  

4766cdef nvmlReturn_t _nvmlDeviceGetMarginTemperature(nvmlDevice_t device, nvmlMarginTemperature_t* marginTempInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4767 global __nvmlDeviceGetMarginTemperature 

4768 _check_or_init_nvml() 

4769 if __nvmlDeviceGetMarginTemperature == NULL: 

4770 with gil: 

4771 raise FunctionNotFoundError("function nvmlDeviceGetMarginTemperature is not found") 

4772 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlMarginTemperature_t*) noexcept nogil>__nvmlDeviceGetMarginTemperature)( 

4773 device, marginTempInfo) 

4774  

4775  

4776cdef nvmlReturn_t _nvmlDeviceGetThermalSettings(nvmlDevice_t device, unsigned int sensorIndex, nvmlGpuThermalSettings_t* pThermalSettings) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4777 global __nvmlDeviceGetThermalSettings 

4778 _check_or_init_nvml() 

4779 if __nvmlDeviceGetThermalSettings == NULL: 

4780 with gil: 

4781 raise FunctionNotFoundError("function nvmlDeviceGetThermalSettings is not found") 

4782 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlGpuThermalSettings_t*) noexcept nogil>__nvmlDeviceGetThermalSettings)( 

4783 device, sensorIndex, pThermalSettings) 

4784  

4785  

4786cdef nvmlReturn_t _nvmlDeviceGetPerformanceState(nvmlDevice_t device, nvmlPstates_t* pState) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4787 global __nvmlDeviceGetPerformanceState 

4788 _check_or_init_nvml() 

4789 if __nvmlDeviceGetPerformanceState == NULL: 

4790 with gil: 

4791 raise FunctionNotFoundError("function nvmlDeviceGetPerformanceState is not found") 

4792 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPstates_t*) noexcept nogil>__nvmlDeviceGetPerformanceState)( 

4793 device, pState) 

4794  

4795  

4796cdef nvmlReturn_t _nvmlDeviceGetCurrentClocksEventReasons(nvmlDevice_t device, unsigned long long* clocksEventReasons) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4797 global __nvmlDeviceGetCurrentClocksEventReasons 

4798 _check_or_init_nvml() 

4799 if __nvmlDeviceGetCurrentClocksEventReasons == NULL: 

4800 with gil: 

4801 raise FunctionNotFoundError("function nvmlDeviceGetCurrentClocksEventReasons is not found") 

4802 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned long long*) noexcept nogil>__nvmlDeviceGetCurrentClocksEventReasons)( 

4803 device, clocksEventReasons) 

4804  

4805  

4806cdef nvmlReturn_t _nvmlDeviceGetSupportedClocksEventReasons(nvmlDevice_t device, unsigned long long* supportedClocksEventReasons) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4807 global __nvmlDeviceGetSupportedClocksEventReasons 

4808 _check_or_init_nvml() 

4809 if __nvmlDeviceGetSupportedClocksEventReasons == NULL: 

4810 with gil: 

4811 raise FunctionNotFoundError("function nvmlDeviceGetSupportedClocksEventReasons is not found") 

4812 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned long long*) noexcept nogil>__nvmlDeviceGetSupportedClocksEventReasons)( 

4813 device, supportedClocksEventReasons) 

4814  

4815  

4816cdef nvmlReturn_t _nvmlDeviceGetPowerState(nvmlDevice_t device, nvmlPstates_t* pState) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4817 global __nvmlDeviceGetPowerState 

4818 _check_or_init_nvml() 

4819 if __nvmlDeviceGetPowerState == NULL: 

4820 with gil: 

4821 raise FunctionNotFoundError("function nvmlDeviceGetPowerState is not found") 

4822 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPstates_t*) noexcept nogil>__nvmlDeviceGetPowerState)( 

4823 device, pState) 

4824  

4825  

4826cdef nvmlReturn_t _nvmlDeviceGetDynamicPstatesInfo(nvmlDevice_t device, nvmlGpuDynamicPstatesInfo_t* pDynamicPstatesInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4827 global __nvmlDeviceGetDynamicPstatesInfo 

4828 _check_or_init_nvml() 

4829 if __nvmlDeviceGetDynamicPstatesInfo == NULL: 

4830 with gil: 

4831 raise FunctionNotFoundError("function nvmlDeviceGetDynamicPstatesInfo is not found") 

4832 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlGpuDynamicPstatesInfo_t*) noexcept nogil>__nvmlDeviceGetDynamicPstatesInfo)( 

4833 device, pDynamicPstatesInfo) 

4834  

4835  

4836cdef nvmlReturn_t _nvmlDeviceGetMemClkVfOffset(nvmlDevice_t device, int* offset) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4837 global __nvmlDeviceGetMemClkVfOffset 

4838 _check_or_init_nvml() 

4839 if __nvmlDeviceGetMemClkVfOffset == NULL: 

4840 with gil: 

4841 raise FunctionNotFoundError("function nvmlDeviceGetMemClkVfOffset is not found") 

4842 return (<nvmlReturn_t (*)(nvmlDevice_t, int*) noexcept nogil>__nvmlDeviceGetMemClkVfOffset)( 

4843 device, offset) 

4844  

4845  

4846cdef 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: 

4847 global __nvmlDeviceGetMinMaxClockOfPState 

4848 _check_or_init_nvml() 

4849 if __nvmlDeviceGetMinMaxClockOfPState == NULL: 

4850 with gil: 

4851 raise FunctionNotFoundError("function nvmlDeviceGetMinMaxClockOfPState is not found") 

4852 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlClockType_t, nvmlPstates_t, unsigned int*, unsigned int*) noexcept nogil>__nvmlDeviceGetMinMaxClockOfPState)( 

4853 device, type, pstate, minClockMHz, maxClockMHz) 

4854  

4855  

4856cdef nvmlReturn_t _nvmlDeviceGetSupportedPerformanceStates(nvmlDevice_t device, nvmlPstates_t* pstates, unsigned int size) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4857 global __nvmlDeviceGetSupportedPerformanceStates 

4858 _check_or_init_nvml() 

4859 if __nvmlDeviceGetSupportedPerformanceStates == NULL: 

4860 with gil: 

4861 raise FunctionNotFoundError("function nvmlDeviceGetSupportedPerformanceStates is not found") 

4862 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPstates_t*, unsigned int) noexcept nogil>__nvmlDeviceGetSupportedPerformanceStates)( 

4863 device, pstates, size) 

4864  

4865  

4866cdef nvmlReturn_t _nvmlDeviceGetGpcClkMinMaxVfOffset(nvmlDevice_t device, int* minOffset, int* maxOffset) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4867 global __nvmlDeviceGetGpcClkMinMaxVfOffset 

4868 _check_or_init_nvml() 

4869 if __nvmlDeviceGetGpcClkMinMaxVfOffset == NULL: 

4870 with gil: 

4871 raise FunctionNotFoundError("function nvmlDeviceGetGpcClkMinMaxVfOffset is not found") 

4872 return (<nvmlReturn_t (*)(nvmlDevice_t, int*, int*) noexcept nogil>__nvmlDeviceGetGpcClkMinMaxVfOffset)( 

4873 device, minOffset, maxOffset) 

4874  

4875  

4876cdef nvmlReturn_t _nvmlDeviceGetMemClkMinMaxVfOffset(nvmlDevice_t device, int* minOffset, int* maxOffset) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4877 global __nvmlDeviceGetMemClkMinMaxVfOffset 

4878 _check_or_init_nvml() 

4879 if __nvmlDeviceGetMemClkMinMaxVfOffset == NULL: 

4880 with gil: 

4881 raise FunctionNotFoundError("function nvmlDeviceGetMemClkMinMaxVfOffset is not found") 

4882 return (<nvmlReturn_t (*)(nvmlDevice_t, int*, int*) noexcept nogil>__nvmlDeviceGetMemClkMinMaxVfOffset)( 

4883 device, minOffset, maxOffset) 

4884  

4885  

4886cdef nvmlReturn_t _nvmlDeviceGetClockOffsets(nvmlDevice_t device, nvmlClockOffset_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4887 global __nvmlDeviceGetClockOffsets 

4888 _check_or_init_nvml() 

4889 if __nvmlDeviceGetClockOffsets == NULL: 

4890 with gil: 

4891 raise FunctionNotFoundError("function nvmlDeviceGetClockOffsets is not found") 

4892 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlClockOffset_t*) noexcept nogil>__nvmlDeviceGetClockOffsets)( 

4893 device, info) 

4894  

4895  

4896cdef nvmlReturn_t _nvmlDeviceSetClockOffsets(nvmlDevice_t device, nvmlClockOffset_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4897 global __nvmlDeviceSetClockOffsets 

4898 _check_or_init_nvml() 

4899 if __nvmlDeviceSetClockOffsets == NULL: 

4900 with gil: 

4901 raise FunctionNotFoundError("function nvmlDeviceSetClockOffsets is not found") 

4902 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlClockOffset_t*) noexcept nogil>__nvmlDeviceSetClockOffsets)( 

4903 device, info) 

4904  

4905  

4906cdef nvmlReturn_t _nvmlDeviceGetPerformanceModes(nvmlDevice_t device, nvmlDevicePerfModes_t* perfModes) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4907 global __nvmlDeviceGetPerformanceModes 

4908 _check_or_init_nvml() 

4909 if __nvmlDeviceGetPerformanceModes == NULL: 

4910 with gil: 

4911 raise FunctionNotFoundError("function nvmlDeviceGetPerformanceModes is not found") 

4912 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlDevicePerfModes_t*) noexcept nogil>__nvmlDeviceGetPerformanceModes)( 

4913 device, perfModes) 

4914  

4915  

4916cdef nvmlReturn_t _nvmlDeviceGetCurrentClockFreqs(nvmlDevice_t device, nvmlDeviceCurrentClockFreqs_t* currentClockFreqs) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4917 global __nvmlDeviceGetCurrentClockFreqs 

4918 _check_or_init_nvml() 

4919 if __nvmlDeviceGetCurrentClockFreqs == NULL: 

4920 with gil: 

4921 raise FunctionNotFoundError("function nvmlDeviceGetCurrentClockFreqs is not found") 

4922 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlDeviceCurrentClockFreqs_t*) noexcept nogil>__nvmlDeviceGetCurrentClockFreqs)( 

4923 device, currentClockFreqs) 

4924  

4925  

4926cdef nvmlReturn_t _nvmlDeviceGetPowerManagementLimit(nvmlDevice_t device, unsigned int* limit) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4927 global __nvmlDeviceGetPowerManagementLimit 

4928 _check_or_init_nvml() 

4929 if __nvmlDeviceGetPowerManagementLimit == NULL: 

4930 with gil: 

4931 raise FunctionNotFoundError("function nvmlDeviceGetPowerManagementLimit is not found") 

4932 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetPowerManagementLimit)( 

4933 device, limit) 

4934  

4935  

4936cdef nvmlReturn_t _nvmlDeviceGetPowerManagementLimitConstraints(nvmlDevice_t device, unsigned int* minLimit, unsigned int* maxLimit) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4937 global __nvmlDeviceGetPowerManagementLimitConstraints 

4938 _check_or_init_nvml() 

4939 if __nvmlDeviceGetPowerManagementLimitConstraints == NULL: 

4940 with gil: 

4941 raise FunctionNotFoundError("function nvmlDeviceGetPowerManagementLimitConstraints is not found") 

4942 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, unsigned int*) noexcept nogil>__nvmlDeviceGetPowerManagementLimitConstraints)( 

4943 device, minLimit, maxLimit) 

4944  

4945  

4946cdef nvmlReturn_t _nvmlDeviceGetPowerManagementDefaultLimit(nvmlDevice_t device, unsigned int* defaultLimit) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4947 global __nvmlDeviceGetPowerManagementDefaultLimit 

4948 _check_or_init_nvml() 

4949 if __nvmlDeviceGetPowerManagementDefaultLimit == NULL: 

4950 with gil: 

4951 raise FunctionNotFoundError("function nvmlDeviceGetPowerManagementDefaultLimit is not found") 

4952 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetPowerManagementDefaultLimit)( 

4953 device, defaultLimit) 

4954  

4955  

4956cdef nvmlReturn_t _nvmlDeviceGetPowerUsage(nvmlDevice_t device, unsigned int* power) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4957 global __nvmlDeviceGetPowerUsage 

4958 _check_or_init_nvml() 

4959 if __nvmlDeviceGetPowerUsage == NULL: 

4960 with gil: 

4961 raise FunctionNotFoundError("function nvmlDeviceGetPowerUsage is not found") 

4962 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetPowerUsage)( 

4963 device, power) 

4964  

4965  

4966cdef nvmlReturn_t _nvmlDeviceGetTotalEnergyConsumption(nvmlDevice_t device, unsigned long long* energy) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4967 global __nvmlDeviceGetTotalEnergyConsumption 

4968 _check_or_init_nvml() 

4969 if __nvmlDeviceGetTotalEnergyConsumption == NULL: 

4970 with gil: 

4971 raise FunctionNotFoundError("function nvmlDeviceGetTotalEnergyConsumption is not found") 

4972 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned long long*) noexcept nogil>__nvmlDeviceGetTotalEnergyConsumption)( 

4973 device, energy) 

4974  

4975  

4976cdef nvmlReturn_t _nvmlDeviceGetEnforcedPowerLimit(nvmlDevice_t device, unsigned int* limit) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4977 global __nvmlDeviceGetEnforcedPowerLimit 

4978 _check_or_init_nvml() 

4979 if __nvmlDeviceGetEnforcedPowerLimit == NULL: 

4980 with gil: 

4981 raise FunctionNotFoundError("function nvmlDeviceGetEnforcedPowerLimit is not found") 

4982 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetEnforcedPowerLimit)( 

4983 device, limit) 

4984  

4985  

4986cdef nvmlReturn_t _nvmlDeviceGetGpuOperationMode(nvmlDevice_t device, nvmlGpuOperationMode_t* current, nvmlGpuOperationMode_t* pending) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4987 global __nvmlDeviceGetGpuOperationMode 

4988 _check_or_init_nvml() 

4989 if __nvmlDeviceGetGpuOperationMode == NULL: 

4990 with gil: 

4991 raise FunctionNotFoundError("function nvmlDeviceGetGpuOperationMode is not found") 

4992 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlGpuOperationMode_t*, nvmlGpuOperationMode_t*) noexcept nogil>__nvmlDeviceGetGpuOperationMode)( 

4993 device, current, pending) 

4994  

4995  

4996cdef nvmlReturn_t _nvmlDeviceGetMemoryInfo_v2(nvmlDevice_t device, nvmlMemory_v2_t* memory) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

4997 global __nvmlDeviceGetMemoryInfo_v2 

4998 _check_or_init_nvml() 

4999 if __nvmlDeviceGetMemoryInfo_v2 == NULL: 

5000 with gil: 

5001 raise FunctionNotFoundError("function nvmlDeviceGetMemoryInfo_v2 is not found") 

5002 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlMemory_v2_t*) noexcept nogil>__nvmlDeviceGetMemoryInfo_v2)( 

5003 device, memory) 

5004  

5005  

5006cdef nvmlReturn_t _nvmlDeviceGetComputeMode(nvmlDevice_t device, nvmlComputeMode_t* mode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5007 global __nvmlDeviceGetComputeMode 

5008 _check_or_init_nvml() 

5009 if __nvmlDeviceGetComputeMode == NULL: 

5010 with gil: 

5011 raise FunctionNotFoundError("function nvmlDeviceGetComputeMode is not found") 

5012 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlComputeMode_t*) noexcept nogil>__nvmlDeviceGetComputeMode)( 

5013 device, mode) 

5014  

5015  

5016cdef nvmlReturn_t _nvmlDeviceGetCudaComputeCapability(nvmlDevice_t device, int* major, int* minor) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5017 global __nvmlDeviceGetCudaComputeCapability 

5018 _check_or_init_nvml() 

5019 if __nvmlDeviceGetCudaComputeCapability == NULL: 

5020 with gil: 

5021 raise FunctionNotFoundError("function nvmlDeviceGetCudaComputeCapability is not found") 

5022 return (<nvmlReturn_t (*)(nvmlDevice_t, int*, int*) noexcept nogil>__nvmlDeviceGetCudaComputeCapability)( 

5023 device, major, minor) 

5024  

5025  

5026cdef nvmlReturn_t _nvmlDeviceGetDramEncryptionMode(nvmlDevice_t device, nvmlDramEncryptionInfo_t* current, nvmlDramEncryptionInfo_t* pending) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5027 global __nvmlDeviceGetDramEncryptionMode 

5028 _check_or_init_nvml() 

5029 if __nvmlDeviceGetDramEncryptionMode == NULL: 

5030 with gil: 

5031 raise FunctionNotFoundError("function nvmlDeviceGetDramEncryptionMode is not found") 

5032 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlDramEncryptionInfo_t*, nvmlDramEncryptionInfo_t*) noexcept nogil>__nvmlDeviceGetDramEncryptionMode)( 

5033 device, current, pending) 

5034  

5035  

5036cdef nvmlReturn_t _nvmlDeviceSetDramEncryptionMode(nvmlDevice_t device, const nvmlDramEncryptionInfo_t* dramEncryption) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5037 global __nvmlDeviceSetDramEncryptionMode 

5038 _check_or_init_nvml() 

5039 if __nvmlDeviceSetDramEncryptionMode == NULL: 

5040 with gil: 

5041 raise FunctionNotFoundError("function nvmlDeviceSetDramEncryptionMode is not found") 

5042 return (<nvmlReturn_t (*)(nvmlDevice_t, const nvmlDramEncryptionInfo_t*) noexcept nogil>__nvmlDeviceSetDramEncryptionMode)( 

5043 device, dramEncryption) 

5044  

5045  

5046cdef nvmlReturn_t _nvmlDeviceGetEccMode(nvmlDevice_t device, nvmlEnableState_t* current, nvmlEnableState_t* pending) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5047 global __nvmlDeviceGetEccMode 

5048 _check_or_init_nvml() 

5049 if __nvmlDeviceGetEccMode == NULL: 

5050 with gil: 

5051 raise FunctionNotFoundError("function nvmlDeviceGetEccMode is not found") 

5052 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEnableState_t*, nvmlEnableState_t*) noexcept nogil>__nvmlDeviceGetEccMode)( 

5053 device, current, pending) 

5054  

5055  

5056cdef nvmlReturn_t _nvmlDeviceGetDefaultEccMode(nvmlDevice_t device, nvmlEnableState_t* defaultMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5057 global __nvmlDeviceGetDefaultEccMode 

5058 _check_or_init_nvml() 

5059 if __nvmlDeviceGetDefaultEccMode == NULL: 

5060 with gil: 

5061 raise FunctionNotFoundError("function nvmlDeviceGetDefaultEccMode is not found") 

5062 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEnableState_t*) noexcept nogil>__nvmlDeviceGetDefaultEccMode)( 

5063 device, defaultMode) 

5064  

5065  

5066cdef nvmlReturn_t _nvmlDeviceGetBoardId(nvmlDevice_t device, unsigned int* boardId) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5067 global __nvmlDeviceGetBoardId 

5068 _check_or_init_nvml() 

5069 if __nvmlDeviceGetBoardId == NULL: 

5070 with gil: 

5071 raise FunctionNotFoundError("function nvmlDeviceGetBoardId is not found") 

5072 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetBoardId)( 

5073 device, boardId) 

5074  

5075  

5076cdef nvmlReturn_t _nvmlDeviceGetMultiGpuBoard(nvmlDevice_t device, unsigned int* multiGpuBool) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5077 global __nvmlDeviceGetMultiGpuBoard 

5078 _check_or_init_nvml() 

5079 if __nvmlDeviceGetMultiGpuBoard == NULL: 

5080 with gil: 

5081 raise FunctionNotFoundError("function nvmlDeviceGetMultiGpuBoard is not found") 

5082 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetMultiGpuBoard)( 

5083 device, multiGpuBool) 

5084  

5085  

5086cdef nvmlReturn_t _nvmlDeviceGetTotalEccErrors(nvmlDevice_t device, nvmlMemoryErrorType_t errorType, nvmlEccCounterType_t counterType, unsigned long long* eccCounts) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5087 global __nvmlDeviceGetTotalEccErrors 

5088 _check_or_init_nvml() 

5089 if __nvmlDeviceGetTotalEccErrors == NULL: 

5090 with gil: 

5091 raise FunctionNotFoundError("function nvmlDeviceGetTotalEccErrors is not found") 

5092 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlMemoryErrorType_t, nvmlEccCounterType_t, unsigned long long*) noexcept nogil>__nvmlDeviceGetTotalEccErrors)( 

5093 device, errorType, counterType, eccCounts) 

5094  

5095  

5096cdef 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: 

5097 global __nvmlDeviceGetMemoryErrorCounter 

5098 _check_or_init_nvml() 

5099 if __nvmlDeviceGetMemoryErrorCounter == NULL: 

5100 with gil: 

5101 raise FunctionNotFoundError("function nvmlDeviceGetMemoryErrorCounter is not found") 

5102 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlMemoryErrorType_t, nvmlEccCounterType_t, nvmlMemoryLocation_t, unsigned long long*) noexcept nogil>__nvmlDeviceGetMemoryErrorCounter)( 

5103 device, errorType, counterType, locationType, count) 

5104  

5105  

5106cdef nvmlReturn_t _nvmlDeviceGetUtilizationRates(nvmlDevice_t device, nvmlUtilization_t* utilization) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5107 global __nvmlDeviceGetUtilizationRates 

5108 _check_or_init_nvml() 

5109 if __nvmlDeviceGetUtilizationRates == NULL: 

5110 with gil: 

5111 raise FunctionNotFoundError("function nvmlDeviceGetUtilizationRates is not found") 

5112 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlUtilization_t*) noexcept nogil>__nvmlDeviceGetUtilizationRates)( 

5113 device, utilization) 

5114  

5115  

5116cdef nvmlReturn_t _nvmlDeviceGetEncoderUtilization(nvmlDevice_t device, unsigned int* utilization, unsigned int* samplingPeriodUs) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5117 global __nvmlDeviceGetEncoderUtilization 

5118 _check_or_init_nvml() 

5119 if __nvmlDeviceGetEncoderUtilization == NULL: 

5120 with gil: 

5121 raise FunctionNotFoundError("function nvmlDeviceGetEncoderUtilization is not found") 

5122 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, unsigned int*) noexcept nogil>__nvmlDeviceGetEncoderUtilization)( 

5123 device, utilization, samplingPeriodUs) 

5124  

5125  

5126cdef nvmlReturn_t _nvmlDeviceGetEncoderCapacity(nvmlDevice_t device, nvmlEncoderType_t encoderQueryType, unsigned int* encoderCapacity) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5127 global __nvmlDeviceGetEncoderCapacity 

5128 _check_or_init_nvml() 

5129 if __nvmlDeviceGetEncoderCapacity == NULL: 

5130 with gil: 

5131 raise FunctionNotFoundError("function nvmlDeviceGetEncoderCapacity is not found") 

5132 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEncoderType_t, unsigned int*) noexcept nogil>__nvmlDeviceGetEncoderCapacity)( 

5133 device, encoderQueryType, encoderCapacity) 

5134  

5135  

5136cdef nvmlReturn_t _nvmlDeviceGetEncoderStats(nvmlDevice_t device, unsigned int* sessionCount, unsigned int* averageFps, unsigned int* averageLatency) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5137 global __nvmlDeviceGetEncoderStats 

5138 _check_or_init_nvml() 

5139 if __nvmlDeviceGetEncoderStats == NULL: 

5140 with gil: 

5141 raise FunctionNotFoundError("function nvmlDeviceGetEncoderStats is not found") 

5142 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, unsigned int*, unsigned int*) noexcept nogil>__nvmlDeviceGetEncoderStats)( 

5143 device, sessionCount, averageFps, averageLatency) 

5144  

5145  

5146cdef nvmlReturn_t _nvmlDeviceGetEncoderSessions(nvmlDevice_t device, unsigned int* sessionCount, nvmlEncoderSessionInfo_t* sessionInfos) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5147 global __nvmlDeviceGetEncoderSessions 

5148 _check_or_init_nvml() 

5149 if __nvmlDeviceGetEncoderSessions == NULL: 

5150 with gil: 

5151 raise FunctionNotFoundError("function nvmlDeviceGetEncoderSessions is not found") 

5152 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, nvmlEncoderSessionInfo_t*) noexcept nogil>__nvmlDeviceGetEncoderSessions)( 

5153 device, sessionCount, sessionInfos) 

5154  

5155  

5156cdef nvmlReturn_t _nvmlDeviceGetDecoderUtilization(nvmlDevice_t device, unsigned int* utilization, unsigned int* samplingPeriodUs) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5157 global __nvmlDeviceGetDecoderUtilization 

5158 _check_or_init_nvml() 

5159 if __nvmlDeviceGetDecoderUtilization == NULL: 

5160 with gil: 

5161 raise FunctionNotFoundError("function nvmlDeviceGetDecoderUtilization is not found") 

5162 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, unsigned int*) noexcept nogil>__nvmlDeviceGetDecoderUtilization)( 

5163 device, utilization, samplingPeriodUs) 

5164  

5165  

5166cdef nvmlReturn_t _nvmlDeviceGetJpgUtilization(nvmlDevice_t device, unsigned int* utilization, unsigned int* samplingPeriodUs) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5167 global __nvmlDeviceGetJpgUtilization 

5168 _check_or_init_nvml() 

5169 if __nvmlDeviceGetJpgUtilization == NULL: 

5170 with gil: 

5171 raise FunctionNotFoundError("function nvmlDeviceGetJpgUtilization is not found") 

5172 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, unsigned int*) noexcept nogil>__nvmlDeviceGetJpgUtilization)( 

5173 device, utilization, samplingPeriodUs) 

5174  

5175  

5176cdef nvmlReturn_t _nvmlDeviceGetOfaUtilization(nvmlDevice_t device, unsigned int* utilization, unsigned int* samplingPeriodUs) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5177 global __nvmlDeviceGetOfaUtilization 

5178 _check_or_init_nvml() 

5179 if __nvmlDeviceGetOfaUtilization == NULL: 

5180 with gil: 

5181 raise FunctionNotFoundError("function nvmlDeviceGetOfaUtilization is not found") 

5182 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, unsigned int*) noexcept nogil>__nvmlDeviceGetOfaUtilization)( 

5183 device, utilization, samplingPeriodUs) 

5184  

5185  

5186cdef nvmlReturn_t _nvmlDeviceGetFBCStats(nvmlDevice_t device, nvmlFBCStats_t* fbcStats) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5187 global __nvmlDeviceGetFBCStats 

5188 _check_or_init_nvml() 

5189 if __nvmlDeviceGetFBCStats == NULL: 

5190 with gil: 

5191 raise FunctionNotFoundError("function nvmlDeviceGetFBCStats is not found") 

5192 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlFBCStats_t*) noexcept nogil>__nvmlDeviceGetFBCStats)( 

5193 device, fbcStats) 

5194  

5195  

5196cdef nvmlReturn_t _nvmlDeviceGetFBCSessions(nvmlDevice_t device, unsigned int* sessionCount, nvmlFBCSessionInfo_t* sessionInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5197 global __nvmlDeviceGetFBCSessions 

5198 _check_or_init_nvml() 

5199 if __nvmlDeviceGetFBCSessions == NULL: 

5200 with gil: 

5201 raise FunctionNotFoundError("function nvmlDeviceGetFBCSessions is not found") 

5202 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, nvmlFBCSessionInfo_t*) noexcept nogil>__nvmlDeviceGetFBCSessions)( 

5203 device, sessionCount, sessionInfo) 

5204  

5205  

5206cdef nvmlReturn_t _nvmlDeviceGetDriverModel_v2(nvmlDevice_t device, nvmlDriverModel_t* current, nvmlDriverModel_t* pending) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5207 global __nvmlDeviceGetDriverModel_v2 

5208 _check_or_init_nvml() 

5209 if __nvmlDeviceGetDriverModel_v2 == NULL: 

5210 with gil: 

5211 raise FunctionNotFoundError("function nvmlDeviceGetDriverModel_v2 is not found") 

5212 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlDriverModel_t*, nvmlDriverModel_t*) noexcept nogil>__nvmlDeviceGetDriverModel_v2)( 

5213 device, current, pending) 

5214  

5215  

5216cdef nvmlReturn_t _nvmlDeviceGetVbiosVersion(nvmlDevice_t device, char* version, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5217 global __nvmlDeviceGetVbiosVersion 

5218 _check_or_init_nvml() 

5219 if __nvmlDeviceGetVbiosVersion == NULL: 

5220 with gil: 

5221 raise FunctionNotFoundError("function nvmlDeviceGetVbiosVersion is not found") 

5222 return (<nvmlReturn_t (*)(nvmlDevice_t, char*, unsigned int) noexcept nogil>__nvmlDeviceGetVbiosVersion)( 

5223 device, version, length) 

5224  

5225  

5226cdef nvmlReturn_t _nvmlDeviceGetBridgeChipInfo(nvmlDevice_t device, nvmlBridgeChipHierarchy_t* bridgeHierarchy) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5227 global __nvmlDeviceGetBridgeChipInfo 

5228 _check_or_init_nvml() 

5229 if __nvmlDeviceGetBridgeChipInfo == NULL: 

5230 with gil: 

5231 raise FunctionNotFoundError("function nvmlDeviceGetBridgeChipInfo is not found") 

5232 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlBridgeChipHierarchy_t*) noexcept nogil>__nvmlDeviceGetBridgeChipInfo)( 

5233 device, bridgeHierarchy) 

5234  

5235  

5236cdef nvmlReturn_t _nvmlDeviceGetComputeRunningProcesses_v3(nvmlDevice_t device, unsigned int* infoCount, nvmlProcessInfo_t* infos) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5237 global __nvmlDeviceGetComputeRunningProcesses_v3 

5238 _check_or_init_nvml() 

5239 if __nvmlDeviceGetComputeRunningProcesses_v3 == NULL: 

5240 with gil: 

5241 raise FunctionNotFoundError("function nvmlDeviceGetComputeRunningProcesses_v3 is not found") 

5242 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, nvmlProcessInfo_t*) noexcept nogil>__nvmlDeviceGetComputeRunningProcesses_v3)( 

5243 device, infoCount, infos) 

5244  

5245  

5246cdef nvmlReturn_t _nvmlDeviceGetMPSComputeRunningProcesses_v3(nvmlDevice_t device, unsigned int* infoCount, nvmlProcessInfo_t* infos) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5247 global __nvmlDeviceGetMPSComputeRunningProcesses_v3 

5248 _check_or_init_nvml() 

5249 if __nvmlDeviceGetMPSComputeRunningProcesses_v3 == NULL: 

5250 with gil: 

5251 raise FunctionNotFoundError("function nvmlDeviceGetMPSComputeRunningProcesses_v3 is not found") 

5252 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, nvmlProcessInfo_t*) noexcept nogil>__nvmlDeviceGetMPSComputeRunningProcesses_v3)( 

5253 device, infoCount, infos) 

5254  

5255  

5256cdef nvmlReturn_t _nvmlDeviceGetRunningProcessDetailList(nvmlDevice_t device, nvmlProcessDetailList_t* plist) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5257 global __nvmlDeviceGetRunningProcessDetailList 

5258 _check_or_init_nvml() 

5259 if __nvmlDeviceGetRunningProcessDetailList == NULL: 

5260 with gil: 

5261 raise FunctionNotFoundError("function nvmlDeviceGetRunningProcessDetailList is not found") 

5262 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlProcessDetailList_t*) noexcept nogil>__nvmlDeviceGetRunningProcessDetailList)( 

5263 device, plist) 

5264  

5265  

5266cdef nvmlReturn_t _nvmlDeviceOnSameBoard(nvmlDevice_t device1, nvmlDevice_t device2, int* onSameBoard) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5267 global __nvmlDeviceOnSameBoard 

5268 _check_or_init_nvml() 

5269 if __nvmlDeviceOnSameBoard == NULL: 

5270 with gil: 

5271 raise FunctionNotFoundError("function nvmlDeviceOnSameBoard is not found") 

5272 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlDevice_t, int*) noexcept nogil>__nvmlDeviceOnSameBoard)( 

5273 device1, device2, onSameBoard) 

5274  

5275  

5276cdef nvmlReturn_t _nvmlDeviceGetAPIRestriction(nvmlDevice_t device, nvmlRestrictedAPI_t apiType, nvmlEnableState_t* isRestricted) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5277 global __nvmlDeviceGetAPIRestriction 

5278 _check_or_init_nvml() 

5279 if __nvmlDeviceGetAPIRestriction == NULL: 

5280 with gil: 

5281 raise FunctionNotFoundError("function nvmlDeviceGetAPIRestriction is not found") 

5282 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlRestrictedAPI_t, nvmlEnableState_t*) noexcept nogil>__nvmlDeviceGetAPIRestriction)( 

5283 device, apiType, isRestricted) 

5284  

5285  

5286cdef 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: 

5287 global __nvmlDeviceGetSamples 

5288 _check_or_init_nvml() 

5289 if __nvmlDeviceGetSamples == NULL: 

5290 with gil: 

5291 raise FunctionNotFoundError("function nvmlDeviceGetSamples is not found") 

5292 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlSamplingType_t, unsigned long long, nvmlValueType_t*, unsigned int*, nvmlSample_t*) noexcept nogil>__nvmlDeviceGetSamples)( 

5293 device, type, lastSeenTimeStamp, sampleValType, sampleCount, samples) 

5294  

5295  

5296cdef nvmlReturn_t _nvmlDeviceGetBAR1MemoryInfo(nvmlDevice_t device, nvmlBAR1Memory_t* bar1Memory) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5297 global __nvmlDeviceGetBAR1MemoryInfo 

5298 _check_or_init_nvml() 

5299 if __nvmlDeviceGetBAR1MemoryInfo == NULL: 

5300 with gil: 

5301 raise FunctionNotFoundError("function nvmlDeviceGetBAR1MemoryInfo is not found") 

5302 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlBAR1Memory_t*) noexcept nogil>__nvmlDeviceGetBAR1MemoryInfo)( 

5303 device, bar1Memory) 

5304  

5305  

5306cdef nvmlReturn_t _nvmlDeviceGetIrqNum(nvmlDevice_t device, unsigned int* irqNum) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5307 global __nvmlDeviceGetIrqNum 

5308 _check_or_init_nvml() 

5309 if __nvmlDeviceGetIrqNum == NULL: 

5310 with gil: 

5311 raise FunctionNotFoundError("function nvmlDeviceGetIrqNum is not found") 

5312 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetIrqNum)( 

5313 device, irqNum) 

5314  

5315  

5316cdef nvmlReturn_t _nvmlDeviceGetNumGpuCores(nvmlDevice_t device, unsigned int* numCores) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5317 global __nvmlDeviceGetNumGpuCores 

5318 _check_or_init_nvml() 

5319 if __nvmlDeviceGetNumGpuCores == NULL: 

5320 with gil: 

5321 raise FunctionNotFoundError("function nvmlDeviceGetNumGpuCores is not found") 

5322 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetNumGpuCores)( 

5323 device, numCores) 

5324  

5325  

5326cdef nvmlReturn_t _nvmlDeviceGetPowerSource(nvmlDevice_t device, nvmlPowerSource_t* powerSource) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5327 global __nvmlDeviceGetPowerSource 

5328 _check_or_init_nvml() 

5329 if __nvmlDeviceGetPowerSource == NULL: 

5330 with gil: 

5331 raise FunctionNotFoundError("function nvmlDeviceGetPowerSource is not found") 

5332 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPowerSource_t*) noexcept nogil>__nvmlDeviceGetPowerSource)( 

5333 device, powerSource) 

5334  

5335  

5336cdef nvmlReturn_t _nvmlDeviceGetMemoryBusWidth(nvmlDevice_t device, unsigned int* busWidth) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5337 global __nvmlDeviceGetMemoryBusWidth 

5338 _check_or_init_nvml() 

5339 if __nvmlDeviceGetMemoryBusWidth == NULL: 

5340 with gil: 

5341 raise FunctionNotFoundError("function nvmlDeviceGetMemoryBusWidth is not found") 

5342 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetMemoryBusWidth)( 

5343 device, busWidth) 

5344  

5345  

5346cdef nvmlReturn_t _nvmlDeviceGetPcieLinkMaxSpeed(nvmlDevice_t device, unsigned int* maxSpeed) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5347 global __nvmlDeviceGetPcieLinkMaxSpeed 

5348 _check_or_init_nvml() 

5349 if __nvmlDeviceGetPcieLinkMaxSpeed == NULL: 

5350 with gil: 

5351 raise FunctionNotFoundError("function nvmlDeviceGetPcieLinkMaxSpeed is not found") 

5352 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetPcieLinkMaxSpeed)( 

5353 device, maxSpeed) 

5354  

5355  

5356cdef nvmlReturn_t _nvmlDeviceGetPcieSpeed(nvmlDevice_t device, unsigned int* pcieSpeed) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5357 global __nvmlDeviceGetPcieSpeed 

5358 _check_or_init_nvml() 

5359 if __nvmlDeviceGetPcieSpeed == NULL: 

5360 with gil: 

5361 raise FunctionNotFoundError("function nvmlDeviceGetPcieSpeed is not found") 

5362 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetPcieSpeed)( 

5363 device, pcieSpeed) 

5364  

5365  

5366cdef nvmlReturn_t _nvmlDeviceGetAdaptiveClockInfoStatus(nvmlDevice_t device, unsigned int* adaptiveClockStatus) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5367 global __nvmlDeviceGetAdaptiveClockInfoStatus 

5368 _check_or_init_nvml() 

5369 if __nvmlDeviceGetAdaptiveClockInfoStatus == NULL: 

5370 with gil: 

5371 raise FunctionNotFoundError("function nvmlDeviceGetAdaptiveClockInfoStatus is not found") 

5372 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetAdaptiveClockInfoStatus)( 

5373 device, adaptiveClockStatus) 

5374  

5375  

5376cdef nvmlReturn_t _nvmlDeviceGetBusType(nvmlDevice_t device, nvmlBusType_t* type) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5377 global __nvmlDeviceGetBusType 

5378 _check_or_init_nvml() 

5379 if __nvmlDeviceGetBusType == NULL: 

5380 with gil: 

5381 raise FunctionNotFoundError("function nvmlDeviceGetBusType is not found") 

5382 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlBusType_t*) noexcept nogil>__nvmlDeviceGetBusType)( 

5383 device, type) 

5384  

5385  

5386cdef nvmlReturn_t _nvmlDeviceGetGpuFabricInfoV(nvmlDevice_t device, nvmlGpuFabricInfoV_t* gpuFabricInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5387 global __nvmlDeviceGetGpuFabricInfoV 

5388 _check_or_init_nvml() 

5389 if __nvmlDeviceGetGpuFabricInfoV == NULL: 

5390 with gil: 

5391 raise FunctionNotFoundError("function nvmlDeviceGetGpuFabricInfoV is not found") 

5392 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlGpuFabricInfoV_t*) noexcept nogil>__nvmlDeviceGetGpuFabricInfoV)( 

5393 device, gpuFabricInfo) 

5394  

5395  

5396cdef nvmlReturn_t _nvmlSystemGetConfComputeCapabilities(nvmlConfComputeSystemCaps_t* capabilities) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5397 global __nvmlSystemGetConfComputeCapabilities 

5398 _check_or_init_nvml() 

5399 if __nvmlSystemGetConfComputeCapabilities == NULL: 

5400 with gil: 

5401 raise FunctionNotFoundError("function nvmlSystemGetConfComputeCapabilities is not found") 

5402 return (<nvmlReturn_t (*)(nvmlConfComputeSystemCaps_t*) noexcept nogil>__nvmlSystemGetConfComputeCapabilities)( 

5403 capabilities) 

5404  

5405  

5406cdef nvmlReturn_t _nvmlSystemGetConfComputeState(nvmlConfComputeSystemState_t* state) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5407 global __nvmlSystemGetConfComputeState 

5408 _check_or_init_nvml() 

5409 if __nvmlSystemGetConfComputeState == NULL: 

5410 with gil: 

5411 raise FunctionNotFoundError("function nvmlSystemGetConfComputeState is not found") 

5412 return (<nvmlReturn_t (*)(nvmlConfComputeSystemState_t*) noexcept nogil>__nvmlSystemGetConfComputeState)( 

5413 state) 

5414  

5415  

5416cdef nvmlReturn_t _nvmlDeviceGetConfComputeMemSizeInfo(nvmlDevice_t device, nvmlConfComputeMemSizeInfo_t* memInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5417 global __nvmlDeviceGetConfComputeMemSizeInfo 

5418 _check_or_init_nvml() 

5419 if __nvmlDeviceGetConfComputeMemSizeInfo == NULL: 

5420 with gil: 

5421 raise FunctionNotFoundError("function nvmlDeviceGetConfComputeMemSizeInfo is not found") 

5422 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlConfComputeMemSizeInfo_t*) noexcept nogil>__nvmlDeviceGetConfComputeMemSizeInfo)( 

5423 device, memInfo) 

5424  

5425  

5426cdef nvmlReturn_t _nvmlSystemGetConfComputeGpusReadyState(unsigned int* isAcceptingWork) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5427 global __nvmlSystemGetConfComputeGpusReadyState 

5428 _check_or_init_nvml() 

5429 if __nvmlSystemGetConfComputeGpusReadyState == NULL: 

5430 with gil: 

5431 raise FunctionNotFoundError("function nvmlSystemGetConfComputeGpusReadyState is not found") 

5432 return (<nvmlReturn_t (*)(unsigned int*) noexcept nogil>__nvmlSystemGetConfComputeGpusReadyState)( 

5433 isAcceptingWork) 

5434  

5435  

5436cdef nvmlReturn_t _nvmlDeviceGetConfComputeProtectedMemoryUsage(nvmlDevice_t device, nvmlMemory_t* memory) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5437 global __nvmlDeviceGetConfComputeProtectedMemoryUsage 

5438 _check_or_init_nvml() 

5439 if __nvmlDeviceGetConfComputeProtectedMemoryUsage == NULL: 

5440 with gil: 

5441 raise FunctionNotFoundError("function nvmlDeviceGetConfComputeProtectedMemoryUsage is not found") 

5442 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlMemory_t*) noexcept nogil>__nvmlDeviceGetConfComputeProtectedMemoryUsage)( 

5443 device, memory) 

5444  

5445  

5446cdef nvmlReturn_t _nvmlDeviceGetConfComputeGpuCertificate(nvmlDevice_t device, nvmlConfComputeGpuCertificate_t* gpuCert) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5447 global __nvmlDeviceGetConfComputeGpuCertificate 

5448 _check_or_init_nvml() 

5449 if __nvmlDeviceGetConfComputeGpuCertificate == NULL: 

5450 with gil: 

5451 raise FunctionNotFoundError("function nvmlDeviceGetConfComputeGpuCertificate is not found") 

5452 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlConfComputeGpuCertificate_t*) noexcept nogil>__nvmlDeviceGetConfComputeGpuCertificate)( 

5453 device, gpuCert) 

5454  

5455  

5456cdef nvmlReturn_t _nvmlDeviceGetConfComputeGpuAttestationReport(nvmlDevice_t device, nvmlConfComputeGpuAttestationReport_t* gpuAtstReport) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5457 global __nvmlDeviceGetConfComputeGpuAttestationReport 

5458 _check_or_init_nvml() 

5459 if __nvmlDeviceGetConfComputeGpuAttestationReport == NULL: 

5460 with gil: 

5461 raise FunctionNotFoundError("function nvmlDeviceGetConfComputeGpuAttestationReport is not found") 

5462 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlConfComputeGpuAttestationReport_t*) noexcept nogil>__nvmlDeviceGetConfComputeGpuAttestationReport)( 

5463 device, gpuAtstReport) 

5464  

5465  

5466cdef nvmlReturn_t _nvmlSystemGetConfComputeKeyRotationThresholdInfo(nvmlConfComputeGetKeyRotationThresholdInfo_t* pKeyRotationThrInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5467 global __nvmlSystemGetConfComputeKeyRotationThresholdInfo 

5468 _check_or_init_nvml() 

5469 if __nvmlSystemGetConfComputeKeyRotationThresholdInfo == NULL: 

5470 with gil: 

5471 raise FunctionNotFoundError("function nvmlSystemGetConfComputeKeyRotationThresholdInfo is not found") 

5472 return (<nvmlReturn_t (*)(nvmlConfComputeGetKeyRotationThresholdInfo_t*) noexcept nogil>__nvmlSystemGetConfComputeKeyRotationThresholdInfo)( 

5473 pKeyRotationThrInfo) 

5474  

5475  

5476cdef nvmlReturn_t _nvmlDeviceSetConfComputeUnprotectedMemSize(nvmlDevice_t device, unsigned long long sizeKiB) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5477 global __nvmlDeviceSetConfComputeUnprotectedMemSize 

5478 _check_or_init_nvml() 

5479 if __nvmlDeviceSetConfComputeUnprotectedMemSize == NULL: 

5480 with gil: 

5481 raise FunctionNotFoundError("function nvmlDeviceSetConfComputeUnprotectedMemSize is not found") 

5482 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned long long) noexcept nogil>__nvmlDeviceSetConfComputeUnprotectedMemSize)( 

5483 device, sizeKiB) 

5484  

5485  

5486cdef nvmlReturn_t _nvmlSystemSetConfComputeGpusReadyState(unsigned int isAcceptingWork) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5487 global __nvmlSystemSetConfComputeGpusReadyState 

5488 _check_or_init_nvml() 

5489 if __nvmlSystemSetConfComputeGpusReadyState == NULL: 

5490 with gil: 

5491 raise FunctionNotFoundError("function nvmlSystemSetConfComputeGpusReadyState is not found") 

5492 return (<nvmlReturn_t (*)(unsigned int) noexcept nogil>__nvmlSystemSetConfComputeGpusReadyState)( 

5493 isAcceptingWork) 

5494  

5495  

5496cdef nvmlReturn_t _nvmlSystemSetConfComputeKeyRotationThresholdInfo(nvmlConfComputeSetKeyRotationThresholdInfo_t* pKeyRotationThrInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5497 global __nvmlSystemSetConfComputeKeyRotationThresholdInfo 

5498 _check_or_init_nvml() 

5499 if __nvmlSystemSetConfComputeKeyRotationThresholdInfo == NULL: 

5500 with gil: 

5501 raise FunctionNotFoundError("function nvmlSystemSetConfComputeKeyRotationThresholdInfo is not found") 

5502 return (<nvmlReturn_t (*)(nvmlConfComputeSetKeyRotationThresholdInfo_t*) noexcept nogil>__nvmlSystemSetConfComputeKeyRotationThresholdInfo)( 

5503 pKeyRotationThrInfo) 

5504  

5505  

5506cdef nvmlReturn_t _nvmlSystemGetConfComputeSettings(nvmlSystemConfComputeSettings_t* settings) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5507 global __nvmlSystemGetConfComputeSettings 

5508 _check_or_init_nvml() 

5509 if __nvmlSystemGetConfComputeSettings == NULL: 

5510 with gil: 

5511 raise FunctionNotFoundError("function nvmlSystemGetConfComputeSettings is not found") 

5512 return (<nvmlReturn_t (*)(nvmlSystemConfComputeSettings_t*) noexcept nogil>__nvmlSystemGetConfComputeSettings)( 

5513 settings) 

5514  

5515  

5516cdef nvmlReturn_t _nvmlDeviceGetGspFirmwareVersion(nvmlDevice_t device, char* version) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5517 global __nvmlDeviceGetGspFirmwareVersion 

5518 _check_or_init_nvml() 

5519 if __nvmlDeviceGetGspFirmwareVersion == NULL: 

5520 with gil: 

5521 raise FunctionNotFoundError("function nvmlDeviceGetGspFirmwareVersion is not found") 

5522 return (<nvmlReturn_t (*)(nvmlDevice_t, char*) noexcept nogil>__nvmlDeviceGetGspFirmwareVersion)( 

5523 device, version) 

5524  

5525  

5526cdef nvmlReturn_t _nvmlDeviceGetGspFirmwareMode(nvmlDevice_t device, unsigned int* isEnabled, unsigned int* defaultMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5527 global __nvmlDeviceGetGspFirmwareMode 

5528 _check_or_init_nvml() 

5529 if __nvmlDeviceGetGspFirmwareMode == NULL: 

5530 with gil: 

5531 raise FunctionNotFoundError("function nvmlDeviceGetGspFirmwareMode is not found") 

5532 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, unsigned int*) noexcept nogil>__nvmlDeviceGetGspFirmwareMode)( 

5533 device, isEnabled, defaultMode) 

5534  

5535  

5536cdef nvmlReturn_t _nvmlDeviceGetSramEccErrorStatus(nvmlDevice_t device, nvmlEccSramErrorStatus_t* status) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5537 global __nvmlDeviceGetSramEccErrorStatus 

5538 _check_or_init_nvml() 

5539 if __nvmlDeviceGetSramEccErrorStatus == NULL: 

5540 with gil: 

5541 raise FunctionNotFoundError("function nvmlDeviceGetSramEccErrorStatus is not found") 

5542 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEccSramErrorStatus_t*) noexcept nogil>__nvmlDeviceGetSramEccErrorStatus)( 

5543 device, status) 

5544  

5545  

5546cdef nvmlReturn_t _nvmlDeviceGetAccountingMode(nvmlDevice_t device, nvmlEnableState_t* mode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5547 global __nvmlDeviceGetAccountingMode 

5548 _check_or_init_nvml() 

5549 if __nvmlDeviceGetAccountingMode == NULL: 

5550 with gil: 

5551 raise FunctionNotFoundError("function nvmlDeviceGetAccountingMode is not found") 

5552 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEnableState_t*) noexcept nogil>__nvmlDeviceGetAccountingMode)( 

5553 device, mode) 

5554  

5555  

5556cdef nvmlReturn_t _nvmlDeviceGetAccountingStats(nvmlDevice_t device, unsigned int pid, nvmlAccountingStats_t* stats) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5557 global __nvmlDeviceGetAccountingStats 

5558 _check_or_init_nvml() 

5559 if __nvmlDeviceGetAccountingStats == NULL: 

5560 with gil: 

5561 raise FunctionNotFoundError("function nvmlDeviceGetAccountingStats is not found") 

5562 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlAccountingStats_t*) noexcept nogil>__nvmlDeviceGetAccountingStats)( 

5563 device, pid, stats) 

5564  

5565  

5566cdef nvmlReturn_t _nvmlDeviceGetAccountingPids(nvmlDevice_t device, unsigned int* count, unsigned int* pids) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5567 global __nvmlDeviceGetAccountingPids 

5568 _check_or_init_nvml() 

5569 if __nvmlDeviceGetAccountingPids == NULL: 

5570 with gil: 

5571 raise FunctionNotFoundError("function nvmlDeviceGetAccountingPids is not found") 

5572 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, unsigned int*) noexcept nogil>__nvmlDeviceGetAccountingPids)( 

5573 device, count, pids) 

5574  

5575  

5576cdef nvmlReturn_t _nvmlDeviceGetAccountingBufferSize(nvmlDevice_t device, unsigned int* bufferSize) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5577 global __nvmlDeviceGetAccountingBufferSize 

5578 _check_or_init_nvml() 

5579 if __nvmlDeviceGetAccountingBufferSize == NULL: 

5580 with gil: 

5581 raise FunctionNotFoundError("function nvmlDeviceGetAccountingBufferSize is not found") 

5582 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetAccountingBufferSize)( 

5583 device, bufferSize) 

5584  

5585  

5586cdef nvmlReturn_t _nvmlDeviceGetRetiredPages(nvmlDevice_t device, nvmlPageRetirementCause_t cause, unsigned int* pageCount, unsigned long long* addresses) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5587 global __nvmlDeviceGetRetiredPages 

5588 _check_or_init_nvml() 

5589 if __nvmlDeviceGetRetiredPages == NULL: 

5590 with gil: 

5591 raise FunctionNotFoundError("function nvmlDeviceGetRetiredPages is not found") 

5592 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPageRetirementCause_t, unsigned int*, unsigned long long*) noexcept nogil>__nvmlDeviceGetRetiredPages)( 

5593 device, cause, pageCount, addresses) 

5594  

5595  

5596cdef 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: 

5597 global __nvmlDeviceGetRetiredPages_v2 

5598 _check_or_init_nvml() 

5599 if __nvmlDeviceGetRetiredPages_v2 == NULL: 

5600 with gil: 

5601 raise FunctionNotFoundError("function nvmlDeviceGetRetiredPages_v2 is not found") 

5602 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPageRetirementCause_t, unsigned int*, unsigned long long*, unsigned long long*) noexcept nogil>__nvmlDeviceGetRetiredPages_v2)( 

5603 device, cause, pageCount, addresses, timestamps) 

5604  

5605  

5606cdef nvmlReturn_t _nvmlDeviceGetRetiredPagesPendingStatus(nvmlDevice_t device, nvmlEnableState_t* isPending) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5607 global __nvmlDeviceGetRetiredPagesPendingStatus 

5608 _check_or_init_nvml() 

5609 if __nvmlDeviceGetRetiredPagesPendingStatus == NULL: 

5610 with gil: 

5611 raise FunctionNotFoundError("function nvmlDeviceGetRetiredPagesPendingStatus is not found") 

5612 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEnableState_t*) noexcept nogil>__nvmlDeviceGetRetiredPagesPendingStatus)( 

5613 device, isPending) 

5614  

5615  

5616cdef 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: 

5617 global __nvmlDeviceGetRemappedRows 

5618 _check_or_init_nvml() 

5619 if __nvmlDeviceGetRemappedRows == NULL: 

5620 with gil: 

5621 raise FunctionNotFoundError("function nvmlDeviceGetRemappedRows is not found") 

5622 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, unsigned int*, unsigned int*, unsigned int*) noexcept nogil>__nvmlDeviceGetRemappedRows)( 

5623 device, corrRows, uncRows, isPending, failureOccurred) 

5624  

5625  

5626cdef nvmlReturn_t _nvmlDeviceGetRowRemapperHistogram(nvmlDevice_t device, nvmlRowRemapperHistogramValues_t* values) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5627 global __nvmlDeviceGetRowRemapperHistogram 

5628 _check_or_init_nvml() 

5629 if __nvmlDeviceGetRowRemapperHistogram == NULL: 

5630 with gil: 

5631 raise FunctionNotFoundError("function nvmlDeviceGetRowRemapperHistogram is not found") 

5632 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlRowRemapperHistogramValues_t*) noexcept nogil>__nvmlDeviceGetRowRemapperHistogram)( 

5633 device, values) 

5634  

5635  

5636cdef nvmlReturn_t _nvmlDeviceGetArchitecture(nvmlDevice_t device, nvmlDeviceArchitecture_t* arch) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5637 global __nvmlDeviceGetArchitecture 

5638 _check_or_init_nvml() 

5639 if __nvmlDeviceGetArchitecture == NULL: 

5640 with gil: 

5641 raise FunctionNotFoundError("function nvmlDeviceGetArchitecture is not found") 

5642 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlDeviceArchitecture_t*) noexcept nogil>__nvmlDeviceGetArchitecture)( 

5643 device, arch) 

5644  

5645  

5646cdef nvmlReturn_t _nvmlDeviceGetClkMonStatus(nvmlDevice_t device, nvmlClkMonStatus_t* status) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5647 global __nvmlDeviceGetClkMonStatus 

5648 _check_or_init_nvml() 

5649 if __nvmlDeviceGetClkMonStatus == NULL: 

5650 with gil: 

5651 raise FunctionNotFoundError("function nvmlDeviceGetClkMonStatus is not found") 

5652 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlClkMonStatus_t*) noexcept nogil>__nvmlDeviceGetClkMonStatus)( 

5653 device, status) 

5654  

5655  

5656cdef nvmlReturn_t _nvmlDeviceGetProcessUtilization(nvmlDevice_t device, nvmlProcessUtilizationSample_t* utilization, unsigned int* processSamplesCount, unsigned long long lastSeenTimeStamp) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5657 global __nvmlDeviceGetProcessUtilization 

5658 _check_or_init_nvml() 

5659 if __nvmlDeviceGetProcessUtilization == NULL: 

5660 with gil: 

5661 raise FunctionNotFoundError("function nvmlDeviceGetProcessUtilization is not found") 

5662 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlProcessUtilizationSample_t*, unsigned int*, unsigned long long) noexcept nogil>__nvmlDeviceGetProcessUtilization)( 

5663 device, utilization, processSamplesCount, lastSeenTimeStamp) 

5664  

5665  

5666cdef nvmlReturn_t _nvmlDeviceGetProcessesUtilizationInfo(nvmlDevice_t device, nvmlProcessesUtilizationInfo_t* procesesUtilInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5667 global __nvmlDeviceGetProcessesUtilizationInfo 

5668 _check_or_init_nvml() 

5669 if __nvmlDeviceGetProcessesUtilizationInfo == NULL: 

5670 with gil: 

5671 raise FunctionNotFoundError("function nvmlDeviceGetProcessesUtilizationInfo is not found") 

5672 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlProcessesUtilizationInfo_t*) noexcept nogil>__nvmlDeviceGetProcessesUtilizationInfo)( 

5673 device, procesesUtilInfo) 

5674  

5675  

5676cdef nvmlReturn_t _nvmlDeviceGetPlatformInfo(nvmlDevice_t device, nvmlPlatformInfo_t* platformInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5677 global __nvmlDeviceGetPlatformInfo 

5678 _check_or_init_nvml() 

5679 if __nvmlDeviceGetPlatformInfo == NULL: 

5680 with gil: 

5681 raise FunctionNotFoundError("function nvmlDeviceGetPlatformInfo is not found") 

5682 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPlatformInfo_t*) noexcept nogil>__nvmlDeviceGetPlatformInfo)( 

5683 device, platformInfo) 

5684  

5685  

5686cdef nvmlReturn_t _nvmlUnitSetLedState(nvmlUnit_t unit, nvmlLedColor_t color) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5687 global __nvmlUnitSetLedState 

5688 _check_or_init_nvml() 

5689 if __nvmlUnitSetLedState == NULL: 

5690 with gil: 

5691 raise FunctionNotFoundError("function nvmlUnitSetLedState is not found") 

5692 return (<nvmlReturn_t (*)(nvmlUnit_t, nvmlLedColor_t) noexcept nogil>__nvmlUnitSetLedState)( 

5693 unit, color) 

5694  

5695  

5696cdef nvmlReturn_t _nvmlDeviceSetPersistenceMode(nvmlDevice_t device, nvmlEnableState_t mode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5697 global __nvmlDeviceSetPersistenceMode 

5698 _check_or_init_nvml() 

5699 if __nvmlDeviceSetPersistenceMode == NULL: 

5700 with gil: 

5701 raise FunctionNotFoundError("function nvmlDeviceSetPersistenceMode is not found") 

5702 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEnableState_t) noexcept nogil>__nvmlDeviceSetPersistenceMode)( 

5703 device, mode) 

5704  

5705  

5706cdef nvmlReturn_t _nvmlDeviceSetComputeMode(nvmlDevice_t device, nvmlComputeMode_t mode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5707 global __nvmlDeviceSetComputeMode 

5708 _check_or_init_nvml() 

5709 if __nvmlDeviceSetComputeMode == NULL: 

5710 with gil: 

5711 raise FunctionNotFoundError("function nvmlDeviceSetComputeMode is not found") 

5712 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlComputeMode_t) noexcept nogil>__nvmlDeviceSetComputeMode)( 

5713 device, mode) 

5714  

5715  

5716cdef nvmlReturn_t _nvmlDeviceSetEccMode(nvmlDevice_t device, nvmlEnableState_t ecc) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5717 global __nvmlDeviceSetEccMode 

5718 _check_or_init_nvml() 

5719 if __nvmlDeviceSetEccMode == NULL: 

5720 with gil: 

5721 raise FunctionNotFoundError("function nvmlDeviceSetEccMode is not found") 

5722 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEnableState_t) noexcept nogil>__nvmlDeviceSetEccMode)( 

5723 device, ecc) 

5724  

5725  

5726cdef nvmlReturn_t _nvmlDeviceClearEccErrorCounts(nvmlDevice_t device, nvmlEccCounterType_t counterType) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5727 global __nvmlDeviceClearEccErrorCounts 

5728 _check_or_init_nvml() 

5729 if __nvmlDeviceClearEccErrorCounts == NULL: 

5730 with gil: 

5731 raise FunctionNotFoundError("function nvmlDeviceClearEccErrorCounts is not found") 

5732 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEccCounterType_t) noexcept nogil>__nvmlDeviceClearEccErrorCounts)( 

5733 device, counterType) 

5734  

5735  

5736cdef nvmlReturn_t _nvmlDeviceSetDriverModel(nvmlDevice_t device, nvmlDriverModel_t driverModel, unsigned int flags) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5737 global __nvmlDeviceSetDriverModel 

5738 _check_or_init_nvml() 

5739 if __nvmlDeviceSetDriverModel == NULL: 

5740 with gil: 

5741 raise FunctionNotFoundError("function nvmlDeviceSetDriverModel is not found") 

5742 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlDriverModel_t, unsigned int) noexcept nogil>__nvmlDeviceSetDriverModel)( 

5743 device, driverModel, flags) 

5744  

5745  

5746cdef nvmlReturn_t _nvmlDeviceSetGpuLockedClocks(nvmlDevice_t device, unsigned int minGpuClockMHz, unsigned int maxGpuClockMHz) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5747 global __nvmlDeviceSetGpuLockedClocks 

5748 _check_or_init_nvml() 

5749 if __nvmlDeviceSetGpuLockedClocks == NULL: 

5750 with gil: 

5751 raise FunctionNotFoundError("function nvmlDeviceSetGpuLockedClocks is not found") 

5752 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, unsigned int) noexcept nogil>__nvmlDeviceSetGpuLockedClocks)( 

5753 device, minGpuClockMHz, maxGpuClockMHz) 

5754  

5755  

5756cdef nvmlReturn_t _nvmlDeviceResetGpuLockedClocks(nvmlDevice_t device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5757 global __nvmlDeviceResetGpuLockedClocks 

5758 _check_or_init_nvml() 

5759 if __nvmlDeviceResetGpuLockedClocks == NULL: 

5760 with gil: 

5761 raise FunctionNotFoundError("function nvmlDeviceResetGpuLockedClocks is not found") 

5762 return (<nvmlReturn_t (*)(nvmlDevice_t) noexcept nogil>__nvmlDeviceResetGpuLockedClocks)( 

5763 device) 

5764  

5765  

5766cdef nvmlReturn_t _nvmlDeviceSetMemoryLockedClocks(nvmlDevice_t device, unsigned int minMemClockMHz, unsigned int maxMemClockMHz) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5767 global __nvmlDeviceSetMemoryLockedClocks 

5768 _check_or_init_nvml() 

5769 if __nvmlDeviceSetMemoryLockedClocks == NULL: 

5770 with gil: 

5771 raise FunctionNotFoundError("function nvmlDeviceSetMemoryLockedClocks is not found") 

5772 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, unsigned int) noexcept nogil>__nvmlDeviceSetMemoryLockedClocks)( 

5773 device, minMemClockMHz, maxMemClockMHz) 

5774  

5775  

5776cdef nvmlReturn_t _nvmlDeviceResetMemoryLockedClocks(nvmlDevice_t device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5777 global __nvmlDeviceResetMemoryLockedClocks 

5778 _check_or_init_nvml() 

5779 if __nvmlDeviceResetMemoryLockedClocks == NULL: 

5780 with gil: 

5781 raise FunctionNotFoundError("function nvmlDeviceResetMemoryLockedClocks is not found") 

5782 return (<nvmlReturn_t (*)(nvmlDevice_t) noexcept nogil>__nvmlDeviceResetMemoryLockedClocks)( 

5783 device) 

5784  

5785  

5786cdef nvmlReturn_t _nvmlDeviceSetAutoBoostedClocksEnabled(nvmlDevice_t device, nvmlEnableState_t enabled) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5787 global __nvmlDeviceSetAutoBoostedClocksEnabled 

5788 _check_or_init_nvml() 

5789 if __nvmlDeviceSetAutoBoostedClocksEnabled == NULL: 

5790 with gil: 

5791 raise FunctionNotFoundError("function nvmlDeviceSetAutoBoostedClocksEnabled is not found") 

5792 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEnableState_t) noexcept nogil>__nvmlDeviceSetAutoBoostedClocksEnabled)( 

5793 device, enabled) 

5794  

5795  

5796cdef nvmlReturn_t _nvmlDeviceSetDefaultAutoBoostedClocksEnabled(nvmlDevice_t device, nvmlEnableState_t enabled, unsigned int flags) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5797 global __nvmlDeviceSetDefaultAutoBoostedClocksEnabled 

5798 _check_or_init_nvml() 

5799 if __nvmlDeviceSetDefaultAutoBoostedClocksEnabled == NULL: 

5800 with gil: 

5801 raise FunctionNotFoundError("function nvmlDeviceSetDefaultAutoBoostedClocksEnabled is not found") 

5802 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEnableState_t, unsigned int) noexcept nogil>__nvmlDeviceSetDefaultAutoBoostedClocksEnabled)( 

5803 device, enabled, flags) 

5804  

5805  

5806cdef nvmlReturn_t _nvmlDeviceSetDefaultFanSpeed_v2(nvmlDevice_t device, unsigned int fan) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5807 global __nvmlDeviceSetDefaultFanSpeed_v2 

5808 _check_or_init_nvml() 

5809 if __nvmlDeviceSetDefaultFanSpeed_v2 == NULL: 

5810 with gil: 

5811 raise FunctionNotFoundError("function nvmlDeviceSetDefaultFanSpeed_v2 is not found") 

5812 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int) noexcept nogil>__nvmlDeviceSetDefaultFanSpeed_v2)( 

5813 device, fan) 

5814  

5815  

5816cdef nvmlReturn_t _nvmlDeviceSetFanControlPolicy(nvmlDevice_t device, unsigned int fan, nvmlFanControlPolicy_t policy) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5817 global __nvmlDeviceSetFanControlPolicy 

5818 _check_or_init_nvml() 

5819 if __nvmlDeviceSetFanControlPolicy == NULL: 

5820 with gil: 

5821 raise FunctionNotFoundError("function nvmlDeviceSetFanControlPolicy is not found") 

5822 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlFanControlPolicy_t) noexcept nogil>__nvmlDeviceSetFanControlPolicy)( 

5823 device, fan, policy) 

5824  

5825  

5826cdef nvmlReturn_t _nvmlDeviceSetTemperatureThreshold(nvmlDevice_t device, nvmlTemperatureThresholds_t thresholdType, int* temp) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5827 global __nvmlDeviceSetTemperatureThreshold 

5828 _check_or_init_nvml() 

5829 if __nvmlDeviceSetTemperatureThreshold == NULL: 

5830 with gil: 

5831 raise FunctionNotFoundError("function nvmlDeviceSetTemperatureThreshold is not found") 

5832 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlTemperatureThresholds_t, int*) noexcept nogil>__nvmlDeviceSetTemperatureThreshold)( 

5833 device, thresholdType, temp) 

5834  

5835  

5836cdef nvmlReturn_t _nvmlDeviceSetPowerManagementLimit(nvmlDevice_t device, unsigned int limit) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5837 global __nvmlDeviceSetPowerManagementLimit 

5838 _check_or_init_nvml() 

5839 if __nvmlDeviceSetPowerManagementLimit == NULL: 

5840 with gil: 

5841 raise FunctionNotFoundError("function nvmlDeviceSetPowerManagementLimit is not found") 

5842 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int) noexcept nogil>__nvmlDeviceSetPowerManagementLimit)( 

5843 device, limit) 

5844  

5845  

5846cdef nvmlReturn_t _nvmlDeviceSetGpuOperationMode(nvmlDevice_t device, nvmlGpuOperationMode_t mode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5847 global __nvmlDeviceSetGpuOperationMode 

5848 _check_or_init_nvml() 

5849 if __nvmlDeviceSetGpuOperationMode == NULL: 

5850 with gil: 

5851 raise FunctionNotFoundError("function nvmlDeviceSetGpuOperationMode is not found") 

5852 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlGpuOperationMode_t) noexcept nogil>__nvmlDeviceSetGpuOperationMode)( 

5853 device, mode) 

5854  

5855  

5856cdef nvmlReturn_t _nvmlDeviceSetAPIRestriction(nvmlDevice_t device, nvmlRestrictedAPI_t apiType, nvmlEnableState_t isRestricted) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5857 global __nvmlDeviceSetAPIRestriction 

5858 _check_or_init_nvml() 

5859 if __nvmlDeviceSetAPIRestriction == NULL: 

5860 with gil: 

5861 raise FunctionNotFoundError("function nvmlDeviceSetAPIRestriction is not found") 

5862 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlRestrictedAPI_t, nvmlEnableState_t) noexcept nogil>__nvmlDeviceSetAPIRestriction)( 

5863 device, apiType, isRestricted) 

5864  

5865  

5866cdef nvmlReturn_t _nvmlDeviceSetFanSpeed_v2(nvmlDevice_t device, unsigned int fan, unsigned int speed) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5867 global __nvmlDeviceSetFanSpeed_v2 

5868 _check_or_init_nvml() 

5869 if __nvmlDeviceSetFanSpeed_v2 == NULL: 

5870 with gil: 

5871 raise FunctionNotFoundError("function nvmlDeviceSetFanSpeed_v2 is not found") 

5872 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, unsigned int) noexcept nogil>__nvmlDeviceSetFanSpeed_v2)( 

5873 device, fan, speed) 

5874  

5875  

5876cdef nvmlReturn_t _nvmlDeviceSetAccountingMode(nvmlDevice_t device, nvmlEnableState_t mode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5877 global __nvmlDeviceSetAccountingMode 

5878 _check_or_init_nvml() 

5879 if __nvmlDeviceSetAccountingMode == NULL: 

5880 with gil: 

5881 raise FunctionNotFoundError("function nvmlDeviceSetAccountingMode is not found") 

5882 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEnableState_t) noexcept nogil>__nvmlDeviceSetAccountingMode)( 

5883 device, mode) 

5884  

5885  

5886cdef nvmlReturn_t _nvmlDeviceClearAccountingPids(nvmlDevice_t device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5887 global __nvmlDeviceClearAccountingPids 

5888 _check_or_init_nvml() 

5889 if __nvmlDeviceClearAccountingPids == NULL: 

5890 with gil: 

5891 raise FunctionNotFoundError("function nvmlDeviceClearAccountingPids is not found") 

5892 return (<nvmlReturn_t (*)(nvmlDevice_t) noexcept nogil>__nvmlDeviceClearAccountingPids)( 

5893 device) 

5894  

5895  

5896cdef nvmlReturn_t _nvmlDeviceSetPowerManagementLimit_v2(nvmlDevice_t device, nvmlPowerValue_v2_t* powerValue) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5897 global __nvmlDeviceSetPowerManagementLimit_v2 

5898 _check_or_init_nvml() 

5899 if __nvmlDeviceSetPowerManagementLimit_v2 == NULL: 

5900 with gil: 

5901 raise FunctionNotFoundError("function nvmlDeviceSetPowerManagementLimit_v2 is not found") 

5902 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPowerValue_v2_t*) noexcept nogil>__nvmlDeviceSetPowerManagementLimit_v2)( 

5903 device, powerValue) 

5904  

5905  

5906cdef nvmlReturn_t _nvmlDeviceGetNvLinkState(nvmlDevice_t device, unsigned int link, nvmlEnableState_t* isActive) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5907 global __nvmlDeviceGetNvLinkState 

5908 _check_or_init_nvml() 

5909 if __nvmlDeviceGetNvLinkState == NULL: 

5910 with gil: 

5911 raise FunctionNotFoundError("function nvmlDeviceGetNvLinkState is not found") 

5912 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlEnableState_t*) noexcept nogil>__nvmlDeviceGetNvLinkState)( 

5913 device, link, isActive) 

5914  

5915  

5916cdef nvmlReturn_t _nvmlDeviceGetNvLinkVersion(nvmlDevice_t device, unsigned int link, unsigned int* version) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5917 global __nvmlDeviceGetNvLinkVersion 

5918 _check_or_init_nvml() 

5919 if __nvmlDeviceGetNvLinkVersion == NULL: 

5920 with gil: 

5921 raise FunctionNotFoundError("function nvmlDeviceGetNvLinkVersion is not found") 

5922 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, unsigned int*) noexcept nogil>__nvmlDeviceGetNvLinkVersion)( 

5923 device, link, version) 

5924  

5925  

5926cdef nvmlReturn_t _nvmlDeviceGetNvLinkCapability(nvmlDevice_t device, unsigned int link, nvmlNvLinkCapability_t capability, unsigned int* capResult) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5927 global __nvmlDeviceGetNvLinkCapability 

5928 _check_or_init_nvml() 

5929 if __nvmlDeviceGetNvLinkCapability == NULL: 

5930 with gil: 

5931 raise FunctionNotFoundError("function nvmlDeviceGetNvLinkCapability is not found") 

5932 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlNvLinkCapability_t, unsigned int*) noexcept nogil>__nvmlDeviceGetNvLinkCapability)( 

5933 device, link, capability, capResult) 

5934  

5935  

5936cdef nvmlReturn_t _nvmlDeviceGetNvLinkRemotePciInfo_v2(nvmlDevice_t device, unsigned int link, nvmlPciInfo_t* pci) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5937 global __nvmlDeviceGetNvLinkRemotePciInfo_v2 

5938 _check_or_init_nvml() 

5939 if __nvmlDeviceGetNvLinkRemotePciInfo_v2 == NULL: 

5940 with gil: 

5941 raise FunctionNotFoundError("function nvmlDeviceGetNvLinkRemotePciInfo_v2 is not found") 

5942 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlPciInfo_t*) noexcept nogil>__nvmlDeviceGetNvLinkRemotePciInfo_v2)( 

5943 device, link, pci) 

5944  

5945  

5946cdef nvmlReturn_t _nvmlDeviceGetNvLinkErrorCounter(nvmlDevice_t device, unsigned int link, nvmlNvLinkErrorCounter_t counter, unsigned long long* counterValue) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5947 global __nvmlDeviceGetNvLinkErrorCounter 

5948 _check_or_init_nvml() 

5949 if __nvmlDeviceGetNvLinkErrorCounter == NULL: 

5950 with gil: 

5951 raise FunctionNotFoundError("function nvmlDeviceGetNvLinkErrorCounter is not found") 

5952 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlNvLinkErrorCounter_t, unsigned long long*) noexcept nogil>__nvmlDeviceGetNvLinkErrorCounter)( 

5953 device, link, counter, counterValue) 

5954  

5955  

5956cdef nvmlReturn_t _nvmlDeviceResetNvLinkErrorCounters(nvmlDevice_t device, unsigned int link) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5957 global __nvmlDeviceResetNvLinkErrorCounters 

5958 _check_or_init_nvml() 

5959 if __nvmlDeviceResetNvLinkErrorCounters == NULL: 

5960 with gil: 

5961 raise FunctionNotFoundError("function nvmlDeviceResetNvLinkErrorCounters is not found") 

5962 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int) noexcept nogil>__nvmlDeviceResetNvLinkErrorCounters)( 

5963 device, link) 

5964  

5965  

5966cdef nvmlReturn_t _nvmlDeviceGetNvLinkRemoteDeviceType(nvmlDevice_t device, unsigned int link, nvmlIntNvLinkDeviceType_t* pNvLinkDeviceType) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5967 global __nvmlDeviceGetNvLinkRemoteDeviceType 

5968 _check_or_init_nvml() 

5969 if __nvmlDeviceGetNvLinkRemoteDeviceType == NULL: 

5970 with gil: 

5971 raise FunctionNotFoundError("function nvmlDeviceGetNvLinkRemoteDeviceType is not found") 

5972 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlIntNvLinkDeviceType_t*) noexcept nogil>__nvmlDeviceGetNvLinkRemoteDeviceType)( 

5973 device, link, pNvLinkDeviceType) 

5974  

5975  

5976cdef nvmlReturn_t _nvmlDeviceSetNvLinkDeviceLowPowerThreshold(nvmlDevice_t device, nvmlNvLinkPowerThres_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5977 global __nvmlDeviceSetNvLinkDeviceLowPowerThreshold 

5978 _check_or_init_nvml() 

5979 if __nvmlDeviceSetNvLinkDeviceLowPowerThreshold == NULL: 

5980 with gil: 

5981 raise FunctionNotFoundError("function nvmlDeviceSetNvLinkDeviceLowPowerThreshold is not found") 

5982 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlNvLinkPowerThres_t*) noexcept nogil>__nvmlDeviceSetNvLinkDeviceLowPowerThreshold)( 

5983 device, info) 

5984  

5985  

5986cdef nvmlReturn_t _nvmlSystemSetNvlinkBwMode(unsigned int nvlinkBwMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5987 global __nvmlSystemSetNvlinkBwMode 

5988 _check_or_init_nvml() 

5989 if __nvmlSystemSetNvlinkBwMode == NULL: 

5990 with gil: 

5991 raise FunctionNotFoundError("function nvmlSystemSetNvlinkBwMode is not found") 

5992 return (<nvmlReturn_t (*)(unsigned int) noexcept nogil>__nvmlSystemSetNvlinkBwMode)( 

5993 nvlinkBwMode) 

5994  

5995  

5996cdef nvmlReturn_t _nvmlSystemGetNvlinkBwMode(unsigned int* nvlinkBwMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

5997 global __nvmlSystemGetNvlinkBwMode 

5998 _check_or_init_nvml() 

5999 if __nvmlSystemGetNvlinkBwMode == NULL: 

6000 with gil: 

6001 raise FunctionNotFoundError("function nvmlSystemGetNvlinkBwMode is not found") 

6002 return (<nvmlReturn_t (*)(unsigned int*) noexcept nogil>__nvmlSystemGetNvlinkBwMode)( 

6003 nvlinkBwMode) 

6004  

6005  

6006cdef nvmlReturn_t _nvmlDeviceGetNvlinkSupportedBwModes(nvmlDevice_t device, nvmlNvlinkSupportedBwModes_t* supportedBwMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6007 global __nvmlDeviceGetNvlinkSupportedBwModes 

6008 _check_or_init_nvml() 

6009 if __nvmlDeviceGetNvlinkSupportedBwModes == NULL: 

6010 with gil: 

6011 raise FunctionNotFoundError("function nvmlDeviceGetNvlinkSupportedBwModes is not found") 

6012 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlNvlinkSupportedBwModes_t*) noexcept nogil>__nvmlDeviceGetNvlinkSupportedBwModes)( 

6013 device, supportedBwMode) 

6014  

6015  

6016cdef nvmlReturn_t _nvmlDeviceGetNvlinkBwMode(nvmlDevice_t device, nvmlNvlinkGetBwMode_t* getBwMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6017 global __nvmlDeviceGetNvlinkBwMode 

6018 _check_or_init_nvml() 

6019 if __nvmlDeviceGetNvlinkBwMode == NULL: 

6020 with gil: 

6021 raise FunctionNotFoundError("function nvmlDeviceGetNvlinkBwMode is not found") 

6022 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlNvlinkGetBwMode_t*) noexcept nogil>__nvmlDeviceGetNvlinkBwMode)( 

6023 device, getBwMode) 

6024  

6025  

6026cdef nvmlReturn_t _nvmlDeviceSetNvlinkBwMode(nvmlDevice_t device, nvmlNvlinkSetBwMode_t* setBwMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6027 global __nvmlDeviceSetNvlinkBwMode 

6028 _check_or_init_nvml() 

6029 if __nvmlDeviceSetNvlinkBwMode == NULL: 

6030 with gil: 

6031 raise FunctionNotFoundError("function nvmlDeviceSetNvlinkBwMode is not found") 

6032 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlNvlinkSetBwMode_t*) noexcept nogil>__nvmlDeviceSetNvlinkBwMode)( 

6033 device, setBwMode) 

6034  

6035  

6036cdef nvmlReturn_t _nvmlEventSetCreate(nvmlEventSet_t* set) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6037 global __nvmlEventSetCreate 

6038 _check_or_init_nvml() 

6039 if __nvmlEventSetCreate == NULL: 

6040 with gil: 

6041 raise FunctionNotFoundError("function nvmlEventSetCreate is not found") 

6042 return (<nvmlReturn_t (*)(nvmlEventSet_t*) noexcept nogil>__nvmlEventSetCreate)( 

6043 set) 

6044  

6045  

6046cdef nvmlReturn_t _nvmlDeviceRegisterEvents(nvmlDevice_t device, unsigned long long eventTypes, nvmlEventSet_t set) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6047 global __nvmlDeviceRegisterEvents 

6048 _check_or_init_nvml() 

6049 if __nvmlDeviceRegisterEvents == NULL: 

6050 with gil: 

6051 raise FunctionNotFoundError("function nvmlDeviceRegisterEvents is not found") 

6052 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned long long, nvmlEventSet_t) noexcept nogil>__nvmlDeviceRegisterEvents)( 

6053 device, eventTypes, set) 

6054  

6055  

6056cdef nvmlReturn_t _nvmlDeviceGetSupportedEventTypes(nvmlDevice_t device, unsigned long long* eventTypes) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6057 global __nvmlDeviceGetSupportedEventTypes 

6058 _check_or_init_nvml() 

6059 if __nvmlDeviceGetSupportedEventTypes == NULL: 

6060 with gil: 

6061 raise FunctionNotFoundError("function nvmlDeviceGetSupportedEventTypes is not found") 

6062 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned long long*) noexcept nogil>__nvmlDeviceGetSupportedEventTypes)( 

6063 device, eventTypes) 

6064  

6065  

6066cdef nvmlReturn_t _nvmlEventSetWait_v2(nvmlEventSet_t set, nvmlEventData_t* data, unsigned int timeoutms) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6067 global __nvmlEventSetWait_v2 

6068 _check_or_init_nvml() 

6069 if __nvmlEventSetWait_v2 == NULL: 

6070 with gil: 

6071 raise FunctionNotFoundError("function nvmlEventSetWait_v2 is not found") 

6072 return (<nvmlReturn_t (*)(nvmlEventSet_t, nvmlEventData_t*, unsigned int) noexcept nogil>__nvmlEventSetWait_v2)( 

6073 set, data, timeoutms) 

6074  

6075  

6076cdef nvmlReturn_t _nvmlEventSetFree(nvmlEventSet_t set) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6077 global __nvmlEventSetFree 

6078 _check_or_init_nvml() 

6079 if __nvmlEventSetFree == NULL: 

6080 with gil: 

6081 raise FunctionNotFoundError("function nvmlEventSetFree is not found") 

6082 return (<nvmlReturn_t (*)(nvmlEventSet_t) noexcept nogil>__nvmlEventSetFree)( 

6083 set) 

6084  

6085  

6086cdef nvmlReturn_t _nvmlSystemEventSetCreate(nvmlSystemEventSetCreateRequest_t* request) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6087 global __nvmlSystemEventSetCreate 

6088 _check_or_init_nvml() 

6089 if __nvmlSystemEventSetCreate == NULL: 

6090 with gil: 

6091 raise FunctionNotFoundError("function nvmlSystemEventSetCreate is not found") 

6092 return (<nvmlReturn_t (*)(nvmlSystemEventSetCreateRequest_t*) noexcept nogil>__nvmlSystemEventSetCreate)( 

6093 request) 

6094  

6095  

6096cdef nvmlReturn_t _nvmlSystemEventSetFree(nvmlSystemEventSetFreeRequest_t* request) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6097 global __nvmlSystemEventSetFree 

6098 _check_or_init_nvml() 

6099 if __nvmlSystemEventSetFree == NULL: 

6100 with gil: 

6101 raise FunctionNotFoundError("function nvmlSystemEventSetFree is not found") 

6102 return (<nvmlReturn_t (*)(nvmlSystemEventSetFreeRequest_t*) noexcept nogil>__nvmlSystemEventSetFree)( 

6103 request) 

6104  

6105  

6106cdef nvmlReturn_t _nvmlSystemRegisterEvents(nvmlSystemRegisterEventRequest_t* request) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6107 global __nvmlSystemRegisterEvents 

6108 _check_or_init_nvml() 

6109 if __nvmlSystemRegisterEvents == NULL: 

6110 with gil: 

6111 raise FunctionNotFoundError("function nvmlSystemRegisterEvents is not found") 

6112 return (<nvmlReturn_t (*)(nvmlSystemRegisterEventRequest_t*) noexcept nogil>__nvmlSystemRegisterEvents)( 

6113 request) 

6114  

6115  

6116cdef nvmlReturn_t _nvmlSystemEventSetWait(nvmlSystemEventSetWaitRequest_t* request) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6117 global __nvmlSystemEventSetWait 

6118 _check_or_init_nvml() 

6119 if __nvmlSystemEventSetWait == NULL: 

6120 with gil: 

6121 raise FunctionNotFoundError("function nvmlSystemEventSetWait is not found") 

6122 return (<nvmlReturn_t (*)(nvmlSystemEventSetWaitRequest_t*) noexcept nogil>__nvmlSystemEventSetWait)( 

6123 request) 

6124  

6125  

6126cdef nvmlReturn_t _nvmlDeviceModifyDrainState(nvmlPciInfo_t* pciInfo, nvmlEnableState_t newState) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6127 global __nvmlDeviceModifyDrainState 

6128 _check_or_init_nvml() 

6129 if __nvmlDeviceModifyDrainState == NULL: 

6130 with gil: 

6131 raise FunctionNotFoundError("function nvmlDeviceModifyDrainState is not found") 

6132 return (<nvmlReturn_t (*)(nvmlPciInfo_t*, nvmlEnableState_t) noexcept nogil>__nvmlDeviceModifyDrainState)( 

6133 pciInfo, newState) 

6134  

6135  

6136cdef nvmlReturn_t _nvmlDeviceQueryDrainState(nvmlPciInfo_t* pciInfo, nvmlEnableState_t* currentState) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6137 global __nvmlDeviceQueryDrainState 

6138 _check_or_init_nvml() 

6139 if __nvmlDeviceQueryDrainState == NULL: 

6140 with gil: 

6141 raise FunctionNotFoundError("function nvmlDeviceQueryDrainState is not found") 

6142 return (<nvmlReturn_t (*)(nvmlPciInfo_t*, nvmlEnableState_t*) noexcept nogil>__nvmlDeviceQueryDrainState)( 

6143 pciInfo, currentState) 

6144  

6145  

6146cdef nvmlReturn_t _nvmlDeviceRemoveGpu_v2(nvmlPciInfo_t* pciInfo, nvmlDetachGpuState_t gpuState, nvmlPcieLinkState_t linkState) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6147 global __nvmlDeviceRemoveGpu_v2 

6148 _check_or_init_nvml() 

6149 if __nvmlDeviceRemoveGpu_v2 == NULL: 

6150 with gil: 

6151 raise FunctionNotFoundError("function nvmlDeviceRemoveGpu_v2 is not found") 

6152 return (<nvmlReturn_t (*)(nvmlPciInfo_t*, nvmlDetachGpuState_t, nvmlPcieLinkState_t) noexcept nogil>__nvmlDeviceRemoveGpu_v2)( 

6153 pciInfo, gpuState, linkState) 

6154  

6155  

6156cdef nvmlReturn_t _nvmlDeviceDiscoverGpus(nvmlPciInfo_t* pciInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6157 global __nvmlDeviceDiscoverGpus 

6158 _check_or_init_nvml() 

6159 if __nvmlDeviceDiscoverGpus == NULL: 

6160 with gil: 

6161 raise FunctionNotFoundError("function nvmlDeviceDiscoverGpus is not found") 

6162 return (<nvmlReturn_t (*)(nvmlPciInfo_t*) noexcept nogil>__nvmlDeviceDiscoverGpus)( 

6163 pciInfo) 

6164  

6165  

6166cdef nvmlReturn_t _nvmlDeviceGetFieldValues(nvmlDevice_t device, int valuesCount, nvmlFieldValue_t* values) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6167 global __nvmlDeviceGetFieldValues 

6168 _check_or_init_nvml() 

6169 if __nvmlDeviceGetFieldValues == NULL: 

6170 with gil: 

6171 raise FunctionNotFoundError("function nvmlDeviceGetFieldValues is not found") 

6172 return (<nvmlReturn_t (*)(nvmlDevice_t, int, nvmlFieldValue_t*) noexcept nogil>__nvmlDeviceGetFieldValues)( 

6173 device, valuesCount, values) 

6174  

6175  

6176cdef nvmlReturn_t _nvmlDeviceClearFieldValues(nvmlDevice_t device, int valuesCount, nvmlFieldValue_t* values) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6177 global __nvmlDeviceClearFieldValues 

6178 _check_or_init_nvml() 

6179 if __nvmlDeviceClearFieldValues == NULL: 

6180 with gil: 

6181 raise FunctionNotFoundError("function nvmlDeviceClearFieldValues is not found") 

6182 return (<nvmlReturn_t (*)(nvmlDevice_t, int, nvmlFieldValue_t*) noexcept nogil>__nvmlDeviceClearFieldValues)( 

6183 device, valuesCount, values) 

6184  

6185  

6186cdef nvmlReturn_t _nvmlDeviceGetVirtualizationMode(nvmlDevice_t device, nvmlGpuVirtualizationMode_t* pVirtualMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6187 global __nvmlDeviceGetVirtualizationMode 

6188 _check_or_init_nvml() 

6189 if __nvmlDeviceGetVirtualizationMode == NULL: 

6190 with gil: 

6191 raise FunctionNotFoundError("function nvmlDeviceGetVirtualizationMode is not found") 

6192 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlGpuVirtualizationMode_t*) noexcept nogil>__nvmlDeviceGetVirtualizationMode)( 

6193 device, pVirtualMode) 

6194  

6195  

6196cdef nvmlReturn_t _nvmlDeviceGetHostVgpuMode(nvmlDevice_t device, nvmlHostVgpuMode_t* pHostVgpuMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6197 global __nvmlDeviceGetHostVgpuMode 

6198 _check_or_init_nvml() 

6199 if __nvmlDeviceGetHostVgpuMode == NULL: 

6200 with gil: 

6201 raise FunctionNotFoundError("function nvmlDeviceGetHostVgpuMode is not found") 

6202 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlHostVgpuMode_t*) noexcept nogil>__nvmlDeviceGetHostVgpuMode)( 

6203 device, pHostVgpuMode) 

6204  

6205  

6206cdef nvmlReturn_t _nvmlDeviceSetVirtualizationMode(nvmlDevice_t device, nvmlGpuVirtualizationMode_t virtualMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6207 global __nvmlDeviceSetVirtualizationMode 

6208 _check_or_init_nvml() 

6209 if __nvmlDeviceSetVirtualizationMode == NULL: 

6210 with gil: 

6211 raise FunctionNotFoundError("function nvmlDeviceSetVirtualizationMode is not found") 

6212 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlGpuVirtualizationMode_t) noexcept nogil>__nvmlDeviceSetVirtualizationMode)( 

6213 device, virtualMode) 

6214  

6215  

6216cdef nvmlReturn_t _nvmlDeviceGetVgpuHeterogeneousMode(nvmlDevice_t device, nvmlVgpuHeterogeneousMode_t* pHeterogeneousMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6217 global __nvmlDeviceGetVgpuHeterogeneousMode 

6218 _check_or_init_nvml() 

6219 if __nvmlDeviceGetVgpuHeterogeneousMode == NULL: 

6220 with gil: 

6221 raise FunctionNotFoundError("function nvmlDeviceGetVgpuHeterogeneousMode is not found") 

6222 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlVgpuHeterogeneousMode_t*) noexcept nogil>__nvmlDeviceGetVgpuHeterogeneousMode)( 

6223 device, pHeterogeneousMode) 

6224  

6225  

6226cdef nvmlReturn_t _nvmlDeviceSetVgpuHeterogeneousMode(nvmlDevice_t device, const nvmlVgpuHeterogeneousMode_t* pHeterogeneousMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6227 global __nvmlDeviceSetVgpuHeterogeneousMode 

6228 _check_or_init_nvml() 

6229 if __nvmlDeviceSetVgpuHeterogeneousMode == NULL: 

6230 with gil: 

6231 raise FunctionNotFoundError("function nvmlDeviceSetVgpuHeterogeneousMode is not found") 

6232 return (<nvmlReturn_t (*)(nvmlDevice_t, const nvmlVgpuHeterogeneousMode_t*) noexcept nogil>__nvmlDeviceSetVgpuHeterogeneousMode)( 

6233 device, pHeterogeneousMode) 

6234  

6235  

6236cdef nvmlReturn_t _nvmlVgpuInstanceGetPlacementId(nvmlVgpuInstance_t vgpuInstance, nvmlVgpuPlacementId_t* pPlacement) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6237 global __nvmlVgpuInstanceGetPlacementId 

6238 _check_or_init_nvml() 

6239 if __nvmlVgpuInstanceGetPlacementId == NULL: 

6240 with gil: 

6241 raise FunctionNotFoundError("function nvmlVgpuInstanceGetPlacementId is not found") 

6242 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, nvmlVgpuPlacementId_t*) noexcept nogil>__nvmlVgpuInstanceGetPlacementId)( 

6243 vgpuInstance, pPlacement) 

6244  

6245  

6246cdef nvmlReturn_t _nvmlDeviceGetVgpuTypeSupportedPlacements(nvmlDevice_t device, nvmlVgpuTypeId_t vgpuTypeId, nvmlVgpuPlacementList_t* pPlacementList) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6247 global __nvmlDeviceGetVgpuTypeSupportedPlacements 

6248 _check_or_init_nvml() 

6249 if __nvmlDeviceGetVgpuTypeSupportedPlacements == NULL: 

6250 with gil: 

6251 raise FunctionNotFoundError("function nvmlDeviceGetVgpuTypeSupportedPlacements is not found") 

6252 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlVgpuTypeId_t, nvmlVgpuPlacementList_t*) noexcept nogil>__nvmlDeviceGetVgpuTypeSupportedPlacements)( 

6253 device, vgpuTypeId, pPlacementList) 

6254  

6255  

6256cdef nvmlReturn_t _nvmlDeviceGetVgpuTypeCreatablePlacements(nvmlDevice_t device, nvmlVgpuTypeId_t vgpuTypeId, nvmlVgpuPlacementList_t* pPlacementList) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6257 global __nvmlDeviceGetVgpuTypeCreatablePlacements 

6258 _check_or_init_nvml() 

6259 if __nvmlDeviceGetVgpuTypeCreatablePlacements == NULL: 

6260 with gil: 

6261 raise FunctionNotFoundError("function nvmlDeviceGetVgpuTypeCreatablePlacements is not found") 

6262 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlVgpuTypeId_t, nvmlVgpuPlacementList_t*) noexcept nogil>__nvmlDeviceGetVgpuTypeCreatablePlacements)( 

6263 device, vgpuTypeId, pPlacementList) 

6264  

6265  

6266cdef nvmlReturn_t _nvmlVgpuTypeGetGspHeapSize(nvmlVgpuTypeId_t vgpuTypeId, unsigned long long* gspHeapSize) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6267 global __nvmlVgpuTypeGetGspHeapSize 

6268 _check_or_init_nvml() 

6269 if __nvmlVgpuTypeGetGspHeapSize == NULL: 

6270 with gil: 

6271 raise FunctionNotFoundError("function nvmlVgpuTypeGetGspHeapSize is not found") 

6272 return (<nvmlReturn_t (*)(nvmlVgpuTypeId_t, unsigned long long*) noexcept nogil>__nvmlVgpuTypeGetGspHeapSize)( 

6273 vgpuTypeId, gspHeapSize) 

6274  

6275  

6276cdef nvmlReturn_t _nvmlVgpuTypeGetFbReservation(nvmlVgpuTypeId_t vgpuTypeId, unsigned long long* fbReservation) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6277 global __nvmlVgpuTypeGetFbReservation 

6278 _check_or_init_nvml() 

6279 if __nvmlVgpuTypeGetFbReservation == NULL: 

6280 with gil: 

6281 raise FunctionNotFoundError("function nvmlVgpuTypeGetFbReservation is not found") 

6282 return (<nvmlReturn_t (*)(nvmlVgpuTypeId_t, unsigned long long*) noexcept nogil>__nvmlVgpuTypeGetFbReservation)( 

6283 vgpuTypeId, fbReservation) 

6284  

6285  

6286cdef nvmlReturn_t _nvmlVgpuInstanceGetRuntimeStateSize(nvmlVgpuInstance_t vgpuInstance, nvmlVgpuRuntimeState_t* pState) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6287 global __nvmlVgpuInstanceGetRuntimeStateSize 

6288 _check_or_init_nvml() 

6289 if __nvmlVgpuInstanceGetRuntimeStateSize == NULL: 

6290 with gil: 

6291 raise FunctionNotFoundError("function nvmlVgpuInstanceGetRuntimeStateSize is not found") 

6292 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, nvmlVgpuRuntimeState_t*) noexcept nogil>__nvmlVgpuInstanceGetRuntimeStateSize)( 

6293 vgpuInstance, pState) 

6294  

6295  

6296cdef nvmlReturn_t _nvmlDeviceSetVgpuCapabilities(nvmlDevice_t device, nvmlDeviceVgpuCapability_t capability, nvmlEnableState_t state) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6297 global __nvmlDeviceSetVgpuCapabilities 

6298 _check_or_init_nvml() 

6299 if __nvmlDeviceSetVgpuCapabilities == NULL: 

6300 with gil: 

6301 raise FunctionNotFoundError("function nvmlDeviceSetVgpuCapabilities is not found") 

6302 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlDeviceVgpuCapability_t, nvmlEnableState_t) noexcept nogil>__nvmlDeviceSetVgpuCapabilities)( 

6303 device, capability, state) 

6304  

6305  

6306cdef nvmlReturn_t _nvmlDeviceGetGridLicensableFeatures_v4(nvmlDevice_t device, nvmlGridLicensableFeatures_t* pGridLicensableFeatures) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6307 global __nvmlDeviceGetGridLicensableFeatures_v4 

6308 _check_or_init_nvml() 

6309 if __nvmlDeviceGetGridLicensableFeatures_v4 == NULL: 

6310 with gil: 

6311 raise FunctionNotFoundError("function nvmlDeviceGetGridLicensableFeatures_v4 is not found") 

6312 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlGridLicensableFeatures_t*) noexcept nogil>__nvmlDeviceGetGridLicensableFeatures_v4)( 

6313 device, pGridLicensableFeatures) 

6314  

6315  

6316cdef nvmlReturn_t _nvmlGetVgpuDriverCapabilities(nvmlVgpuDriverCapability_t capability, unsigned int* capResult) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6317 global __nvmlGetVgpuDriverCapabilities 

6318 _check_or_init_nvml() 

6319 if __nvmlGetVgpuDriverCapabilities == NULL: 

6320 with gil: 

6321 raise FunctionNotFoundError("function nvmlGetVgpuDriverCapabilities is not found") 

6322 return (<nvmlReturn_t (*)(nvmlVgpuDriverCapability_t, unsigned int*) noexcept nogil>__nvmlGetVgpuDriverCapabilities)( 

6323 capability, capResult) 

6324  

6325  

6326cdef nvmlReturn_t _nvmlDeviceGetVgpuCapabilities(nvmlDevice_t device, nvmlDeviceVgpuCapability_t capability, unsigned int* capResult) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6327 global __nvmlDeviceGetVgpuCapabilities 

6328 _check_or_init_nvml() 

6329 if __nvmlDeviceGetVgpuCapabilities == NULL: 

6330 with gil: 

6331 raise FunctionNotFoundError("function nvmlDeviceGetVgpuCapabilities is not found") 

6332 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlDeviceVgpuCapability_t, unsigned int*) noexcept nogil>__nvmlDeviceGetVgpuCapabilities)( 

6333 device, capability, capResult) 

6334  

6335  

6336cdef nvmlReturn_t _nvmlDeviceGetSupportedVgpus(nvmlDevice_t device, unsigned int* vgpuCount, nvmlVgpuTypeId_t* vgpuTypeIds) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6337 global __nvmlDeviceGetSupportedVgpus 

6338 _check_or_init_nvml() 

6339 if __nvmlDeviceGetSupportedVgpus == NULL: 

6340 with gil: 

6341 raise FunctionNotFoundError("function nvmlDeviceGetSupportedVgpus is not found") 

6342 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, nvmlVgpuTypeId_t*) noexcept nogil>__nvmlDeviceGetSupportedVgpus)( 

6343 device, vgpuCount, vgpuTypeIds) 

6344  

6345  

6346cdef nvmlReturn_t _nvmlDeviceGetCreatableVgpus(nvmlDevice_t device, unsigned int* vgpuCount, nvmlVgpuTypeId_t* vgpuTypeIds) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6347 global __nvmlDeviceGetCreatableVgpus 

6348 _check_or_init_nvml() 

6349 if __nvmlDeviceGetCreatableVgpus == NULL: 

6350 with gil: 

6351 raise FunctionNotFoundError("function nvmlDeviceGetCreatableVgpus is not found") 

6352 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, nvmlVgpuTypeId_t*) noexcept nogil>__nvmlDeviceGetCreatableVgpus)( 

6353 device, vgpuCount, vgpuTypeIds) 

6354  

6355  

6356cdef nvmlReturn_t _nvmlVgpuTypeGetClass(nvmlVgpuTypeId_t vgpuTypeId, char* vgpuTypeClass, unsigned int* size) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6357 global __nvmlVgpuTypeGetClass 

6358 _check_or_init_nvml() 

6359 if __nvmlVgpuTypeGetClass == NULL: 

6360 with gil: 

6361 raise FunctionNotFoundError("function nvmlVgpuTypeGetClass is not found") 

6362 return (<nvmlReturn_t (*)(nvmlVgpuTypeId_t, char*, unsigned int*) noexcept nogil>__nvmlVgpuTypeGetClass)( 

6363 vgpuTypeId, vgpuTypeClass, size) 

6364  

6365  

6366cdef nvmlReturn_t _nvmlVgpuTypeGetName(nvmlVgpuTypeId_t vgpuTypeId, char* vgpuTypeName, unsigned int* size) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6367 global __nvmlVgpuTypeGetName 

6368 _check_or_init_nvml() 

6369 if __nvmlVgpuTypeGetName == NULL: 

6370 with gil: 

6371 raise FunctionNotFoundError("function nvmlVgpuTypeGetName is not found") 

6372 return (<nvmlReturn_t (*)(nvmlVgpuTypeId_t, char*, unsigned int*) noexcept nogil>__nvmlVgpuTypeGetName)( 

6373 vgpuTypeId, vgpuTypeName, size) 

6374  

6375  

6376cdef nvmlReturn_t _nvmlVgpuTypeGetGpuInstanceProfileId(nvmlVgpuTypeId_t vgpuTypeId, unsigned int* gpuInstanceProfileId) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6377 global __nvmlVgpuTypeGetGpuInstanceProfileId 

6378 _check_or_init_nvml() 

6379 if __nvmlVgpuTypeGetGpuInstanceProfileId == NULL: 

6380 with gil: 

6381 raise FunctionNotFoundError("function nvmlVgpuTypeGetGpuInstanceProfileId is not found") 

6382 return (<nvmlReturn_t (*)(nvmlVgpuTypeId_t, unsigned int*) noexcept nogil>__nvmlVgpuTypeGetGpuInstanceProfileId)( 

6383 vgpuTypeId, gpuInstanceProfileId) 

6384  

6385  

6386cdef nvmlReturn_t _nvmlVgpuTypeGetDeviceID(nvmlVgpuTypeId_t vgpuTypeId, unsigned long long* deviceID, unsigned long long* subsystemID) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6387 global __nvmlVgpuTypeGetDeviceID 

6388 _check_or_init_nvml() 

6389 if __nvmlVgpuTypeGetDeviceID == NULL: 

6390 with gil: 

6391 raise FunctionNotFoundError("function nvmlVgpuTypeGetDeviceID is not found") 

6392 return (<nvmlReturn_t (*)(nvmlVgpuTypeId_t, unsigned long long*, unsigned long long*) noexcept nogil>__nvmlVgpuTypeGetDeviceID)( 

6393 vgpuTypeId, deviceID, subsystemID) 

6394  

6395  

6396cdef nvmlReturn_t _nvmlVgpuTypeGetFramebufferSize(nvmlVgpuTypeId_t vgpuTypeId, unsigned long long* fbSize) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6397 global __nvmlVgpuTypeGetFramebufferSize 

6398 _check_or_init_nvml() 

6399 if __nvmlVgpuTypeGetFramebufferSize == NULL: 

6400 with gil: 

6401 raise FunctionNotFoundError("function nvmlVgpuTypeGetFramebufferSize is not found") 

6402 return (<nvmlReturn_t (*)(nvmlVgpuTypeId_t, unsigned long long*) noexcept nogil>__nvmlVgpuTypeGetFramebufferSize)( 

6403 vgpuTypeId, fbSize) 

6404  

6405  

6406cdef nvmlReturn_t _nvmlVgpuTypeGetNumDisplayHeads(nvmlVgpuTypeId_t vgpuTypeId, unsigned int* numDisplayHeads) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6407 global __nvmlVgpuTypeGetNumDisplayHeads 

6408 _check_or_init_nvml() 

6409 if __nvmlVgpuTypeGetNumDisplayHeads == NULL: 

6410 with gil: 

6411 raise FunctionNotFoundError("function nvmlVgpuTypeGetNumDisplayHeads is not found") 

6412 return (<nvmlReturn_t (*)(nvmlVgpuTypeId_t, unsigned int*) noexcept nogil>__nvmlVgpuTypeGetNumDisplayHeads)( 

6413 vgpuTypeId, numDisplayHeads) 

6414  

6415  

6416cdef nvmlReturn_t _nvmlVgpuTypeGetResolution(nvmlVgpuTypeId_t vgpuTypeId, unsigned int displayIndex, unsigned int* xdim, unsigned int* ydim) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6417 global __nvmlVgpuTypeGetResolution 

6418 _check_or_init_nvml() 

6419 if __nvmlVgpuTypeGetResolution == NULL: 

6420 with gil: 

6421 raise FunctionNotFoundError("function nvmlVgpuTypeGetResolution is not found") 

6422 return (<nvmlReturn_t (*)(nvmlVgpuTypeId_t, unsigned int, unsigned int*, unsigned int*) noexcept nogil>__nvmlVgpuTypeGetResolution)( 

6423 vgpuTypeId, displayIndex, xdim, ydim) 

6424  

6425  

6426cdef nvmlReturn_t _nvmlVgpuTypeGetLicense(nvmlVgpuTypeId_t vgpuTypeId, char* vgpuTypeLicenseString, unsigned int size) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6427 global __nvmlVgpuTypeGetLicense 

6428 _check_or_init_nvml() 

6429 if __nvmlVgpuTypeGetLicense == NULL: 

6430 with gil: 

6431 raise FunctionNotFoundError("function nvmlVgpuTypeGetLicense is not found") 

6432 return (<nvmlReturn_t (*)(nvmlVgpuTypeId_t, char*, unsigned int) noexcept nogil>__nvmlVgpuTypeGetLicense)( 

6433 vgpuTypeId, vgpuTypeLicenseString, size) 

6434  

6435  

6436cdef nvmlReturn_t _nvmlVgpuTypeGetFrameRateLimit(nvmlVgpuTypeId_t vgpuTypeId, unsigned int* frameRateLimit) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6437 global __nvmlVgpuTypeGetFrameRateLimit 

6438 _check_or_init_nvml() 

6439 if __nvmlVgpuTypeGetFrameRateLimit == NULL: 

6440 with gil: 

6441 raise FunctionNotFoundError("function nvmlVgpuTypeGetFrameRateLimit is not found") 

6442 return (<nvmlReturn_t (*)(nvmlVgpuTypeId_t, unsigned int*) noexcept nogil>__nvmlVgpuTypeGetFrameRateLimit)( 

6443 vgpuTypeId, frameRateLimit) 

6444  

6445  

6446cdef nvmlReturn_t _nvmlVgpuTypeGetMaxInstances(nvmlDevice_t device, nvmlVgpuTypeId_t vgpuTypeId, unsigned int* vgpuInstanceCount) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6447 global __nvmlVgpuTypeGetMaxInstances 

6448 _check_or_init_nvml() 

6449 if __nvmlVgpuTypeGetMaxInstances == NULL: 

6450 with gil: 

6451 raise FunctionNotFoundError("function nvmlVgpuTypeGetMaxInstances is not found") 

6452 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlVgpuTypeId_t, unsigned int*) noexcept nogil>__nvmlVgpuTypeGetMaxInstances)( 

6453 device, vgpuTypeId, vgpuInstanceCount) 

6454  

6455  

6456cdef nvmlReturn_t _nvmlVgpuTypeGetMaxInstancesPerVm(nvmlVgpuTypeId_t vgpuTypeId, unsigned int* vgpuInstanceCountPerVm) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6457 global __nvmlVgpuTypeGetMaxInstancesPerVm 

6458 _check_or_init_nvml() 

6459 if __nvmlVgpuTypeGetMaxInstancesPerVm == NULL: 

6460 with gil: 

6461 raise FunctionNotFoundError("function nvmlVgpuTypeGetMaxInstancesPerVm is not found") 

6462 return (<nvmlReturn_t (*)(nvmlVgpuTypeId_t, unsigned int*) noexcept nogil>__nvmlVgpuTypeGetMaxInstancesPerVm)( 

6463 vgpuTypeId, vgpuInstanceCountPerVm) 

6464  

6465  

6466cdef nvmlReturn_t _nvmlVgpuTypeGetBAR1Info(nvmlVgpuTypeId_t vgpuTypeId, nvmlVgpuTypeBar1Info_t* bar1Info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6467 global __nvmlVgpuTypeGetBAR1Info 

6468 _check_or_init_nvml() 

6469 if __nvmlVgpuTypeGetBAR1Info == NULL: 

6470 with gil: 

6471 raise FunctionNotFoundError("function nvmlVgpuTypeGetBAR1Info is not found") 

6472 return (<nvmlReturn_t (*)(nvmlVgpuTypeId_t, nvmlVgpuTypeBar1Info_t*) noexcept nogil>__nvmlVgpuTypeGetBAR1Info)( 

6473 vgpuTypeId, bar1Info) 

6474  

6475  

6476cdef nvmlReturn_t _nvmlDeviceGetActiveVgpus(nvmlDevice_t device, unsigned int* vgpuCount, nvmlVgpuInstance_t* vgpuInstances) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6477 global __nvmlDeviceGetActiveVgpus 

6478 _check_or_init_nvml() 

6479 if __nvmlDeviceGetActiveVgpus == NULL: 

6480 with gil: 

6481 raise FunctionNotFoundError("function nvmlDeviceGetActiveVgpus is not found") 

6482 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, nvmlVgpuInstance_t*) noexcept nogil>__nvmlDeviceGetActiveVgpus)( 

6483 device, vgpuCount, vgpuInstances) 

6484  

6485  

6486cdef nvmlReturn_t _nvmlVgpuInstanceGetVmID(nvmlVgpuInstance_t vgpuInstance, char* vmId, unsigned int size, nvmlVgpuVmIdType_t* vmIdType) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6487 global __nvmlVgpuInstanceGetVmID 

6488 _check_or_init_nvml() 

6489 if __nvmlVgpuInstanceGetVmID == NULL: 

6490 with gil: 

6491 raise FunctionNotFoundError("function nvmlVgpuInstanceGetVmID is not found") 

6492 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, char*, unsigned int, nvmlVgpuVmIdType_t*) noexcept nogil>__nvmlVgpuInstanceGetVmID)( 

6493 vgpuInstance, vmId, size, vmIdType) 

6494  

6495  

6496cdef nvmlReturn_t _nvmlVgpuInstanceGetUUID(nvmlVgpuInstance_t vgpuInstance, char* uuid, unsigned int size) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6497 global __nvmlVgpuInstanceGetUUID 

6498 _check_or_init_nvml() 

6499 if __nvmlVgpuInstanceGetUUID == NULL: 

6500 with gil: 

6501 raise FunctionNotFoundError("function nvmlVgpuInstanceGetUUID is not found") 

6502 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, char*, unsigned int) noexcept nogil>__nvmlVgpuInstanceGetUUID)( 

6503 vgpuInstance, uuid, size) 

6504  

6505  

6506cdef nvmlReturn_t _nvmlVgpuInstanceGetVmDriverVersion(nvmlVgpuInstance_t vgpuInstance, char* version, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6507 global __nvmlVgpuInstanceGetVmDriverVersion 

6508 _check_or_init_nvml() 

6509 if __nvmlVgpuInstanceGetVmDriverVersion == NULL: 

6510 with gil: 

6511 raise FunctionNotFoundError("function nvmlVgpuInstanceGetVmDriverVersion is not found") 

6512 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, char*, unsigned int) noexcept nogil>__nvmlVgpuInstanceGetVmDriverVersion)( 

6513 vgpuInstance, version, length) 

6514  

6515  

6516cdef nvmlReturn_t _nvmlVgpuInstanceGetFbUsage(nvmlVgpuInstance_t vgpuInstance, unsigned long long* fbUsage) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6517 global __nvmlVgpuInstanceGetFbUsage 

6518 _check_or_init_nvml() 

6519 if __nvmlVgpuInstanceGetFbUsage == NULL: 

6520 with gil: 

6521 raise FunctionNotFoundError("function nvmlVgpuInstanceGetFbUsage is not found") 

6522 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, unsigned long long*) noexcept nogil>__nvmlVgpuInstanceGetFbUsage)( 

6523 vgpuInstance, fbUsage) 

6524  

6525  

6526cdef nvmlReturn_t _nvmlVgpuInstanceGetLicenseStatus(nvmlVgpuInstance_t vgpuInstance, unsigned int* licensed) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6527 global __nvmlVgpuInstanceGetLicenseStatus 

6528 _check_or_init_nvml() 

6529 if __nvmlVgpuInstanceGetLicenseStatus == NULL: 

6530 with gil: 

6531 raise FunctionNotFoundError("function nvmlVgpuInstanceGetLicenseStatus is not found") 

6532 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, unsigned int*) noexcept nogil>__nvmlVgpuInstanceGetLicenseStatus)( 

6533 vgpuInstance, licensed) 

6534  

6535  

6536cdef nvmlReturn_t _nvmlVgpuInstanceGetType(nvmlVgpuInstance_t vgpuInstance, nvmlVgpuTypeId_t* vgpuTypeId) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6537 global __nvmlVgpuInstanceGetType 

6538 _check_or_init_nvml() 

6539 if __nvmlVgpuInstanceGetType == NULL: 

6540 with gil: 

6541 raise FunctionNotFoundError("function nvmlVgpuInstanceGetType is not found") 

6542 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, nvmlVgpuTypeId_t*) noexcept nogil>__nvmlVgpuInstanceGetType)( 

6543 vgpuInstance, vgpuTypeId) 

6544  

6545  

6546cdef nvmlReturn_t _nvmlVgpuInstanceGetFrameRateLimit(nvmlVgpuInstance_t vgpuInstance, unsigned int* frameRateLimit) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6547 global __nvmlVgpuInstanceGetFrameRateLimit 

6548 _check_or_init_nvml() 

6549 if __nvmlVgpuInstanceGetFrameRateLimit == NULL: 

6550 with gil: 

6551 raise FunctionNotFoundError("function nvmlVgpuInstanceGetFrameRateLimit is not found") 

6552 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, unsigned int*) noexcept nogil>__nvmlVgpuInstanceGetFrameRateLimit)( 

6553 vgpuInstance, frameRateLimit) 

6554  

6555  

6556cdef nvmlReturn_t _nvmlVgpuInstanceGetEccMode(nvmlVgpuInstance_t vgpuInstance, nvmlEnableState_t* eccMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6557 global __nvmlVgpuInstanceGetEccMode 

6558 _check_or_init_nvml() 

6559 if __nvmlVgpuInstanceGetEccMode == NULL: 

6560 with gil: 

6561 raise FunctionNotFoundError("function nvmlVgpuInstanceGetEccMode is not found") 

6562 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, nvmlEnableState_t*) noexcept nogil>__nvmlVgpuInstanceGetEccMode)( 

6563 vgpuInstance, eccMode) 

6564  

6565  

6566cdef nvmlReturn_t _nvmlVgpuInstanceGetEncoderCapacity(nvmlVgpuInstance_t vgpuInstance, unsigned int* encoderCapacity) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6567 global __nvmlVgpuInstanceGetEncoderCapacity 

6568 _check_or_init_nvml() 

6569 if __nvmlVgpuInstanceGetEncoderCapacity == NULL: 

6570 with gil: 

6571 raise FunctionNotFoundError("function nvmlVgpuInstanceGetEncoderCapacity is not found") 

6572 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, unsigned int*) noexcept nogil>__nvmlVgpuInstanceGetEncoderCapacity)( 

6573 vgpuInstance, encoderCapacity) 

6574  

6575  

6576cdef nvmlReturn_t _nvmlVgpuInstanceSetEncoderCapacity(nvmlVgpuInstance_t vgpuInstance, unsigned int encoderCapacity) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6577 global __nvmlVgpuInstanceSetEncoderCapacity 

6578 _check_or_init_nvml() 

6579 if __nvmlVgpuInstanceSetEncoderCapacity == NULL: 

6580 with gil: 

6581 raise FunctionNotFoundError("function nvmlVgpuInstanceSetEncoderCapacity is not found") 

6582 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, unsigned int) noexcept nogil>__nvmlVgpuInstanceSetEncoderCapacity)( 

6583 vgpuInstance, encoderCapacity) 

6584  

6585  

6586cdef nvmlReturn_t _nvmlVgpuInstanceGetEncoderStats(nvmlVgpuInstance_t vgpuInstance, unsigned int* sessionCount, unsigned int* averageFps, unsigned int* averageLatency) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6587 global __nvmlVgpuInstanceGetEncoderStats 

6588 _check_or_init_nvml() 

6589 if __nvmlVgpuInstanceGetEncoderStats == NULL: 

6590 with gil: 

6591 raise FunctionNotFoundError("function nvmlVgpuInstanceGetEncoderStats is not found") 

6592 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, unsigned int*, unsigned int*, unsigned int*) noexcept nogil>__nvmlVgpuInstanceGetEncoderStats)( 

6593 vgpuInstance, sessionCount, averageFps, averageLatency) 

6594  

6595  

6596cdef nvmlReturn_t _nvmlVgpuInstanceGetEncoderSessions(nvmlVgpuInstance_t vgpuInstance, unsigned int* sessionCount, nvmlEncoderSessionInfo_t* sessionInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6597 global __nvmlVgpuInstanceGetEncoderSessions 

6598 _check_or_init_nvml() 

6599 if __nvmlVgpuInstanceGetEncoderSessions == NULL: 

6600 with gil: 

6601 raise FunctionNotFoundError("function nvmlVgpuInstanceGetEncoderSessions is not found") 

6602 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, unsigned int*, nvmlEncoderSessionInfo_t*) noexcept nogil>__nvmlVgpuInstanceGetEncoderSessions)( 

6603 vgpuInstance, sessionCount, sessionInfo) 

6604  

6605  

6606cdef nvmlReturn_t _nvmlVgpuInstanceGetFBCStats(nvmlVgpuInstance_t vgpuInstance, nvmlFBCStats_t* fbcStats) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6607 global __nvmlVgpuInstanceGetFBCStats 

6608 _check_or_init_nvml() 

6609 if __nvmlVgpuInstanceGetFBCStats == NULL: 

6610 with gil: 

6611 raise FunctionNotFoundError("function nvmlVgpuInstanceGetFBCStats is not found") 

6612 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, nvmlFBCStats_t*) noexcept nogil>__nvmlVgpuInstanceGetFBCStats)( 

6613 vgpuInstance, fbcStats) 

6614  

6615  

6616cdef nvmlReturn_t _nvmlVgpuInstanceGetFBCSessions(nvmlVgpuInstance_t vgpuInstance, unsigned int* sessionCount, nvmlFBCSessionInfo_t* sessionInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6617 global __nvmlVgpuInstanceGetFBCSessions 

6618 _check_or_init_nvml() 

6619 if __nvmlVgpuInstanceGetFBCSessions == NULL: 

6620 with gil: 

6621 raise FunctionNotFoundError("function nvmlVgpuInstanceGetFBCSessions is not found") 

6622 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, unsigned int*, nvmlFBCSessionInfo_t*) noexcept nogil>__nvmlVgpuInstanceGetFBCSessions)( 

6623 vgpuInstance, sessionCount, sessionInfo) 

6624  

6625  

6626cdef nvmlReturn_t _nvmlVgpuInstanceGetGpuInstanceId(nvmlVgpuInstance_t vgpuInstance, unsigned int* gpuInstanceId) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6627 global __nvmlVgpuInstanceGetGpuInstanceId 

6628 _check_or_init_nvml() 

6629 if __nvmlVgpuInstanceGetGpuInstanceId == NULL: 

6630 with gil: 

6631 raise FunctionNotFoundError("function nvmlVgpuInstanceGetGpuInstanceId is not found") 

6632 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, unsigned int*) noexcept nogil>__nvmlVgpuInstanceGetGpuInstanceId)( 

6633 vgpuInstance, gpuInstanceId) 

6634  

6635  

6636cdef nvmlReturn_t _nvmlVgpuInstanceGetGpuPciId(nvmlVgpuInstance_t vgpuInstance, char* vgpuPciId, unsigned int* length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6637 global __nvmlVgpuInstanceGetGpuPciId 

6638 _check_or_init_nvml() 

6639 if __nvmlVgpuInstanceGetGpuPciId == NULL: 

6640 with gil: 

6641 raise FunctionNotFoundError("function nvmlVgpuInstanceGetGpuPciId is not found") 

6642 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, char*, unsigned int*) noexcept nogil>__nvmlVgpuInstanceGetGpuPciId)( 

6643 vgpuInstance, vgpuPciId, length) 

6644  

6645  

6646cdef nvmlReturn_t _nvmlVgpuTypeGetCapabilities(nvmlVgpuTypeId_t vgpuTypeId, nvmlVgpuCapability_t capability, unsigned int* capResult) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6647 global __nvmlVgpuTypeGetCapabilities 

6648 _check_or_init_nvml() 

6649 if __nvmlVgpuTypeGetCapabilities == NULL: 

6650 with gil: 

6651 raise FunctionNotFoundError("function nvmlVgpuTypeGetCapabilities is not found") 

6652 return (<nvmlReturn_t (*)(nvmlVgpuTypeId_t, nvmlVgpuCapability_t, unsigned int*) noexcept nogil>__nvmlVgpuTypeGetCapabilities)( 

6653 vgpuTypeId, capability, capResult) 

6654  

6655  

6656cdef nvmlReturn_t _nvmlVgpuInstanceGetMdevUUID(nvmlVgpuInstance_t vgpuInstance, char* mdevUuid, unsigned int size) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6657 global __nvmlVgpuInstanceGetMdevUUID 

6658 _check_or_init_nvml() 

6659 if __nvmlVgpuInstanceGetMdevUUID == NULL: 

6660 with gil: 

6661 raise FunctionNotFoundError("function nvmlVgpuInstanceGetMdevUUID is not found") 

6662 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, char*, unsigned int) noexcept nogil>__nvmlVgpuInstanceGetMdevUUID)( 

6663 vgpuInstance, mdevUuid, size) 

6664  

6665  

6666cdef nvmlReturn_t _nvmlGpuInstanceGetCreatableVgpus(nvmlGpuInstance_t gpuInstance, nvmlVgpuTypeIdInfo_t* pVgpus) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6667 global __nvmlGpuInstanceGetCreatableVgpus 

6668 _check_or_init_nvml() 

6669 if __nvmlGpuInstanceGetCreatableVgpus == NULL: 

6670 with gil: 

6671 raise FunctionNotFoundError("function nvmlGpuInstanceGetCreatableVgpus is not found") 

6672 return (<nvmlReturn_t (*)(nvmlGpuInstance_t, nvmlVgpuTypeIdInfo_t*) noexcept nogil>__nvmlGpuInstanceGetCreatableVgpus)( 

6673 gpuInstance, pVgpus) 

6674  

6675  

6676cdef nvmlReturn_t _nvmlVgpuTypeGetMaxInstancesPerGpuInstance(nvmlVgpuTypeMaxInstance_t* pMaxInstance) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6677 global __nvmlVgpuTypeGetMaxInstancesPerGpuInstance 

6678 _check_or_init_nvml() 

6679 if __nvmlVgpuTypeGetMaxInstancesPerGpuInstance == NULL: 

6680 with gil: 

6681 raise FunctionNotFoundError("function nvmlVgpuTypeGetMaxInstancesPerGpuInstance is not found") 

6682 return (<nvmlReturn_t (*)(nvmlVgpuTypeMaxInstance_t*) noexcept nogil>__nvmlVgpuTypeGetMaxInstancesPerGpuInstance)( 

6683 pMaxInstance) 

6684  

6685  

6686cdef nvmlReturn_t _nvmlGpuInstanceGetActiveVgpus(nvmlGpuInstance_t gpuInstance, nvmlActiveVgpuInstanceInfo_t* pVgpuInstanceInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6687 global __nvmlGpuInstanceGetActiveVgpus 

6688 _check_or_init_nvml() 

6689 if __nvmlGpuInstanceGetActiveVgpus == NULL: 

6690 with gil: 

6691 raise FunctionNotFoundError("function nvmlGpuInstanceGetActiveVgpus is not found") 

6692 return (<nvmlReturn_t (*)(nvmlGpuInstance_t, nvmlActiveVgpuInstanceInfo_t*) noexcept nogil>__nvmlGpuInstanceGetActiveVgpus)( 

6693 gpuInstance, pVgpuInstanceInfo) 

6694  

6695  

6696cdef nvmlReturn_t _nvmlGpuInstanceSetVgpuSchedulerState(nvmlGpuInstance_t gpuInstance, nvmlVgpuSchedulerState_t* pScheduler) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6697 global __nvmlGpuInstanceSetVgpuSchedulerState 

6698 _check_or_init_nvml() 

6699 if __nvmlGpuInstanceSetVgpuSchedulerState == NULL: 

6700 with gil: 

6701 raise FunctionNotFoundError("function nvmlGpuInstanceSetVgpuSchedulerState is not found") 

6702 return (<nvmlReturn_t (*)(nvmlGpuInstance_t, nvmlVgpuSchedulerState_t*) noexcept nogil>__nvmlGpuInstanceSetVgpuSchedulerState)( 

6703 gpuInstance, pScheduler) 

6704  

6705  

6706cdef nvmlReturn_t _nvmlGpuInstanceGetVgpuSchedulerState(nvmlGpuInstance_t gpuInstance, nvmlVgpuSchedulerStateInfo_t* pSchedulerStateInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6707 global __nvmlGpuInstanceGetVgpuSchedulerState 

6708 _check_or_init_nvml() 

6709 if __nvmlGpuInstanceGetVgpuSchedulerState == NULL: 

6710 with gil: 

6711 raise FunctionNotFoundError("function nvmlGpuInstanceGetVgpuSchedulerState is not found") 

6712 return (<nvmlReturn_t (*)(nvmlGpuInstance_t, nvmlVgpuSchedulerStateInfo_t*) noexcept nogil>__nvmlGpuInstanceGetVgpuSchedulerState)( 

6713 gpuInstance, pSchedulerStateInfo) 

6714  

6715  

6716cdef nvmlReturn_t _nvmlGpuInstanceGetVgpuSchedulerLog(nvmlGpuInstance_t gpuInstance, nvmlVgpuSchedulerLogInfo_t* pSchedulerLogInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6717 global __nvmlGpuInstanceGetVgpuSchedulerLog 

6718 _check_or_init_nvml() 

6719 if __nvmlGpuInstanceGetVgpuSchedulerLog == NULL: 

6720 with gil: 

6721 raise FunctionNotFoundError("function nvmlGpuInstanceGetVgpuSchedulerLog is not found") 

6722 return (<nvmlReturn_t (*)(nvmlGpuInstance_t, nvmlVgpuSchedulerLogInfo_t*) noexcept nogil>__nvmlGpuInstanceGetVgpuSchedulerLog)( 

6723 gpuInstance, pSchedulerLogInfo) 

6724  

6725  

6726cdef nvmlReturn_t _nvmlGpuInstanceGetVgpuTypeCreatablePlacements(nvmlGpuInstance_t gpuInstance, nvmlVgpuCreatablePlacementInfo_t* pCreatablePlacementInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6727 global __nvmlGpuInstanceGetVgpuTypeCreatablePlacements 

6728 _check_or_init_nvml() 

6729 if __nvmlGpuInstanceGetVgpuTypeCreatablePlacements == NULL: 

6730 with gil: 

6731 raise FunctionNotFoundError("function nvmlGpuInstanceGetVgpuTypeCreatablePlacements is not found") 

6732 return (<nvmlReturn_t (*)(nvmlGpuInstance_t, nvmlVgpuCreatablePlacementInfo_t*) noexcept nogil>__nvmlGpuInstanceGetVgpuTypeCreatablePlacements)( 

6733 gpuInstance, pCreatablePlacementInfo) 

6734  

6735  

6736cdef nvmlReturn_t _nvmlGpuInstanceGetVgpuHeterogeneousMode(nvmlGpuInstance_t gpuInstance, nvmlVgpuHeterogeneousMode_t* pHeterogeneousMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6737 global __nvmlGpuInstanceGetVgpuHeterogeneousMode 

6738 _check_or_init_nvml() 

6739 if __nvmlGpuInstanceGetVgpuHeterogeneousMode == NULL: 

6740 with gil: 

6741 raise FunctionNotFoundError("function nvmlGpuInstanceGetVgpuHeterogeneousMode is not found") 

6742 return (<nvmlReturn_t (*)(nvmlGpuInstance_t, nvmlVgpuHeterogeneousMode_t*) noexcept nogil>__nvmlGpuInstanceGetVgpuHeterogeneousMode)( 

6743 gpuInstance, pHeterogeneousMode) 

6744  

6745  

6746cdef nvmlReturn_t _nvmlGpuInstanceSetVgpuHeterogeneousMode(nvmlGpuInstance_t gpuInstance, const nvmlVgpuHeterogeneousMode_t* pHeterogeneousMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6747 global __nvmlGpuInstanceSetVgpuHeterogeneousMode 

6748 _check_or_init_nvml() 

6749 if __nvmlGpuInstanceSetVgpuHeterogeneousMode == NULL: 

6750 with gil: 

6751 raise FunctionNotFoundError("function nvmlGpuInstanceSetVgpuHeterogeneousMode is not found") 

6752 return (<nvmlReturn_t (*)(nvmlGpuInstance_t, const nvmlVgpuHeterogeneousMode_t*) noexcept nogil>__nvmlGpuInstanceSetVgpuHeterogeneousMode)( 

6753 gpuInstance, pHeterogeneousMode) 

6754  

6755  

6756cdef nvmlReturn_t _nvmlVgpuInstanceGetMetadata(nvmlVgpuInstance_t vgpuInstance, nvmlVgpuMetadata_t* vgpuMetadata, unsigned int* bufferSize) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6757 global __nvmlVgpuInstanceGetMetadata 

6758 _check_or_init_nvml() 

6759 if __nvmlVgpuInstanceGetMetadata == NULL: 

6760 with gil: 

6761 raise FunctionNotFoundError("function nvmlVgpuInstanceGetMetadata is not found") 

6762 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, nvmlVgpuMetadata_t*, unsigned int*) noexcept nogil>__nvmlVgpuInstanceGetMetadata)( 

6763 vgpuInstance, vgpuMetadata, bufferSize) 

6764  

6765  

6766cdef nvmlReturn_t _nvmlDeviceGetVgpuMetadata(nvmlDevice_t device, nvmlVgpuPgpuMetadata_t* pgpuMetadata, unsigned int* bufferSize) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6767 global __nvmlDeviceGetVgpuMetadata 

6768 _check_or_init_nvml() 

6769 if __nvmlDeviceGetVgpuMetadata == NULL: 

6770 with gil: 

6771 raise FunctionNotFoundError("function nvmlDeviceGetVgpuMetadata is not found") 

6772 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlVgpuPgpuMetadata_t*, unsigned int*) noexcept nogil>__nvmlDeviceGetVgpuMetadata)( 

6773 device, pgpuMetadata, bufferSize) 

6774  

6775  

6776cdef nvmlReturn_t _nvmlGetVgpuCompatibility(nvmlVgpuMetadata_t* vgpuMetadata, nvmlVgpuPgpuMetadata_t* pgpuMetadata, nvmlVgpuPgpuCompatibility_t* compatibilityInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6777 global __nvmlGetVgpuCompatibility 

6778 _check_or_init_nvml() 

6779 if __nvmlGetVgpuCompatibility == NULL: 

6780 with gil: 

6781 raise FunctionNotFoundError("function nvmlGetVgpuCompatibility is not found") 

6782 return (<nvmlReturn_t (*)(nvmlVgpuMetadata_t*, nvmlVgpuPgpuMetadata_t*, nvmlVgpuPgpuCompatibility_t*) noexcept nogil>__nvmlGetVgpuCompatibility)( 

6783 vgpuMetadata, pgpuMetadata, compatibilityInfo) 

6784  

6785  

6786cdef nvmlReturn_t _nvmlDeviceGetPgpuMetadataString(nvmlDevice_t device, char* pgpuMetadata, unsigned int* bufferSize) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6787 global __nvmlDeviceGetPgpuMetadataString 

6788 _check_or_init_nvml() 

6789 if __nvmlDeviceGetPgpuMetadataString == NULL: 

6790 with gil: 

6791 raise FunctionNotFoundError("function nvmlDeviceGetPgpuMetadataString is not found") 

6792 return (<nvmlReturn_t (*)(nvmlDevice_t, char*, unsigned int*) noexcept nogil>__nvmlDeviceGetPgpuMetadataString)( 

6793 device, pgpuMetadata, bufferSize) 

6794  

6795  

6796cdef nvmlReturn_t _nvmlDeviceGetVgpuSchedulerLog(nvmlDevice_t device, nvmlVgpuSchedulerLog_t* pSchedulerLog) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6797 global __nvmlDeviceGetVgpuSchedulerLog 

6798 _check_or_init_nvml() 

6799 if __nvmlDeviceGetVgpuSchedulerLog == NULL: 

6800 with gil: 

6801 raise FunctionNotFoundError("function nvmlDeviceGetVgpuSchedulerLog is not found") 

6802 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlVgpuSchedulerLog_t*) noexcept nogil>__nvmlDeviceGetVgpuSchedulerLog)( 

6803 device, pSchedulerLog) 

6804  

6805  

6806cdef nvmlReturn_t _nvmlDeviceGetVgpuSchedulerState(nvmlDevice_t device, nvmlVgpuSchedulerGetState_t* pSchedulerState) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6807 global __nvmlDeviceGetVgpuSchedulerState 

6808 _check_or_init_nvml() 

6809 if __nvmlDeviceGetVgpuSchedulerState == NULL: 

6810 with gil: 

6811 raise FunctionNotFoundError("function nvmlDeviceGetVgpuSchedulerState is not found") 

6812 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlVgpuSchedulerGetState_t*) noexcept nogil>__nvmlDeviceGetVgpuSchedulerState)( 

6813 device, pSchedulerState) 

6814  

6815  

6816cdef nvmlReturn_t _nvmlDeviceGetVgpuSchedulerCapabilities(nvmlDevice_t device, nvmlVgpuSchedulerCapabilities_t* pCapabilities) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6817 global __nvmlDeviceGetVgpuSchedulerCapabilities 

6818 _check_or_init_nvml() 

6819 if __nvmlDeviceGetVgpuSchedulerCapabilities == NULL: 

6820 with gil: 

6821 raise FunctionNotFoundError("function nvmlDeviceGetVgpuSchedulerCapabilities is not found") 

6822 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlVgpuSchedulerCapabilities_t*) noexcept nogil>__nvmlDeviceGetVgpuSchedulerCapabilities)( 

6823 device, pCapabilities) 

6824  

6825  

6826cdef nvmlReturn_t _nvmlDeviceSetVgpuSchedulerState(nvmlDevice_t device, nvmlVgpuSchedulerSetState_t* pSchedulerState) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6827 global __nvmlDeviceSetVgpuSchedulerState 

6828 _check_or_init_nvml() 

6829 if __nvmlDeviceSetVgpuSchedulerState == NULL: 

6830 with gil: 

6831 raise FunctionNotFoundError("function nvmlDeviceSetVgpuSchedulerState is not found") 

6832 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlVgpuSchedulerSetState_t*) noexcept nogil>__nvmlDeviceSetVgpuSchedulerState)( 

6833 device, pSchedulerState) 

6834  

6835  

6836cdef nvmlReturn_t _nvmlGetVgpuVersion(nvmlVgpuVersion_t* supported, nvmlVgpuVersion_t* current) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6837 global __nvmlGetVgpuVersion 

6838 _check_or_init_nvml() 

6839 if __nvmlGetVgpuVersion == NULL: 

6840 with gil: 

6841 raise FunctionNotFoundError("function nvmlGetVgpuVersion is not found") 

6842 return (<nvmlReturn_t (*)(nvmlVgpuVersion_t*, nvmlVgpuVersion_t*) noexcept nogil>__nvmlGetVgpuVersion)( 

6843 supported, current) 

6844  

6845  

6846cdef nvmlReturn_t _nvmlSetVgpuVersion(nvmlVgpuVersion_t* vgpuVersion) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6847 global __nvmlSetVgpuVersion 

6848 _check_or_init_nvml() 

6849 if __nvmlSetVgpuVersion == NULL: 

6850 with gil: 

6851 raise FunctionNotFoundError("function nvmlSetVgpuVersion is not found") 

6852 return (<nvmlReturn_t (*)(nvmlVgpuVersion_t*) noexcept nogil>__nvmlSetVgpuVersion)( 

6853 vgpuVersion) 

6854  

6855  

6856cdef 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: 

6857 global __nvmlDeviceGetVgpuUtilization 

6858 _check_or_init_nvml() 

6859 if __nvmlDeviceGetVgpuUtilization == NULL: 

6860 with gil: 

6861 raise FunctionNotFoundError("function nvmlDeviceGetVgpuUtilization is not found") 

6862 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned long long, nvmlValueType_t*, unsigned int*, nvmlVgpuInstanceUtilizationSample_t*) noexcept nogil>__nvmlDeviceGetVgpuUtilization)( 

6863 device, lastSeenTimeStamp, sampleValType, vgpuInstanceSamplesCount, utilizationSamples) 

6864  

6865  

6866cdef nvmlReturn_t _nvmlDeviceGetVgpuInstancesUtilizationInfo(nvmlDevice_t device, nvmlVgpuInstancesUtilizationInfo_t* vgpuUtilInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6867 global __nvmlDeviceGetVgpuInstancesUtilizationInfo 

6868 _check_or_init_nvml() 

6869 if __nvmlDeviceGetVgpuInstancesUtilizationInfo == NULL: 

6870 with gil: 

6871 raise FunctionNotFoundError("function nvmlDeviceGetVgpuInstancesUtilizationInfo is not found") 

6872 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlVgpuInstancesUtilizationInfo_t*) noexcept nogil>__nvmlDeviceGetVgpuInstancesUtilizationInfo)( 

6873 device, vgpuUtilInfo) 

6874  

6875  

6876cdef nvmlReturn_t _nvmlDeviceGetVgpuProcessUtilization(nvmlDevice_t device, unsigned long long lastSeenTimeStamp, unsigned int* vgpuProcessSamplesCount, nvmlVgpuProcessUtilizationSample_t* utilizationSamples) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6877 global __nvmlDeviceGetVgpuProcessUtilization 

6878 _check_or_init_nvml() 

6879 if __nvmlDeviceGetVgpuProcessUtilization == NULL: 

6880 with gil: 

6881 raise FunctionNotFoundError("function nvmlDeviceGetVgpuProcessUtilization is not found") 

6882 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned long long, unsigned int*, nvmlVgpuProcessUtilizationSample_t*) noexcept nogil>__nvmlDeviceGetVgpuProcessUtilization)( 

6883 device, lastSeenTimeStamp, vgpuProcessSamplesCount, utilizationSamples) 

6884  

6885  

6886cdef nvmlReturn_t _nvmlDeviceGetVgpuProcessesUtilizationInfo(nvmlDevice_t device, nvmlVgpuProcessesUtilizationInfo_t* vgpuProcUtilInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6887 global __nvmlDeviceGetVgpuProcessesUtilizationInfo 

6888 _check_or_init_nvml() 

6889 if __nvmlDeviceGetVgpuProcessesUtilizationInfo == NULL: 

6890 with gil: 

6891 raise FunctionNotFoundError("function nvmlDeviceGetVgpuProcessesUtilizationInfo is not found") 

6892 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlVgpuProcessesUtilizationInfo_t*) noexcept nogil>__nvmlDeviceGetVgpuProcessesUtilizationInfo)( 

6893 device, vgpuProcUtilInfo) 

6894  

6895  

6896cdef nvmlReturn_t _nvmlVgpuInstanceGetAccountingMode(nvmlVgpuInstance_t vgpuInstance, nvmlEnableState_t* mode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6897 global __nvmlVgpuInstanceGetAccountingMode 

6898 _check_or_init_nvml() 

6899 if __nvmlVgpuInstanceGetAccountingMode == NULL: 

6900 with gil: 

6901 raise FunctionNotFoundError("function nvmlVgpuInstanceGetAccountingMode is not found") 

6902 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, nvmlEnableState_t*) noexcept nogil>__nvmlVgpuInstanceGetAccountingMode)( 

6903 vgpuInstance, mode) 

6904  

6905  

6906cdef nvmlReturn_t _nvmlVgpuInstanceGetAccountingPids(nvmlVgpuInstance_t vgpuInstance, unsigned int* count, unsigned int* pids) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6907 global __nvmlVgpuInstanceGetAccountingPids 

6908 _check_or_init_nvml() 

6909 if __nvmlVgpuInstanceGetAccountingPids == NULL: 

6910 with gil: 

6911 raise FunctionNotFoundError("function nvmlVgpuInstanceGetAccountingPids is not found") 

6912 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, unsigned int*, unsigned int*) noexcept nogil>__nvmlVgpuInstanceGetAccountingPids)( 

6913 vgpuInstance, count, pids) 

6914  

6915  

6916cdef nvmlReturn_t _nvmlVgpuInstanceGetAccountingStats(nvmlVgpuInstance_t vgpuInstance, unsigned int pid, nvmlAccountingStats_t* stats) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6917 global __nvmlVgpuInstanceGetAccountingStats 

6918 _check_or_init_nvml() 

6919 if __nvmlVgpuInstanceGetAccountingStats == NULL: 

6920 with gil: 

6921 raise FunctionNotFoundError("function nvmlVgpuInstanceGetAccountingStats is not found") 

6922 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, unsigned int, nvmlAccountingStats_t*) noexcept nogil>__nvmlVgpuInstanceGetAccountingStats)( 

6923 vgpuInstance, pid, stats) 

6924  

6925  

6926cdef nvmlReturn_t _nvmlVgpuInstanceClearAccountingPids(nvmlVgpuInstance_t vgpuInstance) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6927 global __nvmlVgpuInstanceClearAccountingPids 

6928 _check_or_init_nvml() 

6929 if __nvmlVgpuInstanceClearAccountingPids == NULL: 

6930 with gil: 

6931 raise FunctionNotFoundError("function nvmlVgpuInstanceClearAccountingPids is not found") 

6932 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t) noexcept nogil>__nvmlVgpuInstanceClearAccountingPids)( 

6933 vgpuInstance) 

6934  

6935  

6936cdef nvmlReturn_t _nvmlVgpuInstanceGetLicenseInfo_v2(nvmlVgpuInstance_t vgpuInstance, nvmlVgpuLicenseInfo_t* licenseInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6937 global __nvmlVgpuInstanceGetLicenseInfo_v2 

6938 _check_or_init_nvml() 

6939 if __nvmlVgpuInstanceGetLicenseInfo_v2 == NULL: 

6940 with gil: 

6941 raise FunctionNotFoundError("function nvmlVgpuInstanceGetLicenseInfo_v2 is not found") 

6942 return (<nvmlReturn_t (*)(nvmlVgpuInstance_t, nvmlVgpuLicenseInfo_t*) noexcept nogil>__nvmlVgpuInstanceGetLicenseInfo_v2)( 

6943 vgpuInstance, licenseInfo) 

6944  

6945  

6946cdef nvmlReturn_t _nvmlGetExcludedDeviceCount(unsigned int* deviceCount) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6947 global __nvmlGetExcludedDeviceCount 

6948 _check_or_init_nvml() 

6949 if __nvmlGetExcludedDeviceCount == NULL: 

6950 with gil: 

6951 raise FunctionNotFoundError("function nvmlGetExcludedDeviceCount is not found") 

6952 return (<nvmlReturn_t (*)(unsigned int*) noexcept nogil>__nvmlGetExcludedDeviceCount)( 

6953 deviceCount) 

6954  

6955  

6956cdef nvmlReturn_t _nvmlGetExcludedDeviceInfoByIndex(unsigned int index, nvmlExcludedDeviceInfo_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6957 global __nvmlGetExcludedDeviceInfoByIndex 

6958 _check_or_init_nvml() 

6959 if __nvmlGetExcludedDeviceInfoByIndex == NULL: 

6960 with gil: 

6961 raise FunctionNotFoundError("function nvmlGetExcludedDeviceInfoByIndex is not found") 

6962 return (<nvmlReturn_t (*)(unsigned int, nvmlExcludedDeviceInfo_t*) noexcept nogil>__nvmlGetExcludedDeviceInfoByIndex)( 

6963 index, info) 

6964  

6965  

6966cdef nvmlReturn_t _nvmlDeviceSetMigMode(nvmlDevice_t device, unsigned int mode, nvmlReturn_t* activationStatus) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6967 global __nvmlDeviceSetMigMode 

6968 _check_or_init_nvml() 

6969 if __nvmlDeviceSetMigMode == NULL: 

6970 with gil: 

6971 raise FunctionNotFoundError("function nvmlDeviceSetMigMode is not found") 

6972 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlReturn_t*) noexcept nogil>__nvmlDeviceSetMigMode)( 

6973 device, mode, activationStatus) 

6974  

6975  

6976cdef nvmlReturn_t _nvmlDeviceGetMigMode(nvmlDevice_t device, unsigned int* currentMode, unsigned int* pendingMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6977 global __nvmlDeviceGetMigMode 

6978 _check_or_init_nvml() 

6979 if __nvmlDeviceGetMigMode == NULL: 

6980 with gil: 

6981 raise FunctionNotFoundError("function nvmlDeviceGetMigMode is not found") 

6982 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*, unsigned int*) noexcept nogil>__nvmlDeviceGetMigMode)( 

6983 device, currentMode, pendingMode) 

6984  

6985  

6986cdef nvmlReturn_t _nvmlDeviceGetGpuInstanceProfileInfoV(nvmlDevice_t device, unsigned int profile, nvmlGpuInstanceProfileInfo_v2_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6987 global __nvmlDeviceGetGpuInstanceProfileInfoV 

6988 _check_or_init_nvml() 

6989 if __nvmlDeviceGetGpuInstanceProfileInfoV == NULL: 

6990 with gil: 

6991 raise FunctionNotFoundError("function nvmlDeviceGetGpuInstanceProfileInfoV is not found") 

6992 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlGpuInstanceProfileInfo_v2_t*) noexcept nogil>__nvmlDeviceGetGpuInstanceProfileInfoV)( 

6993 device, profile, info) 

6994  

6995  

6996cdef nvmlReturn_t _nvmlDeviceGetGpuInstancePossiblePlacements_v2(nvmlDevice_t device, unsigned int profileId, nvmlGpuInstancePlacement_t* placements, unsigned int* count) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

6997 global __nvmlDeviceGetGpuInstancePossiblePlacements_v2 

6998 _check_or_init_nvml() 

6999 if __nvmlDeviceGetGpuInstancePossiblePlacements_v2 == NULL: 

7000 with gil: 

7001 raise FunctionNotFoundError("function nvmlDeviceGetGpuInstancePossiblePlacements_v2 is not found") 

7002 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlGpuInstancePlacement_t*, unsigned int*) noexcept nogil>__nvmlDeviceGetGpuInstancePossiblePlacements_v2)( 

7003 device, profileId, placements, count) 

7004  

7005  

7006cdef nvmlReturn_t _nvmlDeviceGetGpuInstanceRemainingCapacity(nvmlDevice_t device, unsigned int profileId, unsigned int* count) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7007 global __nvmlDeviceGetGpuInstanceRemainingCapacity 

7008 _check_or_init_nvml() 

7009 if __nvmlDeviceGetGpuInstanceRemainingCapacity == NULL: 

7010 with gil: 

7011 raise FunctionNotFoundError("function nvmlDeviceGetGpuInstanceRemainingCapacity is not found") 

7012 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, unsigned int*) noexcept nogil>__nvmlDeviceGetGpuInstanceRemainingCapacity)( 

7013 device, profileId, count) 

7014  

7015  

7016cdef nvmlReturn_t _nvmlDeviceCreateGpuInstance(nvmlDevice_t device, unsigned int profileId, nvmlGpuInstance_t* gpuInstance) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7017 global __nvmlDeviceCreateGpuInstance 

7018 _check_or_init_nvml() 

7019 if __nvmlDeviceCreateGpuInstance == NULL: 

7020 with gil: 

7021 raise FunctionNotFoundError("function nvmlDeviceCreateGpuInstance is not found") 

7022 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlGpuInstance_t*) noexcept nogil>__nvmlDeviceCreateGpuInstance)( 

7023 device, profileId, gpuInstance) 

7024  

7025  

7026cdef nvmlReturn_t _nvmlDeviceCreateGpuInstanceWithPlacement(nvmlDevice_t device, unsigned int profileId, const nvmlGpuInstancePlacement_t* placement, nvmlGpuInstance_t* gpuInstance) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7027 global __nvmlDeviceCreateGpuInstanceWithPlacement 

7028 _check_or_init_nvml() 

7029 if __nvmlDeviceCreateGpuInstanceWithPlacement == NULL: 

7030 with gil: 

7031 raise FunctionNotFoundError("function nvmlDeviceCreateGpuInstanceWithPlacement is not found") 

7032 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, const nvmlGpuInstancePlacement_t*, nvmlGpuInstance_t*) noexcept nogil>__nvmlDeviceCreateGpuInstanceWithPlacement)( 

7033 device, profileId, placement, gpuInstance) 

7034  

7035  

7036cdef nvmlReturn_t _nvmlGpuInstanceDestroy(nvmlGpuInstance_t gpuInstance) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7037 global __nvmlGpuInstanceDestroy 

7038 _check_or_init_nvml() 

7039 if __nvmlGpuInstanceDestroy == NULL: 

7040 with gil: 

7041 raise FunctionNotFoundError("function nvmlGpuInstanceDestroy is not found") 

7042 return (<nvmlReturn_t (*)(nvmlGpuInstance_t) noexcept nogil>__nvmlGpuInstanceDestroy)( 

7043 gpuInstance) 

7044  

7045  

7046cdef nvmlReturn_t _nvmlDeviceGetGpuInstances(nvmlDevice_t device, unsigned int profileId, nvmlGpuInstance_t* gpuInstances, unsigned int* count) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7047 global __nvmlDeviceGetGpuInstances 

7048 _check_or_init_nvml() 

7049 if __nvmlDeviceGetGpuInstances == NULL: 

7050 with gil: 

7051 raise FunctionNotFoundError("function nvmlDeviceGetGpuInstances is not found") 

7052 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlGpuInstance_t*, unsigned int*) noexcept nogil>__nvmlDeviceGetGpuInstances)( 

7053 device, profileId, gpuInstances, count) 

7054  

7055  

7056cdef nvmlReturn_t _nvmlDeviceGetGpuInstanceById(nvmlDevice_t device, unsigned int id, nvmlGpuInstance_t* gpuInstance) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7057 global __nvmlDeviceGetGpuInstanceById 

7058 _check_or_init_nvml() 

7059 if __nvmlDeviceGetGpuInstanceById == NULL: 

7060 with gil: 

7061 raise FunctionNotFoundError("function nvmlDeviceGetGpuInstanceById is not found") 

7062 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlGpuInstance_t*) noexcept nogil>__nvmlDeviceGetGpuInstanceById)( 

7063 device, id, gpuInstance) 

7064  

7065  

7066cdef nvmlReturn_t _nvmlGpuInstanceGetInfo(nvmlGpuInstance_t gpuInstance, nvmlGpuInstanceInfo_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7067 global __nvmlGpuInstanceGetInfo 

7068 _check_or_init_nvml() 

7069 if __nvmlGpuInstanceGetInfo == NULL: 

7070 with gil: 

7071 raise FunctionNotFoundError("function nvmlGpuInstanceGetInfo is not found") 

7072 return (<nvmlReturn_t (*)(nvmlGpuInstance_t, nvmlGpuInstanceInfo_t*) noexcept nogil>__nvmlGpuInstanceGetInfo)( 

7073 gpuInstance, info) 

7074  

7075  

7076cdef nvmlReturn_t _nvmlGpuInstanceGetComputeInstanceProfileInfoV(nvmlGpuInstance_t gpuInstance, unsigned int profile, unsigned int engProfile, nvmlComputeInstanceProfileInfo_v2_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7077 global __nvmlGpuInstanceGetComputeInstanceProfileInfoV 

7078 _check_or_init_nvml() 

7079 if __nvmlGpuInstanceGetComputeInstanceProfileInfoV == NULL: 

7080 with gil: 

7081 raise FunctionNotFoundError("function nvmlGpuInstanceGetComputeInstanceProfileInfoV is not found") 

7082 return (<nvmlReturn_t (*)(nvmlGpuInstance_t, unsigned int, unsigned int, nvmlComputeInstanceProfileInfo_v2_t*) noexcept nogil>__nvmlGpuInstanceGetComputeInstanceProfileInfoV)( 

7083 gpuInstance, profile, engProfile, info) 

7084  

7085  

7086cdef nvmlReturn_t _nvmlGpuInstanceGetComputeInstanceRemainingCapacity(nvmlGpuInstance_t gpuInstance, unsigned int profileId, unsigned int* count) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7087 global __nvmlGpuInstanceGetComputeInstanceRemainingCapacity 

7088 _check_or_init_nvml() 

7089 if __nvmlGpuInstanceGetComputeInstanceRemainingCapacity == NULL: 

7090 with gil: 

7091 raise FunctionNotFoundError("function nvmlGpuInstanceGetComputeInstanceRemainingCapacity is not found") 

7092 return (<nvmlReturn_t (*)(nvmlGpuInstance_t, unsigned int, unsigned int*) noexcept nogil>__nvmlGpuInstanceGetComputeInstanceRemainingCapacity)( 

7093 gpuInstance, profileId, count) 

7094  

7095  

7096cdef nvmlReturn_t _nvmlGpuInstanceGetComputeInstancePossiblePlacements(nvmlGpuInstance_t gpuInstance, unsigned int profileId, nvmlComputeInstancePlacement_t* placements, unsigned int* count) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7097 global __nvmlGpuInstanceGetComputeInstancePossiblePlacements 

7098 _check_or_init_nvml() 

7099 if __nvmlGpuInstanceGetComputeInstancePossiblePlacements == NULL: 

7100 with gil: 

7101 raise FunctionNotFoundError("function nvmlGpuInstanceGetComputeInstancePossiblePlacements is not found") 

7102 return (<nvmlReturn_t (*)(nvmlGpuInstance_t, unsigned int, nvmlComputeInstancePlacement_t*, unsigned int*) noexcept nogil>__nvmlGpuInstanceGetComputeInstancePossiblePlacements)( 

7103 gpuInstance, profileId, placements, count) 

7104  

7105  

7106cdef nvmlReturn_t _nvmlGpuInstanceCreateComputeInstance(nvmlGpuInstance_t gpuInstance, unsigned int profileId, nvmlComputeInstance_t* computeInstance) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7107 global __nvmlGpuInstanceCreateComputeInstance 

7108 _check_or_init_nvml() 

7109 if __nvmlGpuInstanceCreateComputeInstance == NULL: 

7110 with gil: 

7111 raise FunctionNotFoundError("function nvmlGpuInstanceCreateComputeInstance is not found") 

7112 return (<nvmlReturn_t (*)(nvmlGpuInstance_t, unsigned int, nvmlComputeInstance_t*) noexcept nogil>__nvmlGpuInstanceCreateComputeInstance)( 

7113 gpuInstance, profileId, computeInstance) 

7114  

7115  

7116cdef nvmlReturn_t _nvmlGpuInstanceCreateComputeInstanceWithPlacement(nvmlGpuInstance_t gpuInstance, unsigned int profileId, const nvmlComputeInstancePlacement_t* placement, nvmlComputeInstance_t* computeInstance) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7117 global __nvmlGpuInstanceCreateComputeInstanceWithPlacement 

7118 _check_or_init_nvml() 

7119 if __nvmlGpuInstanceCreateComputeInstanceWithPlacement == NULL: 

7120 with gil: 

7121 raise FunctionNotFoundError("function nvmlGpuInstanceCreateComputeInstanceWithPlacement is not found") 

7122 return (<nvmlReturn_t (*)(nvmlGpuInstance_t, unsigned int, const nvmlComputeInstancePlacement_t*, nvmlComputeInstance_t*) noexcept nogil>__nvmlGpuInstanceCreateComputeInstanceWithPlacement)( 

7123 gpuInstance, profileId, placement, computeInstance) 

7124  

7125  

7126cdef nvmlReturn_t _nvmlComputeInstanceDestroy(nvmlComputeInstance_t computeInstance) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7127 global __nvmlComputeInstanceDestroy 

7128 _check_or_init_nvml() 

7129 if __nvmlComputeInstanceDestroy == NULL: 

7130 with gil: 

7131 raise FunctionNotFoundError("function nvmlComputeInstanceDestroy is not found") 

7132 return (<nvmlReturn_t (*)(nvmlComputeInstance_t) noexcept nogil>__nvmlComputeInstanceDestroy)( 

7133 computeInstance) 

7134  

7135  

7136cdef nvmlReturn_t _nvmlGpuInstanceGetComputeInstances(nvmlGpuInstance_t gpuInstance, unsigned int profileId, nvmlComputeInstance_t* computeInstances, unsigned int* count) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7137 global __nvmlGpuInstanceGetComputeInstances 

7138 _check_or_init_nvml() 

7139 if __nvmlGpuInstanceGetComputeInstances == NULL: 

7140 with gil: 

7141 raise FunctionNotFoundError("function nvmlGpuInstanceGetComputeInstances is not found") 

7142 return (<nvmlReturn_t (*)(nvmlGpuInstance_t, unsigned int, nvmlComputeInstance_t*, unsigned int*) noexcept nogil>__nvmlGpuInstanceGetComputeInstances)( 

7143 gpuInstance, profileId, computeInstances, count) 

7144  

7145  

7146cdef nvmlReturn_t _nvmlGpuInstanceGetComputeInstanceById(nvmlGpuInstance_t gpuInstance, unsigned int id, nvmlComputeInstance_t* computeInstance) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7147 global __nvmlGpuInstanceGetComputeInstanceById 

7148 _check_or_init_nvml() 

7149 if __nvmlGpuInstanceGetComputeInstanceById == NULL: 

7150 with gil: 

7151 raise FunctionNotFoundError("function nvmlGpuInstanceGetComputeInstanceById is not found") 

7152 return (<nvmlReturn_t (*)(nvmlGpuInstance_t, unsigned int, nvmlComputeInstance_t*) noexcept nogil>__nvmlGpuInstanceGetComputeInstanceById)( 

7153 gpuInstance, id, computeInstance) 

7154  

7155  

7156cdef nvmlReturn_t _nvmlComputeInstanceGetInfo_v2(nvmlComputeInstance_t computeInstance, nvmlComputeInstanceInfo_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7157 global __nvmlComputeInstanceGetInfo_v2 

7158 _check_or_init_nvml() 

7159 if __nvmlComputeInstanceGetInfo_v2 == NULL: 

7160 with gil: 

7161 raise FunctionNotFoundError("function nvmlComputeInstanceGetInfo_v2 is not found") 

7162 return (<nvmlReturn_t (*)(nvmlComputeInstance_t, nvmlComputeInstanceInfo_t*) noexcept nogil>__nvmlComputeInstanceGetInfo_v2)( 

7163 computeInstance, info) 

7164  

7165  

7166cdef nvmlReturn_t _nvmlDeviceIsMigDeviceHandle(nvmlDevice_t device, unsigned int* isMigDevice) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7167 global __nvmlDeviceIsMigDeviceHandle 

7168 _check_or_init_nvml() 

7169 if __nvmlDeviceIsMigDeviceHandle == NULL: 

7170 with gil: 

7171 raise FunctionNotFoundError("function nvmlDeviceIsMigDeviceHandle is not found") 

7172 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceIsMigDeviceHandle)( 

7173 device, isMigDevice) 

7174  

7175  

7176cdef nvmlReturn_t _nvmlDeviceGetGpuInstanceId(nvmlDevice_t device, unsigned int* id) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7177 global __nvmlDeviceGetGpuInstanceId 

7178 _check_or_init_nvml() 

7179 if __nvmlDeviceGetGpuInstanceId == NULL: 

7180 with gil: 

7181 raise FunctionNotFoundError("function nvmlDeviceGetGpuInstanceId is not found") 

7182 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetGpuInstanceId)( 

7183 device, id) 

7184  

7185  

7186cdef nvmlReturn_t _nvmlDeviceGetComputeInstanceId(nvmlDevice_t device, unsigned int* id) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7187 global __nvmlDeviceGetComputeInstanceId 

7188 _check_or_init_nvml() 

7189 if __nvmlDeviceGetComputeInstanceId == NULL: 

7190 with gil: 

7191 raise FunctionNotFoundError("function nvmlDeviceGetComputeInstanceId is not found") 

7192 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetComputeInstanceId)( 

7193 device, id) 

7194  

7195  

7196cdef nvmlReturn_t _nvmlDeviceGetMaxMigDeviceCount(nvmlDevice_t device, unsigned int* count) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7197 global __nvmlDeviceGetMaxMigDeviceCount 

7198 _check_or_init_nvml() 

7199 if __nvmlDeviceGetMaxMigDeviceCount == NULL: 

7200 with gil: 

7201 raise FunctionNotFoundError("function nvmlDeviceGetMaxMigDeviceCount is not found") 

7202 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlDeviceGetMaxMigDeviceCount)( 

7203 device, count) 

7204  

7205  

7206cdef nvmlReturn_t _nvmlDeviceGetMigDeviceHandleByIndex(nvmlDevice_t device, unsigned int index, nvmlDevice_t* migDevice) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7207 global __nvmlDeviceGetMigDeviceHandleByIndex 

7208 _check_or_init_nvml() 

7209 if __nvmlDeviceGetMigDeviceHandleByIndex == NULL: 

7210 with gil: 

7211 raise FunctionNotFoundError("function nvmlDeviceGetMigDeviceHandleByIndex is not found") 

7212 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlDevice_t*) noexcept nogil>__nvmlDeviceGetMigDeviceHandleByIndex)( 

7213 device, index, migDevice) 

7214  

7215  

7216cdef nvmlReturn_t _nvmlDeviceGetDeviceHandleFromMigDeviceHandle(nvmlDevice_t migDevice, nvmlDevice_t* device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7217 global __nvmlDeviceGetDeviceHandleFromMigDeviceHandle 

7218 _check_or_init_nvml() 

7219 if __nvmlDeviceGetDeviceHandleFromMigDeviceHandle == NULL: 

7220 with gil: 

7221 raise FunctionNotFoundError("function nvmlDeviceGetDeviceHandleFromMigDeviceHandle is not found") 

7222 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlDevice_t*) noexcept nogil>__nvmlDeviceGetDeviceHandleFromMigDeviceHandle)( 

7223 migDevice, device) 

7224  

7225  

7226cdef nvmlReturn_t _nvmlGpmSampleGet(nvmlDevice_t device, nvmlGpmSample_t gpmSample) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7227 global __nvmlGpmSampleGet 

7228 _check_or_init_nvml() 

7229 if __nvmlGpmSampleGet == NULL: 

7230 with gil: 

7231 raise FunctionNotFoundError("function nvmlGpmSampleGet is not found") 

7232 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlGpmSample_t) noexcept nogil>__nvmlGpmSampleGet)( 

7233 device, gpmSample) 

7234  

7235  

7236cdef nvmlReturn_t _nvmlGpmMigSampleGet(nvmlDevice_t device, unsigned int gpuInstanceId, nvmlGpmSample_t gpmSample) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7237 global __nvmlGpmMigSampleGet 

7238 _check_or_init_nvml() 

7239 if __nvmlGpmMigSampleGet == NULL: 

7240 with gil: 

7241 raise FunctionNotFoundError("function nvmlGpmMigSampleGet is not found") 

7242 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlGpmSample_t) noexcept nogil>__nvmlGpmMigSampleGet)( 

7243 device, gpuInstanceId, gpmSample) 

7244  

7245  

7246cdef nvmlReturn_t _nvmlGpmQueryDeviceSupport(nvmlDevice_t device, nvmlGpmSupport_t* gpmSupport) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7247 global __nvmlGpmQueryDeviceSupport 

7248 _check_or_init_nvml() 

7249 if __nvmlGpmQueryDeviceSupport == NULL: 

7250 with gil: 

7251 raise FunctionNotFoundError("function nvmlGpmQueryDeviceSupport is not found") 

7252 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlGpmSupport_t*) noexcept nogil>__nvmlGpmQueryDeviceSupport)( 

7253 device, gpmSupport) 

7254  

7255  

7256cdef nvmlReturn_t _nvmlGpmQueryIfStreamingEnabled(nvmlDevice_t device, unsigned int* state) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7257 global __nvmlGpmQueryIfStreamingEnabled 

7258 _check_or_init_nvml() 

7259 if __nvmlGpmQueryIfStreamingEnabled == NULL: 

7260 with gil: 

7261 raise FunctionNotFoundError("function nvmlGpmQueryIfStreamingEnabled is not found") 

7262 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int*) noexcept nogil>__nvmlGpmQueryIfStreamingEnabled)( 

7263 device, state) 

7264  

7265  

7266cdef nvmlReturn_t _nvmlGpmSetStreamingEnabled(nvmlDevice_t device, unsigned int state) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7267 global __nvmlGpmSetStreamingEnabled 

7268 _check_or_init_nvml() 

7269 if __nvmlGpmSetStreamingEnabled == NULL: 

7270 with gil: 

7271 raise FunctionNotFoundError("function nvmlGpmSetStreamingEnabled is not found") 

7272 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int) noexcept nogil>__nvmlGpmSetStreamingEnabled)( 

7273 device, state) 

7274  

7275  

7276cdef nvmlReturn_t _nvmlDeviceGetCapabilities(nvmlDevice_t device, nvmlDeviceCapabilities_t* caps) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7277 global __nvmlDeviceGetCapabilities 

7278 _check_or_init_nvml() 

7279 if __nvmlDeviceGetCapabilities == NULL: 

7280 with gil: 

7281 raise FunctionNotFoundError("function nvmlDeviceGetCapabilities is not found") 

7282 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlDeviceCapabilities_t*) noexcept nogil>__nvmlDeviceGetCapabilities)( 

7283 device, caps) 

7284  

7285  

7286cdef nvmlReturn_t _nvmlDeviceWorkloadPowerProfileClearRequestedProfiles(nvmlDevice_t device, nvmlWorkloadPowerProfileRequestedProfiles_t* requestedProfiles) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7287 global __nvmlDeviceWorkloadPowerProfileClearRequestedProfiles 

7288 _check_or_init_nvml() 

7289 if __nvmlDeviceWorkloadPowerProfileClearRequestedProfiles == NULL: 

7290 with gil: 

7291 raise FunctionNotFoundError("function nvmlDeviceWorkloadPowerProfileClearRequestedProfiles is not found") 

7292 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlWorkloadPowerProfileRequestedProfiles_t*) noexcept nogil>__nvmlDeviceWorkloadPowerProfileClearRequestedProfiles)( 

7293 device, requestedProfiles) 

7294  

7295  

7296cdef nvmlReturn_t _nvmlDevicePowerSmoothingActivatePresetProfile(nvmlDevice_t device, nvmlPowerSmoothingProfile_t* profile) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7297 global __nvmlDevicePowerSmoothingActivatePresetProfile 

7298 _check_or_init_nvml() 

7299 if __nvmlDevicePowerSmoothingActivatePresetProfile == NULL: 

7300 with gil: 

7301 raise FunctionNotFoundError("function nvmlDevicePowerSmoothingActivatePresetProfile is not found") 

7302 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPowerSmoothingProfile_t*) noexcept nogil>__nvmlDevicePowerSmoothingActivatePresetProfile)( 

7303 device, profile) 

7304  

7305  

7306cdef nvmlReturn_t _nvmlDevicePowerSmoothingUpdatePresetProfileParam(nvmlDevice_t device, nvmlPowerSmoothingProfile_t* profile) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7307 global __nvmlDevicePowerSmoothingUpdatePresetProfileParam 

7308 _check_or_init_nvml() 

7309 if __nvmlDevicePowerSmoothingUpdatePresetProfileParam == NULL: 

7310 with gil: 

7311 raise FunctionNotFoundError("function nvmlDevicePowerSmoothingUpdatePresetProfileParam is not found") 

7312 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPowerSmoothingProfile_t*) noexcept nogil>__nvmlDevicePowerSmoothingUpdatePresetProfileParam)( 

7313 device, profile) 

7314  

7315  

7316cdef nvmlReturn_t _nvmlDevicePowerSmoothingSetState(nvmlDevice_t device, nvmlPowerSmoothingState_t* state) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7317 global __nvmlDevicePowerSmoothingSetState 

7318 _check_or_init_nvml() 

7319 if __nvmlDevicePowerSmoothingSetState == NULL: 

7320 with gil: 

7321 raise FunctionNotFoundError("function nvmlDevicePowerSmoothingSetState is not found") 

7322 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPowerSmoothingState_t*) noexcept nogil>__nvmlDevicePowerSmoothingSetState)( 

7323 device, state) 

7324  

7325  

7326cdef nvmlReturn_t _nvmlDeviceGetAddressingMode(nvmlDevice_t device, nvmlDeviceAddressingMode_t* mode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7327 global __nvmlDeviceGetAddressingMode 

7328 _check_or_init_nvml() 

7329 if __nvmlDeviceGetAddressingMode == NULL: 

7330 with gil: 

7331 raise FunctionNotFoundError("function nvmlDeviceGetAddressingMode is not found") 

7332 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlDeviceAddressingMode_t*) noexcept nogil>__nvmlDeviceGetAddressingMode)( 

7333 device, mode) 

7334  

7335  

7336cdef nvmlReturn_t _nvmlDeviceGetRepairStatus(nvmlDevice_t device, nvmlRepairStatus_t* repairStatus) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7337 global __nvmlDeviceGetRepairStatus 

7338 _check_or_init_nvml() 

7339 if __nvmlDeviceGetRepairStatus == NULL: 

7340 with gil: 

7341 raise FunctionNotFoundError("function nvmlDeviceGetRepairStatus is not found") 

7342 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlRepairStatus_t*) noexcept nogil>__nvmlDeviceGetRepairStatus)( 

7343 device, repairStatus) 

7344  

7345  

7346cdef nvmlReturn_t _nvmlDeviceGetPowerMizerMode_v1(nvmlDevice_t device, nvmlDevicePowerMizerModes_v1_t* powerMizerMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7347 global __nvmlDeviceGetPowerMizerMode_v1 

7348 _check_or_init_nvml() 

7349 if __nvmlDeviceGetPowerMizerMode_v1 == NULL: 

7350 with gil: 

7351 raise FunctionNotFoundError("function nvmlDeviceGetPowerMizerMode_v1 is not found") 

7352 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlDevicePowerMizerModes_v1_t*) noexcept nogil>__nvmlDeviceGetPowerMizerMode_v1)( 

7353 device, powerMizerMode) 

7354  

7355  

7356cdef nvmlReturn_t _nvmlDeviceSetPowerMizerMode_v1(nvmlDevice_t device, nvmlDevicePowerMizerModes_v1_t* powerMizerMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7357 global __nvmlDeviceSetPowerMizerMode_v1 

7358 _check_or_init_nvml() 

7359 if __nvmlDeviceSetPowerMizerMode_v1 == NULL: 

7360 with gil: 

7361 raise FunctionNotFoundError("function nvmlDeviceSetPowerMizerMode_v1 is not found") 

7362 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlDevicePowerMizerModes_v1_t*) noexcept nogil>__nvmlDeviceSetPowerMizerMode_v1)( 

7363 device, powerMizerMode) 

7364  

7365  

7366cdef nvmlReturn_t _nvmlDeviceGetPdi(nvmlDevice_t device, nvmlPdi_t* pdi) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7367 global __nvmlDeviceGetPdi 

7368 _check_or_init_nvml() 

7369 if __nvmlDeviceGetPdi == NULL: 

7370 with gil: 

7371 raise FunctionNotFoundError("function nvmlDeviceGetPdi is not found") 

7372 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPdi_t*) noexcept nogil>__nvmlDeviceGetPdi)( 

7373 device, pdi) 

7374  

7375  

7376cdef nvmlReturn_t _nvmlDeviceSetHostname_v1(nvmlDevice_t device, nvmlHostname_v1_t* hostname) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7377 global __nvmlDeviceSetHostname_v1 

7378 _check_or_init_nvml() 

7379 if __nvmlDeviceSetHostname_v1 == NULL: 

7380 with gil: 

7381 raise FunctionNotFoundError("function nvmlDeviceSetHostname_v1 is not found") 

7382 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlHostname_v1_t*) noexcept nogil>__nvmlDeviceSetHostname_v1)( 

7383 device, hostname) 

7384  

7385  

7386cdef nvmlReturn_t _nvmlDeviceGetHostname_v1(nvmlDevice_t device, nvmlHostname_v1_t* hostname) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7387 global __nvmlDeviceGetHostname_v1 

7388 _check_or_init_nvml() 

7389 if __nvmlDeviceGetHostname_v1 == NULL: 

7390 with gil: 

7391 raise FunctionNotFoundError("function nvmlDeviceGetHostname_v1 is not found") 

7392 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlHostname_v1_t*) noexcept nogil>__nvmlDeviceGetHostname_v1)( 

7393 device, hostname) 

7394  

7395  

7396cdef nvmlReturn_t _nvmlDeviceGetNvLinkInfo(nvmlDevice_t device, nvmlNvLinkInfo_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7397 global __nvmlDeviceGetNvLinkInfo 

7398 _check_or_init_nvml() 

7399 if __nvmlDeviceGetNvLinkInfo == NULL: 

7400 with gil: 

7401 raise FunctionNotFoundError("function nvmlDeviceGetNvLinkInfo is not found") 

7402 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlNvLinkInfo_t*) noexcept nogil>__nvmlDeviceGetNvLinkInfo)( 

7403 device, info) 

7404  

7405  

7406cdef nvmlReturn_t _nvmlDeviceReadWritePRM_v1(nvmlDevice_t device, nvmlPRMTLV_v1_t* buffer) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7407 global __nvmlDeviceReadWritePRM_v1 

7408 _check_or_init_nvml() 

7409 if __nvmlDeviceReadWritePRM_v1 == NULL: 

7410 with gil: 

7411 raise FunctionNotFoundError("function nvmlDeviceReadWritePRM_v1 is not found") 

7412 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPRMTLV_v1_t*) noexcept nogil>__nvmlDeviceReadWritePRM_v1)( 

7413 device, buffer) 

7414  

7415  

7416cdef nvmlReturn_t _nvmlDeviceGetGpuInstanceProfileInfoByIdV(nvmlDevice_t device, unsigned int profileId, nvmlGpuInstanceProfileInfo_v2_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7417 global __nvmlDeviceGetGpuInstanceProfileInfoByIdV 

7418 _check_or_init_nvml() 

7419 if __nvmlDeviceGetGpuInstanceProfileInfoByIdV == NULL: 

7420 with gil: 

7421 raise FunctionNotFoundError("function nvmlDeviceGetGpuInstanceProfileInfoByIdV is not found") 

7422 return (<nvmlReturn_t (*)(nvmlDevice_t, unsigned int, nvmlGpuInstanceProfileInfo_v2_t*) noexcept nogil>__nvmlDeviceGetGpuInstanceProfileInfoByIdV)( 

7423 device, profileId, info) 

7424  

7425  

7426cdef nvmlReturn_t _nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts(nvmlDevice_t device, nvmlEccSramUniqueUncorrectedErrorCounts_t* errorCounts) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7427 global __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts 

7428 _check_or_init_nvml() 

7429 if __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts == NULL: 

7430 with gil: 

7431 raise FunctionNotFoundError("function nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts is not found") 

7432 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlEccSramUniqueUncorrectedErrorCounts_t*) noexcept nogil>__nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts)( 

7433 device, errorCounts) 

7434  

7435  

7436cdef nvmlReturn_t _nvmlDeviceGetUnrepairableMemoryFlag_v1(nvmlDevice_t device, nvmlUnrepairableMemoryStatus_v1_t* unrepairableMemoryStatus) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7437 global __nvmlDeviceGetUnrepairableMemoryFlag_v1 

7438 _check_or_init_nvml() 

7439 if __nvmlDeviceGetUnrepairableMemoryFlag_v1 == NULL: 

7440 with gil: 

7441 raise FunctionNotFoundError("function nvmlDeviceGetUnrepairableMemoryFlag_v1 is not found") 

7442 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlUnrepairableMemoryStatus_v1_t*) noexcept nogil>__nvmlDeviceGetUnrepairableMemoryFlag_v1)( 

7443 device, unrepairableMemoryStatus) 

7444  

7445  

7446cdef nvmlReturn_t _nvmlDeviceReadPRMCounters_v1(nvmlDevice_t device, nvmlPRMCounterList_v1_t* counterList) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7447 global __nvmlDeviceReadPRMCounters_v1 

7448 _check_or_init_nvml() 

7449 if __nvmlDeviceReadPRMCounters_v1 == NULL: 

7450 with gil: 

7451 raise FunctionNotFoundError("function nvmlDeviceReadPRMCounters_v1 is not found") 

7452 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlPRMCounterList_v1_t*) noexcept nogil>__nvmlDeviceReadPRMCounters_v1)( 

7453 device, counterList) 

7454  

7455  

7456cdef nvmlReturn_t _nvmlDeviceSetRusdSettings_v1(nvmlDevice_t device, nvmlRusdSettings_v1_t* settings) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: 

7457 global __nvmlDeviceSetRusdSettings_v1 

7458 _check_or_init_nvml() 

7459 if __nvmlDeviceSetRusdSettings_v1 == NULL: 

7460 with gil: 

7461 raise FunctionNotFoundError("function nvmlDeviceSetRusdSettings_v1 is not found") 

7462 return (<nvmlReturn_t (*)(nvmlDevice_t, nvmlRusdSettings_v1_t*) noexcept nogil>__nvmlDeviceSetRusdSettings_v1)( 

7463 device, settings)