NVML APIs 不支持列表(v2.1)

更新时间:
复制为 MD 格式

说明

说明:此列表目前对比基准为 CUDA 13.0.1,CUDA 13.0.2及以后新增 NVML APIs 不在此列表范围内。

下表只列举了目前不支持的 NVML APIs,不在此表格中的 APIs 均支持。

NVML 支持列表参考:https://github.com/NVIDIA/nvidia-settings/blob/580.82.07/src/nvml.h

NVML APIs 目前已导出API符号406个,未支持API 198个,支持率估算 51%.

不支持API可分为以下几类:

  • 涉及到vGPU。

  • 涉及到多数Queries APIs(风扇,graph,机密计算等)PPU 没有对应功能。

  • 涉及到多数 APIs 目前无对应需求。

功能模块

NVML API 名称

备注

Accounting Statistics

nvmlDeviceClearAccountingPids
nvmlDeviceGetAccountingBufferSize
nvmlDeviceGetAccountingMode
nvmlDeviceGetAccountingPids
nvmlDeviceGetAccountingStats
nvmlDeviceSetAccountingMode

System Queries

nvmlSystemGetHicVersion
nvmlSystemGetDriverBranch

Device Queries

nvmlDeviceGetC2cModeInfoV
nvmlDeviceGetRepairStatus
nvmlDeviceGetBoardPartNumber
nvmlDeviceGetInforomVersion
nvmlDeviceGetInforomImageVersion
nvmlDeviceGetInforomConfigurationChecksum
nvmlDeviceValidateInforom
nvmlDeviceGetLastBBXFlushTime
nvmlDeviceGetPersistenceMode
nvmlDeviceGetGpuMaxPcieLinkGeneration
nvmlDeviceGetPcieReplayCounter
nvmlDeviceGetGpcClkVfOffset
nvmlDeviceGetFanSpeed
nvmlDeviceGetFanSpeed_v2
nvmlDeviceGetFanSpeedRPM
nvmlDeviceGetTargetFanSpeed
nvmlDeviceGetMinMaxFanSpeed
nvmlDeviceGetFanControlPolicy_v2
nvmlDeviceGetCoolerInfo
nvmlDeviceGetMarginTemperature
nvmlDeviceGetThermalSettings
nvmlDeviceGetPerformanceState
nvmlDeviceGetPowerState
nvmlDeviceGetDynamicPstatesInfo
nvmlDeviceGetMemClkVfOffset
nvmlDeviceGetMinMaxClockOfPState
nvmlDeviceGetSupportedPerformanceStates
nvmlDeviceGetGpcClkMinMaxVfOffset
nvmlDeviceGetMemClkMinMaxVfOffset
nvmlDeviceGetClockOffsets
nvmlDeviceSetClockOffsets
nvmlDeviceGetPerformanceModes
nvmlDeviceGetCurrentClockFreqs
nvmlDeviceGetPowerMizerMode_v1
nvmlDeviceSetPowerMizerMode_v1
nvmlDeviceGetTotalEnergyConsumption
nvmlDeviceGetDramEncryptionMode
nvmlDeviceSetDramEncryptionMode
nvmlDeviceGetDefaultEccMode
nvmlDeviceGetBoardId
nvmlDeviceGetDetailedEccErrors
nvmlDeviceGetEncoderCapacity
nvmlDeviceGetEncoderStats
nvmlDeviceGetEncoderSessions
nvmlDeviceGetJpgUtilization
nvmlDeviceGetOfaUtilization
nvmlDeviceGetFBCStats
nvmlDeviceGetFBCSessions
nvmlDeviceGetDriverModel_v2
nvmlDeviceGetBridgeChipInfo
nvmlDeviceGetRunningProcessDetailList
nvmlDeviceOnSameBoard
nvmlDeviceGetSamples
nvmlDeviceGetViolationStatus
nvmlDeviceGetPowerSource
nvmlDeviceGetAdaptiveClockInfoStatus
nvmlSystemGetConfComputeState
nvmlDeviceGetConfComputeMemSizeInfo
nvmlSystemGetConfComputeGpusReadyState
nvmlDeviceGetConfComputeProtectedMemoryUsage
nvmlDeviceGetConfComputeGpuCertificate
nvmlDeviceGetConfComputeGpuAttestationReport
nvmlSystemGetConfComputeKeyRotationThresholdInfo
nvmlDeviceSetConfComputeUnprotectedMemSize
nvmlSystemSetConfComputeGpusReadyState
nvmlSystemSetConfComputeKeyRotationThresholdInfo
nvmlSystemGetConfComputeSettings
nvmlDeviceGetGspFirmwareVersion
nvmlDeviceGetGspFirmwareMode
nvmlDeviceGetSramEccErrorStatus
nvmlDeviceGetClkMonStatus
nvmlDeviceGetProcessesUtilizationInfo
nvmlDeviceGetPlatformInfo
nvmlDeviceGetPdi
nvmlDeviceSetHostname_v1
nvmlDeviceGetHostname_v1
nvmlDeviceReadWritePRM_v1
nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts
nvmlVgpuInstanceGetLicenseInfo
nvmlGetBlacklistDeviceCount
nvmlGetBlacklistDeviceInfoByIndex

NvLink Methods

nvmlDeviceResetIcnLinkErrorCounters
nvmlDeviceSetIcnLinkUtilizationControl
nvmlDeviceGetIcnLinkUtilizationControl
nvmlDeviceGetIcnLinkUtilizationCounter
nvmlDeviceFreezeNvLinkUtilizationCounter
nvmlDeviceResetNvLinkUtilizationCounter
nvmlDeviceSetNvLinkDeviceLowPowerThreshold
nvmlSystemSetNvLinkBwMode
nvmlSystemGetNvLinkBwMode
nvmlDeviceGetNvLinkSupportedBwModes
nvmlDeviceGetNvLinkBwMode
nvmlDeviceSetNvLinkBwMode
nvmlDeviceGetNvLinkInfo

