# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # # This code was automatically generated across versions from 12.9.1 to 13.0.1. Do not modify it directly. from libc.stdint cimport intptr_t, uintptr_t import threading from .utils import FunctionNotFoundError, NotSupportedError from cuda.pathfinder import load_nvidia_dynamic_lib ############################################################################### # Extern ############################################################################### # You must 'from .utils import NotSupportedError' before using this template cdef extern from "" nogil: void* dlopen(const char*, int) char* dlerror() void* dlsym(void*, const char*) int dlclose(void*) enum: RTLD_LAZY RTLD_NOW RTLD_GLOBAL RTLD_LOCAL const void* RTLD_DEFAULT 'RTLD_DEFAULT' cdef int get_cuda_version(): cdef void* handle = NULL cdef int err, driver_ver = 0 # Load driver to check version handle = dlopen('libcuda.so.1', RTLD_NOW | RTLD_GLOBAL) if handle == NULL: err_msg = dlerror() raise NotSupportedError(f'CUDA driver is not found ({err_msg.decode()})') cuDriverGetVersion = dlsym(handle, "cuDriverGetVersion") if cuDriverGetVersion == NULL: raise RuntimeError('Did not find cuDriverGetVersion symbol in libcuda.so.1') err = (cuDriverGetVersion)(&driver_ver) if err != 0: raise RuntimeError(f'cuDriverGetVersion returned error code {err}') return driver_ver ############################################################################### # Wrapper init ############################################################################### cdef object __symbol_lock = threading.Lock() cdef bint __py_nvml_init = False cdef void* __nvmlInit_v2 = NULL cdef void* __nvmlInitWithFlags = NULL cdef void* __nvmlShutdown = NULL cdef void* __nvmlErrorString = NULL cdef void* __nvmlSystemGetDriverVersion = NULL cdef void* __nvmlSystemGetNVMLVersion = NULL cdef void* __nvmlSystemGetCudaDriverVersion = NULL cdef void* __nvmlSystemGetCudaDriverVersion_v2 = NULL cdef void* __nvmlSystemGetProcessName = NULL cdef void* __nvmlSystemGetHicVersion = NULL cdef void* __nvmlSystemGetTopologyGpuSet = NULL cdef void* __nvmlSystemGetDriverBranch = NULL cdef void* __nvmlUnitGetCount = NULL cdef void* __nvmlUnitGetHandleByIndex = NULL cdef void* __nvmlUnitGetUnitInfo = NULL cdef void* __nvmlUnitGetLedState = NULL cdef void* __nvmlUnitGetPsuInfo = NULL cdef void* __nvmlUnitGetTemperature = NULL cdef void* __nvmlUnitGetFanSpeedInfo = NULL cdef void* __nvmlUnitGetDevices = NULL cdef void* __nvmlDeviceGetCount_v2 = NULL cdef void* __nvmlDeviceGetAttributes_v2 = NULL cdef void* __nvmlDeviceGetHandleByIndex_v2 = NULL cdef void* __nvmlDeviceGetHandleBySerial = NULL cdef void* __nvmlDeviceGetHandleByUUID = NULL cdef void* __nvmlDeviceGetHandleByUUIDV = NULL cdef void* __nvmlDeviceGetHandleByPciBusId_v2 = NULL cdef void* __nvmlDeviceGetName = NULL cdef void* __nvmlDeviceGetBrand = NULL cdef void* __nvmlDeviceGetIndex = NULL cdef void* __nvmlDeviceGetSerial = NULL cdef void* __nvmlDeviceGetModuleId = NULL cdef void* __nvmlDeviceGetC2cModeInfoV = NULL cdef void* __nvmlDeviceGetMemoryAffinity = NULL cdef void* __nvmlDeviceGetCpuAffinityWithinScope = NULL cdef void* __nvmlDeviceGetCpuAffinity = NULL cdef void* __nvmlDeviceSetCpuAffinity = NULL cdef void* __nvmlDeviceClearCpuAffinity = NULL cdef void* __nvmlDeviceGetNumaNodeId = NULL cdef void* __nvmlDeviceGetTopologyCommonAncestor = NULL cdef void* __nvmlDeviceGetTopologyNearestGpus = NULL cdef void* __nvmlDeviceGetP2PStatus = NULL cdef void* __nvmlDeviceGetUUID = NULL cdef void* __nvmlDeviceGetMinorNumber = NULL cdef void* __nvmlDeviceGetBoardPartNumber = NULL cdef void* __nvmlDeviceGetInforomVersion = NULL cdef void* __nvmlDeviceGetInforomImageVersion = NULL cdef void* __nvmlDeviceGetInforomConfigurationChecksum = NULL cdef void* __nvmlDeviceValidateInforom = NULL cdef void* __nvmlDeviceGetLastBBXFlushTime = NULL cdef void* __nvmlDeviceGetDisplayMode = NULL cdef void* __nvmlDeviceGetDisplayActive = NULL cdef void* __nvmlDeviceGetPersistenceMode = NULL cdef void* __nvmlDeviceGetPciInfoExt = NULL cdef void* __nvmlDeviceGetPciInfo_v3 = NULL cdef void* __nvmlDeviceGetMaxPcieLinkGeneration = NULL cdef void* __nvmlDeviceGetGpuMaxPcieLinkGeneration = NULL cdef void* __nvmlDeviceGetMaxPcieLinkWidth = NULL cdef void* __nvmlDeviceGetCurrPcieLinkGeneration = NULL cdef void* __nvmlDeviceGetCurrPcieLinkWidth = NULL cdef void* __nvmlDeviceGetPcieThroughput = NULL cdef void* __nvmlDeviceGetPcieReplayCounter = NULL cdef void* __nvmlDeviceGetClockInfo = NULL cdef void* __nvmlDeviceGetMaxClockInfo = NULL cdef void* __nvmlDeviceGetGpcClkVfOffset = NULL cdef void* __nvmlDeviceGetClock = NULL cdef void* __nvmlDeviceGetMaxCustomerBoostClock = NULL cdef void* __nvmlDeviceGetSupportedMemoryClocks = NULL cdef void* __nvmlDeviceGetSupportedGraphicsClocks = NULL cdef void* __nvmlDeviceGetAutoBoostedClocksEnabled = NULL cdef void* __nvmlDeviceGetFanSpeed = NULL cdef void* __nvmlDeviceGetFanSpeed_v2 = NULL cdef void* __nvmlDeviceGetFanSpeedRPM = NULL cdef void* __nvmlDeviceGetTargetFanSpeed = NULL cdef void* __nvmlDeviceGetMinMaxFanSpeed = NULL cdef void* __nvmlDeviceGetFanControlPolicy_v2 = NULL cdef void* __nvmlDeviceGetNumFans = NULL cdef void* __nvmlDeviceGetCoolerInfo = NULL cdef void* __nvmlDeviceGetTemperatureV = NULL cdef void* __nvmlDeviceGetTemperatureThreshold = NULL cdef void* __nvmlDeviceGetMarginTemperature = NULL cdef void* __nvmlDeviceGetThermalSettings = NULL cdef void* __nvmlDeviceGetPerformanceState = NULL cdef void* __nvmlDeviceGetCurrentClocksEventReasons = NULL cdef void* __nvmlDeviceGetSupportedClocksEventReasons = NULL cdef void* __nvmlDeviceGetPowerState = NULL cdef void* __nvmlDeviceGetDynamicPstatesInfo = NULL cdef void* __nvmlDeviceGetMemClkVfOffset = NULL cdef void* __nvmlDeviceGetMinMaxClockOfPState = NULL cdef void* __nvmlDeviceGetSupportedPerformanceStates = NULL cdef void* __nvmlDeviceGetGpcClkMinMaxVfOffset = NULL cdef void* __nvmlDeviceGetMemClkMinMaxVfOffset = NULL cdef void* __nvmlDeviceGetClockOffsets = NULL cdef void* __nvmlDeviceSetClockOffsets = NULL cdef void* __nvmlDeviceGetPerformanceModes = NULL cdef void* __nvmlDeviceGetCurrentClockFreqs = NULL cdef void* __nvmlDeviceGetPowerManagementLimit = NULL cdef void* __nvmlDeviceGetPowerManagementLimitConstraints = NULL cdef void* __nvmlDeviceGetPowerManagementDefaultLimit = NULL cdef void* __nvmlDeviceGetPowerUsage = NULL cdef void* __nvmlDeviceGetTotalEnergyConsumption = NULL cdef void* __nvmlDeviceGetEnforcedPowerLimit = NULL cdef void* __nvmlDeviceGetGpuOperationMode = NULL cdef void* __nvmlDeviceGetMemoryInfo_v2 = NULL cdef void* __nvmlDeviceGetComputeMode = NULL cdef void* __nvmlDeviceGetCudaComputeCapability = NULL cdef void* __nvmlDeviceGetDramEncryptionMode = NULL cdef void* __nvmlDeviceSetDramEncryptionMode = NULL cdef void* __nvmlDeviceGetEccMode = NULL cdef void* __nvmlDeviceGetDefaultEccMode = NULL cdef void* __nvmlDeviceGetBoardId = NULL cdef void* __nvmlDeviceGetMultiGpuBoard = NULL cdef void* __nvmlDeviceGetTotalEccErrors = NULL cdef void* __nvmlDeviceGetMemoryErrorCounter = NULL cdef void* __nvmlDeviceGetUtilizationRates = NULL cdef void* __nvmlDeviceGetEncoderUtilization = NULL cdef void* __nvmlDeviceGetEncoderCapacity = NULL cdef void* __nvmlDeviceGetEncoderStats = NULL cdef void* __nvmlDeviceGetEncoderSessions = NULL cdef void* __nvmlDeviceGetDecoderUtilization = NULL cdef void* __nvmlDeviceGetJpgUtilization = NULL cdef void* __nvmlDeviceGetOfaUtilization = NULL cdef void* __nvmlDeviceGetFBCStats = NULL cdef void* __nvmlDeviceGetFBCSessions = NULL cdef void* __nvmlDeviceGetDriverModel_v2 = NULL cdef void* __nvmlDeviceGetVbiosVersion = NULL cdef void* __nvmlDeviceGetBridgeChipInfo = NULL cdef void* __nvmlDeviceGetComputeRunningProcesses_v3 = NULL cdef void* __nvmlDeviceGetMPSComputeRunningProcesses_v3 = NULL cdef void* __nvmlDeviceGetRunningProcessDetailList = NULL cdef void* __nvmlDeviceOnSameBoard = NULL cdef void* __nvmlDeviceGetAPIRestriction = NULL cdef void* __nvmlDeviceGetSamples = NULL cdef void* __nvmlDeviceGetBAR1MemoryInfo = NULL cdef void* __nvmlDeviceGetIrqNum = NULL cdef void* __nvmlDeviceGetNumGpuCores = NULL cdef void* __nvmlDeviceGetPowerSource = NULL cdef void* __nvmlDeviceGetMemoryBusWidth = NULL cdef void* __nvmlDeviceGetPcieLinkMaxSpeed = NULL cdef void* __nvmlDeviceGetPcieSpeed = NULL cdef void* __nvmlDeviceGetAdaptiveClockInfoStatus = NULL cdef void* __nvmlDeviceGetBusType = NULL cdef void* __nvmlDeviceGetGpuFabricInfoV = NULL cdef void* __nvmlSystemGetConfComputeCapabilities = NULL cdef void* __nvmlSystemGetConfComputeState = NULL cdef void* __nvmlDeviceGetConfComputeMemSizeInfo = NULL cdef void* __nvmlSystemGetConfComputeGpusReadyState = NULL cdef void* __nvmlDeviceGetConfComputeProtectedMemoryUsage = NULL cdef void* __nvmlDeviceGetConfComputeGpuCertificate = NULL cdef void* __nvmlDeviceGetConfComputeGpuAttestationReport = NULL cdef void* __nvmlSystemGetConfComputeKeyRotationThresholdInfo = NULL cdef void* __nvmlDeviceSetConfComputeUnprotectedMemSize = NULL cdef void* __nvmlSystemSetConfComputeGpusReadyState = NULL cdef void* __nvmlSystemSetConfComputeKeyRotationThresholdInfo = NULL cdef void* __nvmlSystemGetConfComputeSettings = NULL cdef void* __nvmlDeviceGetGspFirmwareVersion = NULL cdef void* __nvmlDeviceGetGspFirmwareMode = NULL cdef void* __nvmlDeviceGetSramEccErrorStatus = NULL cdef void* __nvmlDeviceGetAccountingMode = NULL cdef void* __nvmlDeviceGetAccountingStats = NULL cdef void* __nvmlDeviceGetAccountingPids = NULL cdef void* __nvmlDeviceGetAccountingBufferSize = NULL cdef void* __nvmlDeviceGetRetiredPages = NULL cdef void* __nvmlDeviceGetRetiredPages_v2 = NULL cdef void* __nvmlDeviceGetRetiredPagesPendingStatus = NULL cdef void* __nvmlDeviceGetRemappedRows = NULL cdef void* __nvmlDeviceGetRowRemapperHistogram = NULL cdef void* __nvmlDeviceGetArchitecture = NULL cdef void* __nvmlDeviceGetClkMonStatus = NULL cdef void* __nvmlDeviceGetProcessUtilization = NULL cdef void* __nvmlDeviceGetProcessesUtilizationInfo = NULL cdef void* __nvmlDeviceGetPlatformInfo = NULL cdef void* __nvmlUnitSetLedState = NULL cdef void* __nvmlDeviceSetPersistenceMode = NULL cdef void* __nvmlDeviceSetComputeMode = NULL cdef void* __nvmlDeviceSetEccMode = NULL cdef void* __nvmlDeviceClearEccErrorCounts = NULL cdef void* __nvmlDeviceSetDriverModel = NULL cdef void* __nvmlDeviceSetGpuLockedClocks = NULL cdef void* __nvmlDeviceResetGpuLockedClocks = NULL cdef void* __nvmlDeviceSetMemoryLockedClocks = NULL cdef void* __nvmlDeviceResetMemoryLockedClocks = NULL cdef void* __nvmlDeviceSetAutoBoostedClocksEnabled = NULL cdef void* __nvmlDeviceSetDefaultAutoBoostedClocksEnabled = NULL cdef void* __nvmlDeviceSetDefaultFanSpeed_v2 = NULL cdef void* __nvmlDeviceSetFanControlPolicy = NULL cdef void* __nvmlDeviceSetTemperatureThreshold = NULL cdef void* __nvmlDeviceSetPowerManagementLimit = NULL cdef void* __nvmlDeviceSetGpuOperationMode = NULL cdef void* __nvmlDeviceSetAPIRestriction = NULL cdef void* __nvmlDeviceSetFanSpeed_v2 = NULL cdef void* __nvmlDeviceSetAccountingMode = NULL cdef void* __nvmlDeviceClearAccountingPids = NULL cdef void* __nvmlDeviceSetPowerManagementLimit_v2 = NULL cdef void* __nvmlDeviceGetNvLinkState = NULL cdef void* __nvmlDeviceGetNvLinkVersion = NULL cdef void* __nvmlDeviceGetNvLinkCapability = NULL cdef void* __nvmlDeviceGetNvLinkRemotePciInfo_v2 = NULL cdef void* __nvmlDeviceGetNvLinkErrorCounter = NULL cdef void* __nvmlDeviceResetNvLinkErrorCounters = NULL cdef void* __nvmlDeviceGetNvLinkRemoteDeviceType = NULL cdef void* __nvmlDeviceSetNvLinkDeviceLowPowerThreshold = NULL cdef void* __nvmlSystemSetNvlinkBwMode = NULL cdef void* __nvmlSystemGetNvlinkBwMode = NULL cdef void* __nvmlDeviceGetNvlinkSupportedBwModes = NULL cdef void* __nvmlDeviceGetNvlinkBwMode = NULL cdef void* __nvmlDeviceSetNvlinkBwMode = NULL cdef void* __nvmlEventSetCreate = NULL cdef void* __nvmlDeviceRegisterEvents = NULL cdef void* __nvmlDeviceGetSupportedEventTypes = NULL cdef void* __nvmlEventSetWait_v2 = NULL cdef void* __nvmlEventSetFree = NULL cdef void* __nvmlSystemEventSetCreate = NULL cdef void* __nvmlSystemEventSetFree = NULL cdef void* __nvmlSystemRegisterEvents = NULL cdef void* __nvmlSystemEventSetWait = NULL cdef void* __nvmlDeviceModifyDrainState = NULL cdef void* __nvmlDeviceQueryDrainState = NULL cdef void* __nvmlDeviceRemoveGpu_v2 = NULL cdef void* __nvmlDeviceDiscoverGpus = NULL cdef void* __nvmlDeviceGetFieldValues = NULL cdef void* __nvmlDeviceClearFieldValues = NULL cdef void* __nvmlDeviceGetVirtualizationMode = NULL cdef void* __nvmlDeviceGetHostVgpuMode = NULL cdef void* __nvmlDeviceSetVirtualizationMode = NULL cdef void* __nvmlDeviceGetVgpuHeterogeneousMode = NULL cdef void* __nvmlDeviceSetVgpuHeterogeneousMode = NULL cdef void* __nvmlVgpuInstanceGetPlacementId = NULL cdef void* __nvmlDeviceGetVgpuTypeSupportedPlacements = NULL cdef void* __nvmlDeviceGetVgpuTypeCreatablePlacements = NULL cdef void* __nvmlVgpuTypeGetGspHeapSize = NULL cdef void* __nvmlVgpuTypeGetFbReservation = NULL cdef void* __nvmlVgpuInstanceGetRuntimeStateSize = NULL cdef void* __nvmlDeviceSetVgpuCapabilities = NULL cdef void* __nvmlDeviceGetGridLicensableFeatures_v4 = NULL cdef void* __nvmlGetVgpuDriverCapabilities = NULL cdef void* __nvmlDeviceGetVgpuCapabilities = NULL cdef void* __nvmlDeviceGetSupportedVgpus = NULL cdef void* __nvmlDeviceGetCreatableVgpus = NULL cdef void* __nvmlVgpuTypeGetClass = NULL cdef void* __nvmlVgpuTypeGetName = NULL cdef void* __nvmlVgpuTypeGetGpuInstanceProfileId = NULL cdef void* __nvmlVgpuTypeGetDeviceID = NULL cdef void* __nvmlVgpuTypeGetFramebufferSize = NULL cdef void* __nvmlVgpuTypeGetNumDisplayHeads = NULL cdef void* __nvmlVgpuTypeGetResolution = NULL cdef void* __nvmlVgpuTypeGetLicense = NULL cdef void* __nvmlVgpuTypeGetFrameRateLimit = NULL cdef void* __nvmlVgpuTypeGetMaxInstances = NULL cdef void* __nvmlVgpuTypeGetMaxInstancesPerVm = NULL cdef void* __nvmlVgpuTypeGetBAR1Info = NULL cdef void* __nvmlDeviceGetActiveVgpus = NULL cdef void* __nvmlVgpuInstanceGetVmID = NULL cdef void* __nvmlVgpuInstanceGetUUID = NULL cdef void* __nvmlVgpuInstanceGetVmDriverVersion = NULL cdef void* __nvmlVgpuInstanceGetFbUsage = NULL cdef void* __nvmlVgpuInstanceGetLicenseStatus = NULL cdef void* __nvmlVgpuInstanceGetType = NULL cdef void* __nvmlVgpuInstanceGetFrameRateLimit = NULL cdef void* __nvmlVgpuInstanceGetEccMode = NULL cdef void* __nvmlVgpuInstanceGetEncoderCapacity = NULL cdef void* __nvmlVgpuInstanceSetEncoderCapacity = NULL cdef void* __nvmlVgpuInstanceGetEncoderStats = NULL cdef void* __nvmlVgpuInstanceGetEncoderSessions = NULL cdef void* __nvmlVgpuInstanceGetFBCStats = NULL cdef void* __nvmlVgpuInstanceGetFBCSessions = NULL cdef void* __nvmlVgpuInstanceGetGpuInstanceId = NULL cdef void* __nvmlVgpuInstanceGetGpuPciId = NULL cdef void* __nvmlVgpuTypeGetCapabilities = NULL cdef void* __nvmlVgpuInstanceGetMdevUUID = NULL cdef void* __nvmlGpuInstanceGetCreatableVgpus = NULL cdef void* __nvmlVgpuTypeGetMaxInstancesPerGpuInstance = NULL cdef void* __nvmlGpuInstanceGetActiveVgpus = NULL cdef void* __nvmlGpuInstanceSetVgpuSchedulerState = NULL cdef void* __nvmlGpuInstanceGetVgpuSchedulerState = NULL cdef void* __nvmlGpuInstanceGetVgpuSchedulerLog = NULL cdef void* __nvmlGpuInstanceGetVgpuTypeCreatablePlacements = NULL cdef void* __nvmlGpuInstanceGetVgpuHeterogeneousMode = NULL cdef void* __nvmlGpuInstanceSetVgpuHeterogeneousMode = NULL cdef void* __nvmlVgpuInstanceGetMetadata = NULL cdef void* __nvmlDeviceGetVgpuMetadata = NULL cdef void* __nvmlGetVgpuCompatibility = NULL cdef void* __nvmlDeviceGetPgpuMetadataString = NULL cdef void* __nvmlDeviceGetVgpuSchedulerLog = NULL cdef void* __nvmlDeviceGetVgpuSchedulerState = NULL cdef void* __nvmlDeviceGetVgpuSchedulerCapabilities = NULL cdef void* __nvmlDeviceSetVgpuSchedulerState = NULL cdef void* __nvmlGetVgpuVersion = NULL cdef void* __nvmlSetVgpuVersion = NULL cdef void* __nvmlDeviceGetVgpuUtilization = NULL cdef void* __nvmlDeviceGetVgpuInstancesUtilizationInfo = NULL cdef void* __nvmlDeviceGetVgpuProcessUtilization = NULL cdef void* __nvmlDeviceGetVgpuProcessesUtilizationInfo = NULL cdef void* __nvmlVgpuInstanceGetAccountingMode = NULL cdef void* __nvmlVgpuInstanceGetAccountingPids = NULL cdef void* __nvmlVgpuInstanceGetAccountingStats = NULL cdef void* __nvmlVgpuInstanceClearAccountingPids = NULL cdef void* __nvmlVgpuInstanceGetLicenseInfo_v2 = NULL cdef void* __nvmlGetExcludedDeviceCount = NULL cdef void* __nvmlGetExcludedDeviceInfoByIndex = NULL cdef void* __nvmlDeviceSetMigMode = NULL cdef void* __nvmlDeviceGetMigMode = NULL cdef void* __nvmlDeviceGetGpuInstanceProfileInfoV = NULL cdef void* __nvmlDeviceGetGpuInstancePossiblePlacements_v2 = NULL cdef void* __nvmlDeviceGetGpuInstanceRemainingCapacity = NULL cdef void* __nvmlDeviceCreateGpuInstance = NULL cdef void* __nvmlDeviceCreateGpuInstanceWithPlacement = NULL cdef void* __nvmlGpuInstanceDestroy = NULL cdef void* __nvmlDeviceGetGpuInstances = NULL cdef void* __nvmlDeviceGetGpuInstanceById = NULL cdef void* __nvmlGpuInstanceGetInfo = NULL cdef void* __nvmlGpuInstanceGetComputeInstanceProfileInfoV = NULL cdef void* __nvmlGpuInstanceGetComputeInstanceRemainingCapacity = NULL cdef void* __nvmlGpuInstanceGetComputeInstancePossiblePlacements = NULL cdef void* __nvmlGpuInstanceCreateComputeInstance = NULL cdef void* __nvmlGpuInstanceCreateComputeInstanceWithPlacement = NULL cdef void* __nvmlComputeInstanceDestroy = NULL cdef void* __nvmlGpuInstanceGetComputeInstances = NULL cdef void* __nvmlGpuInstanceGetComputeInstanceById = NULL cdef void* __nvmlComputeInstanceGetInfo_v2 = NULL cdef void* __nvmlDeviceIsMigDeviceHandle = NULL cdef void* __nvmlDeviceGetGpuInstanceId = NULL cdef void* __nvmlDeviceGetComputeInstanceId = NULL cdef void* __nvmlDeviceGetMaxMigDeviceCount = NULL cdef void* __nvmlDeviceGetMigDeviceHandleByIndex = NULL cdef void* __nvmlDeviceGetDeviceHandleFromMigDeviceHandle = NULL cdef void* __nvmlGpmSampleGet = NULL cdef void* __nvmlGpmMigSampleGet = NULL cdef void* __nvmlGpmQueryDeviceSupport = NULL cdef void* __nvmlGpmQueryIfStreamingEnabled = NULL cdef void* __nvmlGpmSetStreamingEnabled = NULL cdef void* __nvmlDeviceGetCapabilities = NULL cdef void* __nvmlDeviceWorkloadPowerProfileClearRequestedProfiles = NULL cdef void* __nvmlDevicePowerSmoothingActivatePresetProfile = NULL cdef void* __nvmlDevicePowerSmoothingUpdatePresetProfileParam = NULL cdef void* __nvmlDevicePowerSmoothingSetState = NULL cdef void* __nvmlDeviceGetAddressingMode = NULL cdef void* __nvmlDeviceGetRepairStatus = NULL cdef void* __nvmlDeviceGetPowerMizerMode_v1 = NULL cdef void* __nvmlDeviceSetPowerMizerMode_v1 = NULL cdef void* __nvmlDeviceGetPdi = NULL cdef void* __nvmlDeviceSetHostname_v1 = NULL cdef void* __nvmlDeviceGetHostname_v1 = NULL cdef void* __nvmlDeviceGetNvLinkInfo = NULL cdef void* __nvmlDeviceReadWritePRM_v1 = NULL cdef void* __nvmlDeviceGetGpuInstanceProfileInfoByIdV = NULL cdef void* __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts = NULL cdef void* load_library() except* with gil: return dlopen("libnvidia-ml.so.1", RTLD_NOW | RTLD_GLOBAL) cdef int _init_nvml() except -1 nogil: global __py_nvml_init cdef void* handle = NULL with gil, __symbol_lock: # Recheck the flag after obtaining the locks if __py_nvml_init: return 0 # Load function global __nvmlInit_v2 __nvmlInit_v2 = dlsym(RTLD_DEFAULT, 'nvmlInit_v2') if __nvmlInit_v2 == NULL: if handle == NULL: handle = load_library() __nvmlInit_v2 = dlsym(handle, 'nvmlInit_v2') global __nvmlInitWithFlags __nvmlInitWithFlags = dlsym(RTLD_DEFAULT, 'nvmlInitWithFlags') if __nvmlInitWithFlags == NULL: if handle == NULL: handle = load_library() __nvmlInitWithFlags = dlsym(handle, 'nvmlInitWithFlags') global __nvmlShutdown __nvmlShutdown = dlsym(RTLD_DEFAULT, 'nvmlShutdown') if __nvmlShutdown == NULL: if handle == NULL: handle = load_library() __nvmlShutdown = dlsym(handle, 'nvmlShutdown') global __nvmlErrorString __nvmlErrorString = dlsym(RTLD_DEFAULT, 'nvmlErrorString') if __nvmlErrorString == NULL: if handle == NULL: handle = load_library() __nvmlErrorString = dlsym(handle, 'nvmlErrorString') global __nvmlSystemGetDriverVersion __nvmlSystemGetDriverVersion = dlsym(RTLD_DEFAULT, 'nvmlSystemGetDriverVersion') if __nvmlSystemGetDriverVersion == NULL: if handle == NULL: handle = load_library() __nvmlSystemGetDriverVersion = dlsym(handle, 'nvmlSystemGetDriverVersion') global __nvmlSystemGetNVMLVersion __nvmlSystemGetNVMLVersion = dlsym(RTLD_DEFAULT, 'nvmlSystemGetNVMLVersion') if __nvmlSystemGetNVMLVersion == NULL: if handle == NULL: handle = load_library() __nvmlSystemGetNVMLVersion = dlsym(handle, 'nvmlSystemGetNVMLVersion') global __nvmlSystemGetCudaDriverVersion __nvmlSystemGetCudaDriverVersion = dlsym(RTLD_DEFAULT, 'nvmlSystemGetCudaDriverVersion') if __nvmlSystemGetCudaDriverVersion == NULL: if handle == NULL: handle = load_library() __nvmlSystemGetCudaDriverVersion = dlsym(handle, 'nvmlSystemGetCudaDriverVersion') global __nvmlSystemGetCudaDriverVersion_v2 __nvmlSystemGetCudaDriverVersion_v2 = dlsym(RTLD_DEFAULT, 'nvmlSystemGetCudaDriverVersion_v2') if __nvmlSystemGetCudaDriverVersion_v2 == NULL: if handle == NULL: handle = load_library() __nvmlSystemGetCudaDriverVersion_v2 = dlsym(handle, 'nvmlSystemGetCudaDriverVersion_v2') global __nvmlSystemGetProcessName __nvmlSystemGetProcessName = dlsym(RTLD_DEFAULT, 'nvmlSystemGetProcessName') if __nvmlSystemGetProcessName == NULL: if handle == NULL: handle = load_library() __nvmlSystemGetProcessName = dlsym(handle, 'nvmlSystemGetProcessName') global __nvmlSystemGetHicVersion __nvmlSystemGetHicVersion = dlsym(RTLD_DEFAULT, 'nvmlSystemGetHicVersion') if __nvmlSystemGetHicVersion == NULL: if handle == NULL: handle = load_library() __nvmlSystemGetHicVersion = dlsym(handle, 'nvmlSystemGetHicVersion') global __nvmlSystemGetTopologyGpuSet __nvmlSystemGetTopologyGpuSet = dlsym(RTLD_DEFAULT, 'nvmlSystemGetTopologyGpuSet') if __nvmlSystemGetTopologyGpuSet == NULL: if handle == NULL: handle = load_library() __nvmlSystemGetTopologyGpuSet = dlsym(handle, 'nvmlSystemGetTopologyGpuSet') global __nvmlSystemGetDriverBranch __nvmlSystemGetDriverBranch = dlsym(RTLD_DEFAULT, 'nvmlSystemGetDriverBranch') if __nvmlSystemGetDriverBranch == NULL: if handle == NULL: handle = load_library() __nvmlSystemGetDriverBranch = dlsym(handle, 'nvmlSystemGetDriverBranch') global __nvmlUnitGetCount __nvmlUnitGetCount = dlsym(RTLD_DEFAULT, 'nvmlUnitGetCount') if __nvmlUnitGetCount == NULL: if handle == NULL: handle = load_library() __nvmlUnitGetCount = dlsym(handle, 'nvmlUnitGetCount') global __nvmlUnitGetHandleByIndex __nvmlUnitGetHandleByIndex = dlsym(RTLD_DEFAULT, 'nvmlUnitGetHandleByIndex') if __nvmlUnitGetHandleByIndex == NULL: if handle == NULL: handle = load_library() __nvmlUnitGetHandleByIndex = dlsym(handle, 'nvmlUnitGetHandleByIndex') global __nvmlUnitGetUnitInfo __nvmlUnitGetUnitInfo = dlsym(RTLD_DEFAULT, 'nvmlUnitGetUnitInfo') if __nvmlUnitGetUnitInfo == NULL: if handle == NULL: handle = load_library() __nvmlUnitGetUnitInfo = dlsym(handle, 'nvmlUnitGetUnitInfo') global __nvmlUnitGetLedState __nvmlUnitGetLedState = dlsym(RTLD_DEFAULT, 'nvmlUnitGetLedState') if __nvmlUnitGetLedState == NULL: if handle == NULL: handle = load_library() __nvmlUnitGetLedState = dlsym(handle, 'nvmlUnitGetLedState') global __nvmlUnitGetPsuInfo __nvmlUnitGetPsuInfo = dlsym(RTLD_DEFAULT, 'nvmlUnitGetPsuInfo') if __nvmlUnitGetPsuInfo == NULL: if handle == NULL: handle = load_library() __nvmlUnitGetPsuInfo = dlsym(handle, 'nvmlUnitGetPsuInfo') global __nvmlUnitGetTemperature __nvmlUnitGetTemperature = dlsym(RTLD_DEFAULT, 'nvmlUnitGetTemperature') if __nvmlUnitGetTemperature == NULL: if handle == NULL: handle = load_library() __nvmlUnitGetTemperature = dlsym(handle, 'nvmlUnitGetTemperature') global __nvmlUnitGetFanSpeedInfo __nvmlUnitGetFanSpeedInfo = dlsym(RTLD_DEFAULT, 'nvmlUnitGetFanSpeedInfo') if __nvmlUnitGetFanSpeedInfo == NULL: if handle == NULL: handle = load_library() __nvmlUnitGetFanSpeedInfo = dlsym(handle, 'nvmlUnitGetFanSpeedInfo') global __nvmlUnitGetDevices __nvmlUnitGetDevices = dlsym(RTLD_DEFAULT, 'nvmlUnitGetDevices') if __nvmlUnitGetDevices == NULL: if handle == NULL: handle = load_library() __nvmlUnitGetDevices = dlsym(handle, 'nvmlUnitGetDevices') global __nvmlDeviceGetCount_v2 __nvmlDeviceGetCount_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetCount_v2') if __nvmlDeviceGetCount_v2 == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetCount_v2 = dlsym(handle, 'nvmlDeviceGetCount_v2') global __nvmlDeviceGetAttributes_v2 __nvmlDeviceGetAttributes_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetAttributes_v2') if __nvmlDeviceGetAttributes_v2 == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetAttributes_v2 = dlsym(handle, 'nvmlDeviceGetAttributes_v2') global __nvmlDeviceGetHandleByIndex_v2 __nvmlDeviceGetHandleByIndex_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetHandleByIndex_v2') if __nvmlDeviceGetHandleByIndex_v2 == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetHandleByIndex_v2 = dlsym(handle, 'nvmlDeviceGetHandleByIndex_v2') global __nvmlDeviceGetHandleBySerial __nvmlDeviceGetHandleBySerial = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetHandleBySerial') if __nvmlDeviceGetHandleBySerial == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetHandleBySerial = dlsym(handle, 'nvmlDeviceGetHandleBySerial') global __nvmlDeviceGetHandleByUUID __nvmlDeviceGetHandleByUUID = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetHandleByUUID') if __nvmlDeviceGetHandleByUUID == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetHandleByUUID = dlsym(handle, 'nvmlDeviceGetHandleByUUID') global __nvmlDeviceGetHandleByUUIDV __nvmlDeviceGetHandleByUUIDV = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetHandleByUUIDV') if __nvmlDeviceGetHandleByUUIDV == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetHandleByUUIDV = dlsym(handle, 'nvmlDeviceGetHandleByUUIDV') global __nvmlDeviceGetHandleByPciBusId_v2 __nvmlDeviceGetHandleByPciBusId_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetHandleByPciBusId_v2') if __nvmlDeviceGetHandleByPciBusId_v2 == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetHandleByPciBusId_v2 = dlsym(handle, 'nvmlDeviceGetHandleByPciBusId_v2') global __nvmlDeviceGetName __nvmlDeviceGetName = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetName') if __nvmlDeviceGetName == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetName = dlsym(handle, 'nvmlDeviceGetName') global __nvmlDeviceGetBrand __nvmlDeviceGetBrand = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetBrand') if __nvmlDeviceGetBrand == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetBrand = dlsym(handle, 'nvmlDeviceGetBrand') global __nvmlDeviceGetIndex __nvmlDeviceGetIndex = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetIndex') if __nvmlDeviceGetIndex == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetIndex = dlsym(handle, 'nvmlDeviceGetIndex') global __nvmlDeviceGetSerial __nvmlDeviceGetSerial = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetSerial') if __nvmlDeviceGetSerial == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetSerial = dlsym(handle, 'nvmlDeviceGetSerial') global __nvmlDeviceGetModuleId __nvmlDeviceGetModuleId = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetModuleId') if __nvmlDeviceGetModuleId == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetModuleId = dlsym(handle, 'nvmlDeviceGetModuleId') global __nvmlDeviceGetC2cModeInfoV __nvmlDeviceGetC2cModeInfoV = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetC2cModeInfoV') if __nvmlDeviceGetC2cModeInfoV == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetC2cModeInfoV = dlsym(handle, 'nvmlDeviceGetC2cModeInfoV') global __nvmlDeviceGetMemoryAffinity __nvmlDeviceGetMemoryAffinity = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMemoryAffinity') if __nvmlDeviceGetMemoryAffinity == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetMemoryAffinity = dlsym(handle, 'nvmlDeviceGetMemoryAffinity') global __nvmlDeviceGetCpuAffinityWithinScope __nvmlDeviceGetCpuAffinityWithinScope = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetCpuAffinityWithinScope') if __nvmlDeviceGetCpuAffinityWithinScope == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetCpuAffinityWithinScope = dlsym(handle, 'nvmlDeviceGetCpuAffinityWithinScope') global __nvmlDeviceGetCpuAffinity __nvmlDeviceGetCpuAffinity = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetCpuAffinity') if __nvmlDeviceGetCpuAffinity == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetCpuAffinity = dlsym(handle, 'nvmlDeviceGetCpuAffinity') global __nvmlDeviceSetCpuAffinity __nvmlDeviceSetCpuAffinity = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetCpuAffinity') if __nvmlDeviceSetCpuAffinity == NULL: if handle == NULL: handle = load_library() __nvmlDeviceSetCpuAffinity = dlsym(handle, 'nvmlDeviceSetCpuAffinity') global __nvmlDeviceClearCpuAffinity __nvmlDeviceClearCpuAffinity = dlsym(RTLD_DEFAULT, 'nvmlDeviceClearCpuAffinity') if __nvmlDeviceClearCpuAffinity == NULL: if handle == NULL: handle = load_library() __nvmlDeviceClearCpuAffinity = dlsym(handle, 'nvmlDeviceClearCpuAffinity') global __nvmlDeviceGetNumaNodeId __nvmlDeviceGetNumaNodeId = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNumaNodeId') if __nvmlDeviceGetNumaNodeId == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetNumaNodeId = dlsym(handle, 'nvmlDeviceGetNumaNodeId') global __nvmlDeviceGetTopologyCommonAncestor __nvmlDeviceGetTopologyCommonAncestor = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetTopologyCommonAncestor') if __nvmlDeviceGetTopologyCommonAncestor == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetTopologyCommonAncestor = dlsym(handle, 'nvmlDeviceGetTopologyCommonAncestor') global __nvmlDeviceGetTopologyNearestGpus __nvmlDeviceGetTopologyNearestGpus = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetTopologyNearestGpus') if __nvmlDeviceGetTopologyNearestGpus == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetTopologyNearestGpus = dlsym(handle, 'nvmlDeviceGetTopologyNearestGpus') global __nvmlDeviceGetP2PStatus __nvmlDeviceGetP2PStatus = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetP2PStatus') if __nvmlDeviceGetP2PStatus == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetP2PStatus = dlsym(handle, 'nvmlDeviceGetP2PStatus') global __nvmlDeviceGetUUID __nvmlDeviceGetUUID = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetUUID') if __nvmlDeviceGetUUID == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetUUID = dlsym(handle, 'nvmlDeviceGetUUID') global __nvmlDeviceGetMinorNumber __nvmlDeviceGetMinorNumber = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMinorNumber') if __nvmlDeviceGetMinorNumber == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetMinorNumber = dlsym(handle, 'nvmlDeviceGetMinorNumber') global __nvmlDeviceGetBoardPartNumber __nvmlDeviceGetBoardPartNumber = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetBoardPartNumber') if __nvmlDeviceGetBoardPartNumber == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetBoardPartNumber = dlsym(handle, 'nvmlDeviceGetBoardPartNumber') global __nvmlDeviceGetInforomVersion __nvmlDeviceGetInforomVersion = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetInforomVersion') if __nvmlDeviceGetInforomVersion == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetInforomVersion = dlsym(handle, 'nvmlDeviceGetInforomVersion') global __nvmlDeviceGetInforomImageVersion __nvmlDeviceGetInforomImageVersion = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetInforomImageVersion') if __nvmlDeviceGetInforomImageVersion == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetInforomImageVersion = dlsym(handle, 'nvmlDeviceGetInforomImageVersion') global __nvmlDeviceGetInforomConfigurationChecksum __nvmlDeviceGetInforomConfigurationChecksum = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetInforomConfigurationChecksum') if __nvmlDeviceGetInforomConfigurationChecksum == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetInforomConfigurationChecksum = dlsym(handle, 'nvmlDeviceGetInforomConfigurationChecksum') global __nvmlDeviceValidateInforom __nvmlDeviceValidateInforom = dlsym(RTLD_DEFAULT, 'nvmlDeviceValidateInforom') if __nvmlDeviceValidateInforom == NULL: if handle == NULL: handle = load_library() __nvmlDeviceValidateInforom = dlsym(handle, 'nvmlDeviceValidateInforom') global __nvmlDeviceGetLastBBXFlushTime __nvmlDeviceGetLastBBXFlushTime = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetLastBBXFlushTime') if __nvmlDeviceGetLastBBXFlushTime == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetLastBBXFlushTime = dlsym(handle, 'nvmlDeviceGetLastBBXFlushTime') global __nvmlDeviceGetDisplayMode __nvmlDeviceGetDisplayMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetDisplayMode') if __nvmlDeviceGetDisplayMode == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetDisplayMode = dlsym(handle, 'nvmlDeviceGetDisplayMode') global __nvmlDeviceGetDisplayActive __nvmlDeviceGetDisplayActive = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetDisplayActive') if __nvmlDeviceGetDisplayActive == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetDisplayActive = dlsym(handle, 'nvmlDeviceGetDisplayActive') global __nvmlDeviceGetPersistenceMode __nvmlDeviceGetPersistenceMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPersistenceMode') if __nvmlDeviceGetPersistenceMode == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetPersistenceMode = dlsym(handle, 'nvmlDeviceGetPersistenceMode') global __nvmlDeviceGetPciInfoExt __nvmlDeviceGetPciInfoExt = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPciInfoExt') if __nvmlDeviceGetPciInfoExt == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetPciInfoExt = dlsym(handle, 'nvmlDeviceGetPciInfoExt') global __nvmlDeviceGetPciInfo_v3 __nvmlDeviceGetPciInfo_v3 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPciInfo_v3') if __nvmlDeviceGetPciInfo_v3 == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetPciInfo_v3 = dlsym(handle, 'nvmlDeviceGetPciInfo_v3') global __nvmlDeviceGetMaxPcieLinkGeneration __nvmlDeviceGetMaxPcieLinkGeneration = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMaxPcieLinkGeneration') if __nvmlDeviceGetMaxPcieLinkGeneration == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetMaxPcieLinkGeneration = dlsym(handle, 'nvmlDeviceGetMaxPcieLinkGeneration') global __nvmlDeviceGetGpuMaxPcieLinkGeneration __nvmlDeviceGetGpuMaxPcieLinkGeneration = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpuMaxPcieLinkGeneration') if __nvmlDeviceGetGpuMaxPcieLinkGeneration == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetGpuMaxPcieLinkGeneration = dlsym(handle, 'nvmlDeviceGetGpuMaxPcieLinkGeneration') global __nvmlDeviceGetMaxPcieLinkWidth __nvmlDeviceGetMaxPcieLinkWidth = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMaxPcieLinkWidth') if __nvmlDeviceGetMaxPcieLinkWidth == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetMaxPcieLinkWidth = dlsym(handle, 'nvmlDeviceGetMaxPcieLinkWidth') global __nvmlDeviceGetCurrPcieLinkGeneration __nvmlDeviceGetCurrPcieLinkGeneration = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetCurrPcieLinkGeneration') if __nvmlDeviceGetCurrPcieLinkGeneration == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetCurrPcieLinkGeneration = dlsym(handle, 'nvmlDeviceGetCurrPcieLinkGeneration') global __nvmlDeviceGetCurrPcieLinkWidth __nvmlDeviceGetCurrPcieLinkWidth = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetCurrPcieLinkWidth') if __nvmlDeviceGetCurrPcieLinkWidth == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetCurrPcieLinkWidth = dlsym(handle, 'nvmlDeviceGetCurrPcieLinkWidth') global __nvmlDeviceGetPcieThroughput __nvmlDeviceGetPcieThroughput = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPcieThroughput') if __nvmlDeviceGetPcieThroughput == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetPcieThroughput = dlsym(handle, 'nvmlDeviceGetPcieThroughput') global __nvmlDeviceGetPcieReplayCounter __nvmlDeviceGetPcieReplayCounter = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPcieReplayCounter') if __nvmlDeviceGetPcieReplayCounter == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetPcieReplayCounter = dlsym(handle, 'nvmlDeviceGetPcieReplayCounter') global __nvmlDeviceGetClockInfo __nvmlDeviceGetClockInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetClockInfo') if __nvmlDeviceGetClockInfo == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetClockInfo = dlsym(handle, 'nvmlDeviceGetClockInfo') global __nvmlDeviceGetMaxClockInfo __nvmlDeviceGetMaxClockInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMaxClockInfo') if __nvmlDeviceGetMaxClockInfo == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetMaxClockInfo = dlsym(handle, 'nvmlDeviceGetMaxClockInfo') global __nvmlDeviceGetGpcClkVfOffset __nvmlDeviceGetGpcClkVfOffset = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpcClkVfOffset') if __nvmlDeviceGetGpcClkVfOffset == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetGpcClkVfOffset = dlsym(handle, 'nvmlDeviceGetGpcClkVfOffset') global __nvmlDeviceGetClock __nvmlDeviceGetClock = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetClock') if __nvmlDeviceGetClock == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetClock = dlsym(handle, 'nvmlDeviceGetClock') global __nvmlDeviceGetMaxCustomerBoostClock __nvmlDeviceGetMaxCustomerBoostClock = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMaxCustomerBoostClock') if __nvmlDeviceGetMaxCustomerBoostClock == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetMaxCustomerBoostClock = dlsym(handle, 'nvmlDeviceGetMaxCustomerBoostClock') global __nvmlDeviceGetSupportedMemoryClocks __nvmlDeviceGetSupportedMemoryClocks = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetSupportedMemoryClocks') if __nvmlDeviceGetSupportedMemoryClocks == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetSupportedMemoryClocks = dlsym(handle, 'nvmlDeviceGetSupportedMemoryClocks') global __nvmlDeviceGetSupportedGraphicsClocks __nvmlDeviceGetSupportedGraphicsClocks = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetSupportedGraphicsClocks') if __nvmlDeviceGetSupportedGraphicsClocks == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetSupportedGraphicsClocks = dlsym(handle, 'nvmlDeviceGetSupportedGraphicsClocks') global __nvmlDeviceGetAutoBoostedClocksEnabled __nvmlDeviceGetAutoBoostedClocksEnabled = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetAutoBoostedClocksEnabled') if __nvmlDeviceGetAutoBoostedClocksEnabled == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetAutoBoostedClocksEnabled = dlsym(handle, 'nvmlDeviceGetAutoBoostedClocksEnabled') global __nvmlDeviceGetFanSpeed __nvmlDeviceGetFanSpeed = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetFanSpeed') if __nvmlDeviceGetFanSpeed == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetFanSpeed = dlsym(handle, 'nvmlDeviceGetFanSpeed') global __nvmlDeviceGetFanSpeed_v2 __nvmlDeviceGetFanSpeed_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetFanSpeed_v2') if __nvmlDeviceGetFanSpeed_v2 == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetFanSpeed_v2 = dlsym(handle, 'nvmlDeviceGetFanSpeed_v2') global __nvmlDeviceGetFanSpeedRPM __nvmlDeviceGetFanSpeedRPM = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetFanSpeedRPM') if __nvmlDeviceGetFanSpeedRPM == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetFanSpeedRPM = dlsym(handle, 'nvmlDeviceGetFanSpeedRPM') global __nvmlDeviceGetTargetFanSpeed __nvmlDeviceGetTargetFanSpeed = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetTargetFanSpeed') if __nvmlDeviceGetTargetFanSpeed == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetTargetFanSpeed = dlsym(handle, 'nvmlDeviceGetTargetFanSpeed') global __nvmlDeviceGetMinMaxFanSpeed __nvmlDeviceGetMinMaxFanSpeed = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMinMaxFanSpeed') if __nvmlDeviceGetMinMaxFanSpeed == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetMinMaxFanSpeed = dlsym(handle, 'nvmlDeviceGetMinMaxFanSpeed') global __nvmlDeviceGetFanControlPolicy_v2 __nvmlDeviceGetFanControlPolicy_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetFanControlPolicy_v2') if __nvmlDeviceGetFanControlPolicy_v2 == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetFanControlPolicy_v2 = dlsym(handle, 'nvmlDeviceGetFanControlPolicy_v2') global __nvmlDeviceGetNumFans __nvmlDeviceGetNumFans = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNumFans') if __nvmlDeviceGetNumFans == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetNumFans = dlsym(handle, 'nvmlDeviceGetNumFans') global __nvmlDeviceGetCoolerInfo __nvmlDeviceGetCoolerInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetCoolerInfo') if __nvmlDeviceGetCoolerInfo == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetCoolerInfo = dlsym(handle, 'nvmlDeviceGetCoolerInfo') global __nvmlDeviceGetTemperatureV __nvmlDeviceGetTemperatureV = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetTemperatureV') if __nvmlDeviceGetTemperatureV == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetTemperatureV = dlsym(handle, 'nvmlDeviceGetTemperatureV') global __nvmlDeviceGetTemperatureThreshold __nvmlDeviceGetTemperatureThreshold = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetTemperatureThreshold') if __nvmlDeviceGetTemperatureThreshold == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetTemperatureThreshold = dlsym(handle, 'nvmlDeviceGetTemperatureThreshold') global __nvmlDeviceGetMarginTemperature __nvmlDeviceGetMarginTemperature = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMarginTemperature') if __nvmlDeviceGetMarginTemperature == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetMarginTemperature = dlsym(handle, 'nvmlDeviceGetMarginTemperature') global __nvmlDeviceGetThermalSettings __nvmlDeviceGetThermalSettings = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetThermalSettings') if __nvmlDeviceGetThermalSettings == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetThermalSettings = dlsym(handle, 'nvmlDeviceGetThermalSettings') global __nvmlDeviceGetPerformanceState __nvmlDeviceGetPerformanceState = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPerformanceState') if __nvmlDeviceGetPerformanceState == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetPerformanceState = dlsym(handle, 'nvmlDeviceGetPerformanceState') global __nvmlDeviceGetCurrentClocksEventReasons __nvmlDeviceGetCurrentClocksEventReasons = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetCurrentClocksEventReasons') if __nvmlDeviceGetCurrentClocksEventReasons == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetCurrentClocksEventReasons = dlsym(handle, 'nvmlDeviceGetCurrentClocksEventReasons') global __nvmlDeviceGetSupportedClocksEventReasons __nvmlDeviceGetSupportedClocksEventReasons = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetSupportedClocksEventReasons') if __nvmlDeviceGetSupportedClocksEventReasons == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetSupportedClocksEventReasons = dlsym(handle, 'nvmlDeviceGetSupportedClocksEventReasons') global __nvmlDeviceGetPowerState __nvmlDeviceGetPowerState = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPowerState') if __nvmlDeviceGetPowerState == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetPowerState = dlsym(handle, 'nvmlDeviceGetPowerState') global __nvmlDeviceGetDynamicPstatesInfo __nvmlDeviceGetDynamicPstatesInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetDynamicPstatesInfo') if __nvmlDeviceGetDynamicPstatesInfo == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetDynamicPstatesInfo = dlsym(handle, 'nvmlDeviceGetDynamicPstatesInfo') global __nvmlDeviceGetMemClkVfOffset __nvmlDeviceGetMemClkVfOffset = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMemClkVfOffset') if __nvmlDeviceGetMemClkVfOffset == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetMemClkVfOffset = dlsym(handle, 'nvmlDeviceGetMemClkVfOffset') global __nvmlDeviceGetMinMaxClockOfPState __nvmlDeviceGetMinMaxClockOfPState = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMinMaxClockOfPState') if __nvmlDeviceGetMinMaxClockOfPState == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetMinMaxClockOfPState = dlsym(handle, 'nvmlDeviceGetMinMaxClockOfPState') global __nvmlDeviceGetSupportedPerformanceStates __nvmlDeviceGetSupportedPerformanceStates = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetSupportedPerformanceStates') if __nvmlDeviceGetSupportedPerformanceStates == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetSupportedPerformanceStates = dlsym(handle, 'nvmlDeviceGetSupportedPerformanceStates') global __nvmlDeviceGetGpcClkMinMaxVfOffset __nvmlDeviceGetGpcClkMinMaxVfOffset = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpcClkMinMaxVfOffset') if __nvmlDeviceGetGpcClkMinMaxVfOffset == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetGpcClkMinMaxVfOffset = dlsym(handle, 'nvmlDeviceGetGpcClkMinMaxVfOffset') global __nvmlDeviceGetMemClkMinMaxVfOffset __nvmlDeviceGetMemClkMinMaxVfOffset = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMemClkMinMaxVfOffset') if __nvmlDeviceGetMemClkMinMaxVfOffset == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetMemClkMinMaxVfOffset = dlsym(handle, 'nvmlDeviceGetMemClkMinMaxVfOffset') global __nvmlDeviceGetClockOffsets __nvmlDeviceGetClockOffsets = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetClockOffsets') if __nvmlDeviceGetClockOffsets == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetClockOffsets = dlsym(handle, 'nvmlDeviceGetClockOffsets') global __nvmlDeviceSetClockOffsets __nvmlDeviceSetClockOffsets = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetClockOffsets') if __nvmlDeviceSetClockOffsets == NULL: if handle == NULL: handle = load_library() __nvmlDeviceSetClockOffsets = dlsym(handle, 'nvmlDeviceSetClockOffsets') global __nvmlDeviceGetPerformanceModes __nvmlDeviceGetPerformanceModes = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPerformanceModes') if __nvmlDeviceGetPerformanceModes == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetPerformanceModes = dlsym(handle, 'nvmlDeviceGetPerformanceModes') global __nvmlDeviceGetCurrentClockFreqs __nvmlDeviceGetCurrentClockFreqs = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetCurrentClockFreqs') if __nvmlDeviceGetCurrentClockFreqs == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetCurrentClockFreqs = dlsym(handle, 'nvmlDeviceGetCurrentClockFreqs') global __nvmlDeviceGetPowerManagementLimit __nvmlDeviceGetPowerManagementLimit = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPowerManagementLimit') if __nvmlDeviceGetPowerManagementLimit == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetPowerManagementLimit = dlsym(handle, 'nvmlDeviceGetPowerManagementLimit') global __nvmlDeviceGetPowerManagementLimitConstraints __nvmlDeviceGetPowerManagementLimitConstraints = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPowerManagementLimitConstraints') if __nvmlDeviceGetPowerManagementLimitConstraints == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetPowerManagementLimitConstraints = dlsym(handle, 'nvmlDeviceGetPowerManagementLimitConstraints') global __nvmlDeviceGetPowerManagementDefaultLimit __nvmlDeviceGetPowerManagementDefaultLimit = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPowerManagementDefaultLimit') if __nvmlDeviceGetPowerManagementDefaultLimit == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetPowerManagementDefaultLimit = dlsym(handle, 'nvmlDeviceGetPowerManagementDefaultLimit') global __nvmlDeviceGetPowerUsage __nvmlDeviceGetPowerUsage = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPowerUsage') if __nvmlDeviceGetPowerUsage == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetPowerUsage = dlsym(handle, 'nvmlDeviceGetPowerUsage') global __nvmlDeviceGetTotalEnergyConsumption __nvmlDeviceGetTotalEnergyConsumption = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetTotalEnergyConsumption') if __nvmlDeviceGetTotalEnergyConsumption == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetTotalEnergyConsumption = dlsym(handle, 'nvmlDeviceGetTotalEnergyConsumption') global __nvmlDeviceGetEnforcedPowerLimit __nvmlDeviceGetEnforcedPowerLimit = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetEnforcedPowerLimit') if __nvmlDeviceGetEnforcedPowerLimit == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetEnforcedPowerLimit = dlsym(handle, 'nvmlDeviceGetEnforcedPowerLimit') global __nvmlDeviceGetGpuOperationMode __nvmlDeviceGetGpuOperationMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpuOperationMode') if __nvmlDeviceGetGpuOperationMode == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetGpuOperationMode = dlsym(handle, 'nvmlDeviceGetGpuOperationMode') global __nvmlDeviceGetMemoryInfo_v2 __nvmlDeviceGetMemoryInfo_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMemoryInfo_v2') if __nvmlDeviceGetMemoryInfo_v2 == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetMemoryInfo_v2 = dlsym(handle, 'nvmlDeviceGetMemoryInfo_v2') global __nvmlDeviceGetComputeMode __nvmlDeviceGetComputeMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetComputeMode') if __nvmlDeviceGetComputeMode == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetComputeMode = dlsym(handle, 'nvmlDeviceGetComputeMode') global __nvmlDeviceGetCudaComputeCapability __nvmlDeviceGetCudaComputeCapability = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetCudaComputeCapability') if __nvmlDeviceGetCudaComputeCapability == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetCudaComputeCapability = dlsym(handle, 'nvmlDeviceGetCudaComputeCapability') global __nvmlDeviceGetDramEncryptionMode __nvmlDeviceGetDramEncryptionMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetDramEncryptionMode') if __nvmlDeviceGetDramEncryptionMode == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetDramEncryptionMode = dlsym(handle, 'nvmlDeviceGetDramEncryptionMode') global __nvmlDeviceSetDramEncryptionMode __nvmlDeviceSetDramEncryptionMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetDramEncryptionMode') if __nvmlDeviceSetDramEncryptionMode == NULL: if handle == NULL: handle = load_library() __nvmlDeviceSetDramEncryptionMode = dlsym(handle, 'nvmlDeviceSetDramEncryptionMode') global __nvmlDeviceGetEccMode __nvmlDeviceGetEccMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetEccMode') if __nvmlDeviceGetEccMode == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetEccMode = dlsym(handle, 'nvmlDeviceGetEccMode') global __nvmlDeviceGetDefaultEccMode __nvmlDeviceGetDefaultEccMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetDefaultEccMode') if __nvmlDeviceGetDefaultEccMode == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetDefaultEccMode = dlsym(handle, 'nvmlDeviceGetDefaultEccMode') global __nvmlDeviceGetBoardId __nvmlDeviceGetBoardId = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetBoardId') if __nvmlDeviceGetBoardId == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetBoardId = dlsym(handle, 'nvmlDeviceGetBoardId') global __nvmlDeviceGetMultiGpuBoard __nvmlDeviceGetMultiGpuBoard = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMultiGpuBoard') if __nvmlDeviceGetMultiGpuBoard == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetMultiGpuBoard = dlsym(handle, 'nvmlDeviceGetMultiGpuBoard') global __nvmlDeviceGetTotalEccErrors __nvmlDeviceGetTotalEccErrors = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetTotalEccErrors') if __nvmlDeviceGetTotalEccErrors == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetTotalEccErrors = dlsym(handle, 'nvmlDeviceGetTotalEccErrors') global __nvmlDeviceGetMemoryErrorCounter __nvmlDeviceGetMemoryErrorCounter = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMemoryErrorCounter') if __nvmlDeviceGetMemoryErrorCounter == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetMemoryErrorCounter = dlsym(handle, 'nvmlDeviceGetMemoryErrorCounter') global __nvmlDeviceGetUtilizationRates __nvmlDeviceGetUtilizationRates = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetUtilizationRates') if __nvmlDeviceGetUtilizationRates == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetUtilizationRates = dlsym(handle, 'nvmlDeviceGetUtilizationRates') global __nvmlDeviceGetEncoderUtilization __nvmlDeviceGetEncoderUtilization = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetEncoderUtilization') if __nvmlDeviceGetEncoderUtilization == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetEncoderUtilization = dlsym(handle, 'nvmlDeviceGetEncoderUtilization') global __nvmlDeviceGetEncoderCapacity __nvmlDeviceGetEncoderCapacity = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetEncoderCapacity') if __nvmlDeviceGetEncoderCapacity == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetEncoderCapacity = dlsym(handle, 'nvmlDeviceGetEncoderCapacity') global __nvmlDeviceGetEncoderStats __nvmlDeviceGetEncoderStats = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetEncoderStats') if __nvmlDeviceGetEncoderStats == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetEncoderStats = dlsym(handle, 'nvmlDeviceGetEncoderStats') global __nvmlDeviceGetEncoderSessions __nvmlDeviceGetEncoderSessions = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetEncoderSessions') if __nvmlDeviceGetEncoderSessions == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetEncoderSessions = dlsym(handle, 'nvmlDeviceGetEncoderSessions') global __nvmlDeviceGetDecoderUtilization __nvmlDeviceGetDecoderUtilization = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetDecoderUtilization') if __nvmlDeviceGetDecoderUtilization == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetDecoderUtilization = dlsym(handle, 'nvmlDeviceGetDecoderUtilization') global __nvmlDeviceGetJpgUtilization __nvmlDeviceGetJpgUtilization = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetJpgUtilization') if __nvmlDeviceGetJpgUtilization == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetJpgUtilization = dlsym(handle, 'nvmlDeviceGetJpgUtilization') global __nvmlDeviceGetOfaUtilization __nvmlDeviceGetOfaUtilization = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetOfaUtilization') if __nvmlDeviceGetOfaUtilization == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetOfaUtilization = dlsym(handle, 'nvmlDeviceGetOfaUtilization') global __nvmlDeviceGetFBCStats __nvmlDeviceGetFBCStats = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetFBCStats') if __nvmlDeviceGetFBCStats == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetFBCStats = dlsym(handle, 'nvmlDeviceGetFBCStats') global __nvmlDeviceGetFBCSessions __nvmlDeviceGetFBCSessions = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetFBCSessions') if __nvmlDeviceGetFBCSessions == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetFBCSessions = dlsym(handle, 'nvmlDeviceGetFBCSessions') global __nvmlDeviceGetDriverModel_v2 __nvmlDeviceGetDriverModel_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetDriverModel_v2') if __nvmlDeviceGetDriverModel_v2 == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetDriverModel_v2 = dlsym(handle, 'nvmlDeviceGetDriverModel_v2') global __nvmlDeviceGetVbiosVersion __nvmlDeviceGetVbiosVersion = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVbiosVersion') if __nvmlDeviceGetVbiosVersion == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetVbiosVersion = dlsym(handle, 'nvmlDeviceGetVbiosVersion') global __nvmlDeviceGetBridgeChipInfo __nvmlDeviceGetBridgeChipInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetBridgeChipInfo') if __nvmlDeviceGetBridgeChipInfo == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetBridgeChipInfo = dlsym(handle, 'nvmlDeviceGetBridgeChipInfo') global __nvmlDeviceGetComputeRunningProcesses_v3 __nvmlDeviceGetComputeRunningProcesses_v3 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetComputeRunningProcesses_v3') if __nvmlDeviceGetComputeRunningProcesses_v3 == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetComputeRunningProcesses_v3 = dlsym(handle, 'nvmlDeviceGetComputeRunningProcesses_v3') global __nvmlDeviceGetMPSComputeRunningProcesses_v3 __nvmlDeviceGetMPSComputeRunningProcesses_v3 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMPSComputeRunningProcesses_v3') if __nvmlDeviceGetMPSComputeRunningProcesses_v3 == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetMPSComputeRunningProcesses_v3 = dlsym(handle, 'nvmlDeviceGetMPSComputeRunningProcesses_v3') global __nvmlDeviceGetRunningProcessDetailList __nvmlDeviceGetRunningProcessDetailList = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetRunningProcessDetailList') if __nvmlDeviceGetRunningProcessDetailList == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetRunningProcessDetailList = dlsym(handle, 'nvmlDeviceGetRunningProcessDetailList') global __nvmlDeviceOnSameBoard __nvmlDeviceOnSameBoard = dlsym(RTLD_DEFAULT, 'nvmlDeviceOnSameBoard') if __nvmlDeviceOnSameBoard == NULL: if handle == NULL: handle = load_library() __nvmlDeviceOnSameBoard = dlsym(handle, 'nvmlDeviceOnSameBoard') global __nvmlDeviceGetAPIRestriction __nvmlDeviceGetAPIRestriction = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetAPIRestriction') if __nvmlDeviceGetAPIRestriction == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetAPIRestriction = dlsym(handle, 'nvmlDeviceGetAPIRestriction') global __nvmlDeviceGetSamples __nvmlDeviceGetSamples = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetSamples') if __nvmlDeviceGetSamples == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetSamples = dlsym(handle, 'nvmlDeviceGetSamples') global __nvmlDeviceGetBAR1MemoryInfo __nvmlDeviceGetBAR1MemoryInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetBAR1MemoryInfo') if __nvmlDeviceGetBAR1MemoryInfo == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetBAR1MemoryInfo = dlsym(handle, 'nvmlDeviceGetBAR1MemoryInfo') global __nvmlDeviceGetIrqNum __nvmlDeviceGetIrqNum = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetIrqNum') if __nvmlDeviceGetIrqNum == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetIrqNum = dlsym(handle, 'nvmlDeviceGetIrqNum') global __nvmlDeviceGetNumGpuCores __nvmlDeviceGetNumGpuCores = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNumGpuCores') if __nvmlDeviceGetNumGpuCores == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetNumGpuCores = dlsym(handle, 'nvmlDeviceGetNumGpuCores') global __nvmlDeviceGetPowerSource __nvmlDeviceGetPowerSource = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPowerSource') if __nvmlDeviceGetPowerSource == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetPowerSource = dlsym(handle, 'nvmlDeviceGetPowerSource') global __nvmlDeviceGetMemoryBusWidth __nvmlDeviceGetMemoryBusWidth = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMemoryBusWidth') if __nvmlDeviceGetMemoryBusWidth == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetMemoryBusWidth = dlsym(handle, 'nvmlDeviceGetMemoryBusWidth') global __nvmlDeviceGetPcieLinkMaxSpeed __nvmlDeviceGetPcieLinkMaxSpeed = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPcieLinkMaxSpeed') if __nvmlDeviceGetPcieLinkMaxSpeed == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetPcieLinkMaxSpeed = dlsym(handle, 'nvmlDeviceGetPcieLinkMaxSpeed') global __nvmlDeviceGetPcieSpeed __nvmlDeviceGetPcieSpeed = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPcieSpeed') if __nvmlDeviceGetPcieSpeed == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetPcieSpeed = dlsym(handle, 'nvmlDeviceGetPcieSpeed') global __nvmlDeviceGetAdaptiveClockInfoStatus __nvmlDeviceGetAdaptiveClockInfoStatus = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetAdaptiveClockInfoStatus') if __nvmlDeviceGetAdaptiveClockInfoStatus == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetAdaptiveClockInfoStatus = dlsym(handle, 'nvmlDeviceGetAdaptiveClockInfoStatus') global __nvmlDeviceGetBusType __nvmlDeviceGetBusType = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetBusType') if __nvmlDeviceGetBusType == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetBusType = dlsym(handle, 'nvmlDeviceGetBusType') global __nvmlDeviceGetGpuFabricInfoV __nvmlDeviceGetGpuFabricInfoV = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpuFabricInfoV') if __nvmlDeviceGetGpuFabricInfoV == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetGpuFabricInfoV = dlsym(handle, 'nvmlDeviceGetGpuFabricInfoV') global __nvmlSystemGetConfComputeCapabilities __nvmlSystemGetConfComputeCapabilities = dlsym(RTLD_DEFAULT, 'nvmlSystemGetConfComputeCapabilities') if __nvmlSystemGetConfComputeCapabilities == NULL: if handle == NULL: handle = load_library() __nvmlSystemGetConfComputeCapabilities = dlsym(handle, 'nvmlSystemGetConfComputeCapabilities') global __nvmlSystemGetConfComputeState __nvmlSystemGetConfComputeState = dlsym(RTLD_DEFAULT, 'nvmlSystemGetConfComputeState') if __nvmlSystemGetConfComputeState == NULL: if handle == NULL: handle = load_library() __nvmlSystemGetConfComputeState = dlsym(handle, 'nvmlSystemGetConfComputeState') global __nvmlDeviceGetConfComputeMemSizeInfo __nvmlDeviceGetConfComputeMemSizeInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetConfComputeMemSizeInfo') if __nvmlDeviceGetConfComputeMemSizeInfo == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetConfComputeMemSizeInfo = dlsym(handle, 'nvmlDeviceGetConfComputeMemSizeInfo') global __nvmlSystemGetConfComputeGpusReadyState __nvmlSystemGetConfComputeGpusReadyState = dlsym(RTLD_DEFAULT, 'nvmlSystemGetConfComputeGpusReadyState') if __nvmlSystemGetConfComputeGpusReadyState == NULL: if handle == NULL: handle = load_library() __nvmlSystemGetConfComputeGpusReadyState = dlsym(handle, 'nvmlSystemGetConfComputeGpusReadyState') global __nvmlDeviceGetConfComputeProtectedMemoryUsage __nvmlDeviceGetConfComputeProtectedMemoryUsage = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetConfComputeProtectedMemoryUsage') if __nvmlDeviceGetConfComputeProtectedMemoryUsage == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetConfComputeProtectedMemoryUsage = dlsym(handle, 'nvmlDeviceGetConfComputeProtectedMemoryUsage') global __nvmlDeviceGetConfComputeGpuCertificate __nvmlDeviceGetConfComputeGpuCertificate = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetConfComputeGpuCertificate') if __nvmlDeviceGetConfComputeGpuCertificate == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetConfComputeGpuCertificate = dlsym(handle, 'nvmlDeviceGetConfComputeGpuCertificate') global __nvmlDeviceGetConfComputeGpuAttestationReport __nvmlDeviceGetConfComputeGpuAttestationReport = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetConfComputeGpuAttestationReport') if __nvmlDeviceGetConfComputeGpuAttestationReport == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetConfComputeGpuAttestationReport = dlsym(handle, 'nvmlDeviceGetConfComputeGpuAttestationReport') global __nvmlSystemGetConfComputeKeyRotationThresholdInfo __nvmlSystemGetConfComputeKeyRotationThresholdInfo = dlsym(RTLD_DEFAULT, 'nvmlSystemGetConfComputeKeyRotationThresholdInfo') if __nvmlSystemGetConfComputeKeyRotationThresholdInfo == NULL: if handle == NULL: handle = load_library() __nvmlSystemGetConfComputeKeyRotationThresholdInfo = dlsym(handle, 'nvmlSystemGetConfComputeKeyRotationThresholdInfo') global __nvmlDeviceSetConfComputeUnprotectedMemSize __nvmlDeviceSetConfComputeUnprotectedMemSize = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetConfComputeUnprotectedMemSize') if __nvmlDeviceSetConfComputeUnprotectedMemSize == NULL: if handle == NULL: handle = load_library() __nvmlDeviceSetConfComputeUnprotectedMemSize = dlsym(handle, 'nvmlDeviceSetConfComputeUnprotectedMemSize') global __nvmlSystemSetConfComputeGpusReadyState __nvmlSystemSetConfComputeGpusReadyState = dlsym(RTLD_DEFAULT, 'nvmlSystemSetConfComputeGpusReadyState') if __nvmlSystemSetConfComputeGpusReadyState == NULL: if handle == NULL: handle = load_library() __nvmlSystemSetConfComputeGpusReadyState = dlsym(handle, 'nvmlSystemSetConfComputeGpusReadyState') global __nvmlSystemSetConfComputeKeyRotationThresholdInfo __nvmlSystemSetConfComputeKeyRotationThresholdInfo = dlsym(RTLD_DEFAULT, 'nvmlSystemSetConfComputeKeyRotationThresholdInfo') if __nvmlSystemSetConfComputeKeyRotationThresholdInfo == NULL: if handle == NULL: handle = load_library() __nvmlSystemSetConfComputeKeyRotationThresholdInfo = dlsym(handle, 'nvmlSystemSetConfComputeKeyRotationThresholdInfo') global __nvmlSystemGetConfComputeSettings __nvmlSystemGetConfComputeSettings = dlsym(RTLD_DEFAULT, 'nvmlSystemGetConfComputeSettings') if __nvmlSystemGetConfComputeSettings == NULL: if handle == NULL: handle = load_library() __nvmlSystemGetConfComputeSettings = dlsym(handle, 'nvmlSystemGetConfComputeSettings') global __nvmlDeviceGetGspFirmwareVersion __nvmlDeviceGetGspFirmwareVersion = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGspFirmwareVersion') if __nvmlDeviceGetGspFirmwareVersion == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetGspFirmwareVersion = dlsym(handle, 'nvmlDeviceGetGspFirmwareVersion') global __nvmlDeviceGetGspFirmwareMode __nvmlDeviceGetGspFirmwareMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGspFirmwareMode') if __nvmlDeviceGetGspFirmwareMode == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetGspFirmwareMode = dlsym(handle, 'nvmlDeviceGetGspFirmwareMode') global __nvmlDeviceGetSramEccErrorStatus __nvmlDeviceGetSramEccErrorStatus = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetSramEccErrorStatus') if __nvmlDeviceGetSramEccErrorStatus == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetSramEccErrorStatus = dlsym(handle, 'nvmlDeviceGetSramEccErrorStatus') global __nvmlDeviceGetAccountingMode __nvmlDeviceGetAccountingMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetAccountingMode') if __nvmlDeviceGetAccountingMode == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetAccountingMode = dlsym(handle, 'nvmlDeviceGetAccountingMode') global __nvmlDeviceGetAccountingStats __nvmlDeviceGetAccountingStats = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetAccountingStats') if __nvmlDeviceGetAccountingStats == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetAccountingStats = dlsym(handle, 'nvmlDeviceGetAccountingStats') global __nvmlDeviceGetAccountingPids __nvmlDeviceGetAccountingPids = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetAccountingPids') if __nvmlDeviceGetAccountingPids == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetAccountingPids = dlsym(handle, 'nvmlDeviceGetAccountingPids') global __nvmlDeviceGetAccountingBufferSize __nvmlDeviceGetAccountingBufferSize = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetAccountingBufferSize') if __nvmlDeviceGetAccountingBufferSize == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetAccountingBufferSize = dlsym(handle, 'nvmlDeviceGetAccountingBufferSize') global __nvmlDeviceGetRetiredPages __nvmlDeviceGetRetiredPages = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetRetiredPages') if __nvmlDeviceGetRetiredPages == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetRetiredPages = dlsym(handle, 'nvmlDeviceGetRetiredPages') global __nvmlDeviceGetRetiredPages_v2 __nvmlDeviceGetRetiredPages_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetRetiredPages_v2') if __nvmlDeviceGetRetiredPages_v2 == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetRetiredPages_v2 = dlsym(handle, 'nvmlDeviceGetRetiredPages_v2') global __nvmlDeviceGetRetiredPagesPendingStatus __nvmlDeviceGetRetiredPagesPendingStatus = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetRetiredPagesPendingStatus') if __nvmlDeviceGetRetiredPagesPendingStatus == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetRetiredPagesPendingStatus = dlsym(handle, 'nvmlDeviceGetRetiredPagesPendingStatus') global __nvmlDeviceGetRemappedRows __nvmlDeviceGetRemappedRows = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetRemappedRows') if __nvmlDeviceGetRemappedRows == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetRemappedRows = dlsym(handle, 'nvmlDeviceGetRemappedRows') global __nvmlDeviceGetRowRemapperHistogram __nvmlDeviceGetRowRemapperHistogram = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetRowRemapperHistogram') if __nvmlDeviceGetRowRemapperHistogram == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetRowRemapperHistogram = dlsym(handle, 'nvmlDeviceGetRowRemapperHistogram') global __nvmlDeviceGetArchitecture __nvmlDeviceGetArchitecture = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetArchitecture') if __nvmlDeviceGetArchitecture == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetArchitecture = dlsym(handle, 'nvmlDeviceGetArchitecture') global __nvmlDeviceGetClkMonStatus __nvmlDeviceGetClkMonStatus = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetClkMonStatus') if __nvmlDeviceGetClkMonStatus == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetClkMonStatus = dlsym(handle, 'nvmlDeviceGetClkMonStatus') global __nvmlDeviceGetProcessUtilization __nvmlDeviceGetProcessUtilization = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetProcessUtilization') if __nvmlDeviceGetProcessUtilization == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetProcessUtilization = dlsym(handle, 'nvmlDeviceGetProcessUtilization') global __nvmlDeviceGetProcessesUtilizationInfo __nvmlDeviceGetProcessesUtilizationInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetProcessesUtilizationInfo') if __nvmlDeviceGetProcessesUtilizationInfo == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetProcessesUtilizationInfo = dlsym(handle, 'nvmlDeviceGetProcessesUtilizationInfo') global __nvmlDeviceGetPlatformInfo __nvmlDeviceGetPlatformInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPlatformInfo') if __nvmlDeviceGetPlatformInfo == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetPlatformInfo = dlsym(handle, 'nvmlDeviceGetPlatformInfo') global __nvmlUnitSetLedState __nvmlUnitSetLedState = dlsym(RTLD_DEFAULT, 'nvmlUnitSetLedState') if __nvmlUnitSetLedState == NULL: if handle == NULL: handle = load_library() __nvmlUnitSetLedState = dlsym(handle, 'nvmlUnitSetLedState') global __nvmlDeviceSetPersistenceMode __nvmlDeviceSetPersistenceMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetPersistenceMode') if __nvmlDeviceSetPersistenceMode == NULL: if handle == NULL: handle = load_library() __nvmlDeviceSetPersistenceMode = dlsym(handle, 'nvmlDeviceSetPersistenceMode') global __nvmlDeviceSetComputeMode __nvmlDeviceSetComputeMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetComputeMode') if __nvmlDeviceSetComputeMode == NULL: if handle == NULL: handle = load_library() __nvmlDeviceSetComputeMode = dlsym(handle, 'nvmlDeviceSetComputeMode') global __nvmlDeviceSetEccMode __nvmlDeviceSetEccMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetEccMode') if __nvmlDeviceSetEccMode == NULL: if handle == NULL: handle = load_library() __nvmlDeviceSetEccMode = dlsym(handle, 'nvmlDeviceSetEccMode') global __nvmlDeviceClearEccErrorCounts __nvmlDeviceClearEccErrorCounts = dlsym(RTLD_DEFAULT, 'nvmlDeviceClearEccErrorCounts') if __nvmlDeviceClearEccErrorCounts == NULL: if handle == NULL: handle = load_library() __nvmlDeviceClearEccErrorCounts = dlsym(handle, 'nvmlDeviceClearEccErrorCounts') global __nvmlDeviceSetDriverModel __nvmlDeviceSetDriverModel = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetDriverModel') if __nvmlDeviceSetDriverModel == NULL: if handle == NULL: handle = load_library() __nvmlDeviceSetDriverModel = dlsym(handle, 'nvmlDeviceSetDriverModel') global __nvmlDeviceSetGpuLockedClocks __nvmlDeviceSetGpuLockedClocks = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetGpuLockedClocks') if __nvmlDeviceSetGpuLockedClocks == NULL: if handle == NULL: handle = load_library() __nvmlDeviceSetGpuLockedClocks = dlsym(handle, 'nvmlDeviceSetGpuLockedClocks') global __nvmlDeviceResetGpuLockedClocks __nvmlDeviceResetGpuLockedClocks = dlsym(RTLD_DEFAULT, 'nvmlDeviceResetGpuLockedClocks') if __nvmlDeviceResetGpuLockedClocks == NULL: if handle == NULL: handle = load_library() __nvmlDeviceResetGpuLockedClocks = dlsym(handle, 'nvmlDeviceResetGpuLockedClocks') global __nvmlDeviceSetMemoryLockedClocks __nvmlDeviceSetMemoryLockedClocks = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetMemoryLockedClocks') if __nvmlDeviceSetMemoryLockedClocks == NULL: if handle == NULL: handle = load_library() __nvmlDeviceSetMemoryLockedClocks = dlsym(handle, 'nvmlDeviceSetMemoryLockedClocks') global __nvmlDeviceResetMemoryLockedClocks __nvmlDeviceResetMemoryLockedClocks = dlsym(RTLD_DEFAULT, 'nvmlDeviceResetMemoryLockedClocks') if __nvmlDeviceResetMemoryLockedClocks == NULL: if handle == NULL: handle = load_library() __nvmlDeviceResetMemoryLockedClocks = dlsym(handle, 'nvmlDeviceResetMemoryLockedClocks') global __nvmlDeviceSetAutoBoostedClocksEnabled __nvmlDeviceSetAutoBoostedClocksEnabled = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetAutoBoostedClocksEnabled') if __nvmlDeviceSetAutoBoostedClocksEnabled == NULL: if handle == NULL: handle = load_library() __nvmlDeviceSetAutoBoostedClocksEnabled = dlsym(handle, 'nvmlDeviceSetAutoBoostedClocksEnabled') global __nvmlDeviceSetDefaultAutoBoostedClocksEnabled __nvmlDeviceSetDefaultAutoBoostedClocksEnabled = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetDefaultAutoBoostedClocksEnabled') if __nvmlDeviceSetDefaultAutoBoostedClocksEnabled == NULL: if handle == NULL: handle = load_library() __nvmlDeviceSetDefaultAutoBoostedClocksEnabled = dlsym(handle, 'nvmlDeviceSetDefaultAutoBoostedClocksEnabled') global __nvmlDeviceSetDefaultFanSpeed_v2 __nvmlDeviceSetDefaultFanSpeed_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetDefaultFanSpeed_v2') if __nvmlDeviceSetDefaultFanSpeed_v2 == NULL: if handle == NULL: handle = load_library() __nvmlDeviceSetDefaultFanSpeed_v2 = dlsym(handle, 'nvmlDeviceSetDefaultFanSpeed_v2') global __nvmlDeviceSetFanControlPolicy __nvmlDeviceSetFanControlPolicy = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetFanControlPolicy') if __nvmlDeviceSetFanControlPolicy == NULL: if handle == NULL: handle = load_library() __nvmlDeviceSetFanControlPolicy = dlsym(handle, 'nvmlDeviceSetFanControlPolicy') global __nvmlDeviceSetTemperatureThreshold __nvmlDeviceSetTemperatureThreshold = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetTemperatureThreshold') if __nvmlDeviceSetTemperatureThreshold == NULL: if handle == NULL: handle = load_library() __nvmlDeviceSetTemperatureThreshold = dlsym(handle, 'nvmlDeviceSetTemperatureThreshold') global __nvmlDeviceSetPowerManagementLimit __nvmlDeviceSetPowerManagementLimit = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetPowerManagementLimit') if __nvmlDeviceSetPowerManagementLimit == NULL: if handle == NULL: handle = load_library() __nvmlDeviceSetPowerManagementLimit = dlsym(handle, 'nvmlDeviceSetPowerManagementLimit') global __nvmlDeviceSetGpuOperationMode __nvmlDeviceSetGpuOperationMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetGpuOperationMode') if __nvmlDeviceSetGpuOperationMode == NULL: if handle == NULL: handle = load_library() __nvmlDeviceSetGpuOperationMode = dlsym(handle, 'nvmlDeviceSetGpuOperationMode') global __nvmlDeviceSetAPIRestriction __nvmlDeviceSetAPIRestriction = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetAPIRestriction') if __nvmlDeviceSetAPIRestriction == NULL: if handle == NULL: handle = load_library() __nvmlDeviceSetAPIRestriction = dlsym(handle, 'nvmlDeviceSetAPIRestriction') global __nvmlDeviceSetFanSpeed_v2 __nvmlDeviceSetFanSpeed_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetFanSpeed_v2') if __nvmlDeviceSetFanSpeed_v2 == NULL: if handle == NULL: handle = load_library() __nvmlDeviceSetFanSpeed_v2 = dlsym(handle, 'nvmlDeviceSetFanSpeed_v2') global __nvmlDeviceSetAccountingMode __nvmlDeviceSetAccountingMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetAccountingMode') if __nvmlDeviceSetAccountingMode == NULL: if handle == NULL: handle = load_library() __nvmlDeviceSetAccountingMode = dlsym(handle, 'nvmlDeviceSetAccountingMode') global __nvmlDeviceClearAccountingPids __nvmlDeviceClearAccountingPids = dlsym(RTLD_DEFAULT, 'nvmlDeviceClearAccountingPids') if __nvmlDeviceClearAccountingPids == NULL: if handle == NULL: handle = load_library() __nvmlDeviceClearAccountingPids = dlsym(handle, 'nvmlDeviceClearAccountingPids') global __nvmlDeviceSetPowerManagementLimit_v2 __nvmlDeviceSetPowerManagementLimit_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetPowerManagementLimit_v2') if __nvmlDeviceSetPowerManagementLimit_v2 == NULL: if handle == NULL: handle = load_library() __nvmlDeviceSetPowerManagementLimit_v2 = dlsym(handle, 'nvmlDeviceSetPowerManagementLimit_v2') global __nvmlDeviceGetNvLinkState __nvmlDeviceGetNvLinkState = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNvLinkState') if __nvmlDeviceGetNvLinkState == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetNvLinkState = dlsym(handle, 'nvmlDeviceGetNvLinkState') global __nvmlDeviceGetNvLinkVersion __nvmlDeviceGetNvLinkVersion = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNvLinkVersion') if __nvmlDeviceGetNvLinkVersion == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetNvLinkVersion = dlsym(handle, 'nvmlDeviceGetNvLinkVersion') global __nvmlDeviceGetNvLinkCapability __nvmlDeviceGetNvLinkCapability = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNvLinkCapability') if __nvmlDeviceGetNvLinkCapability == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetNvLinkCapability = dlsym(handle, 'nvmlDeviceGetNvLinkCapability') global __nvmlDeviceGetNvLinkRemotePciInfo_v2 __nvmlDeviceGetNvLinkRemotePciInfo_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNvLinkRemotePciInfo_v2') if __nvmlDeviceGetNvLinkRemotePciInfo_v2 == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetNvLinkRemotePciInfo_v2 = dlsym(handle, 'nvmlDeviceGetNvLinkRemotePciInfo_v2') global __nvmlDeviceGetNvLinkErrorCounter __nvmlDeviceGetNvLinkErrorCounter = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNvLinkErrorCounter') if __nvmlDeviceGetNvLinkErrorCounter == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetNvLinkErrorCounter = dlsym(handle, 'nvmlDeviceGetNvLinkErrorCounter') global __nvmlDeviceResetNvLinkErrorCounters __nvmlDeviceResetNvLinkErrorCounters = dlsym(RTLD_DEFAULT, 'nvmlDeviceResetNvLinkErrorCounters') if __nvmlDeviceResetNvLinkErrorCounters == NULL: if handle == NULL: handle = load_library() __nvmlDeviceResetNvLinkErrorCounters = dlsym(handle, 'nvmlDeviceResetNvLinkErrorCounters') global __nvmlDeviceGetNvLinkRemoteDeviceType __nvmlDeviceGetNvLinkRemoteDeviceType = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNvLinkRemoteDeviceType') if __nvmlDeviceGetNvLinkRemoteDeviceType == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetNvLinkRemoteDeviceType = dlsym(handle, 'nvmlDeviceGetNvLinkRemoteDeviceType') global __nvmlDeviceSetNvLinkDeviceLowPowerThreshold __nvmlDeviceSetNvLinkDeviceLowPowerThreshold = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetNvLinkDeviceLowPowerThreshold') if __nvmlDeviceSetNvLinkDeviceLowPowerThreshold == NULL: if handle == NULL: handle = load_library() __nvmlDeviceSetNvLinkDeviceLowPowerThreshold = dlsym(handle, 'nvmlDeviceSetNvLinkDeviceLowPowerThreshold') global __nvmlSystemSetNvlinkBwMode __nvmlSystemSetNvlinkBwMode = dlsym(RTLD_DEFAULT, 'nvmlSystemSetNvlinkBwMode') if __nvmlSystemSetNvlinkBwMode == NULL: if handle == NULL: handle = load_library() __nvmlSystemSetNvlinkBwMode = dlsym(handle, 'nvmlSystemSetNvlinkBwMode') global __nvmlSystemGetNvlinkBwMode __nvmlSystemGetNvlinkBwMode = dlsym(RTLD_DEFAULT, 'nvmlSystemGetNvlinkBwMode') if __nvmlSystemGetNvlinkBwMode == NULL: if handle == NULL: handle = load_library() __nvmlSystemGetNvlinkBwMode = dlsym(handle, 'nvmlSystemGetNvlinkBwMode') global __nvmlDeviceGetNvlinkSupportedBwModes __nvmlDeviceGetNvlinkSupportedBwModes = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNvlinkSupportedBwModes') if __nvmlDeviceGetNvlinkSupportedBwModes == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetNvlinkSupportedBwModes = dlsym(handle, 'nvmlDeviceGetNvlinkSupportedBwModes') global __nvmlDeviceGetNvlinkBwMode __nvmlDeviceGetNvlinkBwMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNvlinkBwMode') if __nvmlDeviceGetNvlinkBwMode == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetNvlinkBwMode = dlsym(handle, 'nvmlDeviceGetNvlinkBwMode') global __nvmlDeviceSetNvlinkBwMode __nvmlDeviceSetNvlinkBwMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetNvlinkBwMode') if __nvmlDeviceSetNvlinkBwMode == NULL: if handle == NULL: handle = load_library() __nvmlDeviceSetNvlinkBwMode = dlsym(handle, 'nvmlDeviceSetNvlinkBwMode') global __nvmlEventSetCreate __nvmlEventSetCreate = dlsym(RTLD_DEFAULT, 'nvmlEventSetCreate') if __nvmlEventSetCreate == NULL: if handle == NULL: handle = load_library() __nvmlEventSetCreate = dlsym(handle, 'nvmlEventSetCreate') global __nvmlDeviceRegisterEvents __nvmlDeviceRegisterEvents = dlsym(RTLD_DEFAULT, 'nvmlDeviceRegisterEvents') if __nvmlDeviceRegisterEvents == NULL: if handle == NULL: handle = load_library() __nvmlDeviceRegisterEvents = dlsym(handle, 'nvmlDeviceRegisterEvents') global __nvmlDeviceGetSupportedEventTypes __nvmlDeviceGetSupportedEventTypes = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetSupportedEventTypes') if __nvmlDeviceGetSupportedEventTypes == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetSupportedEventTypes = dlsym(handle, 'nvmlDeviceGetSupportedEventTypes') global __nvmlEventSetWait_v2 __nvmlEventSetWait_v2 = dlsym(RTLD_DEFAULT, 'nvmlEventSetWait_v2') if __nvmlEventSetWait_v2 == NULL: if handle == NULL: handle = load_library() __nvmlEventSetWait_v2 = dlsym(handle, 'nvmlEventSetWait_v2') global __nvmlEventSetFree __nvmlEventSetFree = dlsym(RTLD_DEFAULT, 'nvmlEventSetFree') if __nvmlEventSetFree == NULL: if handle == NULL: handle = load_library() __nvmlEventSetFree = dlsym(handle, 'nvmlEventSetFree') global __nvmlSystemEventSetCreate __nvmlSystemEventSetCreate = dlsym(RTLD_DEFAULT, 'nvmlSystemEventSetCreate') if __nvmlSystemEventSetCreate == NULL: if handle == NULL: handle = load_library() __nvmlSystemEventSetCreate = dlsym(handle, 'nvmlSystemEventSetCreate') global __nvmlSystemEventSetFree __nvmlSystemEventSetFree = dlsym(RTLD_DEFAULT, 'nvmlSystemEventSetFree') if __nvmlSystemEventSetFree == NULL: if handle == NULL: handle = load_library() __nvmlSystemEventSetFree = dlsym(handle, 'nvmlSystemEventSetFree') global __nvmlSystemRegisterEvents __nvmlSystemRegisterEvents = dlsym(RTLD_DEFAULT, 'nvmlSystemRegisterEvents') if __nvmlSystemRegisterEvents == NULL: if handle == NULL: handle = load_library() __nvmlSystemRegisterEvents = dlsym(handle, 'nvmlSystemRegisterEvents') global __nvmlSystemEventSetWait __nvmlSystemEventSetWait = dlsym(RTLD_DEFAULT, 'nvmlSystemEventSetWait') if __nvmlSystemEventSetWait == NULL: if handle == NULL: handle = load_library() __nvmlSystemEventSetWait = dlsym(handle, 'nvmlSystemEventSetWait') global __nvmlDeviceModifyDrainState __nvmlDeviceModifyDrainState = dlsym(RTLD_DEFAULT, 'nvmlDeviceModifyDrainState') if __nvmlDeviceModifyDrainState == NULL: if handle == NULL: handle = load_library() __nvmlDeviceModifyDrainState = dlsym(handle, 'nvmlDeviceModifyDrainState') global __nvmlDeviceQueryDrainState __nvmlDeviceQueryDrainState = dlsym(RTLD_DEFAULT, 'nvmlDeviceQueryDrainState') if __nvmlDeviceQueryDrainState == NULL: if handle == NULL: handle = load_library() __nvmlDeviceQueryDrainState = dlsym(handle, 'nvmlDeviceQueryDrainState') global __nvmlDeviceRemoveGpu_v2 __nvmlDeviceRemoveGpu_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceRemoveGpu_v2') if __nvmlDeviceRemoveGpu_v2 == NULL: if handle == NULL: handle = load_library() __nvmlDeviceRemoveGpu_v2 = dlsym(handle, 'nvmlDeviceRemoveGpu_v2') global __nvmlDeviceDiscoverGpus __nvmlDeviceDiscoverGpus = dlsym(RTLD_DEFAULT, 'nvmlDeviceDiscoverGpus') if __nvmlDeviceDiscoverGpus == NULL: if handle == NULL: handle = load_library() __nvmlDeviceDiscoverGpus = dlsym(handle, 'nvmlDeviceDiscoverGpus') global __nvmlDeviceGetFieldValues __nvmlDeviceGetFieldValues = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetFieldValues') if __nvmlDeviceGetFieldValues == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetFieldValues = dlsym(handle, 'nvmlDeviceGetFieldValues') global __nvmlDeviceClearFieldValues __nvmlDeviceClearFieldValues = dlsym(RTLD_DEFAULT, 'nvmlDeviceClearFieldValues') if __nvmlDeviceClearFieldValues == NULL: if handle == NULL: handle = load_library() __nvmlDeviceClearFieldValues = dlsym(handle, 'nvmlDeviceClearFieldValues') global __nvmlDeviceGetVirtualizationMode __nvmlDeviceGetVirtualizationMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVirtualizationMode') if __nvmlDeviceGetVirtualizationMode == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetVirtualizationMode = dlsym(handle, 'nvmlDeviceGetVirtualizationMode') global __nvmlDeviceGetHostVgpuMode __nvmlDeviceGetHostVgpuMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetHostVgpuMode') if __nvmlDeviceGetHostVgpuMode == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetHostVgpuMode = dlsym(handle, 'nvmlDeviceGetHostVgpuMode') global __nvmlDeviceSetVirtualizationMode __nvmlDeviceSetVirtualizationMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetVirtualizationMode') if __nvmlDeviceSetVirtualizationMode == NULL: if handle == NULL: handle = load_library() __nvmlDeviceSetVirtualizationMode = dlsym(handle, 'nvmlDeviceSetVirtualizationMode') global __nvmlDeviceGetVgpuHeterogeneousMode __nvmlDeviceGetVgpuHeterogeneousMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuHeterogeneousMode') if __nvmlDeviceGetVgpuHeterogeneousMode == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetVgpuHeterogeneousMode = dlsym(handle, 'nvmlDeviceGetVgpuHeterogeneousMode') global __nvmlDeviceSetVgpuHeterogeneousMode __nvmlDeviceSetVgpuHeterogeneousMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetVgpuHeterogeneousMode') if __nvmlDeviceSetVgpuHeterogeneousMode == NULL: if handle == NULL: handle = load_library() __nvmlDeviceSetVgpuHeterogeneousMode = dlsym(handle, 'nvmlDeviceSetVgpuHeterogeneousMode') global __nvmlVgpuInstanceGetPlacementId __nvmlVgpuInstanceGetPlacementId = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetPlacementId') if __nvmlVgpuInstanceGetPlacementId == NULL: if handle == NULL: handle = load_library() __nvmlVgpuInstanceGetPlacementId = dlsym(handle, 'nvmlVgpuInstanceGetPlacementId') global __nvmlDeviceGetVgpuTypeSupportedPlacements __nvmlDeviceGetVgpuTypeSupportedPlacements = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuTypeSupportedPlacements') if __nvmlDeviceGetVgpuTypeSupportedPlacements == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetVgpuTypeSupportedPlacements = dlsym(handle, 'nvmlDeviceGetVgpuTypeSupportedPlacements') global __nvmlDeviceGetVgpuTypeCreatablePlacements __nvmlDeviceGetVgpuTypeCreatablePlacements = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuTypeCreatablePlacements') if __nvmlDeviceGetVgpuTypeCreatablePlacements == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetVgpuTypeCreatablePlacements = dlsym(handle, 'nvmlDeviceGetVgpuTypeCreatablePlacements') global __nvmlVgpuTypeGetGspHeapSize __nvmlVgpuTypeGetGspHeapSize = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetGspHeapSize') if __nvmlVgpuTypeGetGspHeapSize == NULL: if handle == NULL: handle = load_library() __nvmlVgpuTypeGetGspHeapSize = dlsym(handle, 'nvmlVgpuTypeGetGspHeapSize') global __nvmlVgpuTypeGetFbReservation __nvmlVgpuTypeGetFbReservation = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetFbReservation') if __nvmlVgpuTypeGetFbReservation == NULL: if handle == NULL: handle = load_library() __nvmlVgpuTypeGetFbReservation = dlsym(handle, 'nvmlVgpuTypeGetFbReservation') global __nvmlVgpuInstanceGetRuntimeStateSize __nvmlVgpuInstanceGetRuntimeStateSize = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetRuntimeStateSize') if __nvmlVgpuInstanceGetRuntimeStateSize == NULL: if handle == NULL: handle = load_library() __nvmlVgpuInstanceGetRuntimeStateSize = dlsym(handle, 'nvmlVgpuInstanceGetRuntimeStateSize') global __nvmlDeviceSetVgpuCapabilities __nvmlDeviceSetVgpuCapabilities = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetVgpuCapabilities') if __nvmlDeviceSetVgpuCapabilities == NULL: if handle == NULL: handle = load_library() __nvmlDeviceSetVgpuCapabilities = dlsym(handle, 'nvmlDeviceSetVgpuCapabilities') global __nvmlDeviceGetGridLicensableFeatures_v4 __nvmlDeviceGetGridLicensableFeatures_v4 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGridLicensableFeatures_v4') if __nvmlDeviceGetGridLicensableFeatures_v4 == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetGridLicensableFeatures_v4 = dlsym(handle, 'nvmlDeviceGetGridLicensableFeatures_v4') global __nvmlGetVgpuDriverCapabilities __nvmlGetVgpuDriverCapabilities = dlsym(RTLD_DEFAULT, 'nvmlGetVgpuDriverCapabilities') if __nvmlGetVgpuDriverCapabilities == NULL: if handle == NULL: handle = load_library() __nvmlGetVgpuDriverCapabilities = dlsym(handle, 'nvmlGetVgpuDriverCapabilities') global __nvmlDeviceGetVgpuCapabilities __nvmlDeviceGetVgpuCapabilities = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuCapabilities') if __nvmlDeviceGetVgpuCapabilities == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetVgpuCapabilities = dlsym(handle, 'nvmlDeviceGetVgpuCapabilities') global __nvmlDeviceGetSupportedVgpus __nvmlDeviceGetSupportedVgpus = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetSupportedVgpus') if __nvmlDeviceGetSupportedVgpus == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetSupportedVgpus = dlsym(handle, 'nvmlDeviceGetSupportedVgpus') global __nvmlDeviceGetCreatableVgpus __nvmlDeviceGetCreatableVgpus = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetCreatableVgpus') if __nvmlDeviceGetCreatableVgpus == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetCreatableVgpus = dlsym(handle, 'nvmlDeviceGetCreatableVgpus') global __nvmlVgpuTypeGetClass __nvmlVgpuTypeGetClass = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetClass') if __nvmlVgpuTypeGetClass == NULL: if handle == NULL: handle = load_library() __nvmlVgpuTypeGetClass = dlsym(handle, 'nvmlVgpuTypeGetClass') global __nvmlVgpuTypeGetName __nvmlVgpuTypeGetName = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetName') if __nvmlVgpuTypeGetName == NULL: if handle == NULL: handle = load_library() __nvmlVgpuTypeGetName = dlsym(handle, 'nvmlVgpuTypeGetName') global __nvmlVgpuTypeGetGpuInstanceProfileId __nvmlVgpuTypeGetGpuInstanceProfileId = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetGpuInstanceProfileId') if __nvmlVgpuTypeGetGpuInstanceProfileId == NULL: if handle == NULL: handle = load_library() __nvmlVgpuTypeGetGpuInstanceProfileId = dlsym(handle, 'nvmlVgpuTypeGetGpuInstanceProfileId') global __nvmlVgpuTypeGetDeviceID __nvmlVgpuTypeGetDeviceID = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetDeviceID') if __nvmlVgpuTypeGetDeviceID == NULL: if handle == NULL: handle = load_library() __nvmlVgpuTypeGetDeviceID = dlsym(handle, 'nvmlVgpuTypeGetDeviceID') global __nvmlVgpuTypeGetFramebufferSize __nvmlVgpuTypeGetFramebufferSize = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetFramebufferSize') if __nvmlVgpuTypeGetFramebufferSize == NULL: if handle == NULL: handle = load_library() __nvmlVgpuTypeGetFramebufferSize = dlsym(handle, 'nvmlVgpuTypeGetFramebufferSize') global __nvmlVgpuTypeGetNumDisplayHeads __nvmlVgpuTypeGetNumDisplayHeads = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetNumDisplayHeads') if __nvmlVgpuTypeGetNumDisplayHeads == NULL: if handle == NULL: handle = load_library() __nvmlVgpuTypeGetNumDisplayHeads = dlsym(handle, 'nvmlVgpuTypeGetNumDisplayHeads') global __nvmlVgpuTypeGetResolution __nvmlVgpuTypeGetResolution = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetResolution') if __nvmlVgpuTypeGetResolution == NULL: if handle == NULL: handle = load_library() __nvmlVgpuTypeGetResolution = dlsym(handle, 'nvmlVgpuTypeGetResolution') global __nvmlVgpuTypeGetLicense __nvmlVgpuTypeGetLicense = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetLicense') if __nvmlVgpuTypeGetLicense == NULL: if handle == NULL: handle = load_library() __nvmlVgpuTypeGetLicense = dlsym(handle, 'nvmlVgpuTypeGetLicense') global __nvmlVgpuTypeGetFrameRateLimit __nvmlVgpuTypeGetFrameRateLimit = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetFrameRateLimit') if __nvmlVgpuTypeGetFrameRateLimit == NULL: if handle == NULL: handle = load_library() __nvmlVgpuTypeGetFrameRateLimit = dlsym(handle, 'nvmlVgpuTypeGetFrameRateLimit') global __nvmlVgpuTypeGetMaxInstances __nvmlVgpuTypeGetMaxInstances = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetMaxInstances') if __nvmlVgpuTypeGetMaxInstances == NULL: if handle == NULL: handle = load_library() __nvmlVgpuTypeGetMaxInstances = dlsym(handle, 'nvmlVgpuTypeGetMaxInstances') global __nvmlVgpuTypeGetMaxInstancesPerVm __nvmlVgpuTypeGetMaxInstancesPerVm = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetMaxInstancesPerVm') if __nvmlVgpuTypeGetMaxInstancesPerVm == NULL: if handle == NULL: handle = load_library() __nvmlVgpuTypeGetMaxInstancesPerVm = dlsym(handle, 'nvmlVgpuTypeGetMaxInstancesPerVm') global __nvmlVgpuTypeGetBAR1Info __nvmlVgpuTypeGetBAR1Info = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetBAR1Info') if __nvmlVgpuTypeGetBAR1Info == NULL: if handle == NULL: handle = load_library() __nvmlVgpuTypeGetBAR1Info = dlsym(handle, 'nvmlVgpuTypeGetBAR1Info') global __nvmlDeviceGetActiveVgpus __nvmlDeviceGetActiveVgpus = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetActiveVgpus') if __nvmlDeviceGetActiveVgpus == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetActiveVgpus = dlsym(handle, 'nvmlDeviceGetActiveVgpus') global __nvmlVgpuInstanceGetVmID __nvmlVgpuInstanceGetVmID = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetVmID') if __nvmlVgpuInstanceGetVmID == NULL: if handle == NULL: handle = load_library() __nvmlVgpuInstanceGetVmID = dlsym(handle, 'nvmlVgpuInstanceGetVmID') global __nvmlVgpuInstanceGetUUID __nvmlVgpuInstanceGetUUID = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetUUID') if __nvmlVgpuInstanceGetUUID == NULL: if handle == NULL: handle = load_library() __nvmlVgpuInstanceGetUUID = dlsym(handle, 'nvmlVgpuInstanceGetUUID') global __nvmlVgpuInstanceGetVmDriverVersion __nvmlVgpuInstanceGetVmDriverVersion = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetVmDriverVersion') if __nvmlVgpuInstanceGetVmDriverVersion == NULL: if handle == NULL: handle = load_library() __nvmlVgpuInstanceGetVmDriverVersion = dlsym(handle, 'nvmlVgpuInstanceGetVmDriverVersion') global __nvmlVgpuInstanceGetFbUsage __nvmlVgpuInstanceGetFbUsage = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetFbUsage') if __nvmlVgpuInstanceGetFbUsage == NULL: if handle == NULL: handle = load_library() __nvmlVgpuInstanceGetFbUsage = dlsym(handle, 'nvmlVgpuInstanceGetFbUsage') global __nvmlVgpuInstanceGetLicenseStatus __nvmlVgpuInstanceGetLicenseStatus = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetLicenseStatus') if __nvmlVgpuInstanceGetLicenseStatus == NULL: if handle == NULL: handle = load_library() __nvmlVgpuInstanceGetLicenseStatus = dlsym(handle, 'nvmlVgpuInstanceGetLicenseStatus') global __nvmlVgpuInstanceGetType __nvmlVgpuInstanceGetType = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetType') if __nvmlVgpuInstanceGetType == NULL: if handle == NULL: handle = load_library() __nvmlVgpuInstanceGetType = dlsym(handle, 'nvmlVgpuInstanceGetType') global __nvmlVgpuInstanceGetFrameRateLimit __nvmlVgpuInstanceGetFrameRateLimit = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetFrameRateLimit') if __nvmlVgpuInstanceGetFrameRateLimit == NULL: if handle == NULL: handle = load_library() __nvmlVgpuInstanceGetFrameRateLimit = dlsym(handle, 'nvmlVgpuInstanceGetFrameRateLimit') global __nvmlVgpuInstanceGetEccMode __nvmlVgpuInstanceGetEccMode = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetEccMode') if __nvmlVgpuInstanceGetEccMode == NULL: if handle == NULL: handle = load_library() __nvmlVgpuInstanceGetEccMode = dlsym(handle, 'nvmlVgpuInstanceGetEccMode') global __nvmlVgpuInstanceGetEncoderCapacity __nvmlVgpuInstanceGetEncoderCapacity = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetEncoderCapacity') if __nvmlVgpuInstanceGetEncoderCapacity == NULL: if handle == NULL: handle = load_library() __nvmlVgpuInstanceGetEncoderCapacity = dlsym(handle, 'nvmlVgpuInstanceGetEncoderCapacity') global __nvmlVgpuInstanceSetEncoderCapacity __nvmlVgpuInstanceSetEncoderCapacity = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceSetEncoderCapacity') if __nvmlVgpuInstanceSetEncoderCapacity == NULL: if handle == NULL: handle = load_library() __nvmlVgpuInstanceSetEncoderCapacity = dlsym(handle, 'nvmlVgpuInstanceSetEncoderCapacity') global __nvmlVgpuInstanceGetEncoderStats __nvmlVgpuInstanceGetEncoderStats = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetEncoderStats') if __nvmlVgpuInstanceGetEncoderStats == NULL: if handle == NULL: handle = load_library() __nvmlVgpuInstanceGetEncoderStats = dlsym(handle, 'nvmlVgpuInstanceGetEncoderStats') global __nvmlVgpuInstanceGetEncoderSessions __nvmlVgpuInstanceGetEncoderSessions = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetEncoderSessions') if __nvmlVgpuInstanceGetEncoderSessions == NULL: if handle == NULL: handle = load_library() __nvmlVgpuInstanceGetEncoderSessions = dlsym(handle, 'nvmlVgpuInstanceGetEncoderSessions') global __nvmlVgpuInstanceGetFBCStats __nvmlVgpuInstanceGetFBCStats = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetFBCStats') if __nvmlVgpuInstanceGetFBCStats == NULL: if handle == NULL: handle = load_library() __nvmlVgpuInstanceGetFBCStats = dlsym(handle, 'nvmlVgpuInstanceGetFBCStats') global __nvmlVgpuInstanceGetFBCSessions __nvmlVgpuInstanceGetFBCSessions = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetFBCSessions') if __nvmlVgpuInstanceGetFBCSessions == NULL: if handle == NULL: handle = load_library() __nvmlVgpuInstanceGetFBCSessions = dlsym(handle, 'nvmlVgpuInstanceGetFBCSessions') global __nvmlVgpuInstanceGetGpuInstanceId __nvmlVgpuInstanceGetGpuInstanceId = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetGpuInstanceId') if __nvmlVgpuInstanceGetGpuInstanceId == NULL: if handle == NULL: handle = load_library() __nvmlVgpuInstanceGetGpuInstanceId = dlsym(handle, 'nvmlVgpuInstanceGetGpuInstanceId') global __nvmlVgpuInstanceGetGpuPciId __nvmlVgpuInstanceGetGpuPciId = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetGpuPciId') if __nvmlVgpuInstanceGetGpuPciId == NULL: if handle == NULL: handle = load_library() __nvmlVgpuInstanceGetGpuPciId = dlsym(handle, 'nvmlVgpuInstanceGetGpuPciId') global __nvmlVgpuTypeGetCapabilities __nvmlVgpuTypeGetCapabilities = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetCapabilities') if __nvmlVgpuTypeGetCapabilities == NULL: if handle == NULL: handle = load_library() __nvmlVgpuTypeGetCapabilities = dlsym(handle, 'nvmlVgpuTypeGetCapabilities') global __nvmlVgpuInstanceGetMdevUUID __nvmlVgpuInstanceGetMdevUUID = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetMdevUUID') if __nvmlVgpuInstanceGetMdevUUID == NULL: if handle == NULL: handle = load_library() __nvmlVgpuInstanceGetMdevUUID = dlsym(handle, 'nvmlVgpuInstanceGetMdevUUID') global __nvmlGpuInstanceGetCreatableVgpus __nvmlGpuInstanceGetCreatableVgpus = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetCreatableVgpus') if __nvmlGpuInstanceGetCreatableVgpus == NULL: if handle == NULL: handle = load_library() __nvmlGpuInstanceGetCreatableVgpus = dlsym(handle, 'nvmlGpuInstanceGetCreatableVgpus') global __nvmlVgpuTypeGetMaxInstancesPerGpuInstance __nvmlVgpuTypeGetMaxInstancesPerGpuInstance = dlsym(RTLD_DEFAULT, 'nvmlVgpuTypeGetMaxInstancesPerGpuInstance') if __nvmlVgpuTypeGetMaxInstancesPerGpuInstance == NULL: if handle == NULL: handle = load_library() __nvmlVgpuTypeGetMaxInstancesPerGpuInstance = dlsym(handle, 'nvmlVgpuTypeGetMaxInstancesPerGpuInstance') global __nvmlGpuInstanceGetActiveVgpus __nvmlGpuInstanceGetActiveVgpus = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetActiveVgpus') if __nvmlGpuInstanceGetActiveVgpus == NULL: if handle == NULL: handle = load_library() __nvmlGpuInstanceGetActiveVgpus = dlsym(handle, 'nvmlGpuInstanceGetActiveVgpus') global __nvmlGpuInstanceSetVgpuSchedulerState __nvmlGpuInstanceSetVgpuSchedulerState = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceSetVgpuSchedulerState') if __nvmlGpuInstanceSetVgpuSchedulerState == NULL: if handle == NULL: handle = load_library() __nvmlGpuInstanceSetVgpuSchedulerState = dlsym(handle, 'nvmlGpuInstanceSetVgpuSchedulerState') global __nvmlGpuInstanceGetVgpuSchedulerState __nvmlGpuInstanceGetVgpuSchedulerState = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetVgpuSchedulerState') if __nvmlGpuInstanceGetVgpuSchedulerState == NULL: if handle == NULL: handle = load_library() __nvmlGpuInstanceGetVgpuSchedulerState = dlsym(handle, 'nvmlGpuInstanceGetVgpuSchedulerState') global __nvmlGpuInstanceGetVgpuSchedulerLog __nvmlGpuInstanceGetVgpuSchedulerLog = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetVgpuSchedulerLog') if __nvmlGpuInstanceGetVgpuSchedulerLog == NULL: if handle == NULL: handle = load_library() __nvmlGpuInstanceGetVgpuSchedulerLog = dlsym(handle, 'nvmlGpuInstanceGetVgpuSchedulerLog') global __nvmlGpuInstanceGetVgpuTypeCreatablePlacements __nvmlGpuInstanceGetVgpuTypeCreatablePlacements = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetVgpuTypeCreatablePlacements') if __nvmlGpuInstanceGetVgpuTypeCreatablePlacements == NULL: if handle == NULL: handle = load_library() __nvmlGpuInstanceGetVgpuTypeCreatablePlacements = dlsym(handle, 'nvmlGpuInstanceGetVgpuTypeCreatablePlacements') global __nvmlGpuInstanceGetVgpuHeterogeneousMode __nvmlGpuInstanceGetVgpuHeterogeneousMode = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetVgpuHeterogeneousMode') if __nvmlGpuInstanceGetVgpuHeterogeneousMode == NULL: if handle == NULL: handle = load_library() __nvmlGpuInstanceGetVgpuHeterogeneousMode = dlsym(handle, 'nvmlGpuInstanceGetVgpuHeterogeneousMode') global __nvmlGpuInstanceSetVgpuHeterogeneousMode __nvmlGpuInstanceSetVgpuHeterogeneousMode = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceSetVgpuHeterogeneousMode') if __nvmlGpuInstanceSetVgpuHeterogeneousMode == NULL: if handle == NULL: handle = load_library() __nvmlGpuInstanceSetVgpuHeterogeneousMode = dlsym(handle, 'nvmlGpuInstanceSetVgpuHeterogeneousMode') global __nvmlVgpuInstanceGetMetadata __nvmlVgpuInstanceGetMetadata = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetMetadata') if __nvmlVgpuInstanceGetMetadata == NULL: if handle == NULL: handle = load_library() __nvmlVgpuInstanceGetMetadata = dlsym(handle, 'nvmlVgpuInstanceGetMetadata') global __nvmlDeviceGetVgpuMetadata __nvmlDeviceGetVgpuMetadata = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuMetadata') if __nvmlDeviceGetVgpuMetadata == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetVgpuMetadata = dlsym(handle, 'nvmlDeviceGetVgpuMetadata') global __nvmlGetVgpuCompatibility __nvmlGetVgpuCompatibility = dlsym(RTLD_DEFAULT, 'nvmlGetVgpuCompatibility') if __nvmlGetVgpuCompatibility == NULL: if handle == NULL: handle = load_library() __nvmlGetVgpuCompatibility = dlsym(handle, 'nvmlGetVgpuCompatibility') global __nvmlDeviceGetPgpuMetadataString __nvmlDeviceGetPgpuMetadataString = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPgpuMetadataString') if __nvmlDeviceGetPgpuMetadataString == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetPgpuMetadataString = dlsym(handle, 'nvmlDeviceGetPgpuMetadataString') global __nvmlDeviceGetVgpuSchedulerLog __nvmlDeviceGetVgpuSchedulerLog = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuSchedulerLog') if __nvmlDeviceGetVgpuSchedulerLog == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetVgpuSchedulerLog = dlsym(handle, 'nvmlDeviceGetVgpuSchedulerLog') global __nvmlDeviceGetVgpuSchedulerState __nvmlDeviceGetVgpuSchedulerState = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuSchedulerState') if __nvmlDeviceGetVgpuSchedulerState == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetVgpuSchedulerState = dlsym(handle, 'nvmlDeviceGetVgpuSchedulerState') global __nvmlDeviceGetVgpuSchedulerCapabilities __nvmlDeviceGetVgpuSchedulerCapabilities = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuSchedulerCapabilities') if __nvmlDeviceGetVgpuSchedulerCapabilities == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetVgpuSchedulerCapabilities = dlsym(handle, 'nvmlDeviceGetVgpuSchedulerCapabilities') global __nvmlDeviceSetVgpuSchedulerState __nvmlDeviceSetVgpuSchedulerState = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetVgpuSchedulerState') if __nvmlDeviceSetVgpuSchedulerState == NULL: if handle == NULL: handle = load_library() __nvmlDeviceSetVgpuSchedulerState = dlsym(handle, 'nvmlDeviceSetVgpuSchedulerState') global __nvmlGetVgpuVersion __nvmlGetVgpuVersion = dlsym(RTLD_DEFAULT, 'nvmlGetVgpuVersion') if __nvmlGetVgpuVersion == NULL: if handle == NULL: handle = load_library() __nvmlGetVgpuVersion = dlsym(handle, 'nvmlGetVgpuVersion') global __nvmlSetVgpuVersion __nvmlSetVgpuVersion = dlsym(RTLD_DEFAULT, 'nvmlSetVgpuVersion') if __nvmlSetVgpuVersion == NULL: if handle == NULL: handle = load_library() __nvmlSetVgpuVersion = dlsym(handle, 'nvmlSetVgpuVersion') global __nvmlDeviceGetVgpuUtilization __nvmlDeviceGetVgpuUtilization = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuUtilization') if __nvmlDeviceGetVgpuUtilization == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetVgpuUtilization = dlsym(handle, 'nvmlDeviceGetVgpuUtilization') global __nvmlDeviceGetVgpuInstancesUtilizationInfo __nvmlDeviceGetVgpuInstancesUtilizationInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuInstancesUtilizationInfo') if __nvmlDeviceGetVgpuInstancesUtilizationInfo == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetVgpuInstancesUtilizationInfo = dlsym(handle, 'nvmlDeviceGetVgpuInstancesUtilizationInfo') global __nvmlDeviceGetVgpuProcessUtilization __nvmlDeviceGetVgpuProcessUtilization = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuProcessUtilization') if __nvmlDeviceGetVgpuProcessUtilization == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetVgpuProcessUtilization = dlsym(handle, 'nvmlDeviceGetVgpuProcessUtilization') global __nvmlDeviceGetVgpuProcessesUtilizationInfo __nvmlDeviceGetVgpuProcessesUtilizationInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetVgpuProcessesUtilizationInfo') if __nvmlDeviceGetVgpuProcessesUtilizationInfo == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetVgpuProcessesUtilizationInfo = dlsym(handle, 'nvmlDeviceGetVgpuProcessesUtilizationInfo') global __nvmlVgpuInstanceGetAccountingMode __nvmlVgpuInstanceGetAccountingMode = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetAccountingMode') if __nvmlVgpuInstanceGetAccountingMode == NULL: if handle == NULL: handle = load_library() __nvmlVgpuInstanceGetAccountingMode = dlsym(handle, 'nvmlVgpuInstanceGetAccountingMode') global __nvmlVgpuInstanceGetAccountingPids __nvmlVgpuInstanceGetAccountingPids = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetAccountingPids') if __nvmlVgpuInstanceGetAccountingPids == NULL: if handle == NULL: handle = load_library() __nvmlVgpuInstanceGetAccountingPids = dlsym(handle, 'nvmlVgpuInstanceGetAccountingPids') global __nvmlVgpuInstanceGetAccountingStats __nvmlVgpuInstanceGetAccountingStats = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetAccountingStats') if __nvmlVgpuInstanceGetAccountingStats == NULL: if handle == NULL: handle = load_library() __nvmlVgpuInstanceGetAccountingStats = dlsym(handle, 'nvmlVgpuInstanceGetAccountingStats') global __nvmlVgpuInstanceClearAccountingPids __nvmlVgpuInstanceClearAccountingPids = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceClearAccountingPids') if __nvmlVgpuInstanceClearAccountingPids == NULL: if handle == NULL: handle = load_library() __nvmlVgpuInstanceClearAccountingPids = dlsym(handle, 'nvmlVgpuInstanceClearAccountingPids') global __nvmlVgpuInstanceGetLicenseInfo_v2 __nvmlVgpuInstanceGetLicenseInfo_v2 = dlsym(RTLD_DEFAULT, 'nvmlVgpuInstanceGetLicenseInfo_v2') if __nvmlVgpuInstanceGetLicenseInfo_v2 == NULL: if handle == NULL: handle = load_library() __nvmlVgpuInstanceGetLicenseInfo_v2 = dlsym(handle, 'nvmlVgpuInstanceGetLicenseInfo_v2') global __nvmlGetExcludedDeviceCount __nvmlGetExcludedDeviceCount = dlsym(RTLD_DEFAULT, 'nvmlGetExcludedDeviceCount') if __nvmlGetExcludedDeviceCount == NULL: if handle == NULL: handle = load_library() __nvmlGetExcludedDeviceCount = dlsym(handle, 'nvmlGetExcludedDeviceCount') global __nvmlGetExcludedDeviceInfoByIndex __nvmlGetExcludedDeviceInfoByIndex = dlsym(RTLD_DEFAULT, 'nvmlGetExcludedDeviceInfoByIndex') if __nvmlGetExcludedDeviceInfoByIndex == NULL: if handle == NULL: handle = load_library() __nvmlGetExcludedDeviceInfoByIndex = dlsym(handle, 'nvmlGetExcludedDeviceInfoByIndex') global __nvmlDeviceSetMigMode __nvmlDeviceSetMigMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetMigMode') if __nvmlDeviceSetMigMode == NULL: if handle == NULL: handle = load_library() __nvmlDeviceSetMigMode = dlsym(handle, 'nvmlDeviceSetMigMode') global __nvmlDeviceGetMigMode __nvmlDeviceGetMigMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMigMode') if __nvmlDeviceGetMigMode == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetMigMode = dlsym(handle, 'nvmlDeviceGetMigMode') global __nvmlDeviceGetGpuInstanceProfileInfoV __nvmlDeviceGetGpuInstanceProfileInfoV = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpuInstanceProfileInfoV') if __nvmlDeviceGetGpuInstanceProfileInfoV == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetGpuInstanceProfileInfoV = dlsym(handle, 'nvmlDeviceGetGpuInstanceProfileInfoV') global __nvmlDeviceGetGpuInstancePossiblePlacements_v2 __nvmlDeviceGetGpuInstancePossiblePlacements_v2 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpuInstancePossiblePlacements_v2') if __nvmlDeviceGetGpuInstancePossiblePlacements_v2 == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetGpuInstancePossiblePlacements_v2 = dlsym(handle, 'nvmlDeviceGetGpuInstancePossiblePlacements_v2') global __nvmlDeviceGetGpuInstanceRemainingCapacity __nvmlDeviceGetGpuInstanceRemainingCapacity = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpuInstanceRemainingCapacity') if __nvmlDeviceGetGpuInstanceRemainingCapacity == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetGpuInstanceRemainingCapacity = dlsym(handle, 'nvmlDeviceGetGpuInstanceRemainingCapacity') global __nvmlDeviceCreateGpuInstance __nvmlDeviceCreateGpuInstance = dlsym(RTLD_DEFAULT, 'nvmlDeviceCreateGpuInstance') if __nvmlDeviceCreateGpuInstance == NULL: if handle == NULL: handle = load_library() __nvmlDeviceCreateGpuInstance = dlsym(handle, 'nvmlDeviceCreateGpuInstance') global __nvmlDeviceCreateGpuInstanceWithPlacement __nvmlDeviceCreateGpuInstanceWithPlacement = dlsym(RTLD_DEFAULT, 'nvmlDeviceCreateGpuInstanceWithPlacement') if __nvmlDeviceCreateGpuInstanceWithPlacement == NULL: if handle == NULL: handle = load_library() __nvmlDeviceCreateGpuInstanceWithPlacement = dlsym(handle, 'nvmlDeviceCreateGpuInstanceWithPlacement') global __nvmlGpuInstanceDestroy __nvmlGpuInstanceDestroy = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceDestroy') if __nvmlGpuInstanceDestroy == NULL: if handle == NULL: handle = load_library() __nvmlGpuInstanceDestroy = dlsym(handle, 'nvmlGpuInstanceDestroy') global __nvmlDeviceGetGpuInstances __nvmlDeviceGetGpuInstances = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpuInstances') if __nvmlDeviceGetGpuInstances == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetGpuInstances = dlsym(handle, 'nvmlDeviceGetGpuInstances') global __nvmlDeviceGetGpuInstanceById __nvmlDeviceGetGpuInstanceById = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpuInstanceById') if __nvmlDeviceGetGpuInstanceById == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetGpuInstanceById = dlsym(handle, 'nvmlDeviceGetGpuInstanceById') global __nvmlGpuInstanceGetInfo __nvmlGpuInstanceGetInfo = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetInfo') if __nvmlGpuInstanceGetInfo == NULL: if handle == NULL: handle = load_library() __nvmlGpuInstanceGetInfo = dlsym(handle, 'nvmlGpuInstanceGetInfo') global __nvmlGpuInstanceGetComputeInstanceProfileInfoV __nvmlGpuInstanceGetComputeInstanceProfileInfoV = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetComputeInstanceProfileInfoV') if __nvmlGpuInstanceGetComputeInstanceProfileInfoV == NULL: if handle == NULL: handle = load_library() __nvmlGpuInstanceGetComputeInstanceProfileInfoV = dlsym(handle, 'nvmlGpuInstanceGetComputeInstanceProfileInfoV') global __nvmlGpuInstanceGetComputeInstanceRemainingCapacity __nvmlGpuInstanceGetComputeInstanceRemainingCapacity = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetComputeInstanceRemainingCapacity') if __nvmlGpuInstanceGetComputeInstanceRemainingCapacity == NULL: if handle == NULL: handle = load_library() __nvmlGpuInstanceGetComputeInstanceRemainingCapacity = dlsym(handle, 'nvmlGpuInstanceGetComputeInstanceRemainingCapacity') global __nvmlGpuInstanceGetComputeInstancePossiblePlacements __nvmlGpuInstanceGetComputeInstancePossiblePlacements = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetComputeInstancePossiblePlacements') if __nvmlGpuInstanceGetComputeInstancePossiblePlacements == NULL: if handle == NULL: handle = load_library() __nvmlGpuInstanceGetComputeInstancePossiblePlacements = dlsym(handle, 'nvmlGpuInstanceGetComputeInstancePossiblePlacements') global __nvmlGpuInstanceCreateComputeInstance __nvmlGpuInstanceCreateComputeInstance = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceCreateComputeInstance') if __nvmlGpuInstanceCreateComputeInstance == NULL: if handle == NULL: handle = load_library() __nvmlGpuInstanceCreateComputeInstance = dlsym(handle, 'nvmlGpuInstanceCreateComputeInstance') global __nvmlGpuInstanceCreateComputeInstanceWithPlacement __nvmlGpuInstanceCreateComputeInstanceWithPlacement = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceCreateComputeInstanceWithPlacement') if __nvmlGpuInstanceCreateComputeInstanceWithPlacement == NULL: if handle == NULL: handle = load_library() __nvmlGpuInstanceCreateComputeInstanceWithPlacement = dlsym(handle, 'nvmlGpuInstanceCreateComputeInstanceWithPlacement') global __nvmlComputeInstanceDestroy __nvmlComputeInstanceDestroy = dlsym(RTLD_DEFAULT, 'nvmlComputeInstanceDestroy') if __nvmlComputeInstanceDestroy == NULL: if handle == NULL: handle = load_library() __nvmlComputeInstanceDestroy = dlsym(handle, 'nvmlComputeInstanceDestroy') global __nvmlGpuInstanceGetComputeInstances __nvmlGpuInstanceGetComputeInstances = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetComputeInstances') if __nvmlGpuInstanceGetComputeInstances == NULL: if handle == NULL: handle = load_library() __nvmlGpuInstanceGetComputeInstances = dlsym(handle, 'nvmlGpuInstanceGetComputeInstances') global __nvmlGpuInstanceGetComputeInstanceById __nvmlGpuInstanceGetComputeInstanceById = dlsym(RTLD_DEFAULT, 'nvmlGpuInstanceGetComputeInstanceById') if __nvmlGpuInstanceGetComputeInstanceById == NULL: if handle == NULL: handle = load_library() __nvmlGpuInstanceGetComputeInstanceById = dlsym(handle, 'nvmlGpuInstanceGetComputeInstanceById') global __nvmlComputeInstanceGetInfo_v2 __nvmlComputeInstanceGetInfo_v2 = dlsym(RTLD_DEFAULT, 'nvmlComputeInstanceGetInfo_v2') if __nvmlComputeInstanceGetInfo_v2 == NULL: if handle == NULL: handle = load_library() __nvmlComputeInstanceGetInfo_v2 = dlsym(handle, 'nvmlComputeInstanceGetInfo_v2') global __nvmlDeviceIsMigDeviceHandle __nvmlDeviceIsMigDeviceHandle = dlsym(RTLD_DEFAULT, 'nvmlDeviceIsMigDeviceHandle') if __nvmlDeviceIsMigDeviceHandle == NULL: if handle == NULL: handle = load_library() __nvmlDeviceIsMigDeviceHandle = dlsym(handle, 'nvmlDeviceIsMigDeviceHandle') global __nvmlDeviceGetGpuInstanceId __nvmlDeviceGetGpuInstanceId = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpuInstanceId') if __nvmlDeviceGetGpuInstanceId == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetGpuInstanceId = dlsym(handle, 'nvmlDeviceGetGpuInstanceId') global __nvmlDeviceGetComputeInstanceId __nvmlDeviceGetComputeInstanceId = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetComputeInstanceId') if __nvmlDeviceGetComputeInstanceId == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetComputeInstanceId = dlsym(handle, 'nvmlDeviceGetComputeInstanceId') global __nvmlDeviceGetMaxMigDeviceCount __nvmlDeviceGetMaxMigDeviceCount = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMaxMigDeviceCount') if __nvmlDeviceGetMaxMigDeviceCount == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetMaxMigDeviceCount = dlsym(handle, 'nvmlDeviceGetMaxMigDeviceCount') global __nvmlDeviceGetMigDeviceHandleByIndex __nvmlDeviceGetMigDeviceHandleByIndex = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetMigDeviceHandleByIndex') if __nvmlDeviceGetMigDeviceHandleByIndex == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetMigDeviceHandleByIndex = dlsym(handle, 'nvmlDeviceGetMigDeviceHandleByIndex') global __nvmlDeviceGetDeviceHandleFromMigDeviceHandle __nvmlDeviceGetDeviceHandleFromMigDeviceHandle = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetDeviceHandleFromMigDeviceHandle') if __nvmlDeviceGetDeviceHandleFromMigDeviceHandle == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetDeviceHandleFromMigDeviceHandle = dlsym(handle, 'nvmlDeviceGetDeviceHandleFromMigDeviceHandle') global __nvmlGpmSampleGet __nvmlGpmSampleGet = dlsym(RTLD_DEFAULT, 'nvmlGpmSampleGet') if __nvmlGpmSampleGet == NULL: if handle == NULL: handle = load_library() __nvmlGpmSampleGet = dlsym(handle, 'nvmlGpmSampleGet') global __nvmlGpmMigSampleGet __nvmlGpmMigSampleGet = dlsym(RTLD_DEFAULT, 'nvmlGpmMigSampleGet') if __nvmlGpmMigSampleGet == NULL: if handle == NULL: handle = load_library() __nvmlGpmMigSampleGet = dlsym(handle, 'nvmlGpmMigSampleGet') global __nvmlGpmQueryDeviceSupport __nvmlGpmQueryDeviceSupport = dlsym(RTLD_DEFAULT, 'nvmlGpmQueryDeviceSupport') if __nvmlGpmQueryDeviceSupport == NULL: if handle == NULL: handle = load_library() __nvmlGpmQueryDeviceSupport = dlsym(handle, 'nvmlGpmQueryDeviceSupport') global __nvmlGpmQueryIfStreamingEnabled __nvmlGpmQueryIfStreamingEnabled = dlsym(RTLD_DEFAULT, 'nvmlGpmQueryIfStreamingEnabled') if __nvmlGpmQueryIfStreamingEnabled == NULL: if handle == NULL: handle = load_library() __nvmlGpmQueryIfStreamingEnabled = dlsym(handle, 'nvmlGpmQueryIfStreamingEnabled') global __nvmlGpmSetStreamingEnabled __nvmlGpmSetStreamingEnabled = dlsym(RTLD_DEFAULT, 'nvmlGpmSetStreamingEnabled') if __nvmlGpmSetStreamingEnabled == NULL: if handle == NULL: handle = load_library() __nvmlGpmSetStreamingEnabled = dlsym(handle, 'nvmlGpmSetStreamingEnabled') global __nvmlDeviceGetCapabilities __nvmlDeviceGetCapabilities = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetCapabilities') if __nvmlDeviceGetCapabilities == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetCapabilities = dlsym(handle, 'nvmlDeviceGetCapabilities') global __nvmlDeviceWorkloadPowerProfileClearRequestedProfiles __nvmlDeviceWorkloadPowerProfileClearRequestedProfiles = dlsym(RTLD_DEFAULT, 'nvmlDeviceWorkloadPowerProfileClearRequestedProfiles') if __nvmlDeviceWorkloadPowerProfileClearRequestedProfiles == NULL: if handle == NULL: handle = load_library() __nvmlDeviceWorkloadPowerProfileClearRequestedProfiles = dlsym(handle, 'nvmlDeviceWorkloadPowerProfileClearRequestedProfiles') global __nvmlDevicePowerSmoothingActivatePresetProfile __nvmlDevicePowerSmoothingActivatePresetProfile = dlsym(RTLD_DEFAULT, 'nvmlDevicePowerSmoothingActivatePresetProfile') if __nvmlDevicePowerSmoothingActivatePresetProfile == NULL: if handle == NULL: handle = load_library() __nvmlDevicePowerSmoothingActivatePresetProfile = dlsym(handle, 'nvmlDevicePowerSmoothingActivatePresetProfile') global __nvmlDevicePowerSmoothingUpdatePresetProfileParam __nvmlDevicePowerSmoothingUpdatePresetProfileParam = dlsym(RTLD_DEFAULT, 'nvmlDevicePowerSmoothingUpdatePresetProfileParam') if __nvmlDevicePowerSmoothingUpdatePresetProfileParam == NULL: if handle == NULL: handle = load_library() __nvmlDevicePowerSmoothingUpdatePresetProfileParam = dlsym(handle, 'nvmlDevicePowerSmoothingUpdatePresetProfileParam') global __nvmlDevicePowerSmoothingSetState __nvmlDevicePowerSmoothingSetState = dlsym(RTLD_DEFAULT, 'nvmlDevicePowerSmoothingSetState') if __nvmlDevicePowerSmoothingSetState == NULL: if handle == NULL: handle = load_library() __nvmlDevicePowerSmoothingSetState = dlsym(handle, 'nvmlDevicePowerSmoothingSetState') global __nvmlDeviceGetAddressingMode __nvmlDeviceGetAddressingMode = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetAddressingMode') if __nvmlDeviceGetAddressingMode == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetAddressingMode = dlsym(handle, 'nvmlDeviceGetAddressingMode') global __nvmlDeviceGetRepairStatus __nvmlDeviceGetRepairStatus = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetRepairStatus') if __nvmlDeviceGetRepairStatus == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetRepairStatus = dlsym(handle, 'nvmlDeviceGetRepairStatus') global __nvmlDeviceGetPowerMizerMode_v1 __nvmlDeviceGetPowerMizerMode_v1 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPowerMizerMode_v1') if __nvmlDeviceGetPowerMizerMode_v1 == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetPowerMizerMode_v1 = dlsym(handle, 'nvmlDeviceGetPowerMizerMode_v1') global __nvmlDeviceSetPowerMizerMode_v1 __nvmlDeviceSetPowerMizerMode_v1 = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetPowerMizerMode_v1') if __nvmlDeviceSetPowerMizerMode_v1 == NULL: if handle == NULL: handle = load_library() __nvmlDeviceSetPowerMizerMode_v1 = dlsym(handle, 'nvmlDeviceSetPowerMizerMode_v1') global __nvmlDeviceGetPdi __nvmlDeviceGetPdi = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetPdi') if __nvmlDeviceGetPdi == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetPdi = dlsym(handle, 'nvmlDeviceGetPdi') global __nvmlDeviceSetHostname_v1 __nvmlDeviceSetHostname_v1 = dlsym(RTLD_DEFAULT, 'nvmlDeviceSetHostname_v1') if __nvmlDeviceSetHostname_v1 == NULL: if handle == NULL: handle = load_library() __nvmlDeviceSetHostname_v1 = dlsym(handle, 'nvmlDeviceSetHostname_v1') global __nvmlDeviceGetHostname_v1 __nvmlDeviceGetHostname_v1 = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetHostname_v1') if __nvmlDeviceGetHostname_v1 == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetHostname_v1 = dlsym(handle, 'nvmlDeviceGetHostname_v1') global __nvmlDeviceGetNvLinkInfo __nvmlDeviceGetNvLinkInfo = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetNvLinkInfo') if __nvmlDeviceGetNvLinkInfo == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetNvLinkInfo = dlsym(handle, 'nvmlDeviceGetNvLinkInfo') global __nvmlDeviceReadWritePRM_v1 __nvmlDeviceReadWritePRM_v1 = dlsym(RTLD_DEFAULT, 'nvmlDeviceReadWritePRM_v1') if __nvmlDeviceReadWritePRM_v1 == NULL: if handle == NULL: handle = load_library() __nvmlDeviceReadWritePRM_v1 = dlsym(handle, 'nvmlDeviceReadWritePRM_v1') global __nvmlDeviceGetGpuInstanceProfileInfoByIdV __nvmlDeviceGetGpuInstanceProfileInfoByIdV = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetGpuInstanceProfileInfoByIdV') if __nvmlDeviceGetGpuInstanceProfileInfoByIdV == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetGpuInstanceProfileInfoByIdV = dlsym(handle, 'nvmlDeviceGetGpuInstanceProfileInfoByIdV') global __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts = dlsym(RTLD_DEFAULT, 'nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts') if __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts == NULL: if handle == NULL: handle = load_library() __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts = dlsym(handle, 'nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts') __py_nvml_init = True return 0 cdef inline int _check_or_init_nvml() except -1 nogil: if __py_nvml_init: return 0 return _init_nvml() cdef dict func_ptrs = None cpdef dict _inspect_function_pointers(): global func_ptrs if func_ptrs is not None: return func_ptrs _check_or_init_nvml() cdef dict data = {} global __nvmlInit_v2 data["__nvmlInit_v2"] = __nvmlInit_v2 global __nvmlInitWithFlags data["__nvmlInitWithFlags"] = __nvmlInitWithFlags global __nvmlShutdown data["__nvmlShutdown"] = __nvmlShutdown global __nvmlErrorString data["__nvmlErrorString"] = __nvmlErrorString global __nvmlSystemGetDriverVersion data["__nvmlSystemGetDriverVersion"] = __nvmlSystemGetDriverVersion global __nvmlSystemGetNVMLVersion data["__nvmlSystemGetNVMLVersion"] = __nvmlSystemGetNVMLVersion global __nvmlSystemGetCudaDriverVersion data["__nvmlSystemGetCudaDriverVersion"] = __nvmlSystemGetCudaDriverVersion global __nvmlSystemGetCudaDriverVersion_v2 data["__nvmlSystemGetCudaDriverVersion_v2"] = __nvmlSystemGetCudaDriverVersion_v2 global __nvmlSystemGetProcessName data["__nvmlSystemGetProcessName"] = __nvmlSystemGetProcessName global __nvmlSystemGetHicVersion data["__nvmlSystemGetHicVersion"] = __nvmlSystemGetHicVersion global __nvmlSystemGetTopologyGpuSet data["__nvmlSystemGetTopologyGpuSet"] = __nvmlSystemGetTopologyGpuSet global __nvmlSystemGetDriverBranch data["__nvmlSystemGetDriverBranch"] = __nvmlSystemGetDriverBranch global __nvmlUnitGetCount data["__nvmlUnitGetCount"] = __nvmlUnitGetCount global __nvmlUnitGetHandleByIndex data["__nvmlUnitGetHandleByIndex"] = __nvmlUnitGetHandleByIndex global __nvmlUnitGetUnitInfo data["__nvmlUnitGetUnitInfo"] = __nvmlUnitGetUnitInfo global __nvmlUnitGetLedState data["__nvmlUnitGetLedState"] = __nvmlUnitGetLedState global __nvmlUnitGetPsuInfo data["__nvmlUnitGetPsuInfo"] = __nvmlUnitGetPsuInfo global __nvmlUnitGetTemperature data["__nvmlUnitGetTemperature"] = __nvmlUnitGetTemperature global __nvmlUnitGetFanSpeedInfo data["__nvmlUnitGetFanSpeedInfo"] = __nvmlUnitGetFanSpeedInfo global __nvmlUnitGetDevices data["__nvmlUnitGetDevices"] = __nvmlUnitGetDevices global __nvmlDeviceGetCount_v2 data["__nvmlDeviceGetCount_v2"] = __nvmlDeviceGetCount_v2 global __nvmlDeviceGetAttributes_v2 data["__nvmlDeviceGetAttributes_v2"] = __nvmlDeviceGetAttributes_v2 global __nvmlDeviceGetHandleByIndex_v2 data["__nvmlDeviceGetHandleByIndex_v2"] = __nvmlDeviceGetHandleByIndex_v2 global __nvmlDeviceGetHandleBySerial data["__nvmlDeviceGetHandleBySerial"] = __nvmlDeviceGetHandleBySerial global __nvmlDeviceGetHandleByUUID data["__nvmlDeviceGetHandleByUUID"] = __nvmlDeviceGetHandleByUUID global __nvmlDeviceGetHandleByUUIDV data["__nvmlDeviceGetHandleByUUIDV"] = __nvmlDeviceGetHandleByUUIDV global __nvmlDeviceGetHandleByPciBusId_v2 data["__nvmlDeviceGetHandleByPciBusId_v2"] = __nvmlDeviceGetHandleByPciBusId_v2 global __nvmlDeviceGetName data["__nvmlDeviceGetName"] = __nvmlDeviceGetName global __nvmlDeviceGetBrand data["__nvmlDeviceGetBrand"] = __nvmlDeviceGetBrand global __nvmlDeviceGetIndex data["__nvmlDeviceGetIndex"] = __nvmlDeviceGetIndex global __nvmlDeviceGetSerial data["__nvmlDeviceGetSerial"] = __nvmlDeviceGetSerial global __nvmlDeviceGetModuleId data["__nvmlDeviceGetModuleId"] = __nvmlDeviceGetModuleId global __nvmlDeviceGetC2cModeInfoV data["__nvmlDeviceGetC2cModeInfoV"] = __nvmlDeviceGetC2cModeInfoV global __nvmlDeviceGetMemoryAffinity data["__nvmlDeviceGetMemoryAffinity"] = __nvmlDeviceGetMemoryAffinity global __nvmlDeviceGetCpuAffinityWithinScope data["__nvmlDeviceGetCpuAffinityWithinScope"] = __nvmlDeviceGetCpuAffinityWithinScope global __nvmlDeviceGetCpuAffinity data["__nvmlDeviceGetCpuAffinity"] = __nvmlDeviceGetCpuAffinity global __nvmlDeviceSetCpuAffinity data["__nvmlDeviceSetCpuAffinity"] = __nvmlDeviceSetCpuAffinity global __nvmlDeviceClearCpuAffinity data["__nvmlDeviceClearCpuAffinity"] = __nvmlDeviceClearCpuAffinity global __nvmlDeviceGetNumaNodeId data["__nvmlDeviceGetNumaNodeId"] = __nvmlDeviceGetNumaNodeId global __nvmlDeviceGetTopologyCommonAncestor data["__nvmlDeviceGetTopologyCommonAncestor"] = __nvmlDeviceGetTopologyCommonAncestor global __nvmlDeviceGetTopologyNearestGpus data["__nvmlDeviceGetTopologyNearestGpus"] = __nvmlDeviceGetTopologyNearestGpus global __nvmlDeviceGetP2PStatus data["__nvmlDeviceGetP2PStatus"] = __nvmlDeviceGetP2PStatus global __nvmlDeviceGetUUID data["__nvmlDeviceGetUUID"] = __nvmlDeviceGetUUID global __nvmlDeviceGetMinorNumber data["__nvmlDeviceGetMinorNumber"] = __nvmlDeviceGetMinorNumber global __nvmlDeviceGetBoardPartNumber data["__nvmlDeviceGetBoardPartNumber"] = __nvmlDeviceGetBoardPartNumber global __nvmlDeviceGetInforomVersion data["__nvmlDeviceGetInforomVersion"] = __nvmlDeviceGetInforomVersion global __nvmlDeviceGetInforomImageVersion data["__nvmlDeviceGetInforomImageVersion"] = __nvmlDeviceGetInforomImageVersion global __nvmlDeviceGetInforomConfigurationChecksum data["__nvmlDeviceGetInforomConfigurationChecksum"] = __nvmlDeviceGetInforomConfigurationChecksum global __nvmlDeviceValidateInforom data["__nvmlDeviceValidateInforom"] = __nvmlDeviceValidateInforom global __nvmlDeviceGetLastBBXFlushTime data["__nvmlDeviceGetLastBBXFlushTime"] = __nvmlDeviceGetLastBBXFlushTime global __nvmlDeviceGetDisplayMode data["__nvmlDeviceGetDisplayMode"] = __nvmlDeviceGetDisplayMode global __nvmlDeviceGetDisplayActive data["__nvmlDeviceGetDisplayActive"] = __nvmlDeviceGetDisplayActive global __nvmlDeviceGetPersistenceMode data["__nvmlDeviceGetPersistenceMode"] = __nvmlDeviceGetPersistenceMode global __nvmlDeviceGetPciInfoExt data["__nvmlDeviceGetPciInfoExt"] = __nvmlDeviceGetPciInfoExt global __nvmlDeviceGetPciInfo_v3 data["__nvmlDeviceGetPciInfo_v3"] = __nvmlDeviceGetPciInfo_v3 global __nvmlDeviceGetMaxPcieLinkGeneration data["__nvmlDeviceGetMaxPcieLinkGeneration"] = __nvmlDeviceGetMaxPcieLinkGeneration global __nvmlDeviceGetGpuMaxPcieLinkGeneration data["__nvmlDeviceGetGpuMaxPcieLinkGeneration"] = __nvmlDeviceGetGpuMaxPcieLinkGeneration global __nvmlDeviceGetMaxPcieLinkWidth data["__nvmlDeviceGetMaxPcieLinkWidth"] = __nvmlDeviceGetMaxPcieLinkWidth global __nvmlDeviceGetCurrPcieLinkGeneration data["__nvmlDeviceGetCurrPcieLinkGeneration"] = __nvmlDeviceGetCurrPcieLinkGeneration global __nvmlDeviceGetCurrPcieLinkWidth data["__nvmlDeviceGetCurrPcieLinkWidth"] = __nvmlDeviceGetCurrPcieLinkWidth global __nvmlDeviceGetPcieThroughput data["__nvmlDeviceGetPcieThroughput"] = __nvmlDeviceGetPcieThroughput global __nvmlDeviceGetPcieReplayCounter data["__nvmlDeviceGetPcieReplayCounter"] = __nvmlDeviceGetPcieReplayCounter global __nvmlDeviceGetClockInfo data["__nvmlDeviceGetClockInfo"] = __nvmlDeviceGetClockInfo global __nvmlDeviceGetMaxClockInfo data["__nvmlDeviceGetMaxClockInfo"] = __nvmlDeviceGetMaxClockInfo global __nvmlDeviceGetGpcClkVfOffset data["__nvmlDeviceGetGpcClkVfOffset"] = __nvmlDeviceGetGpcClkVfOffset global __nvmlDeviceGetClock data["__nvmlDeviceGetClock"] = __nvmlDeviceGetClock global __nvmlDeviceGetMaxCustomerBoostClock data["__nvmlDeviceGetMaxCustomerBoostClock"] = __nvmlDeviceGetMaxCustomerBoostClock global __nvmlDeviceGetSupportedMemoryClocks data["__nvmlDeviceGetSupportedMemoryClocks"] = __nvmlDeviceGetSupportedMemoryClocks global __nvmlDeviceGetSupportedGraphicsClocks data["__nvmlDeviceGetSupportedGraphicsClocks"] = __nvmlDeviceGetSupportedGraphicsClocks global __nvmlDeviceGetAutoBoostedClocksEnabled data["__nvmlDeviceGetAutoBoostedClocksEnabled"] = __nvmlDeviceGetAutoBoostedClocksEnabled global __nvmlDeviceGetFanSpeed data["__nvmlDeviceGetFanSpeed"] = __nvmlDeviceGetFanSpeed global __nvmlDeviceGetFanSpeed_v2 data["__nvmlDeviceGetFanSpeed_v2"] = __nvmlDeviceGetFanSpeed_v2 global __nvmlDeviceGetFanSpeedRPM data["__nvmlDeviceGetFanSpeedRPM"] = __nvmlDeviceGetFanSpeedRPM global __nvmlDeviceGetTargetFanSpeed data["__nvmlDeviceGetTargetFanSpeed"] = __nvmlDeviceGetTargetFanSpeed global __nvmlDeviceGetMinMaxFanSpeed data["__nvmlDeviceGetMinMaxFanSpeed"] = __nvmlDeviceGetMinMaxFanSpeed global __nvmlDeviceGetFanControlPolicy_v2 data["__nvmlDeviceGetFanControlPolicy_v2"] = __nvmlDeviceGetFanControlPolicy_v2 global __nvmlDeviceGetNumFans data["__nvmlDeviceGetNumFans"] = __nvmlDeviceGetNumFans global __nvmlDeviceGetCoolerInfo data["__nvmlDeviceGetCoolerInfo"] = __nvmlDeviceGetCoolerInfo global __nvmlDeviceGetTemperatureV data["__nvmlDeviceGetTemperatureV"] = __nvmlDeviceGetTemperatureV global __nvmlDeviceGetTemperatureThreshold data["__nvmlDeviceGetTemperatureThreshold"] = __nvmlDeviceGetTemperatureThreshold global __nvmlDeviceGetMarginTemperature data["__nvmlDeviceGetMarginTemperature"] = __nvmlDeviceGetMarginTemperature global __nvmlDeviceGetThermalSettings data["__nvmlDeviceGetThermalSettings"] = __nvmlDeviceGetThermalSettings global __nvmlDeviceGetPerformanceState data["__nvmlDeviceGetPerformanceState"] = __nvmlDeviceGetPerformanceState global __nvmlDeviceGetCurrentClocksEventReasons data["__nvmlDeviceGetCurrentClocksEventReasons"] = __nvmlDeviceGetCurrentClocksEventReasons global __nvmlDeviceGetSupportedClocksEventReasons data["__nvmlDeviceGetSupportedClocksEventReasons"] = __nvmlDeviceGetSupportedClocksEventReasons global __nvmlDeviceGetPowerState data["__nvmlDeviceGetPowerState"] = __nvmlDeviceGetPowerState global __nvmlDeviceGetDynamicPstatesInfo data["__nvmlDeviceGetDynamicPstatesInfo"] = __nvmlDeviceGetDynamicPstatesInfo global __nvmlDeviceGetMemClkVfOffset data["__nvmlDeviceGetMemClkVfOffset"] = __nvmlDeviceGetMemClkVfOffset global __nvmlDeviceGetMinMaxClockOfPState data["__nvmlDeviceGetMinMaxClockOfPState"] = __nvmlDeviceGetMinMaxClockOfPState global __nvmlDeviceGetSupportedPerformanceStates data["__nvmlDeviceGetSupportedPerformanceStates"] = __nvmlDeviceGetSupportedPerformanceStates global __nvmlDeviceGetGpcClkMinMaxVfOffset data["__nvmlDeviceGetGpcClkMinMaxVfOffset"] = __nvmlDeviceGetGpcClkMinMaxVfOffset global __nvmlDeviceGetMemClkMinMaxVfOffset data["__nvmlDeviceGetMemClkMinMaxVfOffset"] = __nvmlDeviceGetMemClkMinMaxVfOffset global __nvmlDeviceGetClockOffsets data["__nvmlDeviceGetClockOffsets"] = __nvmlDeviceGetClockOffsets global __nvmlDeviceSetClockOffsets data["__nvmlDeviceSetClockOffsets"] = __nvmlDeviceSetClockOffsets global __nvmlDeviceGetPerformanceModes data["__nvmlDeviceGetPerformanceModes"] = __nvmlDeviceGetPerformanceModes global __nvmlDeviceGetCurrentClockFreqs data["__nvmlDeviceGetCurrentClockFreqs"] = __nvmlDeviceGetCurrentClockFreqs global __nvmlDeviceGetPowerManagementLimit data["__nvmlDeviceGetPowerManagementLimit"] = __nvmlDeviceGetPowerManagementLimit global __nvmlDeviceGetPowerManagementLimitConstraints data["__nvmlDeviceGetPowerManagementLimitConstraints"] = __nvmlDeviceGetPowerManagementLimitConstraints global __nvmlDeviceGetPowerManagementDefaultLimit data["__nvmlDeviceGetPowerManagementDefaultLimit"] = __nvmlDeviceGetPowerManagementDefaultLimit global __nvmlDeviceGetPowerUsage data["__nvmlDeviceGetPowerUsage"] = __nvmlDeviceGetPowerUsage global __nvmlDeviceGetTotalEnergyConsumption data["__nvmlDeviceGetTotalEnergyConsumption"] = __nvmlDeviceGetTotalEnergyConsumption global __nvmlDeviceGetEnforcedPowerLimit data["__nvmlDeviceGetEnforcedPowerLimit"] = __nvmlDeviceGetEnforcedPowerLimit global __nvmlDeviceGetGpuOperationMode data["__nvmlDeviceGetGpuOperationMode"] = __nvmlDeviceGetGpuOperationMode global __nvmlDeviceGetMemoryInfo_v2 data["__nvmlDeviceGetMemoryInfo_v2"] = __nvmlDeviceGetMemoryInfo_v2 global __nvmlDeviceGetComputeMode data["__nvmlDeviceGetComputeMode"] = __nvmlDeviceGetComputeMode global __nvmlDeviceGetCudaComputeCapability data["__nvmlDeviceGetCudaComputeCapability"] = __nvmlDeviceGetCudaComputeCapability global __nvmlDeviceGetDramEncryptionMode data["__nvmlDeviceGetDramEncryptionMode"] = __nvmlDeviceGetDramEncryptionMode global __nvmlDeviceSetDramEncryptionMode data["__nvmlDeviceSetDramEncryptionMode"] = __nvmlDeviceSetDramEncryptionMode global __nvmlDeviceGetEccMode data["__nvmlDeviceGetEccMode"] = __nvmlDeviceGetEccMode global __nvmlDeviceGetDefaultEccMode data["__nvmlDeviceGetDefaultEccMode"] = __nvmlDeviceGetDefaultEccMode global __nvmlDeviceGetBoardId data["__nvmlDeviceGetBoardId"] = __nvmlDeviceGetBoardId global __nvmlDeviceGetMultiGpuBoard data["__nvmlDeviceGetMultiGpuBoard"] = __nvmlDeviceGetMultiGpuBoard global __nvmlDeviceGetTotalEccErrors data["__nvmlDeviceGetTotalEccErrors"] = __nvmlDeviceGetTotalEccErrors global __nvmlDeviceGetMemoryErrorCounter data["__nvmlDeviceGetMemoryErrorCounter"] = __nvmlDeviceGetMemoryErrorCounter global __nvmlDeviceGetUtilizationRates data["__nvmlDeviceGetUtilizationRates"] = __nvmlDeviceGetUtilizationRates global __nvmlDeviceGetEncoderUtilization data["__nvmlDeviceGetEncoderUtilization"] = __nvmlDeviceGetEncoderUtilization global __nvmlDeviceGetEncoderCapacity data["__nvmlDeviceGetEncoderCapacity"] = __nvmlDeviceGetEncoderCapacity global __nvmlDeviceGetEncoderStats data["__nvmlDeviceGetEncoderStats"] = __nvmlDeviceGetEncoderStats global __nvmlDeviceGetEncoderSessions data["__nvmlDeviceGetEncoderSessions"] = __nvmlDeviceGetEncoderSessions global __nvmlDeviceGetDecoderUtilization data["__nvmlDeviceGetDecoderUtilization"] = __nvmlDeviceGetDecoderUtilization global __nvmlDeviceGetJpgUtilization data["__nvmlDeviceGetJpgUtilization"] = __nvmlDeviceGetJpgUtilization global __nvmlDeviceGetOfaUtilization data["__nvmlDeviceGetOfaUtilization"] = __nvmlDeviceGetOfaUtilization global __nvmlDeviceGetFBCStats data["__nvmlDeviceGetFBCStats"] = __nvmlDeviceGetFBCStats global __nvmlDeviceGetFBCSessions data["__nvmlDeviceGetFBCSessions"] = __nvmlDeviceGetFBCSessions global __nvmlDeviceGetDriverModel_v2 data["__nvmlDeviceGetDriverModel_v2"] = __nvmlDeviceGetDriverModel_v2 global __nvmlDeviceGetVbiosVersion data["__nvmlDeviceGetVbiosVersion"] = __nvmlDeviceGetVbiosVersion global __nvmlDeviceGetBridgeChipInfo data["__nvmlDeviceGetBridgeChipInfo"] = __nvmlDeviceGetBridgeChipInfo global __nvmlDeviceGetComputeRunningProcesses_v3 data["__nvmlDeviceGetComputeRunningProcesses_v3"] = __nvmlDeviceGetComputeRunningProcesses_v3 global __nvmlDeviceGetMPSComputeRunningProcesses_v3 data["__nvmlDeviceGetMPSComputeRunningProcesses_v3"] = __nvmlDeviceGetMPSComputeRunningProcesses_v3 global __nvmlDeviceGetRunningProcessDetailList data["__nvmlDeviceGetRunningProcessDetailList"] = __nvmlDeviceGetRunningProcessDetailList global __nvmlDeviceOnSameBoard data["__nvmlDeviceOnSameBoard"] = __nvmlDeviceOnSameBoard global __nvmlDeviceGetAPIRestriction data["__nvmlDeviceGetAPIRestriction"] = __nvmlDeviceGetAPIRestriction global __nvmlDeviceGetSamples data["__nvmlDeviceGetSamples"] = __nvmlDeviceGetSamples global __nvmlDeviceGetBAR1MemoryInfo data["__nvmlDeviceGetBAR1MemoryInfo"] = __nvmlDeviceGetBAR1MemoryInfo global __nvmlDeviceGetIrqNum data["__nvmlDeviceGetIrqNum"] = __nvmlDeviceGetIrqNum global __nvmlDeviceGetNumGpuCores data["__nvmlDeviceGetNumGpuCores"] = __nvmlDeviceGetNumGpuCores global __nvmlDeviceGetPowerSource data["__nvmlDeviceGetPowerSource"] = __nvmlDeviceGetPowerSource global __nvmlDeviceGetMemoryBusWidth data["__nvmlDeviceGetMemoryBusWidth"] = __nvmlDeviceGetMemoryBusWidth global __nvmlDeviceGetPcieLinkMaxSpeed data["__nvmlDeviceGetPcieLinkMaxSpeed"] = __nvmlDeviceGetPcieLinkMaxSpeed global __nvmlDeviceGetPcieSpeed data["__nvmlDeviceGetPcieSpeed"] = __nvmlDeviceGetPcieSpeed global __nvmlDeviceGetAdaptiveClockInfoStatus data["__nvmlDeviceGetAdaptiveClockInfoStatus"] = __nvmlDeviceGetAdaptiveClockInfoStatus global __nvmlDeviceGetBusType data["__nvmlDeviceGetBusType"] = __nvmlDeviceGetBusType global __nvmlDeviceGetGpuFabricInfoV data["__nvmlDeviceGetGpuFabricInfoV"] = __nvmlDeviceGetGpuFabricInfoV global __nvmlSystemGetConfComputeCapabilities data["__nvmlSystemGetConfComputeCapabilities"] = __nvmlSystemGetConfComputeCapabilities global __nvmlSystemGetConfComputeState data["__nvmlSystemGetConfComputeState"] = __nvmlSystemGetConfComputeState global __nvmlDeviceGetConfComputeMemSizeInfo data["__nvmlDeviceGetConfComputeMemSizeInfo"] = __nvmlDeviceGetConfComputeMemSizeInfo global __nvmlSystemGetConfComputeGpusReadyState data["__nvmlSystemGetConfComputeGpusReadyState"] = __nvmlSystemGetConfComputeGpusReadyState global __nvmlDeviceGetConfComputeProtectedMemoryUsage data["__nvmlDeviceGetConfComputeProtectedMemoryUsage"] = __nvmlDeviceGetConfComputeProtectedMemoryUsage global __nvmlDeviceGetConfComputeGpuCertificate data["__nvmlDeviceGetConfComputeGpuCertificate"] = __nvmlDeviceGetConfComputeGpuCertificate global __nvmlDeviceGetConfComputeGpuAttestationReport data["__nvmlDeviceGetConfComputeGpuAttestationReport"] = __nvmlDeviceGetConfComputeGpuAttestationReport global __nvmlSystemGetConfComputeKeyRotationThresholdInfo data["__nvmlSystemGetConfComputeKeyRotationThresholdInfo"] = __nvmlSystemGetConfComputeKeyRotationThresholdInfo global __nvmlDeviceSetConfComputeUnprotectedMemSize data["__nvmlDeviceSetConfComputeUnprotectedMemSize"] = __nvmlDeviceSetConfComputeUnprotectedMemSize global __nvmlSystemSetConfComputeGpusReadyState data["__nvmlSystemSetConfComputeGpusReadyState"] = __nvmlSystemSetConfComputeGpusReadyState global __nvmlSystemSetConfComputeKeyRotationThresholdInfo data["__nvmlSystemSetConfComputeKeyRotationThresholdInfo"] = __nvmlSystemSetConfComputeKeyRotationThresholdInfo global __nvmlSystemGetConfComputeSettings data["__nvmlSystemGetConfComputeSettings"] = __nvmlSystemGetConfComputeSettings global __nvmlDeviceGetGspFirmwareVersion data["__nvmlDeviceGetGspFirmwareVersion"] = __nvmlDeviceGetGspFirmwareVersion global __nvmlDeviceGetGspFirmwareMode data["__nvmlDeviceGetGspFirmwareMode"] = __nvmlDeviceGetGspFirmwareMode global __nvmlDeviceGetSramEccErrorStatus data["__nvmlDeviceGetSramEccErrorStatus"] = __nvmlDeviceGetSramEccErrorStatus global __nvmlDeviceGetAccountingMode data["__nvmlDeviceGetAccountingMode"] = __nvmlDeviceGetAccountingMode global __nvmlDeviceGetAccountingStats data["__nvmlDeviceGetAccountingStats"] = __nvmlDeviceGetAccountingStats global __nvmlDeviceGetAccountingPids data["__nvmlDeviceGetAccountingPids"] = __nvmlDeviceGetAccountingPids global __nvmlDeviceGetAccountingBufferSize data["__nvmlDeviceGetAccountingBufferSize"] = __nvmlDeviceGetAccountingBufferSize global __nvmlDeviceGetRetiredPages data["__nvmlDeviceGetRetiredPages"] = __nvmlDeviceGetRetiredPages global __nvmlDeviceGetRetiredPages_v2 data["__nvmlDeviceGetRetiredPages_v2"] = __nvmlDeviceGetRetiredPages_v2 global __nvmlDeviceGetRetiredPagesPendingStatus data["__nvmlDeviceGetRetiredPagesPendingStatus"] = __nvmlDeviceGetRetiredPagesPendingStatus global __nvmlDeviceGetRemappedRows data["__nvmlDeviceGetRemappedRows"] = __nvmlDeviceGetRemappedRows global __nvmlDeviceGetRowRemapperHistogram data["__nvmlDeviceGetRowRemapperHistogram"] = __nvmlDeviceGetRowRemapperHistogram global __nvmlDeviceGetArchitecture data["__nvmlDeviceGetArchitecture"] = __nvmlDeviceGetArchitecture global __nvmlDeviceGetClkMonStatus data["__nvmlDeviceGetClkMonStatus"] = __nvmlDeviceGetClkMonStatus global __nvmlDeviceGetProcessUtilization data["__nvmlDeviceGetProcessUtilization"] = __nvmlDeviceGetProcessUtilization global __nvmlDeviceGetProcessesUtilizationInfo data["__nvmlDeviceGetProcessesUtilizationInfo"] = __nvmlDeviceGetProcessesUtilizationInfo global __nvmlDeviceGetPlatformInfo data["__nvmlDeviceGetPlatformInfo"] = __nvmlDeviceGetPlatformInfo global __nvmlUnitSetLedState data["__nvmlUnitSetLedState"] = __nvmlUnitSetLedState global __nvmlDeviceSetPersistenceMode data["__nvmlDeviceSetPersistenceMode"] = __nvmlDeviceSetPersistenceMode global __nvmlDeviceSetComputeMode data["__nvmlDeviceSetComputeMode"] = __nvmlDeviceSetComputeMode global __nvmlDeviceSetEccMode data["__nvmlDeviceSetEccMode"] = __nvmlDeviceSetEccMode global __nvmlDeviceClearEccErrorCounts data["__nvmlDeviceClearEccErrorCounts"] = __nvmlDeviceClearEccErrorCounts global __nvmlDeviceSetDriverModel data["__nvmlDeviceSetDriverModel"] = __nvmlDeviceSetDriverModel global __nvmlDeviceSetGpuLockedClocks data["__nvmlDeviceSetGpuLockedClocks"] = __nvmlDeviceSetGpuLockedClocks global __nvmlDeviceResetGpuLockedClocks data["__nvmlDeviceResetGpuLockedClocks"] = __nvmlDeviceResetGpuLockedClocks global __nvmlDeviceSetMemoryLockedClocks data["__nvmlDeviceSetMemoryLockedClocks"] = __nvmlDeviceSetMemoryLockedClocks global __nvmlDeviceResetMemoryLockedClocks data["__nvmlDeviceResetMemoryLockedClocks"] = __nvmlDeviceResetMemoryLockedClocks global __nvmlDeviceSetAutoBoostedClocksEnabled data["__nvmlDeviceSetAutoBoostedClocksEnabled"] = __nvmlDeviceSetAutoBoostedClocksEnabled global __nvmlDeviceSetDefaultAutoBoostedClocksEnabled data["__nvmlDeviceSetDefaultAutoBoostedClocksEnabled"] = __nvmlDeviceSetDefaultAutoBoostedClocksEnabled global __nvmlDeviceSetDefaultFanSpeed_v2 data["__nvmlDeviceSetDefaultFanSpeed_v2"] = __nvmlDeviceSetDefaultFanSpeed_v2 global __nvmlDeviceSetFanControlPolicy data["__nvmlDeviceSetFanControlPolicy"] = __nvmlDeviceSetFanControlPolicy global __nvmlDeviceSetTemperatureThreshold data["__nvmlDeviceSetTemperatureThreshold"] = __nvmlDeviceSetTemperatureThreshold global __nvmlDeviceSetPowerManagementLimit data["__nvmlDeviceSetPowerManagementLimit"] = __nvmlDeviceSetPowerManagementLimit global __nvmlDeviceSetGpuOperationMode data["__nvmlDeviceSetGpuOperationMode"] = __nvmlDeviceSetGpuOperationMode global __nvmlDeviceSetAPIRestriction data["__nvmlDeviceSetAPIRestriction"] = __nvmlDeviceSetAPIRestriction global __nvmlDeviceSetFanSpeed_v2 data["__nvmlDeviceSetFanSpeed_v2"] = __nvmlDeviceSetFanSpeed_v2 global __nvmlDeviceSetAccountingMode data["__nvmlDeviceSetAccountingMode"] = __nvmlDeviceSetAccountingMode global __nvmlDeviceClearAccountingPids data["__nvmlDeviceClearAccountingPids"] = __nvmlDeviceClearAccountingPids global __nvmlDeviceSetPowerManagementLimit_v2 data["__nvmlDeviceSetPowerManagementLimit_v2"] = __nvmlDeviceSetPowerManagementLimit_v2 global __nvmlDeviceGetNvLinkState data["__nvmlDeviceGetNvLinkState"] = __nvmlDeviceGetNvLinkState global __nvmlDeviceGetNvLinkVersion data["__nvmlDeviceGetNvLinkVersion"] = __nvmlDeviceGetNvLinkVersion global __nvmlDeviceGetNvLinkCapability data["__nvmlDeviceGetNvLinkCapability"] = __nvmlDeviceGetNvLinkCapability global __nvmlDeviceGetNvLinkRemotePciInfo_v2 data["__nvmlDeviceGetNvLinkRemotePciInfo_v2"] = __nvmlDeviceGetNvLinkRemotePciInfo_v2 global __nvmlDeviceGetNvLinkErrorCounter data["__nvmlDeviceGetNvLinkErrorCounter"] = __nvmlDeviceGetNvLinkErrorCounter global __nvmlDeviceResetNvLinkErrorCounters data["__nvmlDeviceResetNvLinkErrorCounters"] = __nvmlDeviceResetNvLinkErrorCounters global __nvmlDeviceGetNvLinkRemoteDeviceType data["__nvmlDeviceGetNvLinkRemoteDeviceType"] = __nvmlDeviceGetNvLinkRemoteDeviceType global __nvmlDeviceSetNvLinkDeviceLowPowerThreshold data["__nvmlDeviceSetNvLinkDeviceLowPowerThreshold"] = __nvmlDeviceSetNvLinkDeviceLowPowerThreshold global __nvmlSystemSetNvlinkBwMode data["__nvmlSystemSetNvlinkBwMode"] = __nvmlSystemSetNvlinkBwMode global __nvmlSystemGetNvlinkBwMode data["__nvmlSystemGetNvlinkBwMode"] = __nvmlSystemGetNvlinkBwMode global __nvmlDeviceGetNvlinkSupportedBwModes data["__nvmlDeviceGetNvlinkSupportedBwModes"] = __nvmlDeviceGetNvlinkSupportedBwModes global __nvmlDeviceGetNvlinkBwMode data["__nvmlDeviceGetNvlinkBwMode"] = __nvmlDeviceGetNvlinkBwMode global __nvmlDeviceSetNvlinkBwMode data["__nvmlDeviceSetNvlinkBwMode"] = __nvmlDeviceSetNvlinkBwMode global __nvmlEventSetCreate data["__nvmlEventSetCreate"] = __nvmlEventSetCreate global __nvmlDeviceRegisterEvents data["__nvmlDeviceRegisterEvents"] = __nvmlDeviceRegisterEvents global __nvmlDeviceGetSupportedEventTypes data["__nvmlDeviceGetSupportedEventTypes"] = __nvmlDeviceGetSupportedEventTypes global __nvmlEventSetWait_v2 data["__nvmlEventSetWait_v2"] = __nvmlEventSetWait_v2 global __nvmlEventSetFree data["__nvmlEventSetFree"] = __nvmlEventSetFree global __nvmlSystemEventSetCreate data["__nvmlSystemEventSetCreate"] = __nvmlSystemEventSetCreate global __nvmlSystemEventSetFree data["__nvmlSystemEventSetFree"] = __nvmlSystemEventSetFree global __nvmlSystemRegisterEvents data["__nvmlSystemRegisterEvents"] = __nvmlSystemRegisterEvents global __nvmlSystemEventSetWait data["__nvmlSystemEventSetWait"] = __nvmlSystemEventSetWait global __nvmlDeviceModifyDrainState data["__nvmlDeviceModifyDrainState"] = __nvmlDeviceModifyDrainState global __nvmlDeviceQueryDrainState data["__nvmlDeviceQueryDrainState"] = __nvmlDeviceQueryDrainState global __nvmlDeviceRemoveGpu_v2 data["__nvmlDeviceRemoveGpu_v2"] = __nvmlDeviceRemoveGpu_v2 global __nvmlDeviceDiscoverGpus data["__nvmlDeviceDiscoverGpus"] = __nvmlDeviceDiscoverGpus global __nvmlDeviceGetFieldValues data["__nvmlDeviceGetFieldValues"] = __nvmlDeviceGetFieldValues global __nvmlDeviceClearFieldValues data["__nvmlDeviceClearFieldValues"] = __nvmlDeviceClearFieldValues global __nvmlDeviceGetVirtualizationMode data["__nvmlDeviceGetVirtualizationMode"] = __nvmlDeviceGetVirtualizationMode global __nvmlDeviceGetHostVgpuMode data["__nvmlDeviceGetHostVgpuMode"] = __nvmlDeviceGetHostVgpuMode global __nvmlDeviceSetVirtualizationMode data["__nvmlDeviceSetVirtualizationMode"] = __nvmlDeviceSetVirtualizationMode global __nvmlDeviceGetVgpuHeterogeneousMode data["__nvmlDeviceGetVgpuHeterogeneousMode"] = __nvmlDeviceGetVgpuHeterogeneousMode global __nvmlDeviceSetVgpuHeterogeneousMode data["__nvmlDeviceSetVgpuHeterogeneousMode"] = __nvmlDeviceSetVgpuHeterogeneousMode global __nvmlVgpuInstanceGetPlacementId data["__nvmlVgpuInstanceGetPlacementId"] = __nvmlVgpuInstanceGetPlacementId global __nvmlDeviceGetVgpuTypeSupportedPlacements data["__nvmlDeviceGetVgpuTypeSupportedPlacements"] = __nvmlDeviceGetVgpuTypeSupportedPlacements global __nvmlDeviceGetVgpuTypeCreatablePlacements data["__nvmlDeviceGetVgpuTypeCreatablePlacements"] = __nvmlDeviceGetVgpuTypeCreatablePlacements global __nvmlVgpuTypeGetGspHeapSize data["__nvmlVgpuTypeGetGspHeapSize"] = __nvmlVgpuTypeGetGspHeapSize global __nvmlVgpuTypeGetFbReservation data["__nvmlVgpuTypeGetFbReservation"] = __nvmlVgpuTypeGetFbReservation global __nvmlVgpuInstanceGetRuntimeStateSize data["__nvmlVgpuInstanceGetRuntimeStateSize"] = __nvmlVgpuInstanceGetRuntimeStateSize global __nvmlDeviceSetVgpuCapabilities data["__nvmlDeviceSetVgpuCapabilities"] = __nvmlDeviceSetVgpuCapabilities global __nvmlDeviceGetGridLicensableFeatures_v4 data["__nvmlDeviceGetGridLicensableFeatures_v4"] = __nvmlDeviceGetGridLicensableFeatures_v4 global __nvmlGetVgpuDriverCapabilities data["__nvmlGetVgpuDriverCapabilities"] = __nvmlGetVgpuDriverCapabilities global __nvmlDeviceGetVgpuCapabilities data["__nvmlDeviceGetVgpuCapabilities"] = __nvmlDeviceGetVgpuCapabilities global __nvmlDeviceGetSupportedVgpus data["__nvmlDeviceGetSupportedVgpus"] = __nvmlDeviceGetSupportedVgpus global __nvmlDeviceGetCreatableVgpus data["__nvmlDeviceGetCreatableVgpus"] = __nvmlDeviceGetCreatableVgpus global __nvmlVgpuTypeGetClass data["__nvmlVgpuTypeGetClass"] = __nvmlVgpuTypeGetClass global __nvmlVgpuTypeGetName data["__nvmlVgpuTypeGetName"] = __nvmlVgpuTypeGetName global __nvmlVgpuTypeGetGpuInstanceProfileId data["__nvmlVgpuTypeGetGpuInstanceProfileId"] = __nvmlVgpuTypeGetGpuInstanceProfileId global __nvmlVgpuTypeGetDeviceID data["__nvmlVgpuTypeGetDeviceID"] = __nvmlVgpuTypeGetDeviceID global __nvmlVgpuTypeGetFramebufferSize data["__nvmlVgpuTypeGetFramebufferSize"] = __nvmlVgpuTypeGetFramebufferSize global __nvmlVgpuTypeGetNumDisplayHeads data["__nvmlVgpuTypeGetNumDisplayHeads"] = __nvmlVgpuTypeGetNumDisplayHeads global __nvmlVgpuTypeGetResolution data["__nvmlVgpuTypeGetResolution"] = __nvmlVgpuTypeGetResolution global __nvmlVgpuTypeGetLicense data["__nvmlVgpuTypeGetLicense"] = __nvmlVgpuTypeGetLicense global __nvmlVgpuTypeGetFrameRateLimit data["__nvmlVgpuTypeGetFrameRateLimit"] = __nvmlVgpuTypeGetFrameRateLimit global __nvmlVgpuTypeGetMaxInstances data["__nvmlVgpuTypeGetMaxInstances"] = __nvmlVgpuTypeGetMaxInstances global __nvmlVgpuTypeGetMaxInstancesPerVm data["__nvmlVgpuTypeGetMaxInstancesPerVm"] = __nvmlVgpuTypeGetMaxInstancesPerVm global __nvmlVgpuTypeGetBAR1Info data["__nvmlVgpuTypeGetBAR1Info"] = __nvmlVgpuTypeGetBAR1Info global __nvmlDeviceGetActiveVgpus data["__nvmlDeviceGetActiveVgpus"] = __nvmlDeviceGetActiveVgpus global __nvmlVgpuInstanceGetVmID data["__nvmlVgpuInstanceGetVmID"] = __nvmlVgpuInstanceGetVmID global __nvmlVgpuInstanceGetUUID data["__nvmlVgpuInstanceGetUUID"] = __nvmlVgpuInstanceGetUUID global __nvmlVgpuInstanceGetVmDriverVersion data["__nvmlVgpuInstanceGetVmDriverVersion"] = __nvmlVgpuInstanceGetVmDriverVersion global __nvmlVgpuInstanceGetFbUsage data["__nvmlVgpuInstanceGetFbUsage"] = __nvmlVgpuInstanceGetFbUsage global __nvmlVgpuInstanceGetLicenseStatus data["__nvmlVgpuInstanceGetLicenseStatus"] = __nvmlVgpuInstanceGetLicenseStatus global __nvmlVgpuInstanceGetType data["__nvmlVgpuInstanceGetType"] = __nvmlVgpuInstanceGetType global __nvmlVgpuInstanceGetFrameRateLimit data["__nvmlVgpuInstanceGetFrameRateLimit"] = __nvmlVgpuInstanceGetFrameRateLimit global __nvmlVgpuInstanceGetEccMode data["__nvmlVgpuInstanceGetEccMode"] = __nvmlVgpuInstanceGetEccMode global __nvmlVgpuInstanceGetEncoderCapacity data["__nvmlVgpuInstanceGetEncoderCapacity"] = __nvmlVgpuInstanceGetEncoderCapacity global __nvmlVgpuInstanceSetEncoderCapacity data["__nvmlVgpuInstanceSetEncoderCapacity"] = __nvmlVgpuInstanceSetEncoderCapacity global __nvmlVgpuInstanceGetEncoderStats data["__nvmlVgpuInstanceGetEncoderStats"] = __nvmlVgpuInstanceGetEncoderStats global __nvmlVgpuInstanceGetEncoderSessions data["__nvmlVgpuInstanceGetEncoderSessions"] = __nvmlVgpuInstanceGetEncoderSessions global __nvmlVgpuInstanceGetFBCStats data["__nvmlVgpuInstanceGetFBCStats"] = __nvmlVgpuInstanceGetFBCStats global __nvmlVgpuInstanceGetFBCSessions data["__nvmlVgpuInstanceGetFBCSessions"] = __nvmlVgpuInstanceGetFBCSessions global __nvmlVgpuInstanceGetGpuInstanceId data["__nvmlVgpuInstanceGetGpuInstanceId"] = __nvmlVgpuInstanceGetGpuInstanceId global __nvmlVgpuInstanceGetGpuPciId data["__nvmlVgpuInstanceGetGpuPciId"] = __nvmlVgpuInstanceGetGpuPciId global __nvmlVgpuTypeGetCapabilities data["__nvmlVgpuTypeGetCapabilities"] = __nvmlVgpuTypeGetCapabilities global __nvmlVgpuInstanceGetMdevUUID data["__nvmlVgpuInstanceGetMdevUUID"] = __nvmlVgpuInstanceGetMdevUUID global __nvmlGpuInstanceGetCreatableVgpus data["__nvmlGpuInstanceGetCreatableVgpus"] = __nvmlGpuInstanceGetCreatableVgpus global __nvmlVgpuTypeGetMaxInstancesPerGpuInstance data["__nvmlVgpuTypeGetMaxInstancesPerGpuInstance"] = __nvmlVgpuTypeGetMaxInstancesPerGpuInstance global __nvmlGpuInstanceGetActiveVgpus data["__nvmlGpuInstanceGetActiveVgpus"] = __nvmlGpuInstanceGetActiveVgpus global __nvmlGpuInstanceSetVgpuSchedulerState data["__nvmlGpuInstanceSetVgpuSchedulerState"] = __nvmlGpuInstanceSetVgpuSchedulerState global __nvmlGpuInstanceGetVgpuSchedulerState data["__nvmlGpuInstanceGetVgpuSchedulerState"] = __nvmlGpuInstanceGetVgpuSchedulerState global __nvmlGpuInstanceGetVgpuSchedulerLog data["__nvmlGpuInstanceGetVgpuSchedulerLog"] = __nvmlGpuInstanceGetVgpuSchedulerLog global __nvmlGpuInstanceGetVgpuTypeCreatablePlacements data["__nvmlGpuInstanceGetVgpuTypeCreatablePlacements"] = __nvmlGpuInstanceGetVgpuTypeCreatablePlacements global __nvmlGpuInstanceGetVgpuHeterogeneousMode data["__nvmlGpuInstanceGetVgpuHeterogeneousMode"] = __nvmlGpuInstanceGetVgpuHeterogeneousMode global __nvmlGpuInstanceSetVgpuHeterogeneousMode data["__nvmlGpuInstanceSetVgpuHeterogeneousMode"] = __nvmlGpuInstanceSetVgpuHeterogeneousMode global __nvmlVgpuInstanceGetMetadata data["__nvmlVgpuInstanceGetMetadata"] = __nvmlVgpuInstanceGetMetadata global __nvmlDeviceGetVgpuMetadata data["__nvmlDeviceGetVgpuMetadata"] = __nvmlDeviceGetVgpuMetadata global __nvmlGetVgpuCompatibility data["__nvmlGetVgpuCompatibility"] = __nvmlGetVgpuCompatibility global __nvmlDeviceGetPgpuMetadataString data["__nvmlDeviceGetPgpuMetadataString"] = __nvmlDeviceGetPgpuMetadataString global __nvmlDeviceGetVgpuSchedulerLog data["__nvmlDeviceGetVgpuSchedulerLog"] = __nvmlDeviceGetVgpuSchedulerLog global __nvmlDeviceGetVgpuSchedulerState data["__nvmlDeviceGetVgpuSchedulerState"] = __nvmlDeviceGetVgpuSchedulerState global __nvmlDeviceGetVgpuSchedulerCapabilities data["__nvmlDeviceGetVgpuSchedulerCapabilities"] = __nvmlDeviceGetVgpuSchedulerCapabilities global __nvmlDeviceSetVgpuSchedulerState data["__nvmlDeviceSetVgpuSchedulerState"] = __nvmlDeviceSetVgpuSchedulerState global __nvmlGetVgpuVersion data["__nvmlGetVgpuVersion"] = __nvmlGetVgpuVersion global __nvmlSetVgpuVersion data["__nvmlSetVgpuVersion"] = __nvmlSetVgpuVersion global __nvmlDeviceGetVgpuUtilization data["__nvmlDeviceGetVgpuUtilization"] = __nvmlDeviceGetVgpuUtilization global __nvmlDeviceGetVgpuInstancesUtilizationInfo data["__nvmlDeviceGetVgpuInstancesUtilizationInfo"] = __nvmlDeviceGetVgpuInstancesUtilizationInfo global __nvmlDeviceGetVgpuProcessUtilization data["__nvmlDeviceGetVgpuProcessUtilization"] = __nvmlDeviceGetVgpuProcessUtilization global __nvmlDeviceGetVgpuProcessesUtilizationInfo data["__nvmlDeviceGetVgpuProcessesUtilizationInfo"] = __nvmlDeviceGetVgpuProcessesUtilizationInfo global __nvmlVgpuInstanceGetAccountingMode data["__nvmlVgpuInstanceGetAccountingMode"] = __nvmlVgpuInstanceGetAccountingMode global __nvmlVgpuInstanceGetAccountingPids data["__nvmlVgpuInstanceGetAccountingPids"] = __nvmlVgpuInstanceGetAccountingPids global __nvmlVgpuInstanceGetAccountingStats data["__nvmlVgpuInstanceGetAccountingStats"] = __nvmlVgpuInstanceGetAccountingStats global __nvmlVgpuInstanceClearAccountingPids data["__nvmlVgpuInstanceClearAccountingPids"] = __nvmlVgpuInstanceClearAccountingPids global __nvmlVgpuInstanceGetLicenseInfo_v2 data["__nvmlVgpuInstanceGetLicenseInfo_v2"] = __nvmlVgpuInstanceGetLicenseInfo_v2 global __nvmlGetExcludedDeviceCount data["__nvmlGetExcludedDeviceCount"] = __nvmlGetExcludedDeviceCount global __nvmlGetExcludedDeviceInfoByIndex data["__nvmlGetExcludedDeviceInfoByIndex"] = __nvmlGetExcludedDeviceInfoByIndex global __nvmlDeviceSetMigMode data["__nvmlDeviceSetMigMode"] = __nvmlDeviceSetMigMode global __nvmlDeviceGetMigMode data["__nvmlDeviceGetMigMode"] = __nvmlDeviceGetMigMode global __nvmlDeviceGetGpuInstanceProfileInfoV data["__nvmlDeviceGetGpuInstanceProfileInfoV"] = __nvmlDeviceGetGpuInstanceProfileInfoV global __nvmlDeviceGetGpuInstancePossiblePlacements_v2 data["__nvmlDeviceGetGpuInstancePossiblePlacements_v2"] = __nvmlDeviceGetGpuInstancePossiblePlacements_v2 global __nvmlDeviceGetGpuInstanceRemainingCapacity data["__nvmlDeviceGetGpuInstanceRemainingCapacity"] = __nvmlDeviceGetGpuInstanceRemainingCapacity global __nvmlDeviceCreateGpuInstance data["__nvmlDeviceCreateGpuInstance"] = __nvmlDeviceCreateGpuInstance global __nvmlDeviceCreateGpuInstanceWithPlacement data["__nvmlDeviceCreateGpuInstanceWithPlacement"] = __nvmlDeviceCreateGpuInstanceWithPlacement global __nvmlGpuInstanceDestroy data["__nvmlGpuInstanceDestroy"] = __nvmlGpuInstanceDestroy global __nvmlDeviceGetGpuInstances data["__nvmlDeviceGetGpuInstances"] = __nvmlDeviceGetGpuInstances global __nvmlDeviceGetGpuInstanceById data["__nvmlDeviceGetGpuInstanceById"] = __nvmlDeviceGetGpuInstanceById global __nvmlGpuInstanceGetInfo data["__nvmlGpuInstanceGetInfo"] = __nvmlGpuInstanceGetInfo global __nvmlGpuInstanceGetComputeInstanceProfileInfoV data["__nvmlGpuInstanceGetComputeInstanceProfileInfoV"] = __nvmlGpuInstanceGetComputeInstanceProfileInfoV global __nvmlGpuInstanceGetComputeInstanceRemainingCapacity data["__nvmlGpuInstanceGetComputeInstanceRemainingCapacity"] = __nvmlGpuInstanceGetComputeInstanceRemainingCapacity global __nvmlGpuInstanceGetComputeInstancePossiblePlacements data["__nvmlGpuInstanceGetComputeInstancePossiblePlacements"] = __nvmlGpuInstanceGetComputeInstancePossiblePlacements global __nvmlGpuInstanceCreateComputeInstance data["__nvmlGpuInstanceCreateComputeInstance"] = __nvmlGpuInstanceCreateComputeInstance global __nvmlGpuInstanceCreateComputeInstanceWithPlacement data["__nvmlGpuInstanceCreateComputeInstanceWithPlacement"] = __nvmlGpuInstanceCreateComputeInstanceWithPlacement global __nvmlComputeInstanceDestroy data["__nvmlComputeInstanceDestroy"] = __nvmlComputeInstanceDestroy global __nvmlGpuInstanceGetComputeInstances data["__nvmlGpuInstanceGetComputeInstances"] = __nvmlGpuInstanceGetComputeInstances global __nvmlGpuInstanceGetComputeInstanceById data["__nvmlGpuInstanceGetComputeInstanceById"] = __nvmlGpuInstanceGetComputeInstanceById global __nvmlComputeInstanceGetInfo_v2 data["__nvmlComputeInstanceGetInfo_v2"] = __nvmlComputeInstanceGetInfo_v2 global __nvmlDeviceIsMigDeviceHandle data["__nvmlDeviceIsMigDeviceHandle"] = __nvmlDeviceIsMigDeviceHandle global __nvmlDeviceGetGpuInstanceId data["__nvmlDeviceGetGpuInstanceId"] = __nvmlDeviceGetGpuInstanceId global __nvmlDeviceGetComputeInstanceId data["__nvmlDeviceGetComputeInstanceId"] = __nvmlDeviceGetComputeInstanceId global __nvmlDeviceGetMaxMigDeviceCount data["__nvmlDeviceGetMaxMigDeviceCount"] = __nvmlDeviceGetMaxMigDeviceCount global __nvmlDeviceGetMigDeviceHandleByIndex data["__nvmlDeviceGetMigDeviceHandleByIndex"] = __nvmlDeviceGetMigDeviceHandleByIndex global __nvmlDeviceGetDeviceHandleFromMigDeviceHandle data["__nvmlDeviceGetDeviceHandleFromMigDeviceHandle"] = __nvmlDeviceGetDeviceHandleFromMigDeviceHandle global __nvmlGpmSampleGet data["__nvmlGpmSampleGet"] = __nvmlGpmSampleGet global __nvmlGpmMigSampleGet data["__nvmlGpmMigSampleGet"] = __nvmlGpmMigSampleGet global __nvmlGpmQueryDeviceSupport data["__nvmlGpmQueryDeviceSupport"] = __nvmlGpmQueryDeviceSupport global __nvmlGpmQueryIfStreamingEnabled data["__nvmlGpmQueryIfStreamingEnabled"] = __nvmlGpmQueryIfStreamingEnabled global __nvmlGpmSetStreamingEnabled data["__nvmlGpmSetStreamingEnabled"] = __nvmlGpmSetStreamingEnabled global __nvmlDeviceGetCapabilities data["__nvmlDeviceGetCapabilities"] = __nvmlDeviceGetCapabilities global __nvmlDeviceWorkloadPowerProfileClearRequestedProfiles data["__nvmlDeviceWorkloadPowerProfileClearRequestedProfiles"] = __nvmlDeviceWorkloadPowerProfileClearRequestedProfiles global __nvmlDevicePowerSmoothingActivatePresetProfile data["__nvmlDevicePowerSmoothingActivatePresetProfile"] = __nvmlDevicePowerSmoothingActivatePresetProfile global __nvmlDevicePowerSmoothingUpdatePresetProfileParam data["__nvmlDevicePowerSmoothingUpdatePresetProfileParam"] = __nvmlDevicePowerSmoothingUpdatePresetProfileParam global __nvmlDevicePowerSmoothingSetState data["__nvmlDevicePowerSmoothingSetState"] = __nvmlDevicePowerSmoothingSetState global __nvmlDeviceGetAddressingMode data["__nvmlDeviceGetAddressingMode"] = __nvmlDeviceGetAddressingMode global __nvmlDeviceGetRepairStatus data["__nvmlDeviceGetRepairStatus"] = __nvmlDeviceGetRepairStatus global __nvmlDeviceGetPowerMizerMode_v1 data["__nvmlDeviceGetPowerMizerMode_v1"] = __nvmlDeviceGetPowerMizerMode_v1 global __nvmlDeviceSetPowerMizerMode_v1 data["__nvmlDeviceSetPowerMizerMode_v1"] = __nvmlDeviceSetPowerMizerMode_v1 global __nvmlDeviceGetPdi data["__nvmlDeviceGetPdi"] = __nvmlDeviceGetPdi global __nvmlDeviceSetHostname_v1 data["__nvmlDeviceSetHostname_v1"] = __nvmlDeviceSetHostname_v1 global __nvmlDeviceGetHostname_v1 data["__nvmlDeviceGetHostname_v1"] = __nvmlDeviceGetHostname_v1 global __nvmlDeviceGetNvLinkInfo data["__nvmlDeviceGetNvLinkInfo"] = __nvmlDeviceGetNvLinkInfo global __nvmlDeviceReadWritePRM_v1 data["__nvmlDeviceReadWritePRM_v1"] = __nvmlDeviceReadWritePRM_v1 global __nvmlDeviceGetGpuInstanceProfileInfoByIdV data["__nvmlDeviceGetGpuInstanceProfileInfoByIdV"] = __nvmlDeviceGetGpuInstanceProfileInfoByIdV global __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts data["__nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts"] = __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts func_ptrs = data return data cpdef _inspect_function_pointer(str name): global func_ptrs if func_ptrs is None: func_ptrs = _inspect_function_pointers() return func_ptrs[name] ############################################################################### # Wrapper functions ############################################################################### cdef nvmlReturn_t _nvmlInit_v2() except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlInit_v2 _check_or_init_nvml() if __nvmlInit_v2 == NULL: with gil: raise FunctionNotFoundError("function nvmlInit_v2 is not found") return (__nvmlInit_v2)( ) cdef nvmlReturn_t _nvmlInitWithFlags(unsigned int flags) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlInitWithFlags _check_or_init_nvml() if __nvmlInitWithFlags == NULL: with gil: raise FunctionNotFoundError("function nvmlInitWithFlags is not found") return (__nvmlInitWithFlags)( flags) cdef nvmlReturn_t _nvmlShutdown() except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlShutdown _check_or_init_nvml() if __nvmlShutdown == NULL: with gil: raise FunctionNotFoundError("function nvmlShutdown is not found") return (__nvmlShutdown)( ) cdef const char* _nvmlErrorString(nvmlReturn_t result) except?NULL nogil: global __nvmlErrorString _check_or_init_nvml() if __nvmlErrorString == NULL: with gil: raise FunctionNotFoundError("function nvmlErrorString is not found") return (__nvmlErrorString)( result) cdef nvmlReturn_t _nvmlSystemGetDriverVersion(char* version, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlSystemGetDriverVersion _check_or_init_nvml() if __nvmlSystemGetDriverVersion == NULL: with gil: raise FunctionNotFoundError("function nvmlSystemGetDriverVersion is not found") return (__nvmlSystemGetDriverVersion)( version, length) cdef nvmlReturn_t _nvmlSystemGetNVMLVersion(char* version, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlSystemGetNVMLVersion _check_or_init_nvml() if __nvmlSystemGetNVMLVersion == NULL: with gil: raise FunctionNotFoundError("function nvmlSystemGetNVMLVersion is not found") return (__nvmlSystemGetNVMLVersion)( version, length) cdef nvmlReturn_t _nvmlSystemGetCudaDriverVersion(int* cudaDriverVersion) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlSystemGetCudaDriverVersion _check_or_init_nvml() if __nvmlSystemGetCudaDriverVersion == NULL: with gil: raise FunctionNotFoundError("function nvmlSystemGetCudaDriverVersion is not found") return (__nvmlSystemGetCudaDriverVersion)( cudaDriverVersion) cdef nvmlReturn_t _nvmlSystemGetCudaDriverVersion_v2(int* cudaDriverVersion) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlSystemGetCudaDriverVersion_v2 _check_or_init_nvml() if __nvmlSystemGetCudaDriverVersion_v2 == NULL: with gil: raise FunctionNotFoundError("function nvmlSystemGetCudaDriverVersion_v2 is not found") return (__nvmlSystemGetCudaDriverVersion_v2)( cudaDriverVersion) cdef nvmlReturn_t _nvmlSystemGetProcessName(unsigned int pid, char* name, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlSystemGetProcessName _check_or_init_nvml() if __nvmlSystemGetProcessName == NULL: with gil: raise FunctionNotFoundError("function nvmlSystemGetProcessName is not found") return (__nvmlSystemGetProcessName)( pid, name, length) cdef nvmlReturn_t _nvmlSystemGetHicVersion(unsigned int* hwbcCount, nvmlHwbcEntry_t* hwbcEntries) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlSystemGetHicVersion _check_or_init_nvml() if __nvmlSystemGetHicVersion == NULL: with gil: raise FunctionNotFoundError("function nvmlSystemGetHicVersion is not found") return (__nvmlSystemGetHicVersion)( hwbcCount, hwbcEntries) cdef nvmlReturn_t _nvmlSystemGetTopologyGpuSet(unsigned int cpuNumber, unsigned int* count, nvmlDevice_t* deviceArray) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlSystemGetTopologyGpuSet _check_or_init_nvml() if __nvmlSystemGetTopologyGpuSet == NULL: with gil: raise FunctionNotFoundError("function nvmlSystemGetTopologyGpuSet is not found") return (__nvmlSystemGetTopologyGpuSet)( cpuNumber, count, deviceArray) cdef nvmlReturn_t _nvmlSystemGetDriverBranch(nvmlSystemDriverBranchInfo_t* branchInfo, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlSystemGetDriverBranch _check_or_init_nvml() if __nvmlSystemGetDriverBranch == NULL: with gil: raise FunctionNotFoundError("function nvmlSystemGetDriverBranch is not found") return (__nvmlSystemGetDriverBranch)( branchInfo, length) cdef nvmlReturn_t _nvmlUnitGetCount(unsigned int* unitCount) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlUnitGetCount _check_or_init_nvml() if __nvmlUnitGetCount == NULL: with gil: raise FunctionNotFoundError("function nvmlUnitGetCount is not found") return (__nvmlUnitGetCount)( unitCount) cdef nvmlReturn_t _nvmlUnitGetHandleByIndex(unsigned int index, nvmlUnit_t* unit) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlUnitGetHandleByIndex _check_or_init_nvml() if __nvmlUnitGetHandleByIndex == NULL: with gil: raise FunctionNotFoundError("function nvmlUnitGetHandleByIndex is not found") return (__nvmlUnitGetHandleByIndex)( index, unit) cdef nvmlReturn_t _nvmlUnitGetUnitInfo(nvmlUnit_t unit, nvmlUnitInfo_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlUnitGetUnitInfo _check_or_init_nvml() if __nvmlUnitGetUnitInfo == NULL: with gil: raise FunctionNotFoundError("function nvmlUnitGetUnitInfo is not found") return (__nvmlUnitGetUnitInfo)( unit, info) cdef nvmlReturn_t _nvmlUnitGetLedState(nvmlUnit_t unit, nvmlLedState_t* state) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlUnitGetLedState _check_or_init_nvml() if __nvmlUnitGetLedState == NULL: with gil: raise FunctionNotFoundError("function nvmlUnitGetLedState is not found") return (__nvmlUnitGetLedState)( unit, state) cdef nvmlReturn_t _nvmlUnitGetPsuInfo(nvmlUnit_t unit, nvmlPSUInfo_t* psu) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlUnitGetPsuInfo _check_or_init_nvml() if __nvmlUnitGetPsuInfo == NULL: with gil: raise FunctionNotFoundError("function nvmlUnitGetPsuInfo is not found") return (__nvmlUnitGetPsuInfo)( unit, psu) cdef nvmlReturn_t _nvmlUnitGetTemperature(nvmlUnit_t unit, unsigned int type, unsigned int* temp) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlUnitGetTemperature _check_or_init_nvml() if __nvmlUnitGetTemperature == NULL: with gil: raise FunctionNotFoundError("function nvmlUnitGetTemperature is not found") return (__nvmlUnitGetTemperature)( unit, type, temp) cdef nvmlReturn_t _nvmlUnitGetFanSpeedInfo(nvmlUnit_t unit, nvmlUnitFanSpeeds_t* fanSpeeds) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlUnitGetFanSpeedInfo _check_or_init_nvml() if __nvmlUnitGetFanSpeedInfo == NULL: with gil: raise FunctionNotFoundError("function nvmlUnitGetFanSpeedInfo is not found") return (__nvmlUnitGetFanSpeedInfo)( unit, fanSpeeds) cdef nvmlReturn_t _nvmlUnitGetDevices(nvmlUnit_t unit, unsigned int* deviceCount, nvmlDevice_t* devices) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlUnitGetDevices _check_or_init_nvml() if __nvmlUnitGetDevices == NULL: with gil: raise FunctionNotFoundError("function nvmlUnitGetDevices is not found") return (__nvmlUnitGetDevices)( unit, deviceCount, devices) cdef nvmlReturn_t _nvmlDeviceGetCount_v2(unsigned int* deviceCount) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetCount_v2 _check_or_init_nvml() if __nvmlDeviceGetCount_v2 == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetCount_v2 is not found") return (__nvmlDeviceGetCount_v2)( deviceCount) cdef nvmlReturn_t _nvmlDeviceGetAttributes_v2(nvmlDevice_t device, nvmlDeviceAttributes_t* attributes) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetAttributes_v2 _check_or_init_nvml() if __nvmlDeviceGetAttributes_v2 == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetAttributes_v2 is not found") return (__nvmlDeviceGetAttributes_v2)( device, attributes) cdef nvmlReturn_t _nvmlDeviceGetHandleByIndex_v2(unsigned int index, nvmlDevice_t* device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetHandleByIndex_v2 _check_or_init_nvml() if __nvmlDeviceGetHandleByIndex_v2 == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetHandleByIndex_v2 is not found") return (__nvmlDeviceGetHandleByIndex_v2)( index, device) cdef nvmlReturn_t _nvmlDeviceGetHandleBySerial(const char* serial, nvmlDevice_t* device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetHandleBySerial _check_or_init_nvml() if __nvmlDeviceGetHandleBySerial == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetHandleBySerial is not found") return (__nvmlDeviceGetHandleBySerial)( serial, device) cdef nvmlReturn_t _nvmlDeviceGetHandleByUUID(const char* uuid, nvmlDevice_t* device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetHandleByUUID _check_or_init_nvml() if __nvmlDeviceGetHandleByUUID == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetHandleByUUID is not found") return (__nvmlDeviceGetHandleByUUID)( uuid, device) cdef nvmlReturn_t _nvmlDeviceGetHandleByUUIDV(const nvmlUUID_t* uuid, nvmlDevice_t* device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetHandleByUUIDV _check_or_init_nvml() if __nvmlDeviceGetHandleByUUIDV == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetHandleByUUIDV is not found") return (__nvmlDeviceGetHandleByUUIDV)( uuid, device) cdef nvmlReturn_t _nvmlDeviceGetHandleByPciBusId_v2(const char* pciBusId, nvmlDevice_t* device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetHandleByPciBusId_v2 _check_or_init_nvml() if __nvmlDeviceGetHandleByPciBusId_v2 == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetHandleByPciBusId_v2 is not found") return (__nvmlDeviceGetHandleByPciBusId_v2)( pciBusId, device) cdef nvmlReturn_t _nvmlDeviceGetName(nvmlDevice_t device, char* name, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetName _check_or_init_nvml() if __nvmlDeviceGetName == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetName is not found") return (__nvmlDeviceGetName)( device, name, length) cdef nvmlReturn_t _nvmlDeviceGetBrand(nvmlDevice_t device, nvmlBrandType_t* type) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetBrand _check_or_init_nvml() if __nvmlDeviceGetBrand == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetBrand is not found") return (__nvmlDeviceGetBrand)( device, type) cdef nvmlReturn_t _nvmlDeviceGetIndex(nvmlDevice_t device, unsigned int* index) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetIndex _check_or_init_nvml() if __nvmlDeviceGetIndex == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetIndex is not found") return (__nvmlDeviceGetIndex)( device, index) cdef nvmlReturn_t _nvmlDeviceGetSerial(nvmlDevice_t device, char* serial, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetSerial _check_or_init_nvml() if __nvmlDeviceGetSerial == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetSerial is not found") return (__nvmlDeviceGetSerial)( device, serial, length) cdef nvmlReturn_t _nvmlDeviceGetModuleId(nvmlDevice_t device, unsigned int* moduleId) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetModuleId _check_or_init_nvml() if __nvmlDeviceGetModuleId == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetModuleId is not found") return (__nvmlDeviceGetModuleId)( device, moduleId) cdef nvmlReturn_t _nvmlDeviceGetC2cModeInfoV(nvmlDevice_t device, nvmlC2cModeInfo_v1_t* c2cModeInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetC2cModeInfoV _check_or_init_nvml() if __nvmlDeviceGetC2cModeInfoV == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetC2cModeInfoV is not found") return (__nvmlDeviceGetC2cModeInfoV)( device, c2cModeInfo) cdef nvmlReturn_t _nvmlDeviceGetMemoryAffinity(nvmlDevice_t device, unsigned int nodeSetSize, unsigned long* nodeSet, nvmlAffinityScope_t scope) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetMemoryAffinity _check_or_init_nvml() if __nvmlDeviceGetMemoryAffinity == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetMemoryAffinity is not found") return (__nvmlDeviceGetMemoryAffinity)( device, nodeSetSize, nodeSet, scope) cdef nvmlReturn_t _nvmlDeviceGetCpuAffinityWithinScope(nvmlDevice_t device, unsigned int cpuSetSize, unsigned long* cpuSet, nvmlAffinityScope_t scope) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetCpuAffinityWithinScope _check_or_init_nvml() if __nvmlDeviceGetCpuAffinityWithinScope == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetCpuAffinityWithinScope is not found") return (__nvmlDeviceGetCpuAffinityWithinScope)( device, cpuSetSize, cpuSet, scope) cdef nvmlReturn_t _nvmlDeviceGetCpuAffinity(nvmlDevice_t device, unsigned int cpuSetSize, unsigned long* cpuSet) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetCpuAffinity _check_or_init_nvml() if __nvmlDeviceGetCpuAffinity == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetCpuAffinity is not found") return (__nvmlDeviceGetCpuAffinity)( device, cpuSetSize, cpuSet) cdef nvmlReturn_t _nvmlDeviceSetCpuAffinity(nvmlDevice_t device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceSetCpuAffinity _check_or_init_nvml() if __nvmlDeviceSetCpuAffinity == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceSetCpuAffinity is not found") return (__nvmlDeviceSetCpuAffinity)( device) cdef nvmlReturn_t _nvmlDeviceClearCpuAffinity(nvmlDevice_t device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceClearCpuAffinity _check_or_init_nvml() if __nvmlDeviceClearCpuAffinity == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceClearCpuAffinity is not found") return (__nvmlDeviceClearCpuAffinity)( device) cdef nvmlReturn_t _nvmlDeviceGetNumaNodeId(nvmlDevice_t device, unsigned int* node) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetNumaNodeId _check_or_init_nvml() if __nvmlDeviceGetNumaNodeId == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetNumaNodeId is not found") return (__nvmlDeviceGetNumaNodeId)( device, node) cdef nvmlReturn_t _nvmlDeviceGetTopologyCommonAncestor(nvmlDevice_t device1, nvmlDevice_t device2, nvmlGpuTopologyLevel_t* pathInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetTopologyCommonAncestor _check_or_init_nvml() if __nvmlDeviceGetTopologyCommonAncestor == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetTopologyCommonAncestor is not found") return (__nvmlDeviceGetTopologyCommonAncestor)( device1, device2, pathInfo) cdef nvmlReturn_t _nvmlDeviceGetTopologyNearestGpus(nvmlDevice_t device, nvmlGpuTopologyLevel_t level, unsigned int* count, nvmlDevice_t* deviceArray) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetTopologyNearestGpus _check_or_init_nvml() if __nvmlDeviceGetTopologyNearestGpus == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetTopologyNearestGpus is not found") return (__nvmlDeviceGetTopologyNearestGpus)( device, level, count, deviceArray) cdef nvmlReturn_t _nvmlDeviceGetP2PStatus(nvmlDevice_t device1, nvmlDevice_t device2, nvmlGpuP2PCapsIndex_t p2pIndex, nvmlGpuP2PStatus_t* p2pStatus) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetP2PStatus _check_or_init_nvml() if __nvmlDeviceGetP2PStatus == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetP2PStatus is not found") return (__nvmlDeviceGetP2PStatus)( device1, device2, p2pIndex, p2pStatus) cdef nvmlReturn_t _nvmlDeviceGetUUID(nvmlDevice_t device, char* uuid, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetUUID _check_or_init_nvml() if __nvmlDeviceGetUUID == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetUUID is not found") return (__nvmlDeviceGetUUID)( device, uuid, length) cdef nvmlReturn_t _nvmlDeviceGetMinorNumber(nvmlDevice_t device, unsigned int* minorNumber) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetMinorNumber _check_or_init_nvml() if __nvmlDeviceGetMinorNumber == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetMinorNumber is not found") return (__nvmlDeviceGetMinorNumber)( device, minorNumber) cdef nvmlReturn_t _nvmlDeviceGetBoardPartNumber(nvmlDevice_t device, char* partNumber, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetBoardPartNumber _check_or_init_nvml() if __nvmlDeviceGetBoardPartNumber == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetBoardPartNumber is not found") return (__nvmlDeviceGetBoardPartNumber)( device, partNumber, length) cdef nvmlReturn_t _nvmlDeviceGetInforomVersion(nvmlDevice_t device, nvmlInforomObject_t object, char* version, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetInforomVersion _check_or_init_nvml() if __nvmlDeviceGetInforomVersion == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetInforomVersion is not found") return (__nvmlDeviceGetInforomVersion)( device, object, version, length) cdef nvmlReturn_t _nvmlDeviceGetInforomImageVersion(nvmlDevice_t device, char* version, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetInforomImageVersion _check_or_init_nvml() if __nvmlDeviceGetInforomImageVersion == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetInforomImageVersion is not found") return (__nvmlDeviceGetInforomImageVersion)( device, version, length) cdef nvmlReturn_t _nvmlDeviceGetInforomConfigurationChecksum(nvmlDevice_t device, unsigned int* checksum) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetInforomConfigurationChecksum _check_or_init_nvml() if __nvmlDeviceGetInforomConfigurationChecksum == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetInforomConfigurationChecksum is not found") return (__nvmlDeviceGetInforomConfigurationChecksum)( device, checksum) cdef nvmlReturn_t _nvmlDeviceValidateInforom(nvmlDevice_t device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceValidateInforom _check_or_init_nvml() if __nvmlDeviceValidateInforom == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceValidateInforom is not found") return (__nvmlDeviceValidateInforom)( device) cdef nvmlReturn_t _nvmlDeviceGetLastBBXFlushTime(nvmlDevice_t device, unsigned long long* timestamp, unsigned long* durationUs) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetLastBBXFlushTime _check_or_init_nvml() if __nvmlDeviceGetLastBBXFlushTime == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetLastBBXFlushTime is not found") return (__nvmlDeviceGetLastBBXFlushTime)( device, timestamp, durationUs) cdef nvmlReturn_t _nvmlDeviceGetDisplayMode(nvmlDevice_t device, nvmlEnableState_t* display) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetDisplayMode _check_or_init_nvml() if __nvmlDeviceGetDisplayMode == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetDisplayMode is not found") return (__nvmlDeviceGetDisplayMode)( device, display) cdef nvmlReturn_t _nvmlDeviceGetDisplayActive(nvmlDevice_t device, nvmlEnableState_t* isActive) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetDisplayActive _check_or_init_nvml() if __nvmlDeviceGetDisplayActive == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetDisplayActive is not found") return (__nvmlDeviceGetDisplayActive)( device, isActive) cdef nvmlReturn_t _nvmlDeviceGetPersistenceMode(nvmlDevice_t device, nvmlEnableState_t* mode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetPersistenceMode _check_or_init_nvml() if __nvmlDeviceGetPersistenceMode == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetPersistenceMode is not found") return (__nvmlDeviceGetPersistenceMode)( device, mode) cdef nvmlReturn_t _nvmlDeviceGetPciInfoExt(nvmlDevice_t device, nvmlPciInfoExt_t* pci) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetPciInfoExt _check_or_init_nvml() if __nvmlDeviceGetPciInfoExt == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetPciInfoExt is not found") return (__nvmlDeviceGetPciInfoExt)( device, pci) cdef nvmlReturn_t _nvmlDeviceGetPciInfo_v3(nvmlDevice_t device, nvmlPciInfo_t* pci) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetPciInfo_v3 _check_or_init_nvml() if __nvmlDeviceGetPciInfo_v3 == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetPciInfo_v3 is not found") return (__nvmlDeviceGetPciInfo_v3)( device, pci) cdef nvmlReturn_t _nvmlDeviceGetMaxPcieLinkGeneration(nvmlDevice_t device, unsigned int* maxLinkGen) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetMaxPcieLinkGeneration _check_or_init_nvml() if __nvmlDeviceGetMaxPcieLinkGeneration == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetMaxPcieLinkGeneration is not found") return (__nvmlDeviceGetMaxPcieLinkGeneration)( device, maxLinkGen) cdef nvmlReturn_t _nvmlDeviceGetGpuMaxPcieLinkGeneration(nvmlDevice_t device, unsigned int* maxLinkGenDevice) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetGpuMaxPcieLinkGeneration _check_or_init_nvml() if __nvmlDeviceGetGpuMaxPcieLinkGeneration == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetGpuMaxPcieLinkGeneration is not found") return (__nvmlDeviceGetGpuMaxPcieLinkGeneration)( device, maxLinkGenDevice) cdef nvmlReturn_t _nvmlDeviceGetMaxPcieLinkWidth(nvmlDevice_t device, unsigned int* maxLinkWidth) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetMaxPcieLinkWidth _check_or_init_nvml() if __nvmlDeviceGetMaxPcieLinkWidth == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetMaxPcieLinkWidth is not found") return (__nvmlDeviceGetMaxPcieLinkWidth)( device, maxLinkWidth) cdef nvmlReturn_t _nvmlDeviceGetCurrPcieLinkGeneration(nvmlDevice_t device, unsigned int* currLinkGen) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetCurrPcieLinkGeneration _check_or_init_nvml() if __nvmlDeviceGetCurrPcieLinkGeneration == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetCurrPcieLinkGeneration is not found") return (__nvmlDeviceGetCurrPcieLinkGeneration)( device, currLinkGen) cdef nvmlReturn_t _nvmlDeviceGetCurrPcieLinkWidth(nvmlDevice_t device, unsigned int* currLinkWidth) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetCurrPcieLinkWidth _check_or_init_nvml() if __nvmlDeviceGetCurrPcieLinkWidth == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetCurrPcieLinkWidth is not found") return (__nvmlDeviceGetCurrPcieLinkWidth)( device, currLinkWidth) cdef nvmlReturn_t _nvmlDeviceGetPcieThroughput(nvmlDevice_t device, nvmlPcieUtilCounter_t counter, unsigned int* value) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetPcieThroughput _check_or_init_nvml() if __nvmlDeviceGetPcieThroughput == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetPcieThroughput is not found") return (__nvmlDeviceGetPcieThroughput)( device, counter, value) cdef nvmlReturn_t _nvmlDeviceGetPcieReplayCounter(nvmlDevice_t device, unsigned int* value) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetPcieReplayCounter _check_or_init_nvml() if __nvmlDeviceGetPcieReplayCounter == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetPcieReplayCounter is not found") return (__nvmlDeviceGetPcieReplayCounter)( device, value) cdef nvmlReturn_t _nvmlDeviceGetClockInfo(nvmlDevice_t device, nvmlClockType_t type, unsigned int* clock) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetClockInfo _check_or_init_nvml() if __nvmlDeviceGetClockInfo == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetClockInfo is not found") return (__nvmlDeviceGetClockInfo)( device, type, clock) cdef nvmlReturn_t _nvmlDeviceGetMaxClockInfo(nvmlDevice_t device, nvmlClockType_t type, unsigned int* clock) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetMaxClockInfo _check_or_init_nvml() if __nvmlDeviceGetMaxClockInfo == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetMaxClockInfo is not found") return (__nvmlDeviceGetMaxClockInfo)( device, type, clock) cdef nvmlReturn_t _nvmlDeviceGetGpcClkVfOffset(nvmlDevice_t device, int* offset) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetGpcClkVfOffset _check_or_init_nvml() if __nvmlDeviceGetGpcClkVfOffset == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetGpcClkVfOffset is not found") return (__nvmlDeviceGetGpcClkVfOffset)( device, offset) cdef nvmlReturn_t _nvmlDeviceGetClock(nvmlDevice_t device, nvmlClockType_t clockType, nvmlClockId_t clockId, unsigned int* clockMHz) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetClock _check_or_init_nvml() if __nvmlDeviceGetClock == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetClock is not found") return (__nvmlDeviceGetClock)( device, clockType, clockId, clockMHz) cdef nvmlReturn_t _nvmlDeviceGetMaxCustomerBoostClock(nvmlDevice_t device, nvmlClockType_t clockType, unsigned int* clockMHz) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetMaxCustomerBoostClock _check_or_init_nvml() if __nvmlDeviceGetMaxCustomerBoostClock == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetMaxCustomerBoostClock is not found") return (__nvmlDeviceGetMaxCustomerBoostClock)( device, clockType, clockMHz) cdef nvmlReturn_t _nvmlDeviceGetSupportedMemoryClocks(nvmlDevice_t device, unsigned int* count, unsigned int* clocksMHz) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetSupportedMemoryClocks _check_or_init_nvml() if __nvmlDeviceGetSupportedMemoryClocks == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetSupportedMemoryClocks is not found") return (__nvmlDeviceGetSupportedMemoryClocks)( device, count, clocksMHz) cdef nvmlReturn_t _nvmlDeviceGetSupportedGraphicsClocks(nvmlDevice_t device, unsigned int memoryClockMHz, unsigned int* count, unsigned int* clocksMHz) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetSupportedGraphicsClocks _check_or_init_nvml() if __nvmlDeviceGetSupportedGraphicsClocks == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetSupportedGraphicsClocks is not found") return (__nvmlDeviceGetSupportedGraphicsClocks)( device, memoryClockMHz, count, clocksMHz) cdef nvmlReturn_t _nvmlDeviceGetAutoBoostedClocksEnabled(nvmlDevice_t device, nvmlEnableState_t* isEnabled, nvmlEnableState_t* defaultIsEnabled) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetAutoBoostedClocksEnabled _check_or_init_nvml() if __nvmlDeviceGetAutoBoostedClocksEnabled == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetAutoBoostedClocksEnabled is not found") return (__nvmlDeviceGetAutoBoostedClocksEnabled)( device, isEnabled, defaultIsEnabled) cdef nvmlReturn_t _nvmlDeviceGetFanSpeed(nvmlDevice_t device, unsigned int* speed) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetFanSpeed _check_or_init_nvml() if __nvmlDeviceGetFanSpeed == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetFanSpeed is not found") return (__nvmlDeviceGetFanSpeed)( device, speed) cdef nvmlReturn_t _nvmlDeviceGetFanSpeed_v2(nvmlDevice_t device, unsigned int fan, unsigned int* speed) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetFanSpeed_v2 _check_or_init_nvml() if __nvmlDeviceGetFanSpeed_v2 == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetFanSpeed_v2 is not found") return (__nvmlDeviceGetFanSpeed_v2)( device, fan, speed) cdef nvmlReturn_t _nvmlDeviceGetFanSpeedRPM(nvmlDevice_t device, nvmlFanSpeedInfo_t* fanSpeed) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetFanSpeedRPM _check_or_init_nvml() if __nvmlDeviceGetFanSpeedRPM == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetFanSpeedRPM is not found") return (__nvmlDeviceGetFanSpeedRPM)( device, fanSpeed) cdef nvmlReturn_t _nvmlDeviceGetTargetFanSpeed(nvmlDevice_t device, unsigned int fan, unsigned int* targetSpeed) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetTargetFanSpeed _check_or_init_nvml() if __nvmlDeviceGetTargetFanSpeed == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetTargetFanSpeed is not found") return (__nvmlDeviceGetTargetFanSpeed)( device, fan, targetSpeed) cdef nvmlReturn_t _nvmlDeviceGetMinMaxFanSpeed(nvmlDevice_t device, unsigned int* minSpeed, unsigned int* maxSpeed) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetMinMaxFanSpeed _check_or_init_nvml() if __nvmlDeviceGetMinMaxFanSpeed == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetMinMaxFanSpeed is not found") return (__nvmlDeviceGetMinMaxFanSpeed)( device, minSpeed, maxSpeed) cdef nvmlReturn_t _nvmlDeviceGetFanControlPolicy_v2(nvmlDevice_t device, unsigned int fan, nvmlFanControlPolicy_t* policy) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetFanControlPolicy_v2 _check_or_init_nvml() if __nvmlDeviceGetFanControlPolicy_v2 == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetFanControlPolicy_v2 is not found") return (__nvmlDeviceGetFanControlPolicy_v2)( device, fan, policy) cdef nvmlReturn_t _nvmlDeviceGetNumFans(nvmlDevice_t device, unsigned int* numFans) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetNumFans _check_or_init_nvml() if __nvmlDeviceGetNumFans == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetNumFans is not found") return (__nvmlDeviceGetNumFans)( device, numFans) cdef nvmlReturn_t _nvmlDeviceGetCoolerInfo(nvmlDevice_t device, nvmlCoolerInfo_t* coolerInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetCoolerInfo _check_or_init_nvml() if __nvmlDeviceGetCoolerInfo == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetCoolerInfo is not found") return (__nvmlDeviceGetCoolerInfo)( device, coolerInfo) cdef nvmlReturn_t _nvmlDeviceGetTemperatureV(nvmlDevice_t device, nvmlTemperature_t* temperature) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetTemperatureV _check_or_init_nvml() if __nvmlDeviceGetTemperatureV == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetTemperatureV is not found") return (__nvmlDeviceGetTemperatureV)( device, temperature) cdef nvmlReturn_t _nvmlDeviceGetTemperatureThreshold(nvmlDevice_t device, nvmlTemperatureThresholds_t thresholdType, unsigned int* temp) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetTemperatureThreshold _check_or_init_nvml() if __nvmlDeviceGetTemperatureThreshold == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetTemperatureThreshold is not found") return (__nvmlDeviceGetTemperatureThreshold)( device, thresholdType, temp) cdef nvmlReturn_t _nvmlDeviceGetMarginTemperature(nvmlDevice_t device, nvmlMarginTemperature_t* marginTempInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetMarginTemperature _check_or_init_nvml() if __nvmlDeviceGetMarginTemperature == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetMarginTemperature is not found") return (__nvmlDeviceGetMarginTemperature)( device, marginTempInfo) cdef nvmlReturn_t _nvmlDeviceGetThermalSettings(nvmlDevice_t device, unsigned int sensorIndex, nvmlGpuThermalSettings_t* pThermalSettings) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetThermalSettings _check_or_init_nvml() if __nvmlDeviceGetThermalSettings == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetThermalSettings is not found") return (__nvmlDeviceGetThermalSettings)( device, sensorIndex, pThermalSettings) cdef nvmlReturn_t _nvmlDeviceGetPerformanceState(nvmlDevice_t device, nvmlPstates_t* pState) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetPerformanceState _check_or_init_nvml() if __nvmlDeviceGetPerformanceState == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetPerformanceState is not found") return (__nvmlDeviceGetPerformanceState)( device, pState) cdef nvmlReturn_t _nvmlDeviceGetCurrentClocksEventReasons(nvmlDevice_t device, unsigned long long* clocksEventReasons) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetCurrentClocksEventReasons _check_or_init_nvml() if __nvmlDeviceGetCurrentClocksEventReasons == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetCurrentClocksEventReasons is not found") return (__nvmlDeviceGetCurrentClocksEventReasons)( device, clocksEventReasons) cdef nvmlReturn_t _nvmlDeviceGetSupportedClocksEventReasons(nvmlDevice_t device, unsigned long long* supportedClocksEventReasons) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetSupportedClocksEventReasons _check_or_init_nvml() if __nvmlDeviceGetSupportedClocksEventReasons == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetSupportedClocksEventReasons is not found") return (__nvmlDeviceGetSupportedClocksEventReasons)( device, supportedClocksEventReasons) cdef nvmlReturn_t _nvmlDeviceGetPowerState(nvmlDevice_t device, nvmlPstates_t* pState) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetPowerState _check_or_init_nvml() if __nvmlDeviceGetPowerState == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetPowerState is not found") return (__nvmlDeviceGetPowerState)( device, pState) cdef nvmlReturn_t _nvmlDeviceGetDynamicPstatesInfo(nvmlDevice_t device, nvmlGpuDynamicPstatesInfo_t* pDynamicPstatesInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetDynamicPstatesInfo _check_or_init_nvml() if __nvmlDeviceGetDynamicPstatesInfo == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetDynamicPstatesInfo is not found") return (__nvmlDeviceGetDynamicPstatesInfo)( device, pDynamicPstatesInfo) cdef nvmlReturn_t _nvmlDeviceGetMemClkVfOffset(nvmlDevice_t device, int* offset) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetMemClkVfOffset _check_or_init_nvml() if __nvmlDeviceGetMemClkVfOffset == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetMemClkVfOffset is not found") return (__nvmlDeviceGetMemClkVfOffset)( device, offset) cdef 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: global __nvmlDeviceGetMinMaxClockOfPState _check_or_init_nvml() if __nvmlDeviceGetMinMaxClockOfPState == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetMinMaxClockOfPState is not found") return (__nvmlDeviceGetMinMaxClockOfPState)( device, type, pstate, minClockMHz, maxClockMHz) cdef nvmlReturn_t _nvmlDeviceGetSupportedPerformanceStates(nvmlDevice_t device, nvmlPstates_t* pstates, unsigned int size) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetSupportedPerformanceStates _check_or_init_nvml() if __nvmlDeviceGetSupportedPerformanceStates == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetSupportedPerformanceStates is not found") return (__nvmlDeviceGetSupportedPerformanceStates)( device, pstates, size) cdef nvmlReturn_t _nvmlDeviceGetGpcClkMinMaxVfOffset(nvmlDevice_t device, int* minOffset, int* maxOffset) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetGpcClkMinMaxVfOffset _check_or_init_nvml() if __nvmlDeviceGetGpcClkMinMaxVfOffset == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetGpcClkMinMaxVfOffset is not found") return (__nvmlDeviceGetGpcClkMinMaxVfOffset)( device, minOffset, maxOffset) cdef nvmlReturn_t _nvmlDeviceGetMemClkMinMaxVfOffset(nvmlDevice_t device, int* minOffset, int* maxOffset) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetMemClkMinMaxVfOffset _check_or_init_nvml() if __nvmlDeviceGetMemClkMinMaxVfOffset == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetMemClkMinMaxVfOffset is not found") return (__nvmlDeviceGetMemClkMinMaxVfOffset)( device, minOffset, maxOffset) cdef nvmlReturn_t _nvmlDeviceGetClockOffsets(nvmlDevice_t device, nvmlClockOffset_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetClockOffsets _check_or_init_nvml() if __nvmlDeviceGetClockOffsets == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetClockOffsets is not found") return (__nvmlDeviceGetClockOffsets)( device, info) cdef nvmlReturn_t _nvmlDeviceSetClockOffsets(nvmlDevice_t device, nvmlClockOffset_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceSetClockOffsets _check_or_init_nvml() if __nvmlDeviceSetClockOffsets == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceSetClockOffsets is not found") return (__nvmlDeviceSetClockOffsets)( device, info) cdef nvmlReturn_t _nvmlDeviceGetPerformanceModes(nvmlDevice_t device, nvmlDevicePerfModes_t* perfModes) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetPerformanceModes _check_or_init_nvml() if __nvmlDeviceGetPerformanceModes == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetPerformanceModes is not found") return (__nvmlDeviceGetPerformanceModes)( device, perfModes) cdef nvmlReturn_t _nvmlDeviceGetCurrentClockFreqs(nvmlDevice_t device, nvmlDeviceCurrentClockFreqs_t* currentClockFreqs) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetCurrentClockFreqs _check_or_init_nvml() if __nvmlDeviceGetCurrentClockFreqs == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetCurrentClockFreqs is not found") return (__nvmlDeviceGetCurrentClockFreqs)( device, currentClockFreqs) cdef nvmlReturn_t _nvmlDeviceGetPowerManagementLimit(nvmlDevice_t device, unsigned int* limit) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetPowerManagementLimit _check_or_init_nvml() if __nvmlDeviceGetPowerManagementLimit == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetPowerManagementLimit is not found") return (__nvmlDeviceGetPowerManagementLimit)( device, limit) cdef nvmlReturn_t _nvmlDeviceGetPowerManagementLimitConstraints(nvmlDevice_t device, unsigned int* minLimit, unsigned int* maxLimit) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetPowerManagementLimitConstraints _check_or_init_nvml() if __nvmlDeviceGetPowerManagementLimitConstraints == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetPowerManagementLimitConstraints is not found") return (__nvmlDeviceGetPowerManagementLimitConstraints)( device, minLimit, maxLimit) cdef nvmlReturn_t _nvmlDeviceGetPowerManagementDefaultLimit(nvmlDevice_t device, unsigned int* defaultLimit) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetPowerManagementDefaultLimit _check_or_init_nvml() if __nvmlDeviceGetPowerManagementDefaultLimit == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetPowerManagementDefaultLimit is not found") return (__nvmlDeviceGetPowerManagementDefaultLimit)( device, defaultLimit) cdef nvmlReturn_t _nvmlDeviceGetPowerUsage(nvmlDevice_t device, unsigned int* power) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetPowerUsage _check_or_init_nvml() if __nvmlDeviceGetPowerUsage == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetPowerUsage is not found") return (__nvmlDeviceGetPowerUsage)( device, power) cdef nvmlReturn_t _nvmlDeviceGetTotalEnergyConsumption(nvmlDevice_t device, unsigned long long* energy) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetTotalEnergyConsumption _check_or_init_nvml() if __nvmlDeviceGetTotalEnergyConsumption == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetTotalEnergyConsumption is not found") return (__nvmlDeviceGetTotalEnergyConsumption)( device, energy) cdef nvmlReturn_t _nvmlDeviceGetEnforcedPowerLimit(nvmlDevice_t device, unsigned int* limit) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetEnforcedPowerLimit _check_or_init_nvml() if __nvmlDeviceGetEnforcedPowerLimit == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetEnforcedPowerLimit is not found") return (__nvmlDeviceGetEnforcedPowerLimit)( device, limit) cdef nvmlReturn_t _nvmlDeviceGetGpuOperationMode(nvmlDevice_t device, nvmlGpuOperationMode_t* current, nvmlGpuOperationMode_t* pending) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetGpuOperationMode _check_or_init_nvml() if __nvmlDeviceGetGpuOperationMode == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetGpuOperationMode is not found") return (__nvmlDeviceGetGpuOperationMode)( device, current, pending) cdef nvmlReturn_t _nvmlDeviceGetMemoryInfo_v2(nvmlDevice_t device, nvmlMemory_v2_t* memory) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetMemoryInfo_v2 _check_or_init_nvml() if __nvmlDeviceGetMemoryInfo_v2 == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetMemoryInfo_v2 is not found") return (__nvmlDeviceGetMemoryInfo_v2)( device, memory) cdef nvmlReturn_t _nvmlDeviceGetComputeMode(nvmlDevice_t device, nvmlComputeMode_t* mode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetComputeMode _check_or_init_nvml() if __nvmlDeviceGetComputeMode == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetComputeMode is not found") return (__nvmlDeviceGetComputeMode)( device, mode) cdef nvmlReturn_t _nvmlDeviceGetCudaComputeCapability(nvmlDevice_t device, int* major, int* minor) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetCudaComputeCapability _check_or_init_nvml() if __nvmlDeviceGetCudaComputeCapability == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetCudaComputeCapability is not found") return (__nvmlDeviceGetCudaComputeCapability)( device, major, minor) cdef nvmlReturn_t _nvmlDeviceGetDramEncryptionMode(nvmlDevice_t device, nvmlDramEncryptionInfo_t* current, nvmlDramEncryptionInfo_t* pending) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetDramEncryptionMode _check_or_init_nvml() if __nvmlDeviceGetDramEncryptionMode == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetDramEncryptionMode is not found") return (__nvmlDeviceGetDramEncryptionMode)( device, current, pending) cdef nvmlReturn_t _nvmlDeviceSetDramEncryptionMode(nvmlDevice_t device, const nvmlDramEncryptionInfo_t* dramEncryption) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceSetDramEncryptionMode _check_or_init_nvml() if __nvmlDeviceSetDramEncryptionMode == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceSetDramEncryptionMode is not found") return (__nvmlDeviceSetDramEncryptionMode)( device, dramEncryption) cdef nvmlReturn_t _nvmlDeviceGetEccMode(nvmlDevice_t device, nvmlEnableState_t* current, nvmlEnableState_t* pending) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetEccMode _check_or_init_nvml() if __nvmlDeviceGetEccMode == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetEccMode is not found") return (__nvmlDeviceGetEccMode)( device, current, pending) cdef nvmlReturn_t _nvmlDeviceGetDefaultEccMode(nvmlDevice_t device, nvmlEnableState_t* defaultMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetDefaultEccMode _check_or_init_nvml() if __nvmlDeviceGetDefaultEccMode == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetDefaultEccMode is not found") return (__nvmlDeviceGetDefaultEccMode)( device, defaultMode) cdef nvmlReturn_t _nvmlDeviceGetBoardId(nvmlDevice_t device, unsigned int* boardId) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetBoardId _check_or_init_nvml() if __nvmlDeviceGetBoardId == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetBoardId is not found") return (__nvmlDeviceGetBoardId)( device, boardId) cdef nvmlReturn_t _nvmlDeviceGetMultiGpuBoard(nvmlDevice_t device, unsigned int* multiGpuBool) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetMultiGpuBoard _check_or_init_nvml() if __nvmlDeviceGetMultiGpuBoard == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetMultiGpuBoard is not found") return (__nvmlDeviceGetMultiGpuBoard)( device, multiGpuBool) cdef nvmlReturn_t _nvmlDeviceGetTotalEccErrors(nvmlDevice_t device, nvmlMemoryErrorType_t errorType, nvmlEccCounterType_t counterType, unsigned long long* eccCounts) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetTotalEccErrors _check_or_init_nvml() if __nvmlDeviceGetTotalEccErrors == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetTotalEccErrors is not found") return (__nvmlDeviceGetTotalEccErrors)( device, errorType, counterType, eccCounts) cdef 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: global __nvmlDeviceGetMemoryErrorCounter _check_or_init_nvml() if __nvmlDeviceGetMemoryErrorCounter == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetMemoryErrorCounter is not found") return (__nvmlDeviceGetMemoryErrorCounter)( device, errorType, counterType, locationType, count) cdef nvmlReturn_t _nvmlDeviceGetUtilizationRates(nvmlDevice_t device, nvmlUtilization_t* utilization) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetUtilizationRates _check_or_init_nvml() if __nvmlDeviceGetUtilizationRates == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetUtilizationRates is not found") return (__nvmlDeviceGetUtilizationRates)( device, utilization) cdef nvmlReturn_t _nvmlDeviceGetEncoderUtilization(nvmlDevice_t device, unsigned int* utilization, unsigned int* samplingPeriodUs) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetEncoderUtilization _check_or_init_nvml() if __nvmlDeviceGetEncoderUtilization == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetEncoderUtilization is not found") return (__nvmlDeviceGetEncoderUtilization)( device, utilization, samplingPeriodUs) cdef nvmlReturn_t _nvmlDeviceGetEncoderCapacity(nvmlDevice_t device, nvmlEncoderType_t encoderQueryType, unsigned int* encoderCapacity) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetEncoderCapacity _check_or_init_nvml() if __nvmlDeviceGetEncoderCapacity == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetEncoderCapacity is not found") return (__nvmlDeviceGetEncoderCapacity)( device, encoderQueryType, encoderCapacity) cdef nvmlReturn_t _nvmlDeviceGetEncoderStats(nvmlDevice_t device, unsigned int* sessionCount, unsigned int* averageFps, unsigned int* averageLatency) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetEncoderStats _check_or_init_nvml() if __nvmlDeviceGetEncoderStats == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetEncoderStats is not found") return (__nvmlDeviceGetEncoderStats)( device, sessionCount, averageFps, averageLatency) cdef nvmlReturn_t _nvmlDeviceGetEncoderSessions(nvmlDevice_t device, unsigned int* sessionCount, nvmlEncoderSessionInfo_t* sessionInfos) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetEncoderSessions _check_or_init_nvml() if __nvmlDeviceGetEncoderSessions == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetEncoderSessions is not found") return (__nvmlDeviceGetEncoderSessions)( device, sessionCount, sessionInfos) cdef nvmlReturn_t _nvmlDeviceGetDecoderUtilization(nvmlDevice_t device, unsigned int* utilization, unsigned int* samplingPeriodUs) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetDecoderUtilization _check_or_init_nvml() if __nvmlDeviceGetDecoderUtilization == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetDecoderUtilization is not found") return (__nvmlDeviceGetDecoderUtilization)( device, utilization, samplingPeriodUs) cdef nvmlReturn_t _nvmlDeviceGetJpgUtilization(nvmlDevice_t device, unsigned int* utilization, unsigned int* samplingPeriodUs) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetJpgUtilization _check_or_init_nvml() if __nvmlDeviceGetJpgUtilization == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetJpgUtilization is not found") return (__nvmlDeviceGetJpgUtilization)( device, utilization, samplingPeriodUs) cdef nvmlReturn_t _nvmlDeviceGetOfaUtilization(nvmlDevice_t device, unsigned int* utilization, unsigned int* samplingPeriodUs) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetOfaUtilization _check_or_init_nvml() if __nvmlDeviceGetOfaUtilization == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetOfaUtilization is not found") return (__nvmlDeviceGetOfaUtilization)( device, utilization, samplingPeriodUs) cdef nvmlReturn_t _nvmlDeviceGetFBCStats(nvmlDevice_t device, nvmlFBCStats_t* fbcStats) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetFBCStats _check_or_init_nvml() if __nvmlDeviceGetFBCStats == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetFBCStats is not found") return (__nvmlDeviceGetFBCStats)( device, fbcStats) cdef nvmlReturn_t _nvmlDeviceGetFBCSessions(nvmlDevice_t device, unsigned int* sessionCount, nvmlFBCSessionInfo_t* sessionInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetFBCSessions _check_or_init_nvml() if __nvmlDeviceGetFBCSessions == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetFBCSessions is not found") return (__nvmlDeviceGetFBCSessions)( device, sessionCount, sessionInfo) cdef nvmlReturn_t _nvmlDeviceGetDriverModel_v2(nvmlDevice_t device, nvmlDriverModel_t* current, nvmlDriverModel_t* pending) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetDriverModel_v2 _check_or_init_nvml() if __nvmlDeviceGetDriverModel_v2 == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetDriverModel_v2 is not found") return (__nvmlDeviceGetDriverModel_v2)( device, current, pending) cdef nvmlReturn_t _nvmlDeviceGetVbiosVersion(nvmlDevice_t device, char* version, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetVbiosVersion _check_or_init_nvml() if __nvmlDeviceGetVbiosVersion == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetVbiosVersion is not found") return (__nvmlDeviceGetVbiosVersion)( device, version, length) cdef nvmlReturn_t _nvmlDeviceGetBridgeChipInfo(nvmlDevice_t device, nvmlBridgeChipHierarchy_t* bridgeHierarchy) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetBridgeChipInfo _check_or_init_nvml() if __nvmlDeviceGetBridgeChipInfo == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetBridgeChipInfo is not found") return (__nvmlDeviceGetBridgeChipInfo)( device, bridgeHierarchy) cdef nvmlReturn_t _nvmlDeviceGetComputeRunningProcesses_v3(nvmlDevice_t device, unsigned int* infoCount, nvmlProcessInfo_t* infos) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetComputeRunningProcesses_v3 _check_or_init_nvml() if __nvmlDeviceGetComputeRunningProcesses_v3 == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetComputeRunningProcesses_v3 is not found") return (__nvmlDeviceGetComputeRunningProcesses_v3)( device, infoCount, infos) cdef nvmlReturn_t _nvmlDeviceGetMPSComputeRunningProcesses_v3(nvmlDevice_t device, unsigned int* infoCount, nvmlProcessInfo_t* infos) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetMPSComputeRunningProcesses_v3 _check_or_init_nvml() if __nvmlDeviceGetMPSComputeRunningProcesses_v3 == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetMPSComputeRunningProcesses_v3 is not found") return (__nvmlDeviceGetMPSComputeRunningProcesses_v3)( device, infoCount, infos) cdef nvmlReturn_t _nvmlDeviceGetRunningProcessDetailList(nvmlDevice_t device, nvmlProcessDetailList_t* plist) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetRunningProcessDetailList _check_or_init_nvml() if __nvmlDeviceGetRunningProcessDetailList == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetRunningProcessDetailList is not found") return (__nvmlDeviceGetRunningProcessDetailList)( device, plist) cdef nvmlReturn_t _nvmlDeviceOnSameBoard(nvmlDevice_t device1, nvmlDevice_t device2, int* onSameBoard) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceOnSameBoard _check_or_init_nvml() if __nvmlDeviceOnSameBoard == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceOnSameBoard is not found") return (__nvmlDeviceOnSameBoard)( device1, device2, onSameBoard) cdef nvmlReturn_t _nvmlDeviceGetAPIRestriction(nvmlDevice_t device, nvmlRestrictedAPI_t apiType, nvmlEnableState_t* isRestricted) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetAPIRestriction _check_or_init_nvml() if __nvmlDeviceGetAPIRestriction == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetAPIRestriction is not found") return (__nvmlDeviceGetAPIRestriction)( device, apiType, isRestricted) cdef 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: global __nvmlDeviceGetSamples _check_or_init_nvml() if __nvmlDeviceGetSamples == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetSamples is not found") return (__nvmlDeviceGetSamples)( device, type, lastSeenTimeStamp, sampleValType, sampleCount, samples) cdef nvmlReturn_t _nvmlDeviceGetBAR1MemoryInfo(nvmlDevice_t device, nvmlBAR1Memory_t* bar1Memory) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetBAR1MemoryInfo _check_or_init_nvml() if __nvmlDeviceGetBAR1MemoryInfo == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetBAR1MemoryInfo is not found") return (__nvmlDeviceGetBAR1MemoryInfo)( device, bar1Memory) cdef nvmlReturn_t _nvmlDeviceGetIrqNum(nvmlDevice_t device, unsigned int* irqNum) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetIrqNum _check_or_init_nvml() if __nvmlDeviceGetIrqNum == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetIrqNum is not found") return (__nvmlDeviceGetIrqNum)( device, irqNum) cdef nvmlReturn_t _nvmlDeviceGetNumGpuCores(nvmlDevice_t device, unsigned int* numCores) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetNumGpuCores _check_or_init_nvml() if __nvmlDeviceGetNumGpuCores == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetNumGpuCores is not found") return (__nvmlDeviceGetNumGpuCores)( device, numCores) cdef nvmlReturn_t _nvmlDeviceGetPowerSource(nvmlDevice_t device, nvmlPowerSource_t* powerSource) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetPowerSource _check_or_init_nvml() if __nvmlDeviceGetPowerSource == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetPowerSource is not found") return (__nvmlDeviceGetPowerSource)( device, powerSource) cdef nvmlReturn_t _nvmlDeviceGetMemoryBusWidth(nvmlDevice_t device, unsigned int* busWidth) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetMemoryBusWidth _check_or_init_nvml() if __nvmlDeviceGetMemoryBusWidth == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetMemoryBusWidth is not found") return (__nvmlDeviceGetMemoryBusWidth)( device, busWidth) cdef nvmlReturn_t _nvmlDeviceGetPcieLinkMaxSpeed(nvmlDevice_t device, unsigned int* maxSpeed) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetPcieLinkMaxSpeed _check_or_init_nvml() if __nvmlDeviceGetPcieLinkMaxSpeed == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetPcieLinkMaxSpeed is not found") return (__nvmlDeviceGetPcieLinkMaxSpeed)( device, maxSpeed) cdef nvmlReturn_t _nvmlDeviceGetPcieSpeed(nvmlDevice_t device, unsigned int* pcieSpeed) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetPcieSpeed _check_or_init_nvml() if __nvmlDeviceGetPcieSpeed == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetPcieSpeed is not found") return (__nvmlDeviceGetPcieSpeed)( device, pcieSpeed) cdef nvmlReturn_t _nvmlDeviceGetAdaptiveClockInfoStatus(nvmlDevice_t device, unsigned int* adaptiveClockStatus) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetAdaptiveClockInfoStatus _check_or_init_nvml() if __nvmlDeviceGetAdaptiveClockInfoStatus == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetAdaptiveClockInfoStatus is not found") return (__nvmlDeviceGetAdaptiveClockInfoStatus)( device, adaptiveClockStatus) cdef nvmlReturn_t _nvmlDeviceGetBusType(nvmlDevice_t device, nvmlBusType_t* type) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetBusType _check_or_init_nvml() if __nvmlDeviceGetBusType == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetBusType is not found") return (__nvmlDeviceGetBusType)( device, type) cdef nvmlReturn_t _nvmlDeviceGetGpuFabricInfoV(nvmlDevice_t device, nvmlGpuFabricInfoV_t* gpuFabricInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetGpuFabricInfoV _check_or_init_nvml() if __nvmlDeviceGetGpuFabricInfoV == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetGpuFabricInfoV is not found") return (__nvmlDeviceGetGpuFabricInfoV)( device, gpuFabricInfo) cdef nvmlReturn_t _nvmlSystemGetConfComputeCapabilities(nvmlConfComputeSystemCaps_t* capabilities) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlSystemGetConfComputeCapabilities _check_or_init_nvml() if __nvmlSystemGetConfComputeCapabilities == NULL: with gil: raise FunctionNotFoundError("function nvmlSystemGetConfComputeCapabilities is not found") return (__nvmlSystemGetConfComputeCapabilities)( capabilities) cdef nvmlReturn_t _nvmlSystemGetConfComputeState(nvmlConfComputeSystemState_t* state) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlSystemGetConfComputeState _check_or_init_nvml() if __nvmlSystemGetConfComputeState == NULL: with gil: raise FunctionNotFoundError("function nvmlSystemGetConfComputeState is not found") return (__nvmlSystemGetConfComputeState)( state) cdef nvmlReturn_t _nvmlDeviceGetConfComputeMemSizeInfo(nvmlDevice_t device, nvmlConfComputeMemSizeInfo_t* memInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetConfComputeMemSizeInfo _check_or_init_nvml() if __nvmlDeviceGetConfComputeMemSizeInfo == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetConfComputeMemSizeInfo is not found") return (__nvmlDeviceGetConfComputeMemSizeInfo)( device, memInfo) cdef nvmlReturn_t _nvmlSystemGetConfComputeGpusReadyState(unsigned int* isAcceptingWork) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlSystemGetConfComputeGpusReadyState _check_or_init_nvml() if __nvmlSystemGetConfComputeGpusReadyState == NULL: with gil: raise FunctionNotFoundError("function nvmlSystemGetConfComputeGpusReadyState is not found") return (__nvmlSystemGetConfComputeGpusReadyState)( isAcceptingWork) cdef nvmlReturn_t _nvmlDeviceGetConfComputeProtectedMemoryUsage(nvmlDevice_t device, nvmlMemory_t* memory) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetConfComputeProtectedMemoryUsage _check_or_init_nvml() if __nvmlDeviceGetConfComputeProtectedMemoryUsage == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetConfComputeProtectedMemoryUsage is not found") return (__nvmlDeviceGetConfComputeProtectedMemoryUsage)( device, memory) cdef nvmlReturn_t _nvmlDeviceGetConfComputeGpuCertificate(nvmlDevice_t device, nvmlConfComputeGpuCertificate_t* gpuCert) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetConfComputeGpuCertificate _check_or_init_nvml() if __nvmlDeviceGetConfComputeGpuCertificate == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetConfComputeGpuCertificate is not found") return (__nvmlDeviceGetConfComputeGpuCertificate)( device, gpuCert) cdef nvmlReturn_t _nvmlDeviceGetConfComputeGpuAttestationReport(nvmlDevice_t device, nvmlConfComputeGpuAttestationReport_t* gpuAtstReport) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetConfComputeGpuAttestationReport _check_or_init_nvml() if __nvmlDeviceGetConfComputeGpuAttestationReport == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetConfComputeGpuAttestationReport is not found") return (__nvmlDeviceGetConfComputeGpuAttestationReport)( device, gpuAtstReport) cdef nvmlReturn_t _nvmlSystemGetConfComputeKeyRotationThresholdInfo(nvmlConfComputeGetKeyRotationThresholdInfo_t* pKeyRotationThrInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlSystemGetConfComputeKeyRotationThresholdInfo _check_or_init_nvml() if __nvmlSystemGetConfComputeKeyRotationThresholdInfo == NULL: with gil: raise FunctionNotFoundError("function nvmlSystemGetConfComputeKeyRotationThresholdInfo is not found") return (__nvmlSystemGetConfComputeKeyRotationThresholdInfo)( pKeyRotationThrInfo) cdef nvmlReturn_t _nvmlDeviceSetConfComputeUnprotectedMemSize(nvmlDevice_t device, unsigned long long sizeKiB) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceSetConfComputeUnprotectedMemSize _check_or_init_nvml() if __nvmlDeviceSetConfComputeUnprotectedMemSize == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceSetConfComputeUnprotectedMemSize is not found") return (__nvmlDeviceSetConfComputeUnprotectedMemSize)( device, sizeKiB) cdef nvmlReturn_t _nvmlSystemSetConfComputeGpusReadyState(unsigned int isAcceptingWork) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlSystemSetConfComputeGpusReadyState _check_or_init_nvml() if __nvmlSystemSetConfComputeGpusReadyState == NULL: with gil: raise FunctionNotFoundError("function nvmlSystemSetConfComputeGpusReadyState is not found") return (__nvmlSystemSetConfComputeGpusReadyState)( isAcceptingWork) cdef nvmlReturn_t _nvmlSystemSetConfComputeKeyRotationThresholdInfo(nvmlConfComputeSetKeyRotationThresholdInfo_t* pKeyRotationThrInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlSystemSetConfComputeKeyRotationThresholdInfo _check_or_init_nvml() if __nvmlSystemSetConfComputeKeyRotationThresholdInfo == NULL: with gil: raise FunctionNotFoundError("function nvmlSystemSetConfComputeKeyRotationThresholdInfo is not found") return (__nvmlSystemSetConfComputeKeyRotationThresholdInfo)( pKeyRotationThrInfo) cdef nvmlReturn_t _nvmlSystemGetConfComputeSettings(nvmlSystemConfComputeSettings_t* settings) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlSystemGetConfComputeSettings _check_or_init_nvml() if __nvmlSystemGetConfComputeSettings == NULL: with gil: raise FunctionNotFoundError("function nvmlSystemGetConfComputeSettings is not found") return (__nvmlSystemGetConfComputeSettings)( settings) cdef nvmlReturn_t _nvmlDeviceGetGspFirmwareVersion(nvmlDevice_t device, char* version) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetGspFirmwareVersion _check_or_init_nvml() if __nvmlDeviceGetGspFirmwareVersion == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetGspFirmwareVersion is not found") return (__nvmlDeviceGetGspFirmwareVersion)( device, version) cdef nvmlReturn_t _nvmlDeviceGetGspFirmwareMode(nvmlDevice_t device, unsigned int* isEnabled, unsigned int* defaultMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetGspFirmwareMode _check_or_init_nvml() if __nvmlDeviceGetGspFirmwareMode == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetGspFirmwareMode is not found") return (__nvmlDeviceGetGspFirmwareMode)( device, isEnabled, defaultMode) cdef nvmlReturn_t _nvmlDeviceGetSramEccErrorStatus(nvmlDevice_t device, nvmlEccSramErrorStatus_t* status) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetSramEccErrorStatus _check_or_init_nvml() if __nvmlDeviceGetSramEccErrorStatus == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetSramEccErrorStatus is not found") return (__nvmlDeviceGetSramEccErrorStatus)( device, status) cdef nvmlReturn_t _nvmlDeviceGetAccountingMode(nvmlDevice_t device, nvmlEnableState_t* mode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetAccountingMode _check_or_init_nvml() if __nvmlDeviceGetAccountingMode == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetAccountingMode is not found") return (__nvmlDeviceGetAccountingMode)( device, mode) cdef nvmlReturn_t _nvmlDeviceGetAccountingStats(nvmlDevice_t device, unsigned int pid, nvmlAccountingStats_t* stats) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetAccountingStats _check_or_init_nvml() if __nvmlDeviceGetAccountingStats == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetAccountingStats is not found") return (__nvmlDeviceGetAccountingStats)( device, pid, stats) cdef nvmlReturn_t _nvmlDeviceGetAccountingPids(nvmlDevice_t device, unsigned int* count, unsigned int* pids) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetAccountingPids _check_or_init_nvml() if __nvmlDeviceGetAccountingPids == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetAccountingPids is not found") return (__nvmlDeviceGetAccountingPids)( device, count, pids) cdef nvmlReturn_t _nvmlDeviceGetAccountingBufferSize(nvmlDevice_t device, unsigned int* bufferSize) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetAccountingBufferSize _check_or_init_nvml() if __nvmlDeviceGetAccountingBufferSize == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetAccountingBufferSize is not found") return (__nvmlDeviceGetAccountingBufferSize)( device, bufferSize) cdef nvmlReturn_t _nvmlDeviceGetRetiredPages(nvmlDevice_t device, nvmlPageRetirementCause_t cause, unsigned int* pageCount, unsigned long long* addresses) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetRetiredPages _check_or_init_nvml() if __nvmlDeviceGetRetiredPages == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetRetiredPages is not found") return (__nvmlDeviceGetRetiredPages)( device, cause, pageCount, addresses) cdef 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: global __nvmlDeviceGetRetiredPages_v2 _check_or_init_nvml() if __nvmlDeviceGetRetiredPages_v2 == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetRetiredPages_v2 is not found") return (__nvmlDeviceGetRetiredPages_v2)( device, cause, pageCount, addresses, timestamps) cdef nvmlReturn_t _nvmlDeviceGetRetiredPagesPendingStatus(nvmlDevice_t device, nvmlEnableState_t* isPending) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetRetiredPagesPendingStatus _check_or_init_nvml() if __nvmlDeviceGetRetiredPagesPendingStatus == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetRetiredPagesPendingStatus is not found") return (__nvmlDeviceGetRetiredPagesPendingStatus)( device, isPending) cdef 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: global __nvmlDeviceGetRemappedRows _check_or_init_nvml() if __nvmlDeviceGetRemappedRows == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetRemappedRows is not found") return (__nvmlDeviceGetRemappedRows)( device, corrRows, uncRows, isPending, failureOccurred) cdef nvmlReturn_t _nvmlDeviceGetRowRemapperHistogram(nvmlDevice_t device, nvmlRowRemapperHistogramValues_t* values) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetRowRemapperHistogram _check_or_init_nvml() if __nvmlDeviceGetRowRemapperHistogram == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetRowRemapperHistogram is not found") return (__nvmlDeviceGetRowRemapperHistogram)( device, values) cdef nvmlReturn_t _nvmlDeviceGetArchitecture(nvmlDevice_t device, nvmlDeviceArchitecture_t* arch) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetArchitecture _check_or_init_nvml() if __nvmlDeviceGetArchitecture == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetArchitecture is not found") return (__nvmlDeviceGetArchitecture)( device, arch) cdef nvmlReturn_t _nvmlDeviceGetClkMonStatus(nvmlDevice_t device, nvmlClkMonStatus_t* status) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetClkMonStatus _check_or_init_nvml() if __nvmlDeviceGetClkMonStatus == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetClkMonStatus is not found") return (__nvmlDeviceGetClkMonStatus)( device, status) cdef nvmlReturn_t _nvmlDeviceGetProcessUtilization(nvmlDevice_t device, nvmlProcessUtilizationSample_t* utilization, unsigned int* processSamplesCount, unsigned long long lastSeenTimeStamp) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetProcessUtilization _check_or_init_nvml() if __nvmlDeviceGetProcessUtilization == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetProcessUtilization is not found") return (__nvmlDeviceGetProcessUtilization)( device, utilization, processSamplesCount, lastSeenTimeStamp) cdef nvmlReturn_t _nvmlDeviceGetProcessesUtilizationInfo(nvmlDevice_t device, nvmlProcessesUtilizationInfo_t* procesesUtilInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetProcessesUtilizationInfo _check_or_init_nvml() if __nvmlDeviceGetProcessesUtilizationInfo == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetProcessesUtilizationInfo is not found") return (__nvmlDeviceGetProcessesUtilizationInfo)( device, procesesUtilInfo) cdef nvmlReturn_t _nvmlDeviceGetPlatformInfo(nvmlDevice_t device, nvmlPlatformInfo_t* platformInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetPlatformInfo _check_or_init_nvml() if __nvmlDeviceGetPlatformInfo == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetPlatformInfo is not found") return (__nvmlDeviceGetPlatformInfo)( device, platformInfo) cdef nvmlReturn_t _nvmlUnitSetLedState(nvmlUnit_t unit, nvmlLedColor_t color) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlUnitSetLedState _check_or_init_nvml() if __nvmlUnitSetLedState == NULL: with gil: raise FunctionNotFoundError("function nvmlUnitSetLedState is not found") return (__nvmlUnitSetLedState)( unit, color) cdef nvmlReturn_t _nvmlDeviceSetPersistenceMode(nvmlDevice_t device, nvmlEnableState_t mode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceSetPersistenceMode _check_or_init_nvml() if __nvmlDeviceSetPersistenceMode == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceSetPersistenceMode is not found") return (__nvmlDeviceSetPersistenceMode)( device, mode) cdef nvmlReturn_t _nvmlDeviceSetComputeMode(nvmlDevice_t device, nvmlComputeMode_t mode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceSetComputeMode _check_or_init_nvml() if __nvmlDeviceSetComputeMode == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceSetComputeMode is not found") return (__nvmlDeviceSetComputeMode)( device, mode) cdef nvmlReturn_t _nvmlDeviceSetEccMode(nvmlDevice_t device, nvmlEnableState_t ecc) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceSetEccMode _check_or_init_nvml() if __nvmlDeviceSetEccMode == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceSetEccMode is not found") return (__nvmlDeviceSetEccMode)( device, ecc) cdef nvmlReturn_t _nvmlDeviceClearEccErrorCounts(nvmlDevice_t device, nvmlEccCounterType_t counterType) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceClearEccErrorCounts _check_or_init_nvml() if __nvmlDeviceClearEccErrorCounts == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceClearEccErrorCounts is not found") return (__nvmlDeviceClearEccErrorCounts)( device, counterType) cdef nvmlReturn_t _nvmlDeviceSetDriverModel(nvmlDevice_t device, nvmlDriverModel_t driverModel, unsigned int flags) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceSetDriverModel _check_or_init_nvml() if __nvmlDeviceSetDriverModel == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceSetDriverModel is not found") return (__nvmlDeviceSetDriverModel)( device, driverModel, flags) cdef nvmlReturn_t _nvmlDeviceSetGpuLockedClocks(nvmlDevice_t device, unsigned int minGpuClockMHz, unsigned int maxGpuClockMHz) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceSetGpuLockedClocks _check_or_init_nvml() if __nvmlDeviceSetGpuLockedClocks == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceSetGpuLockedClocks is not found") return (__nvmlDeviceSetGpuLockedClocks)( device, minGpuClockMHz, maxGpuClockMHz) cdef nvmlReturn_t _nvmlDeviceResetGpuLockedClocks(nvmlDevice_t device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceResetGpuLockedClocks _check_or_init_nvml() if __nvmlDeviceResetGpuLockedClocks == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceResetGpuLockedClocks is not found") return (__nvmlDeviceResetGpuLockedClocks)( device) cdef nvmlReturn_t _nvmlDeviceSetMemoryLockedClocks(nvmlDevice_t device, unsigned int minMemClockMHz, unsigned int maxMemClockMHz) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceSetMemoryLockedClocks _check_or_init_nvml() if __nvmlDeviceSetMemoryLockedClocks == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceSetMemoryLockedClocks is not found") return (__nvmlDeviceSetMemoryLockedClocks)( device, minMemClockMHz, maxMemClockMHz) cdef nvmlReturn_t _nvmlDeviceResetMemoryLockedClocks(nvmlDevice_t device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceResetMemoryLockedClocks _check_or_init_nvml() if __nvmlDeviceResetMemoryLockedClocks == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceResetMemoryLockedClocks is not found") return (__nvmlDeviceResetMemoryLockedClocks)( device) cdef nvmlReturn_t _nvmlDeviceSetAutoBoostedClocksEnabled(nvmlDevice_t device, nvmlEnableState_t enabled) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceSetAutoBoostedClocksEnabled _check_or_init_nvml() if __nvmlDeviceSetAutoBoostedClocksEnabled == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceSetAutoBoostedClocksEnabled is not found") return (__nvmlDeviceSetAutoBoostedClocksEnabled)( device, enabled) cdef nvmlReturn_t _nvmlDeviceSetDefaultAutoBoostedClocksEnabled(nvmlDevice_t device, nvmlEnableState_t enabled, unsigned int flags) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceSetDefaultAutoBoostedClocksEnabled _check_or_init_nvml() if __nvmlDeviceSetDefaultAutoBoostedClocksEnabled == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceSetDefaultAutoBoostedClocksEnabled is not found") return (__nvmlDeviceSetDefaultAutoBoostedClocksEnabled)( device, enabled, flags) cdef nvmlReturn_t _nvmlDeviceSetDefaultFanSpeed_v2(nvmlDevice_t device, unsigned int fan) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceSetDefaultFanSpeed_v2 _check_or_init_nvml() if __nvmlDeviceSetDefaultFanSpeed_v2 == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceSetDefaultFanSpeed_v2 is not found") return (__nvmlDeviceSetDefaultFanSpeed_v2)( device, fan) cdef nvmlReturn_t _nvmlDeviceSetFanControlPolicy(nvmlDevice_t device, unsigned int fan, nvmlFanControlPolicy_t policy) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceSetFanControlPolicy _check_or_init_nvml() if __nvmlDeviceSetFanControlPolicy == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceSetFanControlPolicy is not found") return (__nvmlDeviceSetFanControlPolicy)( device, fan, policy) cdef nvmlReturn_t _nvmlDeviceSetTemperatureThreshold(nvmlDevice_t device, nvmlTemperatureThresholds_t thresholdType, int* temp) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceSetTemperatureThreshold _check_or_init_nvml() if __nvmlDeviceSetTemperatureThreshold == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceSetTemperatureThreshold is not found") return (__nvmlDeviceSetTemperatureThreshold)( device, thresholdType, temp) cdef nvmlReturn_t _nvmlDeviceSetPowerManagementLimit(nvmlDevice_t device, unsigned int limit) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceSetPowerManagementLimit _check_or_init_nvml() if __nvmlDeviceSetPowerManagementLimit == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceSetPowerManagementLimit is not found") return (__nvmlDeviceSetPowerManagementLimit)( device, limit) cdef nvmlReturn_t _nvmlDeviceSetGpuOperationMode(nvmlDevice_t device, nvmlGpuOperationMode_t mode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceSetGpuOperationMode _check_or_init_nvml() if __nvmlDeviceSetGpuOperationMode == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceSetGpuOperationMode is not found") return (__nvmlDeviceSetGpuOperationMode)( device, mode) cdef nvmlReturn_t _nvmlDeviceSetAPIRestriction(nvmlDevice_t device, nvmlRestrictedAPI_t apiType, nvmlEnableState_t isRestricted) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceSetAPIRestriction _check_or_init_nvml() if __nvmlDeviceSetAPIRestriction == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceSetAPIRestriction is not found") return (__nvmlDeviceSetAPIRestriction)( device, apiType, isRestricted) cdef nvmlReturn_t _nvmlDeviceSetFanSpeed_v2(nvmlDevice_t device, unsigned int fan, unsigned int speed) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceSetFanSpeed_v2 _check_or_init_nvml() if __nvmlDeviceSetFanSpeed_v2 == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceSetFanSpeed_v2 is not found") return (__nvmlDeviceSetFanSpeed_v2)( device, fan, speed) cdef nvmlReturn_t _nvmlDeviceSetAccountingMode(nvmlDevice_t device, nvmlEnableState_t mode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceSetAccountingMode _check_or_init_nvml() if __nvmlDeviceSetAccountingMode == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceSetAccountingMode is not found") return (__nvmlDeviceSetAccountingMode)( device, mode) cdef nvmlReturn_t _nvmlDeviceClearAccountingPids(nvmlDevice_t device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceClearAccountingPids _check_or_init_nvml() if __nvmlDeviceClearAccountingPids == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceClearAccountingPids is not found") return (__nvmlDeviceClearAccountingPids)( device) cdef nvmlReturn_t _nvmlDeviceSetPowerManagementLimit_v2(nvmlDevice_t device, nvmlPowerValue_v2_t* powerValue) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceSetPowerManagementLimit_v2 _check_or_init_nvml() if __nvmlDeviceSetPowerManagementLimit_v2 == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceSetPowerManagementLimit_v2 is not found") return (__nvmlDeviceSetPowerManagementLimit_v2)( device, powerValue) cdef nvmlReturn_t _nvmlDeviceGetNvLinkState(nvmlDevice_t device, unsigned int link, nvmlEnableState_t* isActive) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetNvLinkState _check_or_init_nvml() if __nvmlDeviceGetNvLinkState == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetNvLinkState is not found") return (__nvmlDeviceGetNvLinkState)( device, link, isActive) cdef nvmlReturn_t _nvmlDeviceGetNvLinkVersion(nvmlDevice_t device, unsigned int link, unsigned int* version) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetNvLinkVersion _check_or_init_nvml() if __nvmlDeviceGetNvLinkVersion == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetNvLinkVersion is not found") return (__nvmlDeviceGetNvLinkVersion)( device, link, version) cdef nvmlReturn_t _nvmlDeviceGetNvLinkCapability(nvmlDevice_t device, unsigned int link, nvmlNvLinkCapability_t capability, unsigned int* capResult) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetNvLinkCapability _check_or_init_nvml() if __nvmlDeviceGetNvLinkCapability == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetNvLinkCapability is not found") return (__nvmlDeviceGetNvLinkCapability)( device, link, capability, capResult) cdef nvmlReturn_t _nvmlDeviceGetNvLinkRemotePciInfo_v2(nvmlDevice_t device, unsigned int link, nvmlPciInfo_t* pci) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetNvLinkRemotePciInfo_v2 _check_or_init_nvml() if __nvmlDeviceGetNvLinkRemotePciInfo_v2 == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetNvLinkRemotePciInfo_v2 is not found") return (__nvmlDeviceGetNvLinkRemotePciInfo_v2)( device, link, pci) cdef nvmlReturn_t _nvmlDeviceGetNvLinkErrorCounter(nvmlDevice_t device, unsigned int link, nvmlNvLinkErrorCounter_t counter, unsigned long long* counterValue) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetNvLinkErrorCounter _check_or_init_nvml() if __nvmlDeviceGetNvLinkErrorCounter == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetNvLinkErrorCounter is not found") return (__nvmlDeviceGetNvLinkErrorCounter)( device, link, counter, counterValue) cdef nvmlReturn_t _nvmlDeviceResetNvLinkErrorCounters(nvmlDevice_t device, unsigned int link) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceResetNvLinkErrorCounters _check_or_init_nvml() if __nvmlDeviceResetNvLinkErrorCounters == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceResetNvLinkErrorCounters is not found") return (__nvmlDeviceResetNvLinkErrorCounters)( device, link) cdef nvmlReturn_t _nvmlDeviceGetNvLinkRemoteDeviceType(nvmlDevice_t device, unsigned int link, nvmlIntNvLinkDeviceType_t* pNvLinkDeviceType) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetNvLinkRemoteDeviceType _check_or_init_nvml() if __nvmlDeviceGetNvLinkRemoteDeviceType == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetNvLinkRemoteDeviceType is not found") return (__nvmlDeviceGetNvLinkRemoteDeviceType)( device, link, pNvLinkDeviceType) cdef nvmlReturn_t _nvmlDeviceSetNvLinkDeviceLowPowerThreshold(nvmlDevice_t device, nvmlNvLinkPowerThres_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceSetNvLinkDeviceLowPowerThreshold _check_or_init_nvml() if __nvmlDeviceSetNvLinkDeviceLowPowerThreshold == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceSetNvLinkDeviceLowPowerThreshold is not found") return (__nvmlDeviceSetNvLinkDeviceLowPowerThreshold)( device, info) cdef nvmlReturn_t _nvmlSystemSetNvlinkBwMode(unsigned int nvlinkBwMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlSystemSetNvlinkBwMode _check_or_init_nvml() if __nvmlSystemSetNvlinkBwMode == NULL: with gil: raise FunctionNotFoundError("function nvmlSystemSetNvlinkBwMode is not found") return (__nvmlSystemSetNvlinkBwMode)( nvlinkBwMode) cdef nvmlReturn_t _nvmlSystemGetNvlinkBwMode(unsigned int* nvlinkBwMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlSystemGetNvlinkBwMode _check_or_init_nvml() if __nvmlSystemGetNvlinkBwMode == NULL: with gil: raise FunctionNotFoundError("function nvmlSystemGetNvlinkBwMode is not found") return (__nvmlSystemGetNvlinkBwMode)( nvlinkBwMode) cdef nvmlReturn_t _nvmlDeviceGetNvlinkSupportedBwModes(nvmlDevice_t device, nvmlNvlinkSupportedBwModes_t* supportedBwMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetNvlinkSupportedBwModes _check_or_init_nvml() if __nvmlDeviceGetNvlinkSupportedBwModes == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetNvlinkSupportedBwModes is not found") return (__nvmlDeviceGetNvlinkSupportedBwModes)( device, supportedBwMode) cdef nvmlReturn_t _nvmlDeviceGetNvlinkBwMode(nvmlDevice_t device, nvmlNvlinkGetBwMode_t* getBwMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetNvlinkBwMode _check_or_init_nvml() if __nvmlDeviceGetNvlinkBwMode == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetNvlinkBwMode is not found") return (__nvmlDeviceGetNvlinkBwMode)( device, getBwMode) cdef nvmlReturn_t _nvmlDeviceSetNvlinkBwMode(nvmlDevice_t device, nvmlNvlinkSetBwMode_t* setBwMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceSetNvlinkBwMode _check_or_init_nvml() if __nvmlDeviceSetNvlinkBwMode == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceSetNvlinkBwMode is not found") return (__nvmlDeviceSetNvlinkBwMode)( device, setBwMode) cdef nvmlReturn_t _nvmlEventSetCreate(nvmlEventSet_t* set) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlEventSetCreate _check_or_init_nvml() if __nvmlEventSetCreate == NULL: with gil: raise FunctionNotFoundError("function nvmlEventSetCreate is not found") return (__nvmlEventSetCreate)( set) cdef nvmlReturn_t _nvmlDeviceRegisterEvents(nvmlDevice_t device, unsigned long long eventTypes, nvmlEventSet_t set) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceRegisterEvents _check_or_init_nvml() if __nvmlDeviceRegisterEvents == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceRegisterEvents is not found") return (__nvmlDeviceRegisterEvents)( device, eventTypes, set) cdef nvmlReturn_t _nvmlDeviceGetSupportedEventTypes(nvmlDevice_t device, unsigned long long* eventTypes) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetSupportedEventTypes _check_or_init_nvml() if __nvmlDeviceGetSupportedEventTypes == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetSupportedEventTypes is not found") return (__nvmlDeviceGetSupportedEventTypes)( device, eventTypes) cdef nvmlReturn_t _nvmlEventSetWait_v2(nvmlEventSet_t set, nvmlEventData_t* data, unsigned int timeoutms) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlEventSetWait_v2 _check_or_init_nvml() if __nvmlEventSetWait_v2 == NULL: with gil: raise FunctionNotFoundError("function nvmlEventSetWait_v2 is not found") return (__nvmlEventSetWait_v2)( set, data, timeoutms) cdef nvmlReturn_t _nvmlEventSetFree(nvmlEventSet_t set) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlEventSetFree _check_or_init_nvml() if __nvmlEventSetFree == NULL: with gil: raise FunctionNotFoundError("function nvmlEventSetFree is not found") return (__nvmlEventSetFree)( set) cdef nvmlReturn_t _nvmlSystemEventSetCreate(nvmlSystemEventSetCreateRequest_t* request) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlSystemEventSetCreate _check_or_init_nvml() if __nvmlSystemEventSetCreate == NULL: with gil: raise FunctionNotFoundError("function nvmlSystemEventSetCreate is not found") return (__nvmlSystemEventSetCreate)( request) cdef nvmlReturn_t _nvmlSystemEventSetFree(nvmlSystemEventSetFreeRequest_t* request) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlSystemEventSetFree _check_or_init_nvml() if __nvmlSystemEventSetFree == NULL: with gil: raise FunctionNotFoundError("function nvmlSystemEventSetFree is not found") return (__nvmlSystemEventSetFree)( request) cdef nvmlReturn_t _nvmlSystemRegisterEvents(nvmlSystemRegisterEventRequest_t* request) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlSystemRegisterEvents _check_or_init_nvml() if __nvmlSystemRegisterEvents == NULL: with gil: raise FunctionNotFoundError("function nvmlSystemRegisterEvents is not found") return (__nvmlSystemRegisterEvents)( request) cdef nvmlReturn_t _nvmlSystemEventSetWait(nvmlSystemEventSetWaitRequest_t* request) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlSystemEventSetWait _check_or_init_nvml() if __nvmlSystemEventSetWait == NULL: with gil: raise FunctionNotFoundError("function nvmlSystemEventSetWait is not found") return (__nvmlSystemEventSetWait)( request) cdef nvmlReturn_t _nvmlDeviceModifyDrainState(nvmlPciInfo_t* pciInfo, nvmlEnableState_t newState) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceModifyDrainState _check_or_init_nvml() if __nvmlDeviceModifyDrainState == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceModifyDrainState is not found") return (__nvmlDeviceModifyDrainState)( pciInfo, newState) cdef nvmlReturn_t _nvmlDeviceQueryDrainState(nvmlPciInfo_t* pciInfo, nvmlEnableState_t* currentState) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceQueryDrainState _check_or_init_nvml() if __nvmlDeviceQueryDrainState == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceQueryDrainState is not found") return (__nvmlDeviceQueryDrainState)( pciInfo, currentState) cdef nvmlReturn_t _nvmlDeviceRemoveGpu_v2(nvmlPciInfo_t* pciInfo, nvmlDetachGpuState_t gpuState, nvmlPcieLinkState_t linkState) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceRemoveGpu_v2 _check_or_init_nvml() if __nvmlDeviceRemoveGpu_v2 == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceRemoveGpu_v2 is not found") return (__nvmlDeviceRemoveGpu_v2)( pciInfo, gpuState, linkState) cdef nvmlReturn_t _nvmlDeviceDiscoverGpus(nvmlPciInfo_t* pciInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceDiscoverGpus _check_or_init_nvml() if __nvmlDeviceDiscoverGpus == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceDiscoverGpus is not found") return (__nvmlDeviceDiscoverGpus)( pciInfo) cdef nvmlReturn_t _nvmlDeviceGetFieldValues(nvmlDevice_t device, int valuesCount, nvmlFieldValue_t* values) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetFieldValues _check_or_init_nvml() if __nvmlDeviceGetFieldValues == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetFieldValues is not found") return (__nvmlDeviceGetFieldValues)( device, valuesCount, values) cdef nvmlReturn_t _nvmlDeviceClearFieldValues(nvmlDevice_t device, int valuesCount, nvmlFieldValue_t* values) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceClearFieldValues _check_or_init_nvml() if __nvmlDeviceClearFieldValues == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceClearFieldValues is not found") return (__nvmlDeviceClearFieldValues)( device, valuesCount, values) cdef nvmlReturn_t _nvmlDeviceGetVirtualizationMode(nvmlDevice_t device, nvmlGpuVirtualizationMode_t* pVirtualMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetVirtualizationMode _check_or_init_nvml() if __nvmlDeviceGetVirtualizationMode == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetVirtualizationMode is not found") return (__nvmlDeviceGetVirtualizationMode)( device, pVirtualMode) cdef nvmlReturn_t _nvmlDeviceGetHostVgpuMode(nvmlDevice_t device, nvmlHostVgpuMode_t* pHostVgpuMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetHostVgpuMode _check_or_init_nvml() if __nvmlDeviceGetHostVgpuMode == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetHostVgpuMode is not found") return (__nvmlDeviceGetHostVgpuMode)( device, pHostVgpuMode) cdef nvmlReturn_t _nvmlDeviceSetVirtualizationMode(nvmlDevice_t device, nvmlGpuVirtualizationMode_t virtualMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceSetVirtualizationMode _check_or_init_nvml() if __nvmlDeviceSetVirtualizationMode == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceSetVirtualizationMode is not found") return (__nvmlDeviceSetVirtualizationMode)( device, virtualMode) cdef nvmlReturn_t _nvmlDeviceGetVgpuHeterogeneousMode(nvmlDevice_t device, nvmlVgpuHeterogeneousMode_t* pHeterogeneousMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetVgpuHeterogeneousMode _check_or_init_nvml() if __nvmlDeviceGetVgpuHeterogeneousMode == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetVgpuHeterogeneousMode is not found") return (__nvmlDeviceGetVgpuHeterogeneousMode)( device, pHeterogeneousMode) cdef nvmlReturn_t _nvmlDeviceSetVgpuHeterogeneousMode(nvmlDevice_t device, const nvmlVgpuHeterogeneousMode_t* pHeterogeneousMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceSetVgpuHeterogeneousMode _check_or_init_nvml() if __nvmlDeviceSetVgpuHeterogeneousMode == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceSetVgpuHeterogeneousMode is not found") return (__nvmlDeviceSetVgpuHeterogeneousMode)( device, pHeterogeneousMode) cdef nvmlReturn_t _nvmlVgpuInstanceGetPlacementId(nvmlVgpuInstance_t vgpuInstance, nvmlVgpuPlacementId_t* pPlacement) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuInstanceGetPlacementId _check_or_init_nvml() if __nvmlVgpuInstanceGetPlacementId == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuInstanceGetPlacementId is not found") return (__nvmlVgpuInstanceGetPlacementId)( vgpuInstance, pPlacement) cdef nvmlReturn_t _nvmlDeviceGetVgpuTypeSupportedPlacements(nvmlDevice_t device, nvmlVgpuTypeId_t vgpuTypeId, nvmlVgpuPlacementList_t* pPlacementList) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetVgpuTypeSupportedPlacements _check_or_init_nvml() if __nvmlDeviceGetVgpuTypeSupportedPlacements == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetVgpuTypeSupportedPlacements is not found") return (__nvmlDeviceGetVgpuTypeSupportedPlacements)( device, vgpuTypeId, pPlacementList) cdef nvmlReturn_t _nvmlDeviceGetVgpuTypeCreatablePlacements(nvmlDevice_t device, nvmlVgpuTypeId_t vgpuTypeId, nvmlVgpuPlacementList_t* pPlacementList) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetVgpuTypeCreatablePlacements _check_or_init_nvml() if __nvmlDeviceGetVgpuTypeCreatablePlacements == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetVgpuTypeCreatablePlacements is not found") return (__nvmlDeviceGetVgpuTypeCreatablePlacements)( device, vgpuTypeId, pPlacementList) cdef nvmlReturn_t _nvmlVgpuTypeGetGspHeapSize(nvmlVgpuTypeId_t vgpuTypeId, unsigned long long* gspHeapSize) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuTypeGetGspHeapSize _check_or_init_nvml() if __nvmlVgpuTypeGetGspHeapSize == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuTypeGetGspHeapSize is not found") return (__nvmlVgpuTypeGetGspHeapSize)( vgpuTypeId, gspHeapSize) cdef nvmlReturn_t _nvmlVgpuTypeGetFbReservation(nvmlVgpuTypeId_t vgpuTypeId, unsigned long long* fbReservation) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuTypeGetFbReservation _check_or_init_nvml() if __nvmlVgpuTypeGetFbReservation == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuTypeGetFbReservation is not found") return (__nvmlVgpuTypeGetFbReservation)( vgpuTypeId, fbReservation) cdef nvmlReturn_t _nvmlVgpuInstanceGetRuntimeStateSize(nvmlVgpuInstance_t vgpuInstance, nvmlVgpuRuntimeState_t* pState) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuInstanceGetRuntimeStateSize _check_or_init_nvml() if __nvmlVgpuInstanceGetRuntimeStateSize == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuInstanceGetRuntimeStateSize is not found") return (__nvmlVgpuInstanceGetRuntimeStateSize)( vgpuInstance, pState) cdef nvmlReturn_t _nvmlDeviceSetVgpuCapabilities(nvmlDevice_t device, nvmlDeviceVgpuCapability_t capability, nvmlEnableState_t state) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceSetVgpuCapabilities _check_or_init_nvml() if __nvmlDeviceSetVgpuCapabilities == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceSetVgpuCapabilities is not found") return (__nvmlDeviceSetVgpuCapabilities)( device, capability, state) cdef nvmlReturn_t _nvmlDeviceGetGridLicensableFeatures_v4(nvmlDevice_t device, nvmlGridLicensableFeatures_t* pGridLicensableFeatures) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetGridLicensableFeatures_v4 _check_or_init_nvml() if __nvmlDeviceGetGridLicensableFeatures_v4 == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetGridLicensableFeatures_v4 is not found") return (__nvmlDeviceGetGridLicensableFeatures_v4)( device, pGridLicensableFeatures) cdef nvmlReturn_t _nvmlGetVgpuDriverCapabilities(nvmlVgpuDriverCapability_t capability, unsigned int* capResult) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlGetVgpuDriverCapabilities _check_or_init_nvml() if __nvmlGetVgpuDriverCapabilities == NULL: with gil: raise FunctionNotFoundError("function nvmlGetVgpuDriverCapabilities is not found") return (__nvmlGetVgpuDriverCapabilities)( capability, capResult) cdef nvmlReturn_t _nvmlDeviceGetVgpuCapabilities(nvmlDevice_t device, nvmlDeviceVgpuCapability_t capability, unsigned int* capResult) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetVgpuCapabilities _check_or_init_nvml() if __nvmlDeviceGetVgpuCapabilities == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetVgpuCapabilities is not found") return (__nvmlDeviceGetVgpuCapabilities)( device, capability, capResult) cdef nvmlReturn_t _nvmlDeviceGetSupportedVgpus(nvmlDevice_t device, unsigned int* vgpuCount, nvmlVgpuTypeId_t* vgpuTypeIds) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetSupportedVgpus _check_or_init_nvml() if __nvmlDeviceGetSupportedVgpus == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetSupportedVgpus is not found") return (__nvmlDeviceGetSupportedVgpus)( device, vgpuCount, vgpuTypeIds) cdef nvmlReturn_t _nvmlDeviceGetCreatableVgpus(nvmlDevice_t device, unsigned int* vgpuCount, nvmlVgpuTypeId_t* vgpuTypeIds) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetCreatableVgpus _check_or_init_nvml() if __nvmlDeviceGetCreatableVgpus == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetCreatableVgpus is not found") return (__nvmlDeviceGetCreatableVgpus)( device, vgpuCount, vgpuTypeIds) cdef nvmlReturn_t _nvmlVgpuTypeGetClass(nvmlVgpuTypeId_t vgpuTypeId, char* vgpuTypeClass, unsigned int* size) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuTypeGetClass _check_or_init_nvml() if __nvmlVgpuTypeGetClass == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuTypeGetClass is not found") return (__nvmlVgpuTypeGetClass)( vgpuTypeId, vgpuTypeClass, size) cdef nvmlReturn_t _nvmlVgpuTypeGetName(nvmlVgpuTypeId_t vgpuTypeId, char* vgpuTypeName, unsigned int* size) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuTypeGetName _check_or_init_nvml() if __nvmlVgpuTypeGetName == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuTypeGetName is not found") return (__nvmlVgpuTypeGetName)( vgpuTypeId, vgpuTypeName, size) cdef nvmlReturn_t _nvmlVgpuTypeGetGpuInstanceProfileId(nvmlVgpuTypeId_t vgpuTypeId, unsigned int* gpuInstanceProfileId) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuTypeGetGpuInstanceProfileId _check_or_init_nvml() if __nvmlVgpuTypeGetGpuInstanceProfileId == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuTypeGetGpuInstanceProfileId is not found") return (__nvmlVgpuTypeGetGpuInstanceProfileId)( vgpuTypeId, gpuInstanceProfileId) cdef nvmlReturn_t _nvmlVgpuTypeGetDeviceID(nvmlVgpuTypeId_t vgpuTypeId, unsigned long long* deviceID, unsigned long long* subsystemID) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuTypeGetDeviceID _check_or_init_nvml() if __nvmlVgpuTypeGetDeviceID == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuTypeGetDeviceID is not found") return (__nvmlVgpuTypeGetDeviceID)( vgpuTypeId, deviceID, subsystemID) cdef nvmlReturn_t _nvmlVgpuTypeGetFramebufferSize(nvmlVgpuTypeId_t vgpuTypeId, unsigned long long* fbSize) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuTypeGetFramebufferSize _check_or_init_nvml() if __nvmlVgpuTypeGetFramebufferSize == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuTypeGetFramebufferSize is not found") return (__nvmlVgpuTypeGetFramebufferSize)( vgpuTypeId, fbSize) cdef nvmlReturn_t _nvmlVgpuTypeGetNumDisplayHeads(nvmlVgpuTypeId_t vgpuTypeId, unsigned int* numDisplayHeads) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuTypeGetNumDisplayHeads _check_or_init_nvml() if __nvmlVgpuTypeGetNumDisplayHeads == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuTypeGetNumDisplayHeads is not found") return (__nvmlVgpuTypeGetNumDisplayHeads)( vgpuTypeId, numDisplayHeads) cdef nvmlReturn_t _nvmlVgpuTypeGetResolution(nvmlVgpuTypeId_t vgpuTypeId, unsigned int displayIndex, unsigned int* xdim, unsigned int* ydim) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuTypeGetResolution _check_or_init_nvml() if __nvmlVgpuTypeGetResolution == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuTypeGetResolution is not found") return (__nvmlVgpuTypeGetResolution)( vgpuTypeId, displayIndex, xdim, ydim) cdef nvmlReturn_t _nvmlVgpuTypeGetLicense(nvmlVgpuTypeId_t vgpuTypeId, char* vgpuTypeLicenseString, unsigned int size) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuTypeGetLicense _check_or_init_nvml() if __nvmlVgpuTypeGetLicense == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuTypeGetLicense is not found") return (__nvmlVgpuTypeGetLicense)( vgpuTypeId, vgpuTypeLicenseString, size) cdef nvmlReturn_t _nvmlVgpuTypeGetFrameRateLimit(nvmlVgpuTypeId_t vgpuTypeId, unsigned int* frameRateLimit) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuTypeGetFrameRateLimit _check_or_init_nvml() if __nvmlVgpuTypeGetFrameRateLimit == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuTypeGetFrameRateLimit is not found") return (__nvmlVgpuTypeGetFrameRateLimit)( vgpuTypeId, frameRateLimit) cdef nvmlReturn_t _nvmlVgpuTypeGetMaxInstances(nvmlDevice_t device, nvmlVgpuTypeId_t vgpuTypeId, unsigned int* vgpuInstanceCount) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuTypeGetMaxInstances _check_or_init_nvml() if __nvmlVgpuTypeGetMaxInstances == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuTypeGetMaxInstances is not found") return (__nvmlVgpuTypeGetMaxInstances)( device, vgpuTypeId, vgpuInstanceCount) cdef nvmlReturn_t _nvmlVgpuTypeGetMaxInstancesPerVm(nvmlVgpuTypeId_t vgpuTypeId, unsigned int* vgpuInstanceCountPerVm) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuTypeGetMaxInstancesPerVm _check_or_init_nvml() if __nvmlVgpuTypeGetMaxInstancesPerVm == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuTypeGetMaxInstancesPerVm is not found") return (__nvmlVgpuTypeGetMaxInstancesPerVm)( vgpuTypeId, vgpuInstanceCountPerVm) cdef nvmlReturn_t _nvmlVgpuTypeGetBAR1Info(nvmlVgpuTypeId_t vgpuTypeId, nvmlVgpuTypeBar1Info_t* bar1Info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuTypeGetBAR1Info _check_or_init_nvml() if __nvmlVgpuTypeGetBAR1Info == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuTypeGetBAR1Info is not found") return (__nvmlVgpuTypeGetBAR1Info)( vgpuTypeId, bar1Info) cdef nvmlReturn_t _nvmlDeviceGetActiveVgpus(nvmlDevice_t device, unsigned int* vgpuCount, nvmlVgpuInstance_t* vgpuInstances) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetActiveVgpus _check_or_init_nvml() if __nvmlDeviceGetActiveVgpus == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetActiveVgpus is not found") return (__nvmlDeviceGetActiveVgpus)( device, vgpuCount, vgpuInstances) cdef nvmlReturn_t _nvmlVgpuInstanceGetVmID(nvmlVgpuInstance_t vgpuInstance, char* vmId, unsigned int size, nvmlVgpuVmIdType_t* vmIdType) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuInstanceGetVmID _check_or_init_nvml() if __nvmlVgpuInstanceGetVmID == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuInstanceGetVmID is not found") return (__nvmlVgpuInstanceGetVmID)( vgpuInstance, vmId, size, vmIdType) cdef nvmlReturn_t _nvmlVgpuInstanceGetUUID(nvmlVgpuInstance_t vgpuInstance, char* uuid, unsigned int size) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuInstanceGetUUID _check_or_init_nvml() if __nvmlVgpuInstanceGetUUID == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuInstanceGetUUID is not found") return (__nvmlVgpuInstanceGetUUID)( vgpuInstance, uuid, size) cdef nvmlReturn_t _nvmlVgpuInstanceGetVmDriverVersion(nvmlVgpuInstance_t vgpuInstance, char* version, unsigned int length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuInstanceGetVmDriverVersion _check_or_init_nvml() if __nvmlVgpuInstanceGetVmDriverVersion == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuInstanceGetVmDriverVersion is not found") return (__nvmlVgpuInstanceGetVmDriverVersion)( vgpuInstance, version, length) cdef nvmlReturn_t _nvmlVgpuInstanceGetFbUsage(nvmlVgpuInstance_t vgpuInstance, unsigned long long* fbUsage) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuInstanceGetFbUsage _check_or_init_nvml() if __nvmlVgpuInstanceGetFbUsage == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuInstanceGetFbUsage is not found") return (__nvmlVgpuInstanceGetFbUsage)( vgpuInstance, fbUsage) cdef nvmlReturn_t _nvmlVgpuInstanceGetLicenseStatus(nvmlVgpuInstance_t vgpuInstance, unsigned int* licensed) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuInstanceGetLicenseStatus _check_or_init_nvml() if __nvmlVgpuInstanceGetLicenseStatus == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuInstanceGetLicenseStatus is not found") return (__nvmlVgpuInstanceGetLicenseStatus)( vgpuInstance, licensed) cdef nvmlReturn_t _nvmlVgpuInstanceGetType(nvmlVgpuInstance_t vgpuInstance, nvmlVgpuTypeId_t* vgpuTypeId) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuInstanceGetType _check_or_init_nvml() if __nvmlVgpuInstanceGetType == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuInstanceGetType is not found") return (__nvmlVgpuInstanceGetType)( vgpuInstance, vgpuTypeId) cdef nvmlReturn_t _nvmlVgpuInstanceGetFrameRateLimit(nvmlVgpuInstance_t vgpuInstance, unsigned int* frameRateLimit) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuInstanceGetFrameRateLimit _check_or_init_nvml() if __nvmlVgpuInstanceGetFrameRateLimit == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuInstanceGetFrameRateLimit is not found") return (__nvmlVgpuInstanceGetFrameRateLimit)( vgpuInstance, frameRateLimit) cdef nvmlReturn_t _nvmlVgpuInstanceGetEccMode(nvmlVgpuInstance_t vgpuInstance, nvmlEnableState_t* eccMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuInstanceGetEccMode _check_or_init_nvml() if __nvmlVgpuInstanceGetEccMode == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuInstanceGetEccMode is not found") return (__nvmlVgpuInstanceGetEccMode)( vgpuInstance, eccMode) cdef nvmlReturn_t _nvmlVgpuInstanceGetEncoderCapacity(nvmlVgpuInstance_t vgpuInstance, unsigned int* encoderCapacity) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuInstanceGetEncoderCapacity _check_or_init_nvml() if __nvmlVgpuInstanceGetEncoderCapacity == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuInstanceGetEncoderCapacity is not found") return (__nvmlVgpuInstanceGetEncoderCapacity)( vgpuInstance, encoderCapacity) cdef nvmlReturn_t _nvmlVgpuInstanceSetEncoderCapacity(nvmlVgpuInstance_t vgpuInstance, unsigned int encoderCapacity) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuInstanceSetEncoderCapacity _check_or_init_nvml() if __nvmlVgpuInstanceSetEncoderCapacity == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuInstanceSetEncoderCapacity is not found") return (__nvmlVgpuInstanceSetEncoderCapacity)( vgpuInstance, encoderCapacity) cdef nvmlReturn_t _nvmlVgpuInstanceGetEncoderStats(nvmlVgpuInstance_t vgpuInstance, unsigned int* sessionCount, unsigned int* averageFps, unsigned int* averageLatency) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuInstanceGetEncoderStats _check_or_init_nvml() if __nvmlVgpuInstanceGetEncoderStats == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuInstanceGetEncoderStats is not found") return (__nvmlVgpuInstanceGetEncoderStats)( vgpuInstance, sessionCount, averageFps, averageLatency) cdef nvmlReturn_t _nvmlVgpuInstanceGetEncoderSessions(nvmlVgpuInstance_t vgpuInstance, unsigned int* sessionCount, nvmlEncoderSessionInfo_t* sessionInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuInstanceGetEncoderSessions _check_or_init_nvml() if __nvmlVgpuInstanceGetEncoderSessions == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuInstanceGetEncoderSessions is not found") return (__nvmlVgpuInstanceGetEncoderSessions)( vgpuInstance, sessionCount, sessionInfo) cdef nvmlReturn_t _nvmlVgpuInstanceGetFBCStats(nvmlVgpuInstance_t vgpuInstance, nvmlFBCStats_t* fbcStats) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuInstanceGetFBCStats _check_or_init_nvml() if __nvmlVgpuInstanceGetFBCStats == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuInstanceGetFBCStats is not found") return (__nvmlVgpuInstanceGetFBCStats)( vgpuInstance, fbcStats) cdef nvmlReturn_t _nvmlVgpuInstanceGetFBCSessions(nvmlVgpuInstance_t vgpuInstance, unsigned int* sessionCount, nvmlFBCSessionInfo_t* sessionInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuInstanceGetFBCSessions _check_or_init_nvml() if __nvmlVgpuInstanceGetFBCSessions == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuInstanceGetFBCSessions is not found") return (__nvmlVgpuInstanceGetFBCSessions)( vgpuInstance, sessionCount, sessionInfo) cdef nvmlReturn_t _nvmlVgpuInstanceGetGpuInstanceId(nvmlVgpuInstance_t vgpuInstance, unsigned int* gpuInstanceId) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuInstanceGetGpuInstanceId _check_or_init_nvml() if __nvmlVgpuInstanceGetGpuInstanceId == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuInstanceGetGpuInstanceId is not found") return (__nvmlVgpuInstanceGetGpuInstanceId)( vgpuInstance, gpuInstanceId) cdef nvmlReturn_t _nvmlVgpuInstanceGetGpuPciId(nvmlVgpuInstance_t vgpuInstance, char* vgpuPciId, unsigned int* length) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuInstanceGetGpuPciId _check_or_init_nvml() if __nvmlVgpuInstanceGetGpuPciId == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuInstanceGetGpuPciId is not found") return (__nvmlVgpuInstanceGetGpuPciId)( vgpuInstance, vgpuPciId, length) cdef nvmlReturn_t _nvmlVgpuTypeGetCapabilities(nvmlVgpuTypeId_t vgpuTypeId, nvmlVgpuCapability_t capability, unsigned int* capResult) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuTypeGetCapabilities _check_or_init_nvml() if __nvmlVgpuTypeGetCapabilities == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuTypeGetCapabilities is not found") return (__nvmlVgpuTypeGetCapabilities)( vgpuTypeId, capability, capResult) cdef nvmlReturn_t _nvmlVgpuInstanceGetMdevUUID(nvmlVgpuInstance_t vgpuInstance, char* mdevUuid, unsigned int size) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuInstanceGetMdevUUID _check_or_init_nvml() if __nvmlVgpuInstanceGetMdevUUID == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuInstanceGetMdevUUID is not found") return (__nvmlVgpuInstanceGetMdevUUID)( vgpuInstance, mdevUuid, size) cdef nvmlReturn_t _nvmlGpuInstanceGetCreatableVgpus(nvmlGpuInstance_t gpuInstance, nvmlVgpuTypeIdInfo_t* pVgpus) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlGpuInstanceGetCreatableVgpus _check_or_init_nvml() if __nvmlGpuInstanceGetCreatableVgpus == NULL: with gil: raise FunctionNotFoundError("function nvmlGpuInstanceGetCreatableVgpus is not found") return (__nvmlGpuInstanceGetCreatableVgpus)( gpuInstance, pVgpus) cdef nvmlReturn_t _nvmlVgpuTypeGetMaxInstancesPerGpuInstance(nvmlVgpuTypeMaxInstance_t* pMaxInstance) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuTypeGetMaxInstancesPerGpuInstance _check_or_init_nvml() if __nvmlVgpuTypeGetMaxInstancesPerGpuInstance == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuTypeGetMaxInstancesPerGpuInstance is not found") return (__nvmlVgpuTypeGetMaxInstancesPerGpuInstance)( pMaxInstance) cdef nvmlReturn_t _nvmlGpuInstanceGetActiveVgpus(nvmlGpuInstance_t gpuInstance, nvmlActiveVgpuInstanceInfo_t* pVgpuInstanceInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlGpuInstanceGetActiveVgpus _check_or_init_nvml() if __nvmlGpuInstanceGetActiveVgpus == NULL: with gil: raise FunctionNotFoundError("function nvmlGpuInstanceGetActiveVgpus is not found") return (__nvmlGpuInstanceGetActiveVgpus)( gpuInstance, pVgpuInstanceInfo) cdef nvmlReturn_t _nvmlGpuInstanceSetVgpuSchedulerState(nvmlGpuInstance_t gpuInstance, nvmlVgpuSchedulerState_t* pScheduler) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlGpuInstanceSetVgpuSchedulerState _check_or_init_nvml() if __nvmlGpuInstanceSetVgpuSchedulerState == NULL: with gil: raise FunctionNotFoundError("function nvmlGpuInstanceSetVgpuSchedulerState is not found") return (__nvmlGpuInstanceSetVgpuSchedulerState)( gpuInstance, pScheduler) cdef nvmlReturn_t _nvmlGpuInstanceGetVgpuSchedulerState(nvmlGpuInstance_t gpuInstance, nvmlVgpuSchedulerStateInfo_t* pSchedulerStateInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlGpuInstanceGetVgpuSchedulerState _check_or_init_nvml() if __nvmlGpuInstanceGetVgpuSchedulerState == NULL: with gil: raise FunctionNotFoundError("function nvmlGpuInstanceGetVgpuSchedulerState is not found") return (__nvmlGpuInstanceGetVgpuSchedulerState)( gpuInstance, pSchedulerStateInfo) cdef nvmlReturn_t _nvmlGpuInstanceGetVgpuSchedulerLog(nvmlGpuInstance_t gpuInstance, nvmlVgpuSchedulerLogInfo_t* pSchedulerLogInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlGpuInstanceGetVgpuSchedulerLog _check_or_init_nvml() if __nvmlGpuInstanceGetVgpuSchedulerLog == NULL: with gil: raise FunctionNotFoundError("function nvmlGpuInstanceGetVgpuSchedulerLog is not found") return (__nvmlGpuInstanceGetVgpuSchedulerLog)( gpuInstance, pSchedulerLogInfo) cdef nvmlReturn_t _nvmlGpuInstanceGetVgpuTypeCreatablePlacements(nvmlGpuInstance_t gpuInstance, nvmlVgpuCreatablePlacementInfo_t* pCreatablePlacementInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlGpuInstanceGetVgpuTypeCreatablePlacements _check_or_init_nvml() if __nvmlGpuInstanceGetVgpuTypeCreatablePlacements == NULL: with gil: raise FunctionNotFoundError("function nvmlGpuInstanceGetVgpuTypeCreatablePlacements is not found") return (__nvmlGpuInstanceGetVgpuTypeCreatablePlacements)( gpuInstance, pCreatablePlacementInfo) cdef nvmlReturn_t _nvmlGpuInstanceGetVgpuHeterogeneousMode(nvmlGpuInstance_t gpuInstance, nvmlVgpuHeterogeneousMode_t* pHeterogeneousMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlGpuInstanceGetVgpuHeterogeneousMode _check_or_init_nvml() if __nvmlGpuInstanceGetVgpuHeterogeneousMode == NULL: with gil: raise FunctionNotFoundError("function nvmlGpuInstanceGetVgpuHeterogeneousMode is not found") return (__nvmlGpuInstanceGetVgpuHeterogeneousMode)( gpuInstance, pHeterogeneousMode) cdef nvmlReturn_t _nvmlGpuInstanceSetVgpuHeterogeneousMode(nvmlGpuInstance_t gpuInstance, const nvmlVgpuHeterogeneousMode_t* pHeterogeneousMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlGpuInstanceSetVgpuHeterogeneousMode _check_or_init_nvml() if __nvmlGpuInstanceSetVgpuHeterogeneousMode == NULL: with gil: raise FunctionNotFoundError("function nvmlGpuInstanceSetVgpuHeterogeneousMode is not found") return (__nvmlGpuInstanceSetVgpuHeterogeneousMode)( gpuInstance, pHeterogeneousMode) cdef nvmlReturn_t _nvmlVgpuInstanceGetMetadata(nvmlVgpuInstance_t vgpuInstance, nvmlVgpuMetadata_t* vgpuMetadata, unsigned int* bufferSize) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuInstanceGetMetadata _check_or_init_nvml() if __nvmlVgpuInstanceGetMetadata == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuInstanceGetMetadata is not found") return (__nvmlVgpuInstanceGetMetadata)( vgpuInstance, vgpuMetadata, bufferSize) cdef nvmlReturn_t _nvmlDeviceGetVgpuMetadata(nvmlDevice_t device, nvmlVgpuPgpuMetadata_t* pgpuMetadata, unsigned int* bufferSize) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetVgpuMetadata _check_or_init_nvml() if __nvmlDeviceGetVgpuMetadata == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetVgpuMetadata is not found") return (__nvmlDeviceGetVgpuMetadata)( device, pgpuMetadata, bufferSize) cdef nvmlReturn_t _nvmlGetVgpuCompatibility(nvmlVgpuMetadata_t* vgpuMetadata, nvmlVgpuPgpuMetadata_t* pgpuMetadata, nvmlVgpuPgpuCompatibility_t* compatibilityInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlGetVgpuCompatibility _check_or_init_nvml() if __nvmlGetVgpuCompatibility == NULL: with gil: raise FunctionNotFoundError("function nvmlGetVgpuCompatibility is not found") return (__nvmlGetVgpuCompatibility)( vgpuMetadata, pgpuMetadata, compatibilityInfo) cdef nvmlReturn_t _nvmlDeviceGetPgpuMetadataString(nvmlDevice_t device, char* pgpuMetadata, unsigned int* bufferSize) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetPgpuMetadataString _check_or_init_nvml() if __nvmlDeviceGetPgpuMetadataString == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetPgpuMetadataString is not found") return (__nvmlDeviceGetPgpuMetadataString)( device, pgpuMetadata, bufferSize) cdef nvmlReturn_t _nvmlDeviceGetVgpuSchedulerLog(nvmlDevice_t device, nvmlVgpuSchedulerLog_t* pSchedulerLog) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetVgpuSchedulerLog _check_or_init_nvml() if __nvmlDeviceGetVgpuSchedulerLog == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetVgpuSchedulerLog is not found") return (__nvmlDeviceGetVgpuSchedulerLog)( device, pSchedulerLog) cdef nvmlReturn_t _nvmlDeviceGetVgpuSchedulerState(nvmlDevice_t device, nvmlVgpuSchedulerGetState_t* pSchedulerState) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetVgpuSchedulerState _check_or_init_nvml() if __nvmlDeviceGetVgpuSchedulerState == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetVgpuSchedulerState is not found") return (__nvmlDeviceGetVgpuSchedulerState)( device, pSchedulerState) cdef nvmlReturn_t _nvmlDeviceGetVgpuSchedulerCapabilities(nvmlDevice_t device, nvmlVgpuSchedulerCapabilities_t* pCapabilities) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetVgpuSchedulerCapabilities _check_or_init_nvml() if __nvmlDeviceGetVgpuSchedulerCapabilities == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetVgpuSchedulerCapabilities is not found") return (__nvmlDeviceGetVgpuSchedulerCapabilities)( device, pCapabilities) cdef nvmlReturn_t _nvmlDeviceSetVgpuSchedulerState(nvmlDevice_t device, nvmlVgpuSchedulerSetState_t* pSchedulerState) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceSetVgpuSchedulerState _check_or_init_nvml() if __nvmlDeviceSetVgpuSchedulerState == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceSetVgpuSchedulerState is not found") return (__nvmlDeviceSetVgpuSchedulerState)( device, pSchedulerState) cdef nvmlReturn_t _nvmlGetVgpuVersion(nvmlVgpuVersion_t* supported, nvmlVgpuVersion_t* current) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlGetVgpuVersion _check_or_init_nvml() if __nvmlGetVgpuVersion == NULL: with gil: raise FunctionNotFoundError("function nvmlGetVgpuVersion is not found") return (__nvmlGetVgpuVersion)( supported, current) cdef nvmlReturn_t _nvmlSetVgpuVersion(nvmlVgpuVersion_t* vgpuVersion) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlSetVgpuVersion _check_or_init_nvml() if __nvmlSetVgpuVersion == NULL: with gil: raise FunctionNotFoundError("function nvmlSetVgpuVersion is not found") return (__nvmlSetVgpuVersion)( vgpuVersion) cdef 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: global __nvmlDeviceGetVgpuUtilization _check_or_init_nvml() if __nvmlDeviceGetVgpuUtilization == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetVgpuUtilization is not found") return (__nvmlDeviceGetVgpuUtilization)( device, lastSeenTimeStamp, sampleValType, vgpuInstanceSamplesCount, utilizationSamples) cdef nvmlReturn_t _nvmlDeviceGetVgpuInstancesUtilizationInfo(nvmlDevice_t device, nvmlVgpuInstancesUtilizationInfo_t* vgpuUtilInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetVgpuInstancesUtilizationInfo _check_or_init_nvml() if __nvmlDeviceGetVgpuInstancesUtilizationInfo == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetVgpuInstancesUtilizationInfo is not found") return (__nvmlDeviceGetVgpuInstancesUtilizationInfo)( device, vgpuUtilInfo) cdef nvmlReturn_t _nvmlDeviceGetVgpuProcessUtilization(nvmlDevice_t device, unsigned long long lastSeenTimeStamp, unsigned int* vgpuProcessSamplesCount, nvmlVgpuProcessUtilizationSample_t* utilizationSamples) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetVgpuProcessUtilization _check_or_init_nvml() if __nvmlDeviceGetVgpuProcessUtilization == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetVgpuProcessUtilization is not found") return (__nvmlDeviceGetVgpuProcessUtilization)( device, lastSeenTimeStamp, vgpuProcessSamplesCount, utilizationSamples) cdef nvmlReturn_t _nvmlDeviceGetVgpuProcessesUtilizationInfo(nvmlDevice_t device, nvmlVgpuProcessesUtilizationInfo_t* vgpuProcUtilInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetVgpuProcessesUtilizationInfo _check_or_init_nvml() if __nvmlDeviceGetVgpuProcessesUtilizationInfo == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetVgpuProcessesUtilizationInfo is not found") return (__nvmlDeviceGetVgpuProcessesUtilizationInfo)( device, vgpuProcUtilInfo) cdef nvmlReturn_t _nvmlVgpuInstanceGetAccountingMode(nvmlVgpuInstance_t vgpuInstance, nvmlEnableState_t* mode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuInstanceGetAccountingMode _check_or_init_nvml() if __nvmlVgpuInstanceGetAccountingMode == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuInstanceGetAccountingMode is not found") return (__nvmlVgpuInstanceGetAccountingMode)( vgpuInstance, mode) cdef nvmlReturn_t _nvmlVgpuInstanceGetAccountingPids(nvmlVgpuInstance_t vgpuInstance, unsigned int* count, unsigned int* pids) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuInstanceGetAccountingPids _check_or_init_nvml() if __nvmlVgpuInstanceGetAccountingPids == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuInstanceGetAccountingPids is not found") return (__nvmlVgpuInstanceGetAccountingPids)( vgpuInstance, count, pids) cdef nvmlReturn_t _nvmlVgpuInstanceGetAccountingStats(nvmlVgpuInstance_t vgpuInstance, unsigned int pid, nvmlAccountingStats_t* stats) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuInstanceGetAccountingStats _check_or_init_nvml() if __nvmlVgpuInstanceGetAccountingStats == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuInstanceGetAccountingStats is not found") return (__nvmlVgpuInstanceGetAccountingStats)( vgpuInstance, pid, stats) cdef nvmlReturn_t _nvmlVgpuInstanceClearAccountingPids(nvmlVgpuInstance_t vgpuInstance) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuInstanceClearAccountingPids _check_or_init_nvml() if __nvmlVgpuInstanceClearAccountingPids == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuInstanceClearAccountingPids is not found") return (__nvmlVgpuInstanceClearAccountingPids)( vgpuInstance) cdef nvmlReturn_t _nvmlVgpuInstanceGetLicenseInfo_v2(nvmlVgpuInstance_t vgpuInstance, nvmlVgpuLicenseInfo_t* licenseInfo) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlVgpuInstanceGetLicenseInfo_v2 _check_or_init_nvml() if __nvmlVgpuInstanceGetLicenseInfo_v2 == NULL: with gil: raise FunctionNotFoundError("function nvmlVgpuInstanceGetLicenseInfo_v2 is not found") return (__nvmlVgpuInstanceGetLicenseInfo_v2)( vgpuInstance, licenseInfo) cdef nvmlReturn_t _nvmlGetExcludedDeviceCount(unsigned int* deviceCount) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlGetExcludedDeviceCount _check_or_init_nvml() if __nvmlGetExcludedDeviceCount == NULL: with gil: raise FunctionNotFoundError("function nvmlGetExcludedDeviceCount is not found") return (__nvmlGetExcludedDeviceCount)( deviceCount) cdef nvmlReturn_t _nvmlGetExcludedDeviceInfoByIndex(unsigned int index, nvmlExcludedDeviceInfo_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlGetExcludedDeviceInfoByIndex _check_or_init_nvml() if __nvmlGetExcludedDeviceInfoByIndex == NULL: with gil: raise FunctionNotFoundError("function nvmlGetExcludedDeviceInfoByIndex is not found") return (__nvmlGetExcludedDeviceInfoByIndex)( index, info) cdef nvmlReturn_t _nvmlDeviceSetMigMode(nvmlDevice_t device, unsigned int mode, nvmlReturn_t* activationStatus) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceSetMigMode _check_or_init_nvml() if __nvmlDeviceSetMigMode == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceSetMigMode is not found") return (__nvmlDeviceSetMigMode)( device, mode, activationStatus) cdef nvmlReturn_t _nvmlDeviceGetMigMode(nvmlDevice_t device, unsigned int* currentMode, unsigned int* pendingMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetMigMode _check_or_init_nvml() if __nvmlDeviceGetMigMode == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetMigMode is not found") return (__nvmlDeviceGetMigMode)( device, currentMode, pendingMode) cdef nvmlReturn_t _nvmlDeviceGetGpuInstanceProfileInfoV(nvmlDevice_t device, unsigned int profile, nvmlGpuInstanceProfileInfo_v2_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetGpuInstanceProfileInfoV _check_or_init_nvml() if __nvmlDeviceGetGpuInstanceProfileInfoV == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetGpuInstanceProfileInfoV is not found") return (__nvmlDeviceGetGpuInstanceProfileInfoV)( device, profile, info) cdef nvmlReturn_t _nvmlDeviceGetGpuInstancePossiblePlacements_v2(nvmlDevice_t device, unsigned int profileId, nvmlGpuInstancePlacement_t* placements, unsigned int* count) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetGpuInstancePossiblePlacements_v2 _check_or_init_nvml() if __nvmlDeviceGetGpuInstancePossiblePlacements_v2 == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetGpuInstancePossiblePlacements_v2 is not found") return (__nvmlDeviceGetGpuInstancePossiblePlacements_v2)( device, profileId, placements, count) cdef nvmlReturn_t _nvmlDeviceGetGpuInstanceRemainingCapacity(nvmlDevice_t device, unsigned int profileId, unsigned int* count) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetGpuInstanceRemainingCapacity _check_or_init_nvml() if __nvmlDeviceGetGpuInstanceRemainingCapacity == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetGpuInstanceRemainingCapacity is not found") return (__nvmlDeviceGetGpuInstanceRemainingCapacity)( device, profileId, count) cdef nvmlReturn_t _nvmlDeviceCreateGpuInstance(nvmlDevice_t device, unsigned int profileId, nvmlGpuInstance_t* gpuInstance) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceCreateGpuInstance _check_or_init_nvml() if __nvmlDeviceCreateGpuInstance == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceCreateGpuInstance is not found") return (__nvmlDeviceCreateGpuInstance)( device, profileId, gpuInstance) cdef nvmlReturn_t _nvmlDeviceCreateGpuInstanceWithPlacement(nvmlDevice_t device, unsigned int profileId, const nvmlGpuInstancePlacement_t* placement, nvmlGpuInstance_t* gpuInstance) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceCreateGpuInstanceWithPlacement _check_or_init_nvml() if __nvmlDeviceCreateGpuInstanceWithPlacement == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceCreateGpuInstanceWithPlacement is not found") return (__nvmlDeviceCreateGpuInstanceWithPlacement)( device, profileId, placement, gpuInstance) cdef nvmlReturn_t _nvmlGpuInstanceDestroy(nvmlGpuInstance_t gpuInstance) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlGpuInstanceDestroy _check_or_init_nvml() if __nvmlGpuInstanceDestroy == NULL: with gil: raise FunctionNotFoundError("function nvmlGpuInstanceDestroy is not found") return (__nvmlGpuInstanceDestroy)( gpuInstance) cdef nvmlReturn_t _nvmlDeviceGetGpuInstances(nvmlDevice_t device, unsigned int profileId, nvmlGpuInstance_t* gpuInstances, unsigned int* count) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetGpuInstances _check_or_init_nvml() if __nvmlDeviceGetGpuInstances == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetGpuInstances is not found") return (__nvmlDeviceGetGpuInstances)( device, profileId, gpuInstances, count) cdef nvmlReturn_t _nvmlDeviceGetGpuInstanceById(nvmlDevice_t device, unsigned int id, nvmlGpuInstance_t* gpuInstance) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetGpuInstanceById _check_or_init_nvml() if __nvmlDeviceGetGpuInstanceById == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetGpuInstanceById is not found") return (__nvmlDeviceGetGpuInstanceById)( device, id, gpuInstance) cdef nvmlReturn_t _nvmlGpuInstanceGetInfo(nvmlGpuInstance_t gpuInstance, nvmlGpuInstanceInfo_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlGpuInstanceGetInfo _check_or_init_nvml() if __nvmlGpuInstanceGetInfo == NULL: with gil: raise FunctionNotFoundError("function nvmlGpuInstanceGetInfo is not found") return (__nvmlGpuInstanceGetInfo)( gpuInstance, info) cdef nvmlReturn_t _nvmlGpuInstanceGetComputeInstanceProfileInfoV(nvmlGpuInstance_t gpuInstance, unsigned int profile, unsigned int engProfile, nvmlComputeInstanceProfileInfo_v2_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlGpuInstanceGetComputeInstanceProfileInfoV _check_or_init_nvml() if __nvmlGpuInstanceGetComputeInstanceProfileInfoV == NULL: with gil: raise FunctionNotFoundError("function nvmlGpuInstanceGetComputeInstanceProfileInfoV is not found") return (__nvmlGpuInstanceGetComputeInstanceProfileInfoV)( gpuInstance, profile, engProfile, info) cdef nvmlReturn_t _nvmlGpuInstanceGetComputeInstanceRemainingCapacity(nvmlGpuInstance_t gpuInstance, unsigned int profileId, unsigned int* count) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlGpuInstanceGetComputeInstanceRemainingCapacity _check_or_init_nvml() if __nvmlGpuInstanceGetComputeInstanceRemainingCapacity == NULL: with gil: raise FunctionNotFoundError("function nvmlGpuInstanceGetComputeInstanceRemainingCapacity is not found") return (__nvmlGpuInstanceGetComputeInstanceRemainingCapacity)( gpuInstance, profileId, count) cdef nvmlReturn_t _nvmlGpuInstanceGetComputeInstancePossiblePlacements(nvmlGpuInstance_t gpuInstance, unsigned int profileId, nvmlComputeInstancePlacement_t* placements, unsigned int* count) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlGpuInstanceGetComputeInstancePossiblePlacements _check_or_init_nvml() if __nvmlGpuInstanceGetComputeInstancePossiblePlacements == NULL: with gil: raise FunctionNotFoundError("function nvmlGpuInstanceGetComputeInstancePossiblePlacements is not found") return (__nvmlGpuInstanceGetComputeInstancePossiblePlacements)( gpuInstance, profileId, placements, count) cdef nvmlReturn_t _nvmlGpuInstanceCreateComputeInstance(nvmlGpuInstance_t gpuInstance, unsigned int profileId, nvmlComputeInstance_t* computeInstance) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlGpuInstanceCreateComputeInstance _check_or_init_nvml() if __nvmlGpuInstanceCreateComputeInstance == NULL: with gil: raise FunctionNotFoundError("function nvmlGpuInstanceCreateComputeInstance is not found") return (__nvmlGpuInstanceCreateComputeInstance)( gpuInstance, profileId, computeInstance) cdef nvmlReturn_t _nvmlGpuInstanceCreateComputeInstanceWithPlacement(nvmlGpuInstance_t gpuInstance, unsigned int profileId, const nvmlComputeInstancePlacement_t* placement, nvmlComputeInstance_t* computeInstance) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlGpuInstanceCreateComputeInstanceWithPlacement _check_or_init_nvml() if __nvmlGpuInstanceCreateComputeInstanceWithPlacement == NULL: with gil: raise FunctionNotFoundError("function nvmlGpuInstanceCreateComputeInstanceWithPlacement is not found") return (__nvmlGpuInstanceCreateComputeInstanceWithPlacement)( gpuInstance, profileId, placement, computeInstance) cdef nvmlReturn_t _nvmlComputeInstanceDestroy(nvmlComputeInstance_t computeInstance) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlComputeInstanceDestroy _check_or_init_nvml() if __nvmlComputeInstanceDestroy == NULL: with gil: raise FunctionNotFoundError("function nvmlComputeInstanceDestroy is not found") return (__nvmlComputeInstanceDestroy)( computeInstance) cdef nvmlReturn_t _nvmlGpuInstanceGetComputeInstances(nvmlGpuInstance_t gpuInstance, unsigned int profileId, nvmlComputeInstance_t* computeInstances, unsigned int* count) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlGpuInstanceGetComputeInstances _check_or_init_nvml() if __nvmlGpuInstanceGetComputeInstances == NULL: with gil: raise FunctionNotFoundError("function nvmlGpuInstanceGetComputeInstances is not found") return (__nvmlGpuInstanceGetComputeInstances)( gpuInstance, profileId, computeInstances, count) cdef nvmlReturn_t _nvmlGpuInstanceGetComputeInstanceById(nvmlGpuInstance_t gpuInstance, unsigned int id, nvmlComputeInstance_t* computeInstance) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlGpuInstanceGetComputeInstanceById _check_or_init_nvml() if __nvmlGpuInstanceGetComputeInstanceById == NULL: with gil: raise FunctionNotFoundError("function nvmlGpuInstanceGetComputeInstanceById is not found") return (__nvmlGpuInstanceGetComputeInstanceById)( gpuInstance, id, computeInstance) cdef nvmlReturn_t _nvmlComputeInstanceGetInfo_v2(nvmlComputeInstance_t computeInstance, nvmlComputeInstanceInfo_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlComputeInstanceGetInfo_v2 _check_or_init_nvml() if __nvmlComputeInstanceGetInfo_v2 == NULL: with gil: raise FunctionNotFoundError("function nvmlComputeInstanceGetInfo_v2 is not found") return (__nvmlComputeInstanceGetInfo_v2)( computeInstance, info) cdef nvmlReturn_t _nvmlDeviceIsMigDeviceHandle(nvmlDevice_t device, unsigned int* isMigDevice) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceIsMigDeviceHandle _check_or_init_nvml() if __nvmlDeviceIsMigDeviceHandle == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceIsMigDeviceHandle is not found") return (__nvmlDeviceIsMigDeviceHandle)( device, isMigDevice) cdef nvmlReturn_t _nvmlDeviceGetGpuInstanceId(nvmlDevice_t device, unsigned int* id) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetGpuInstanceId _check_or_init_nvml() if __nvmlDeviceGetGpuInstanceId == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetGpuInstanceId is not found") return (__nvmlDeviceGetGpuInstanceId)( device, id) cdef nvmlReturn_t _nvmlDeviceGetComputeInstanceId(nvmlDevice_t device, unsigned int* id) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetComputeInstanceId _check_or_init_nvml() if __nvmlDeviceGetComputeInstanceId == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetComputeInstanceId is not found") return (__nvmlDeviceGetComputeInstanceId)( device, id) cdef nvmlReturn_t _nvmlDeviceGetMaxMigDeviceCount(nvmlDevice_t device, unsigned int* count) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetMaxMigDeviceCount _check_or_init_nvml() if __nvmlDeviceGetMaxMigDeviceCount == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetMaxMigDeviceCount is not found") return (__nvmlDeviceGetMaxMigDeviceCount)( device, count) cdef nvmlReturn_t _nvmlDeviceGetMigDeviceHandleByIndex(nvmlDevice_t device, unsigned int index, nvmlDevice_t* migDevice) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetMigDeviceHandleByIndex _check_or_init_nvml() if __nvmlDeviceGetMigDeviceHandleByIndex == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetMigDeviceHandleByIndex is not found") return (__nvmlDeviceGetMigDeviceHandleByIndex)( device, index, migDevice) cdef nvmlReturn_t _nvmlDeviceGetDeviceHandleFromMigDeviceHandle(nvmlDevice_t migDevice, nvmlDevice_t* device) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetDeviceHandleFromMigDeviceHandle _check_or_init_nvml() if __nvmlDeviceGetDeviceHandleFromMigDeviceHandle == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetDeviceHandleFromMigDeviceHandle is not found") return (__nvmlDeviceGetDeviceHandleFromMigDeviceHandle)( migDevice, device) cdef nvmlReturn_t _nvmlGpmSampleGet(nvmlDevice_t device, nvmlGpmSample_t gpmSample) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlGpmSampleGet _check_or_init_nvml() if __nvmlGpmSampleGet == NULL: with gil: raise FunctionNotFoundError("function nvmlGpmSampleGet is not found") return (__nvmlGpmSampleGet)( device, gpmSample) cdef nvmlReturn_t _nvmlGpmMigSampleGet(nvmlDevice_t device, unsigned int gpuInstanceId, nvmlGpmSample_t gpmSample) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlGpmMigSampleGet _check_or_init_nvml() if __nvmlGpmMigSampleGet == NULL: with gil: raise FunctionNotFoundError("function nvmlGpmMigSampleGet is not found") return (__nvmlGpmMigSampleGet)( device, gpuInstanceId, gpmSample) cdef nvmlReturn_t _nvmlGpmQueryDeviceSupport(nvmlDevice_t device, nvmlGpmSupport_t* gpmSupport) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlGpmQueryDeviceSupport _check_or_init_nvml() if __nvmlGpmQueryDeviceSupport == NULL: with gil: raise FunctionNotFoundError("function nvmlGpmQueryDeviceSupport is not found") return (__nvmlGpmQueryDeviceSupport)( device, gpmSupport) cdef nvmlReturn_t _nvmlGpmQueryIfStreamingEnabled(nvmlDevice_t device, unsigned int* state) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlGpmQueryIfStreamingEnabled _check_or_init_nvml() if __nvmlGpmQueryIfStreamingEnabled == NULL: with gil: raise FunctionNotFoundError("function nvmlGpmQueryIfStreamingEnabled is not found") return (__nvmlGpmQueryIfStreamingEnabled)( device, state) cdef nvmlReturn_t _nvmlGpmSetStreamingEnabled(nvmlDevice_t device, unsigned int state) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlGpmSetStreamingEnabled _check_or_init_nvml() if __nvmlGpmSetStreamingEnabled == NULL: with gil: raise FunctionNotFoundError("function nvmlGpmSetStreamingEnabled is not found") return (__nvmlGpmSetStreamingEnabled)( device, state) cdef nvmlReturn_t _nvmlDeviceGetCapabilities(nvmlDevice_t device, nvmlDeviceCapabilities_t* caps) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetCapabilities _check_or_init_nvml() if __nvmlDeviceGetCapabilities == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetCapabilities is not found") return (__nvmlDeviceGetCapabilities)( device, caps) cdef nvmlReturn_t _nvmlDeviceWorkloadPowerProfileClearRequestedProfiles(nvmlDevice_t device, nvmlWorkloadPowerProfileRequestedProfiles_t* requestedProfiles) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceWorkloadPowerProfileClearRequestedProfiles _check_or_init_nvml() if __nvmlDeviceWorkloadPowerProfileClearRequestedProfiles == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceWorkloadPowerProfileClearRequestedProfiles is not found") return (__nvmlDeviceWorkloadPowerProfileClearRequestedProfiles)( device, requestedProfiles) cdef nvmlReturn_t _nvmlDevicePowerSmoothingActivatePresetProfile(nvmlDevice_t device, nvmlPowerSmoothingProfile_t* profile) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDevicePowerSmoothingActivatePresetProfile _check_or_init_nvml() if __nvmlDevicePowerSmoothingActivatePresetProfile == NULL: with gil: raise FunctionNotFoundError("function nvmlDevicePowerSmoothingActivatePresetProfile is not found") return (__nvmlDevicePowerSmoothingActivatePresetProfile)( device, profile) cdef nvmlReturn_t _nvmlDevicePowerSmoothingUpdatePresetProfileParam(nvmlDevice_t device, nvmlPowerSmoothingProfile_t* profile) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDevicePowerSmoothingUpdatePresetProfileParam _check_or_init_nvml() if __nvmlDevicePowerSmoothingUpdatePresetProfileParam == NULL: with gil: raise FunctionNotFoundError("function nvmlDevicePowerSmoothingUpdatePresetProfileParam is not found") return (__nvmlDevicePowerSmoothingUpdatePresetProfileParam)( device, profile) cdef nvmlReturn_t _nvmlDevicePowerSmoothingSetState(nvmlDevice_t device, nvmlPowerSmoothingState_t* state) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDevicePowerSmoothingSetState _check_or_init_nvml() if __nvmlDevicePowerSmoothingSetState == NULL: with gil: raise FunctionNotFoundError("function nvmlDevicePowerSmoothingSetState is not found") return (__nvmlDevicePowerSmoothingSetState)( device, state) cdef nvmlReturn_t _nvmlDeviceGetAddressingMode(nvmlDevice_t device, nvmlDeviceAddressingMode_t* mode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetAddressingMode _check_or_init_nvml() if __nvmlDeviceGetAddressingMode == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetAddressingMode is not found") return (__nvmlDeviceGetAddressingMode)( device, mode) cdef nvmlReturn_t _nvmlDeviceGetRepairStatus(nvmlDevice_t device, nvmlRepairStatus_t* repairStatus) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetRepairStatus _check_or_init_nvml() if __nvmlDeviceGetRepairStatus == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetRepairStatus is not found") return (__nvmlDeviceGetRepairStatus)( device, repairStatus) cdef nvmlReturn_t _nvmlDeviceGetPowerMizerMode_v1(nvmlDevice_t device, nvmlDevicePowerMizerModes_v1_t* powerMizerMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetPowerMizerMode_v1 _check_or_init_nvml() if __nvmlDeviceGetPowerMizerMode_v1 == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetPowerMizerMode_v1 is not found") return (__nvmlDeviceGetPowerMizerMode_v1)( device, powerMizerMode) cdef nvmlReturn_t _nvmlDeviceSetPowerMizerMode_v1(nvmlDevice_t device, nvmlDevicePowerMizerModes_v1_t* powerMizerMode) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceSetPowerMizerMode_v1 _check_or_init_nvml() if __nvmlDeviceSetPowerMizerMode_v1 == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceSetPowerMizerMode_v1 is not found") return (__nvmlDeviceSetPowerMizerMode_v1)( device, powerMizerMode) cdef nvmlReturn_t _nvmlDeviceGetPdi(nvmlDevice_t device, nvmlPdi_t* pdi) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetPdi _check_or_init_nvml() if __nvmlDeviceGetPdi == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetPdi is not found") return (__nvmlDeviceGetPdi)( device, pdi) cdef nvmlReturn_t _nvmlDeviceSetHostname_v1(nvmlDevice_t device, nvmlHostname_v1_t* hostname) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceSetHostname_v1 _check_or_init_nvml() if __nvmlDeviceSetHostname_v1 == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceSetHostname_v1 is not found") return (__nvmlDeviceSetHostname_v1)( device, hostname) cdef nvmlReturn_t _nvmlDeviceGetHostname_v1(nvmlDevice_t device, nvmlHostname_v1_t* hostname) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetHostname_v1 _check_or_init_nvml() if __nvmlDeviceGetHostname_v1 == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetHostname_v1 is not found") return (__nvmlDeviceGetHostname_v1)( device, hostname) cdef nvmlReturn_t _nvmlDeviceGetNvLinkInfo(nvmlDevice_t device, nvmlNvLinkInfo_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetNvLinkInfo _check_or_init_nvml() if __nvmlDeviceGetNvLinkInfo == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetNvLinkInfo is not found") return (__nvmlDeviceGetNvLinkInfo)( device, info) cdef nvmlReturn_t _nvmlDeviceReadWritePRM_v1(nvmlDevice_t device, nvmlPRMTLV_v1_t* buffer) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceReadWritePRM_v1 _check_or_init_nvml() if __nvmlDeviceReadWritePRM_v1 == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceReadWritePRM_v1 is not found") return (__nvmlDeviceReadWritePRM_v1)( device, buffer) cdef nvmlReturn_t _nvmlDeviceGetGpuInstanceProfileInfoByIdV(nvmlDevice_t device, unsigned int profileId, nvmlGpuInstanceProfileInfo_v2_t* info) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetGpuInstanceProfileInfoByIdV _check_or_init_nvml() if __nvmlDeviceGetGpuInstanceProfileInfoByIdV == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetGpuInstanceProfileInfoByIdV is not found") return (__nvmlDeviceGetGpuInstanceProfileInfoByIdV)( device, profileId, info) cdef nvmlReturn_t _nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts(nvmlDevice_t device, nvmlEccSramUniqueUncorrectedErrorCounts_t* errorCounts) except?_NVMLRETURN_T_INTERNAL_LOADING_ERROR nogil: global __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts _check_or_init_nvml() if __nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts == NULL: with gil: raise FunctionNotFoundError("function nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts is not found") return (__nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts)( device, errorCounts)