Event Handling

nvmlSystemEventSetCreate
nvmlSystemEventSetFree
nvmlSystemRegisterEvents
nvmlSystemEventSetWait

Unit Queries

nvmlUnitGetCount
nvmlUnitGetDevices
nvmlUnitGetFanSpeedInfo
nvmlUnitGetHandleByIndex
nvmlUnitGetLedState
nvmlUnitGetPsuInfo
nvmlUnitGetTemperature
nvmlUnitGetUnitInfo

Util Command

nvmlUnitSetLedState

vGPU Apis

nvmlDeviceGetVgpuHeterogeneousMode
nvmlDeviceGetVgpuTypeSupportedPlacements
nvmlDeviceGetVgpuTypeCreatablePlacements
nvmlDeviceSetVgpuCapabilities
nvmlDeviceSetVgpuHeterogeneousMode
nvmlVgpuInstanceGetPlacementId
nvmlVgpuInstanceGetRuntimeStateSize
nvmlVgpuTypeGetFbReservation
nvmlVgpuTypeGetGspHeapSize
nvmlGetVgpuDriverCapabilities
nvmlDeviceGetVgpuCapabilities
nvmlVgpuTypeGetGpuInstanceProfileId
nvmlVgpuTypeGetNumDisplayHeads
nvmlVgpuTypeGetResolution
nvmlVgpuTypeGetLicense
nvmlVgpuTypeGetFrameRateLimit
nvmlVgpuTypeGetMaxInstancesPerVm
nvmlVgpuTypeGetBAR1Info
nvmlVgpuInstanceGetLicenseStatus
nvmlVgpuInstanceGetFrameRateLimit
nvmlVgpuInstanceGetEncoderCapacity
nvmlVgpuInstanceSetEncoderCapacity
nvmlVgpuInstanceGetEncoderStats
nvmlVgpuInstanceGetEncoderSessions
nvmlVgpuInstanceGetFBCStats
nvmlVgpuInstanceGetFBCSessions
nvmlVgpuInstanceGetGpuInstanceId
nvmlVgpuInstanceGetGpuPciId
nvmlVgpuTypeGetCapabilities
nvmlVgpuInstanceGetMdevUUID
nvmlGpuInstanceGetCreatableVgpus
nvmlVgpuTypeGetMaxInstancesPerGpuInstance
nvmlGpuInstanceGetActiveVgpus
nvmlGpuInstanceSetVgpuSchedulerState
nvmlGpuInstanceGetVgpuSchedulerState
nvmlGpuInstanceGetVgpuSchedulerLog
nvmlGpuInstanceGetVgpuTypeCreatablePlacements
nvmlGpuInstanceGetVgpuHeterogeneousMode
nvmlGpuInstanceSetVgpuHeterogeneousMode
nvmlVgpuInstanceGetMetadata
nvmlDeviceGetVgpuMetadata
nvmlGetVgpuCompatibility
nvmlDeviceGetPgpuMetadataString
nvmlDeviceGetVgpuSchedulerLog
nvmlDeviceGetVgpuSchedulerState
nvmlDeviceGetVgpuSchedulerCapabilities
nvmlDeviceSetVgpuSchedulerState
nvmlGetVgpuVersion
nvmlSetVgpuVersion
nvmlDeviceGetVgpuUtilization
nvmlDeviceGetVgpuInstancesUtilizationInfo
nvmlDeviceGetVgpuProcessUtilization
nvmlDeviceGetVgpuProcessesUtilizationInfo
nvmlVgpuInstanceGetAccountingMode
nvmlVgpuInstanceGetAccountingPids
nvmlVgpuInstanceGetAccountingStats
nvmlVgpuInstanceClearAccountingPids
nvmlVgpuInstanceGetLicenseInfo_v2

Excluded GPU Queries

nvmlGetExcludedDeviceCount
nvmlGetExcludedDeviceInfoByIndex

Power Profile Information

nvmlDeviceWorkloadPowerProfileGetProfilesInfo
nvmlDeviceWorkloadPowerProfileGetCurrentProfiles
nvmlDeviceWorkloadPowerProfileSetRequestedProfiles
nvmlDeviceWorkloadPowerProfileClearRequestedProfiles

Power Smooth

nvmlDevicePowerSmoothingActivatePresetProfile
nvmlDevicePowerSmoothingUpdatePresetProfileParam
nvmlDevicePowerSmoothingSetState

Device Commands

nvmlDeviceClearEccErrorCounts
nvmlDeviceResetMemoryLockedClocks
nvmlDeviceSetAPIRestriction
nvmlDeviceSetAutoBoostedClocksEnabled
nvmlDeviceSetDefaultAutoBoostedClocksEnabled
nvmlDeviceSetDefaultFanSpeed_v2
nvmlDeviceSetDriverModel
nvmlDeviceSetFanControlPolicy
nvmlDeviceSetFanSpeed_v2
nvmlDeviceSetGpcClkVfOffset
nvmlDeviceSetGpuOperationMode
nvmlDeviceSetMemClkVfOffset
nvmlDeviceSetMemoryLockedClocks
nvmlDeviceSetPersistenceMode
nvmlDeviceSetPowerManagementLimit_v2
nvmlDeviceSetTemperatureThreshold

此外还存在少量的API有部分枚举不支持的情况,未列出,以实际运行返回HGML_ERROR_NOT_SUPPORTED或者HGML_ERROR_INVALID_VALUE结果为准。