Documentation ¶
Overview ¶
Package NVML bindings
Index ¶
- Constants
- func ComputeInstanceGetInfo(ComputeInstance ComputeInstance) (ComputeInstanceInfo, Return)
- func DeviceCreateGpuInstance(Device Device, Info *GpuInstanceProfileInfo) (GpuInstance, Return)
- func DeviceDiscoverGpus() (PciInfo, Return)
- func DeviceGetAPIRestriction(Device Device, ApiType RestrictedAPI) (EnableState, Return)
- func DeviceGetAccountingMode(Device Device) (EnableState, Return)
- func DeviceGetAccountingStats(Device Device, Pid uint32) (AccountingStats, Return)
- func DeviceGetActiveVgpus(Device Device) ([]VgpuInstance, Return)
- func DeviceGetArchitecture(Device Device) (DeviceArchitecture, Return)
- func DeviceGetAttributes(Device Device) (DeviceAttributes, Return)
- func DeviceGetAutoBoostedClocksEnabled(Device Device) (EnableState, EnableState, Return)
- func DeviceGetBAR1MemoryInfo(Device Device) (BAR1Memory, Return)
- func DeviceGetBrand(Device Device) (BrandType, Return)
- func DeviceGetBridgeChipInfo(Device Device) (BridgeChipHierarchy, Return)
- func DeviceGetComputeMode(Device Device) (ComputeMode, Return)
- func DeviceGetComputeRunningProcesses(Device Device) ([]ProcessInfo, Return)
- func DeviceGetCreatableVgpus(Device Device) ([]VgpuTypeId, Return)
- func DeviceGetDetailedEccErrors(Device Device, ErrorType MemoryErrorType, CounterType EccCounterType) (EccErrorCounts, Return)
- func DeviceGetDeviceHandleFromMigDeviceHandle(MigDevice Device) (Device, Return)
- func DeviceGetDisplayActive(Device Device) (EnableState, Return)
- func DeviceGetDisplayMode(Device Device) (EnableState, Return)
- func DeviceGetDriverModel(Device Device) (DriverModel, DriverModel, Return)
- func DeviceGetEccMode(Device Device) (EnableState, EnableState, Return)
- func DeviceGetEncoderSessions(Device Device) ([]EncoderSessionInfo, Return)
- func DeviceGetFBCSessions(Device Device) ([]FBCSessionInfo, Return)
- func DeviceGetFBCStats(Device Device) (FBCStats, Return)
- func DeviceGetGpuInstanceById(Device Device, Id int) (GpuInstance, Return)
- func DeviceGetGpuInstancePossiblePlacements(Device Device, Info *GpuInstanceProfileInfo) ([]GpuInstancePlacement, Return)
- func DeviceGetGpuInstanceProfileInfo(Device Device, Profile int) (GpuInstanceProfileInfo, Return)
- func DeviceGetGpuInstances(Device Device, Info *GpuInstanceProfileInfo) ([]GpuInstance, Return)
- func DeviceGetGpuOperationMode(Device Device) (GpuOperationMode, GpuOperationMode, Return)
- func DeviceGetGraphicsRunningProcesses(Device Device) ([]ProcessInfo, Return)
- func DeviceGetGridLicensableFeatures(Device Device) (GridLicensableFeatures, Return)
- func DeviceGetHandleByIndex(Index int) (Device, Return)
- func DeviceGetHandleByPciBusId(PciBusId string) (Device, Return)
- func DeviceGetHandleBySerial(Serial string) (Device, Return)
- func DeviceGetHandleByUUID(Uuid string) (Device, Return)
- func DeviceGetHostVgpuMode(Device Device) (HostVgpuMode, Return)
- func DeviceGetMemoryInfo(Device Device) (Memory, Return)
- func DeviceGetMigDeviceHandleByIndex(device Device, Index int) (Device, Return)
- func DeviceGetNvLinkRemotePciInfo(Device Device, Link int) (PciInfo, Return)
- func DeviceGetNvLinkState(Device Device, Link int) (EnableState, Return)
- func DeviceGetNvLinkUtilizationControl(Device Device, Link int, Counter int) (NvLinkUtilizationControl, Return)
- func DeviceGetP2PStatus(Device1 Device, Device2 Device, P2pIndex GpuP2PCapsIndex) (GpuP2PStatus, Return)
- func DeviceGetPciInfo(Device Device) (PciInfo, Return)
- func DeviceGetPerformanceState(Device Device) (Pstates, Return)
- func DeviceGetPersistenceMode(Device Device) (EnableState, Return)
- func DeviceGetPowerManagementMode(Device Device) (EnableState, Return)
- func DeviceGetPowerState(Device Device) (Pstates, Return)
- func DeviceGetProcessUtilization(Device Device, LastSeenTimeStamp uint64) ([]ProcessUtilizationSample, Return)
- func DeviceGetRetiredPagesPendingStatus(Device Device) (EnableState, Return)
- func DeviceGetSamples(Device Device, _type SamplingType, LastSeenTimeStamp uint64) (ValueType, []Sample, Return)
- func DeviceGetSupportedVgpus(Device Device) ([]VgpuTypeId, Return)
- func DeviceGetTopologyCommonAncestor(Device1 Device, Device2 Device) (GpuTopologyLevel, Return)
- func DeviceGetTopologyNearestGpus(device Device, Level GpuTopologyLevel) ([]Device, Return)
- func DeviceGetUtilizationRates(Device Device) (Utilization, Return)
- func DeviceGetVgpuMetadata(Device Device) (VgpuPgpuMetadata, Return)
- func DeviceGetVgpuProcessUtilization(Device Device, LastSeenTimeStamp uint64) ([]VgpuProcessUtilizationSample, Return)
- func DeviceGetVgpuUtilization(Device Device, LastSeenTimeStamp uint64) (ValueType, []VgpuInstanceUtilizationSample, Return)
- func DeviceGetViolationStatus(Device Device, PerfPolicyType PerfPolicyType) (ViolationTime, Return)
- func DeviceGetVirtualizationMode(Device Device) (GpuVirtualizationMode, Return)
- func DeviceQueryDrainState(PciInfo *PciInfo) (EnableState, Return)
- func DeviceSetMigMode(Device Device, Mode int) (Return, Return)
- func ErrorString(Result Return) string
- func EventSetCreate() (EventSet, Return)
- func EventSetWait(Set EventSet, Timeoutms uint32) (EventData, Return)
- func GetBlacklistDeviceInfoByIndex(Index int) (BlacklistDeviceInfo, Return)
- func GetVgpuCompatibility(nvmlVgpuMetadata *nvmlVgpuMetadata, PgpuMetadata *nvmlVgpuPgpuMetadata) (VgpuPgpuCompatibility, Return)
- func GetVgpuVersion() (VgpuVersion, VgpuVersion, Return)
- func GpuInstanceCreateComputeInstance(GpuInstance GpuInstance, Info *ComputeInstanceProfileInfo) (ComputeInstance, Return)
- func GpuInstanceGetComputeInstanceById(GpuInstance GpuInstance, Id int) (ComputeInstance, Return)
- func GpuInstanceGetComputeInstanceProfileInfo(GpuInstance GpuInstance, Profile int, EngProfile int) (ComputeInstanceProfileInfo, Return)
- func GpuInstanceGetComputeInstances(GpuInstance GpuInstance, Info *ComputeInstanceProfileInfo) ([]ComputeInstance, Return)
- func GpuInstanceGetInfo(GpuInstance GpuInstance) (GpuInstanceInfo, Return)
- func SystemGetHicVersion() ([]HwbcEntry, Return)
- func SystemGetTopologyGpuSet(CpuNumber int) ([]Device, Return)
- func UnitGetDevices(Unit Unit) ([]Device, Return)
- func UnitGetFanSpeedInfo(Unit Unit) (UnitFanSpeeds, Return)
- func UnitGetHandleByIndex(Index int) (Unit, Return)
- func UnitGetLedState(Unit Unit) (LedState, Return)
- func UnitGetPsuInfo(Unit Unit) (PSUInfo, Return)
- func UnitGetUnitInfo(Unit Unit) (UnitInfo, Return)
- func VgpuInstanceGetAccountingMode(VgpuInstance VgpuInstance) (EnableState, Return)
- func VgpuInstanceGetAccountingStats(VgpuInstance VgpuInstance, Pid int) (AccountingStats, Return)
- func VgpuInstanceGetEccMode(VgpuInstance VgpuInstance) (EnableState, Return)
- func VgpuInstanceGetEncoderSessions(VgpuInstance VgpuInstance) (int, EncoderSessionInfo, Return)
- func VgpuInstanceGetFBCSessions(VgpuInstance VgpuInstance) (int, FBCSessionInfo, Return)
- func VgpuInstanceGetFBCStats(VgpuInstance VgpuInstance) (FBCStats, Return)
- func VgpuInstanceGetMetadata(VgpuInstance VgpuInstance) (VgpuMetadata, Return)
- func VgpuInstanceGetType(VgpuInstance VgpuInstance) (VgpuTypeId, Return)
- func VgpuInstanceGetVmID(VgpuInstance VgpuInstance) (string, VgpuVmIdType, Return)
- type AccountingStats
- type AffinityScope
- type BAR1Memory
- type BlacklistDeviceInfo
- type BrandType
- type BridgeChipHierarchy
- type BridgeChipInfo
- type BridgeChipType
- type ClockId
- type ClockLimitId
- type ClockType
- type ComputeInstance
- type ComputeInstanceInfo
- type ComputeInstanceProfileInfo
- type ComputeMode
- type DetachGpuState
- type Device
- func (Device Device) ClearAccountingPids() Return
- func (Device Device) ClearCpuAffinity() Return
- func (Device Device) ClearEccErrorCounts(CounterType EccCounterType) Return
- func (Device Device) CreateGpuInstance(Info *GpuInstanceProfileInfo) (GpuInstance, Return)
- func (Device Device) FreezeNvLinkUtilizationCounter(Link int, Counter int, Freeze EnableState) Return
- func (Device Device) GetAPIRestriction(ApiType RestrictedAPI) (EnableState, Return)
- func (Device Device) GetAccountingBufferSize() (int, Return)
- func (Device Device) GetAccountingMode() (EnableState, Return)
- func (Device Device) GetAccountingPids() ([]int, Return)
- func (Device Device) GetAccountingStats(Pid uint32) (AccountingStats, Return)
- func (Device Device) GetActiveVgpus() ([]VgpuInstance, Return)
- func (Device Device) GetApplicationsClock(ClockType ClockType) (uint32, Return)
- func (Device Device) GetArchitecture() (DeviceArchitecture, Return)
- func (Device Device) GetAttributes() (DeviceAttributes, Return)
- func (Device Device) GetAutoBoostedClocksEnabled() (EnableState, EnableState, Return)
- func (Device Device) GetBAR1MemoryInfo() (BAR1Memory, Return)
- func (Device Device) GetBoardId() (uint32, Return)
- func (Device Device) GetBoardPartNumber() (string, Return)
- func (Device Device) GetBrand() (BrandType, Return)
- func (Device Device) GetBridgeChipInfo() (BridgeChipHierarchy, Return)
- func (Device Device) GetClock(ClockType ClockType, ClockId ClockId) (uint32, Return)
- func (Device Device) GetClockInfo(_type ClockType) (uint32, Return)
- func (Device Device) GetComputeInstanceId() (int, Return)
- func (Device Device) GetComputeMode() (ComputeMode, Return)
- func (Device Device) GetComputeRunningProcesses() ([]ProcessInfo, Return)
- func (Device Device) GetCpuAffinity(NumCPUs int) ([]uint, Return)
- func (Device Device) GetCpuAffinityWithinScope(NumCPUs int, Scope AffinityScope) ([]uint, Return)
- func (Device Device) GetCreatableVgpus() ([]VgpuTypeId, Return)
- func (Device Device) GetCudaComputeCapability() (int, int, Return)
- func (Device Device) GetCurrPcieLinkGeneration() (int, Return)
- func (Device Device) GetCurrPcieLinkWidth() (int, Return)
- func (Device Device) GetCurrentClocksThrottleReasons() (uint64, Return)
- func (Device Device) GetDecoderUtilization() (uint32, uint32, Return)
- func (Device Device) GetDefaultApplicationsClock(ClockType ClockType) (uint32, Return)
- func (Device Device) GetDetailedEccErrors(ErrorType MemoryErrorType, CounterType EccCounterType) (EccErrorCounts, Return)
- func (MigDevice Device) GetDeviceHandleFromMigDeviceHandle() (Device, Return)
- func (Device Device) GetDisplayActive() (EnableState, Return)
- func (Device Device) GetDisplayMode() (EnableState, Return)
- func (Device Device) GetDriverModel() (DriverModel, DriverModel, Return)
- func (Device Device) GetEccMode() (EnableState, EnableState, Return)
- func (Device Device) GetEncoderCapacity(EncoderQueryType EncoderType) (int, Return)
- func (Device Device) GetEncoderSessions() ([]EncoderSessionInfo, Return)
- func (Device Device) GetEncoderStats() (int, uint32, uint32, Return)
- func (Device Device) GetEncoderUtilization() (uint32, uint32, Return)
- func (Device Device) GetEnforcedPowerLimit() (uint32, Return)
- func (Device Device) GetFBCSessions() ([]FBCSessionInfo, Return)
- func (Device Device) GetFBCStats() (FBCStats, Return)
- func (Device Device) GetFanSpeed() (uint32, Return)
- func (Device Device) GetFanSpeed_v2(Fan int) (uint32, Return)
- func (Device Device) GetFieldValues(Values []FieldValue) Return
- func (Device Device) GetGpuInstanceById(Id int) (GpuInstance, Return)
- func (Device Device) GetGpuInstanceId() (int, Return)
- func (Device Device) GetGpuInstancePossiblePlacements(Info *GpuInstanceProfileInfo) ([]GpuInstancePlacement, Return)
- func (Device Device) GetGpuInstanceProfileInfo(Profile int) (GpuInstanceProfileInfo, Return)
- func (Device Device) GetGpuInstanceRemainingCapacity(Info *GpuInstanceProfileInfo) (int, Return)
- func (Device Device) GetGpuInstances(Info *GpuInstanceProfileInfo) ([]GpuInstance, Return)
- func (Device Device) GetGpuOperationMode() (GpuOperationMode, GpuOperationMode, Return)
- func (Device Device) GetGraphicsRunningProcesses() ([]ProcessInfo, Return)
- func (Device Device) GetGridLicensableFeatures() (GridLicensableFeatures, Return)
- func (Device Device) GetHostVgpuMode() (HostVgpuMode, Return)
- func (Device Device) GetIndex() (int, Return)
- func (Device Device) GetInforomConfigurationChecksum() (uint32, Return)
- func (Device Device) GetInforomImageVersion() (string, Return)
- func (Device Device) GetInforomVersion(Object InforomObject) (string, Return)
- func (Device Device) GetMaxClockInfo(_type ClockType) (uint32, Return)
- func (Device Device) GetMaxCustomerBoostClock(ClockType ClockType) (uint32, Return)
- func (Device Device) GetMaxMigDeviceCount() (int, Return)
- func (Device Device) GetMaxPcieLinkGeneration() (int, Return)
- func (Device Device) GetMaxPcieLinkWidth() (int, Return)
- func (Device Device) GetMemoryAffinity(NumNodes int, Scope AffinityScope) ([]uint, Return)
- func (Device Device) GetMemoryErrorCounter(ErrorType MemoryErrorType, CounterType EccCounterType, ...) (uint64, Return)
- func (Device Device) GetMemoryInfo() (Memory, Return)
- func (Device Device) GetMigDeviceHandleByIndex(Index int) (Device, Return)
- func (Device Device) GetMigMode() (int, int, Return)
- func (Device Device) GetMinorNumber() (int, Return)
- func (Device Device) GetMultiGpuBoard() (int, Return)
- func (Device Device) GetName() (string, Return)
- func (Device Device) GetNvLinkCapability(Link int, Capability NvLinkCapability) (uint32, Return)
- func (Device Device) GetNvLinkErrorCounter(Link int, Counter NvLinkErrorCounter) (uint64, Return)
- func (Device Device) GetNvLinkRemotePciInfo(Link int) (PciInfo, Return)
- func (Device Device) GetNvLinkState(Link int) (EnableState, Return)
- func (Device Device) GetNvLinkUtilizationControl(Link int, Counter int) (NvLinkUtilizationControl, Return)
- func (Device Device) GetNvLinkUtilizationCounter(Link int, Counter int) (uint64, uint64, Return)
- func (Device Device) GetNvLinkVersion(Link int) (uint32, Return)
- func (Device1 Device) GetP2PStatus(Device2 Device, P2pIndex GpuP2PCapsIndex) (GpuP2PStatus, Return)
- func (Device Device) GetPciInfo() (PciInfo, Return)
- func (Device Device) GetPcieReplayCounter() (int, Return)
- func (Device Device) GetPcieThroughput(Counter PcieUtilCounter) (uint32, Return)
- func (Device Device) GetPerformanceState() (Pstates, Return)
- func (Device Device) GetPersistenceMode() (EnableState, Return)
- func (Device Device) GetPgpuMetadataString() (string, Return)
- func (Device Device) GetPowerManagementDefaultLimit() (uint32, Return)
- func (Device Device) GetPowerManagementLimit() (uint32, Return)
- func (Device Device) GetPowerManagementLimitConstraints() (uint32, uint32, Return)
- func (Device Device) GetPowerManagementMode() (EnableState, Return)
- func (Device Device) GetPowerState() (Pstates, Return)
- func (Device Device) GetPowerUsage() (uint32, Return)
- func (Device Device) GetProcessUtilization(LastSeenTimeStamp uint64) ([]ProcessUtilizationSample, Return)
- func (Device Device) GetRemappedRows() (int, int, bool, bool, Return)
- func (Device Device) GetRetiredPages(Cause PageRetirementCause) ([]uint64, Return)
- func (Device Device) GetRetiredPagesPendingStatus() (EnableState, Return)
- func (Device Device) GetRetiredPages_v2(Cause PageRetirementCause) ([]uint64, []uint64, Return)
- func (Device Device) GetSamples(_type SamplingType, LastSeenTimeStamp uint64) (ValueType, []Sample, Return)
- func (Device Device) GetSerial() (string, Return)
- func (Device Device) GetSupportedClocksThrottleReasons() (uint64, Return)
- func (Device Device) GetSupportedEventTypes() (uint64, Return)
- func (Device Device) GetSupportedGraphicsClocks(MemoryClockMHz int) (int, uint32, Return)
- func (Device Device) GetSupportedMemoryClocks() (int, uint32, Return)
- func (Device Device) GetSupportedVgpus() ([]VgpuTypeId, Return)
- func (Device Device) GetTemperature(SensorType TemperatureSensors) (uint32, Return)
- func (Device Device) GetTemperatureThreshold(ThresholdType TemperatureThresholds) (uint32, Return)
- func (Device1 Device) GetTopologyCommonAncestor(Device2 Device) (GpuTopologyLevel, Return)
- func (Device Device) GetTopologyNearestGpus(Level GpuTopologyLevel) ([]Device, Return)
- func (Device Device) GetTotalEccErrors(ErrorType MemoryErrorType, CounterType EccCounterType) (uint64, Return)
- func (Device Device) GetTotalEnergyConsumption() (uint64, Return)
- func (Device Device) GetUUID() (string, Return)
- func (Device Device) GetUtilizationRates() (Utilization, Return)
- func (Device Device) GetVbiosVersion() (string, Return)
- func (Device Device) GetVgpuMetadata() (VgpuPgpuMetadata, Return)
- func (Device Device) GetVgpuProcessUtilization(LastSeenTimeStamp uint64) ([]VgpuProcessUtilizationSample, Return)
- func (Device Device) GetVgpuUtilization(LastSeenTimeStamp uint64) (ValueType, []VgpuInstanceUtilizationSample, Return)
- func (Device Device) GetViolationStatus(PerfPolicyType PerfPolicyType) (ViolationTime, Return)
- func (Device Device) GetVirtualizationMode() (GpuVirtualizationMode, Return)
- func (Device Device) IsMigDeviceHandle() (bool, Return)
- func (Device1 Device) OnSameBoard(Device2 Device) (int, Return)
- func (Device Device) RegisterEvents(EventTypes uint64, Set EventSet) Return
- func (Device Device) ResetApplicationsClocks() Return
- func (Device Device) ResetGpuLockedClocks() Return
- func (Device Device) ResetNvLinkErrorCounters(Link int) Return
- func (Device Device) ResetNvLinkUtilizationCounter(Link int, Counter int) Return
- func (Device Device) SetAPIRestriction(ApiType RestrictedAPI, IsRestricted EnableState) Return
- func (Device Device) SetAccountingMode(Mode EnableState) Return
- func (Device Device) SetApplicationsClocks(MemClockMHz uint32, GraphicsClockMHz uint32) Return
- func (Device Device) SetAutoBoostedClocksEnabled(Enabled EnableState) Return
- func (Device Device) SetComputeMode(Mode ComputeMode) Return
- func (Device Device) SetCpuAffinity() Return
- func (Device Device) SetDefaultAutoBoostedClocksEnabled(Enabled EnableState, Flags uint32) Return
- func (Device Device) SetDriverModel(DriverModel DriverModel, Flags uint32) Return
- func (Device Device) SetEccMode(Ecc EnableState) Return
- func (Device Device) SetGpuLockedClocks(MinGpuClockMHz uint32, MaxGpuClockMHz uint32) Return
- func (Device Device) SetGpuOperationMode(Mode GpuOperationMode) Return
- func (Device Device) SetMigMode(Mode int) (Return, Return)
- func (Device Device) SetNvLinkUtilizationControl(Link int, Counter int, Control *NvLinkUtilizationControl, Reset bool) Return
- func (Device Device) SetPersistenceMode(Mode EnableState) Return
- func (Device Device) SetPowerManagementLimit(Limit uint32) Return
- func (Device Device) SetVirtualizationMode(VirtualMode GpuVirtualizationMode) Return
- func (Device Device) ValidateInforom() Return
- func (Device Device) VgpuTypeGetMaxInstances(VgpuTypeId VgpuTypeId) (int, Return)
- type DeviceArchitecture
- type DeviceAttributes
- type DriverModel
- type EccBitType
- type EccCounterType
- type EccErrorCounts
- type EnableState
- type EncoderSessionInfo
- type EncoderType
- type EventData
- type EventSet
- type FBCSessionInfo
- type FBCSessionType
- type FBCStats
- type FanState
- type FieldValue
- type GpuInstance
- func (GpuInstance GpuInstance) CreateComputeInstance(Info *ComputeInstanceProfileInfo) (ComputeInstance, Return)
- func (GpuInstance GpuInstance) Destroy() Return
- func (GpuInstance GpuInstance) GetComputeInstanceById(Id int) (ComputeInstance, Return)
- func (GpuInstance GpuInstance) GetComputeInstanceProfileInfo(Profile int, EngProfile int) (ComputeInstanceProfileInfo, Return)
- func (GpuInstance GpuInstance) GetComputeInstanceRemainingCapacity(Info *ComputeInstanceProfileInfo) (int, Return)
- func (GpuInstance GpuInstance) GetComputeInstances(Info *ComputeInstanceProfileInfo) ([]ComputeInstance, Return)
- func (GpuInstance GpuInstance) GetInfo() (GpuInstanceInfo, Return)
- type GpuInstanceInfo
- type GpuInstancePlacement
- type GpuInstanceProfileInfo
- type GpuOperationMode
- type GpuP2PCapsIndex
- type GpuP2PStatus
- type GpuTopologyLevel
- type GpuVirtualizationMode
- type GridLicensableFeature
- type GridLicensableFeatures
- type GridLicenseFeatureCode
- type HostVgpuMode
- type HwbcEntry
- type InforomObject
- type LedColor
- type LedState
- type Memory
- type MemoryErrorType
- type MemoryLocation
- type NvLinkCapability
- type NvLinkErrorCounter
- type NvLinkUtilizationControl
- type NvLinkUtilizationCountPktTypes
- type NvLinkUtilizationCountUnits
- type PSUInfo
- type PageRetirementCause
- type PciInfo
- type PcieLinkState
- type PcieUtilCounter
- type PerfPolicyType
- type ProcessInfo
- type ProcessUtilizationSample
- type Pstates
- type RestrictedAPI
- type Return
- func ComputeInstanceDestroy(ComputeInstance ComputeInstance) Return
- func DeviceClearAccountingPids(Device Device) Return
- func DeviceClearCpuAffinity(Device Device) Return
- func DeviceClearEccErrorCounts(Device Device, CounterType EccCounterType) Return
- func DeviceFreezeNvLinkUtilizationCounter(Device Device, Link int, Counter int, Freeze EnableState) Return
- func DeviceGetAccountingBufferSize(Device Device) (int, Return)
- func DeviceGetAccountingPids(Device Device) ([]int, Return)
- func DeviceGetApplicationsClock(Device Device, ClockType ClockType) (uint32, Return)
- func DeviceGetBoardId(Device Device) (uint32, Return)
- func DeviceGetBoardPartNumber(Device Device) (string, Return)
- func DeviceGetClock(Device Device, ClockType ClockType, ClockId ClockId) (uint32, Return)
- func DeviceGetClockInfo(Device Device, _type ClockType) (uint32, Return)
- func DeviceGetComputeInstanceId(Device Device) (int, Return)
- func DeviceGetCount() (int, Return)
- func DeviceGetCpuAffinity(Device Device, NumCPUs int) ([]uint, Return)
- func DeviceGetCpuAffinityWithinScope(Device Device, NumCPUs int, Scope AffinityScope) ([]uint, Return)
- func DeviceGetCudaComputeCapability(Device Device) (int, int, Return)
- func DeviceGetCurrPcieLinkGeneration(Device Device) (int, Return)
- func DeviceGetCurrPcieLinkWidth(Device Device) (int, Return)
- func DeviceGetCurrentClocksThrottleReasons(Device Device) (uint64, Return)
- func DeviceGetDecoderUtilization(Device Device) (uint32, uint32, Return)
- func DeviceGetDefaultApplicationsClock(Device Device, ClockType ClockType) (uint32, Return)
- func DeviceGetEncoderCapacity(Device Device, EncoderQueryType EncoderType) (int, Return)
- func DeviceGetEncoderStats(Device Device) (int, uint32, uint32, Return)
- func DeviceGetEncoderUtilization(Device Device) (uint32, uint32, Return)
- func DeviceGetEnforcedPowerLimit(Device Device) (uint32, Return)
- func DeviceGetFanSpeed(Device Device) (uint32, Return)
- func DeviceGetFanSpeed_v2(Device Device, Fan int) (uint32, Return)
- func DeviceGetFieldValues(Device Device, Values []FieldValue) Return
- func DeviceGetGpuInstanceId(Device Device) (int, Return)
- func DeviceGetGpuInstanceRemainingCapacity(Device Device, Info *GpuInstanceProfileInfo) (int, Return)
- func DeviceGetIndex(Device Device) (int, Return)
- func DeviceGetInforomConfigurationChecksum(Device Device) (uint32, Return)
- func DeviceGetInforomImageVersion(Device Device) (string, Return)
- func DeviceGetInforomVersion(Device Device, Object InforomObject) (string, Return)
- func DeviceGetMaxClockInfo(Device Device, _type ClockType) (uint32, Return)
- func DeviceGetMaxCustomerBoostClock(Device Device, ClockType ClockType) (uint32, Return)
- func DeviceGetMaxMigDeviceCount(Device Device) (int, Return)
- func DeviceGetMaxPcieLinkGeneration(Device Device) (int, Return)
- func DeviceGetMaxPcieLinkWidth(Device Device) (int, Return)
- func DeviceGetMemoryAffinity(Device Device, NumNodes int, Scope AffinityScope) ([]uint, Return)
- func DeviceGetMemoryErrorCounter(Device Device, ErrorType MemoryErrorType, CounterType EccCounterType, ...) (uint64, Return)
- func DeviceGetMigMode(Device Device) (int, int, Return)
- func DeviceGetMinorNumber(Device Device) (int, Return)
- func DeviceGetMultiGpuBoard(Device Device) (int, Return)
- func DeviceGetName(Device Device) (string, Return)
- func DeviceGetNvLinkCapability(Device Device, Link int, Capability NvLinkCapability) (uint32, Return)
- func DeviceGetNvLinkErrorCounter(Device Device, Link int, Counter NvLinkErrorCounter) (uint64, Return)
- func DeviceGetNvLinkUtilizationCounter(Device Device, Link int, Counter int) (uint64, uint64, Return)
- func DeviceGetNvLinkVersion(Device Device, Link int) (uint32, Return)
- func DeviceGetPcieReplayCounter(Device Device) (int, Return)
- func DeviceGetPcieThroughput(Device Device, Counter PcieUtilCounter) (uint32, Return)
- func DeviceGetPgpuMetadataString(Device Device) (string, Return)
- func DeviceGetPowerManagementDefaultLimit(Device Device) (uint32, Return)
- func DeviceGetPowerManagementLimit(Device Device) (uint32, Return)
- func DeviceGetPowerManagementLimitConstraints(Device Device) (uint32, uint32, Return)
- func DeviceGetPowerUsage(Device Device) (uint32, Return)
- func DeviceGetRemappedRows(Device Device) (int, int, bool, bool, Return)
- func DeviceGetRetiredPages(Device Device, Cause PageRetirementCause) ([]uint64, Return)
- func DeviceGetRetiredPages_v2(Device Device, Cause PageRetirementCause) ([]uint64, []uint64, Return)
- func DeviceGetSerial(Device Device) (string, Return)
- func DeviceGetSupportedClocksThrottleReasons(Device Device) (uint64, Return)
- func DeviceGetSupportedEventTypes(Device Device) (uint64, Return)
- func DeviceGetSupportedGraphicsClocks(Device Device, MemoryClockMHz int) (int, uint32, Return)
- func DeviceGetSupportedMemoryClocks(Device Device) (int, uint32, Return)
- func DeviceGetTemperature(Device Device, SensorType TemperatureSensors) (uint32, Return)
- func DeviceGetTemperatureThreshold(Device Device, ThresholdType TemperatureThresholds) (uint32, Return)
- func DeviceGetTotalEccErrors(Device Device, ErrorType MemoryErrorType, CounterType EccCounterType) (uint64, Return)
- func DeviceGetTotalEnergyConsumption(Device Device) (uint64, Return)
- func DeviceGetUUID(Device Device) (string, Return)
- func DeviceGetVbiosVersion(Device Device) (string, Return)
- func DeviceIsMigDeviceHandle(Device Device) (bool, Return)
- func DeviceModifyDrainState(PciInfo *PciInfo, NewState EnableState) Return
- func DeviceOnSameBoard(Device1 Device, Device2 Device) (int, Return)
- func DeviceRegisterEvents(Device Device, EventTypes uint64, Set EventSet) Return
- func DeviceRemoveGpu(PciInfo *PciInfo) Return
- func DeviceRemoveGpu_v2(PciInfo *PciInfo, GpuState DetachGpuState, LinkState PcieLinkState) Return
- func DeviceResetApplicationsClocks(Device Device) Return
- func DeviceResetGpuLockedClocks(Device Device) Return
- func DeviceResetNvLinkErrorCounters(Device Device, Link int) Return
- func DeviceResetNvLinkUtilizationCounter(Device Device, Link int, Counter int) Return
- func DeviceSetAPIRestriction(Device Device, ApiType RestrictedAPI, IsRestricted EnableState) Return
- func DeviceSetAccountingMode(Device Device, Mode EnableState) Return
- func DeviceSetApplicationsClocks(Device Device, MemClockMHz uint32, GraphicsClockMHz uint32) Return
- func DeviceSetAutoBoostedClocksEnabled(Device Device, Enabled EnableState) Return
- func DeviceSetComputeMode(Device Device, Mode ComputeMode) Return
- func DeviceSetCpuAffinity(Device Device) Return
- func DeviceSetDefaultAutoBoostedClocksEnabled(Device Device, Enabled EnableState, Flags uint32) Return
- func DeviceSetDriverModel(Device Device, DriverModel DriverModel, Flags uint32) Return
- func DeviceSetEccMode(Device Device, Ecc EnableState) Return
- func DeviceSetGpuLockedClocks(Device Device, MinGpuClockMHz uint32, MaxGpuClockMHz uint32) Return
- func DeviceSetGpuOperationMode(Device Device, Mode GpuOperationMode) Return
- func DeviceSetNvLinkUtilizationControl(Device Device, Link int, Counter int, Control *NvLinkUtilizationControl, ...) Return
- func DeviceSetPersistenceMode(Device Device, Mode EnableState) Return
- func DeviceSetPowerManagementLimit(Device Device, Limit uint32) Return
- func DeviceSetVirtualizationMode(Device Device, VirtualMode GpuVirtualizationMode) Return
- func DeviceValidateInforom(Device Device) Return
- func EventSetFree(Set EventSet) Return
- func GetBlacklistDeviceCount() (int, Return)
- func GpuInstanceDestroy(GpuInstance GpuInstance) Return
- func GpuInstanceGetComputeInstanceRemainingCapacity(GpuInstance GpuInstance, Info *ComputeInstanceProfileInfo) (int, Return)
- func Init() Return
- func InitWithFlags(Flags uint32) Return
- func SetVgpuVersion(VgpuVersion *VgpuVersion) Return
- func Shutdown() Return
- func SystemGetCudaDriverVersion() (int, Return)
- func SystemGetCudaDriverVersion_v2() (int, Return)
- func SystemGetDriverVersion() (string, Return)
- func SystemGetNVMLVersion() (string, Return)
- func SystemGetProcessName(Pid int) (string, Return)
- func UnitGetCount() (int, Return)
- func UnitGetTemperature(Unit Unit, Type int) (uint32, Return)
- func UnitSetLedState(Unit Unit, Color LedColor) Return
- func VgpuInstanceClearAccountingPids(VgpuInstance VgpuInstance) Return
- func VgpuInstanceGetAccountingPids(VgpuInstance VgpuInstance) ([]int, Return)
- func VgpuInstanceGetEncoderCapacity(VgpuInstance VgpuInstance) (int, Return)
- func VgpuInstanceGetEncoderStats(VgpuInstance VgpuInstance) (int, uint32, uint32, Return)
- func VgpuInstanceGetFbUsage(VgpuInstance VgpuInstance) (uint64, Return)
- func VgpuInstanceGetFrameRateLimit(VgpuInstance VgpuInstance) (uint32, Return)
- func VgpuInstanceGetLicenseStatus(VgpuInstance VgpuInstance) (int, Return)
- func VgpuInstanceGetMdevUUID(VgpuInstance VgpuInstance) (string, Return)
- func VgpuInstanceGetUUID(VgpuInstance VgpuInstance) (string, Return)
- func VgpuInstanceGetVmDriverVersion(VgpuInstance VgpuInstance) (string, Return)
- func VgpuInstanceSetEncoderCapacity(VgpuInstance VgpuInstance, EncoderCapacity int) Return
- func VgpuTypeGetClass(VgpuTypeId VgpuTypeId) (string, Return)
- func VgpuTypeGetDeviceID(VgpuTypeId VgpuTypeId) (uint64, uint64, Return)
- func VgpuTypeGetFrameRateLimit(VgpuTypeId VgpuTypeId) (uint32, Return)
- func VgpuTypeGetFramebufferSize(VgpuTypeId VgpuTypeId) (uint64, Return)
- func VgpuTypeGetLicense(VgpuTypeId VgpuTypeId) (string, Return)
- func VgpuTypeGetMaxInstances(Device Device, VgpuTypeId VgpuTypeId) (int, Return)
- func VgpuTypeGetMaxInstancesPerVm(VgpuTypeId VgpuTypeId) (int, Return)
- func VgpuTypeGetName(VgpuTypeId VgpuTypeId) (string, Return)
- func VgpuTypeGetNumDisplayHeads(VgpuTypeId VgpuTypeId) (int, Return)
- func VgpuTypeGetResolution(VgpuTypeId VgpuTypeId, DisplayIndex int) (uint32, uint32, Return)
- type Sample
- type SamplingType
- type TemperatureSensors
- type TemperatureThresholds
- type Unit
- func (Unit Unit) GetDevices() ([]Device, Return)
- func (Unit Unit) GetFanSpeedInfo() (UnitFanSpeeds, Return)
- func (Unit Unit) GetLedState() (LedState, Return)
- func (Unit Unit) GetPsuInfo() (PSUInfo, Return)
- func (Unit Unit) GetTemperature(Type int) (uint32, Return)
- func (Unit Unit) GetUnitInfo() (UnitInfo, Return)
- func (Unit Unit) SetLedState(Color LedColor) Return
- type UnitFanInfo
- type UnitFanSpeeds
- type UnitInfo
- type Utilization
- type Value
- type ValueType
- type VgpuGuestInfoState
- type VgpuInstance
- func (VgpuInstance VgpuInstance) ClearAccountingPids() Return
- func (VgpuInstance VgpuInstance) GetAccountingMode() (EnableState, Return)
- func (VgpuInstance VgpuInstance) GetAccountingPids() ([]int, Return)
- func (VgpuInstance VgpuInstance) GetAccountingStats(Pid int) (AccountingStats, Return)
- func (VgpuInstance VgpuInstance) GetEccMode() (EnableState, Return)
- func (VgpuInstance VgpuInstance) GetEncoderCapacity() (int, Return)
- func (VgpuInstance VgpuInstance) GetEncoderSessions() (int, EncoderSessionInfo, Return)
- func (VgpuInstance VgpuInstance) GetEncoderStats() (int, uint32, uint32, Return)
- func (VgpuInstance VgpuInstance) GetFBCSessions() (int, FBCSessionInfo, Return)
- func (VgpuInstance VgpuInstance) GetFBCStats() (FBCStats, Return)
- func (VgpuInstance VgpuInstance) GetFbUsage() (uint64, Return)
- func (VgpuInstance VgpuInstance) GetFrameRateLimit() (uint32, Return)
- func (VgpuInstance VgpuInstance) GetLicenseStatus() (int, Return)
- func (VgpuInstance VgpuInstance) GetMdevUUID() (string, Return)
- func (VgpuInstance VgpuInstance) GetMetadata() (VgpuMetadata, Return)
- func (VgpuInstance VgpuInstance) GetType() (VgpuTypeId, Return)
- func (VgpuInstance VgpuInstance) GetUUID() (string, Return)
- func (VgpuInstance VgpuInstance) GetVmDriverVersion() (string, Return)
- func (VgpuInstance VgpuInstance) GetVmID() (string, VgpuVmIdType, Return)
- func (VgpuInstance VgpuInstance) SetEncoderCapacity(EncoderCapacity int) Return
- type VgpuInstanceUtilizationSample
- type VgpuMetadata
- type VgpuPgpuCompatibility
- type VgpuPgpuCompatibilityLimitCode
- type VgpuPgpuMetadata
- type VgpuProcessUtilizationSample
- type VgpuTypeId
- func (VgpuTypeId VgpuTypeId) GetClass() (string, Return)
- func (VgpuTypeId VgpuTypeId) GetDeviceID() (uint64, uint64, Return)
- func (VgpuTypeId VgpuTypeId) GetFrameRateLimit() (uint32, Return)
- func (VgpuTypeId VgpuTypeId) GetFramebufferSize() (uint64, Return)
- func (VgpuTypeId VgpuTypeId) GetLicense() (string, Return)
- func (VgpuTypeId VgpuTypeId) GetMaxInstances(Device Device) (int, Return)
- func (VgpuTypeId VgpuTypeId) GetMaxInstancesPerVm() (int, Return)
- func (VgpuTypeId VgpuTypeId) GetName() (string, Return)
- func (VgpuTypeId VgpuTypeId) GetNumDisplayHeads() (int, Return)
- func (VgpuTypeId VgpuTypeId) GetResolution(DisplayIndex int) (uint32, uint32, Return)
- type VgpuVersion
- type VgpuVmCompatibility
- type VgpuVmIdType
- type ViolationTime
Constants ¶
const ( // NO_UNVERSIONED_FUNC_DEFS as defined in go-nvml/<predefine>:24 NO_UNVERSIONED_FUNC_DEFS = 1 // API_VERSION as defined in nvml/nvml.h:98 API_VERSION = 11 // API_VERSION_STR as defined in nvml/nvml.h:99 API_VERSION_STR = "11" // VALUE_NOT_AVAILABLE as defined in nvml/nvml.h:129 VALUE_NOT_AVAILABLE = -1 // DEVICE_PCI_BUS_ID_BUFFER_SIZE as defined in nvml/nvml.h:136 DEVICE_PCI_BUS_ID_BUFFER_SIZE = 32 // DEVICE_PCI_BUS_ID_BUFFER_V2_SIZE as defined in nvml/nvml.h:141 DEVICE_PCI_BUS_ID_BUFFER_V2_SIZE = 16 // DEVICE_PCI_BUS_ID_LEGACY_FMT as defined in nvml/nvml.h:163 DEVICE_PCI_BUS_ID_LEGACY_FMT = "%04X:%02X:%02X.0" // DEVICE_PCI_BUS_ID_FMT as defined in nvml/nvml.h:168 DEVICE_PCI_BUS_ID_FMT = "%08X:%02X:%02X.0" // NVLINK_MAX_LINKS as defined in nvml/nvml.h:254 NVLINK_MAX_LINKS = 12 // TOPOLOGY_CPU as defined in nvml/nvml.h:344 TOPOLOGY_CPU = 0 // MAX_PHYSICAL_BRIDGE as defined in nvml/nvml.h:373 MAX_PHYSICAL_BRIDGE = 128 // FlagDefault as defined in nvml/nvml.h:506 FlagDefault = 0 // FlagForce as defined in nvml/nvml.h:508 FlagForce = 1 // SINGLE_BIT_ECC as defined in nvml/nvml.h:582 SINGLE_BIT_ECC = 0 // DOUBLE_BIT_ECC as defined in nvml/nvml.h:589 DOUBLE_BIT_ECC = 0 // GRID_LICENSE_BUFFER_SIZE as defined in nvml/nvml.h:876 GRID_LICENSE_BUFFER_SIZE = 128 // VGPU_NAME_BUFFER_SIZE as defined in nvml/nvml.h:878 VGPU_NAME_BUFFER_SIZE = 64 // GRID_LICENSE_FEATURE_MAX_COUNT as defined in nvml/nvml.h:880 GRID_LICENSE_FEATURE_MAX_COUNT = 3 // DEVICE_ARCH_KEPLER as defined in nvml/nvml.h:974 DEVICE_ARCH_KEPLER = 2 // DEVICE_ARCH_MAXWELL as defined in nvml/nvml.h:975 DEVICE_ARCH_MAXWELL = 3 // DEVICE_ARCH_PASCAL as defined in nvml/nvml.h:976 DEVICE_ARCH_PASCAL = 4 // DEVICE_ARCH_VOLTA as defined in nvml/nvml.h:977 DEVICE_ARCH_VOLTA = 5 // DEVICE_ARCH_TURING as defined in nvml/nvml.h:978 DEVICE_ARCH_TURING = 6 // DEVICE_ARCH_AMPERE as defined in nvml/nvml.h:980 DEVICE_ARCH_AMPERE = 7 // DEVICE_ARCH_UNKNOWN as defined in nvml/nvml.h:982 DEVICE_ARCH_UNKNOWN = 4294967295 // FI_DEV_ECC_CURRENT as defined in nvml/nvml.h:1000 FI_DEV_ECC_CURRENT = 1 // FI_DEV_ECC_PENDING as defined in nvml/nvml.h:1001 FI_DEV_ECC_PENDING = 2 // FI_DEV_ECC_SBE_VOL_TOTAL as defined in nvml/nvml.h:1003 FI_DEV_ECC_SBE_VOL_TOTAL = 3 // FI_DEV_ECC_DBE_VOL_TOTAL as defined in nvml/nvml.h:1004 FI_DEV_ECC_DBE_VOL_TOTAL = 4 // FI_DEV_ECC_SBE_AGG_TOTAL as defined in nvml/nvml.h:1005 FI_DEV_ECC_SBE_AGG_TOTAL = 5 // FI_DEV_ECC_DBE_AGG_TOTAL as defined in nvml/nvml.h:1006 FI_DEV_ECC_DBE_AGG_TOTAL = 6 // FI_DEV_ECC_SBE_VOL_L1 as defined in nvml/nvml.h:1008 FI_DEV_ECC_SBE_VOL_L1 = 7 // FI_DEV_ECC_DBE_VOL_L1 as defined in nvml/nvml.h:1009 FI_DEV_ECC_DBE_VOL_L1 = 8 // FI_DEV_ECC_SBE_VOL_L2 as defined in nvml/nvml.h:1010 FI_DEV_ECC_SBE_VOL_L2 = 9 // FI_DEV_ECC_DBE_VOL_L2 as defined in nvml/nvml.h:1011 FI_DEV_ECC_DBE_VOL_L2 = 10 // FI_DEV_ECC_SBE_VOL_DEV as defined in nvml/nvml.h:1012 FI_DEV_ECC_SBE_VOL_DEV = 11 // FI_DEV_ECC_DBE_VOL_DEV as defined in nvml/nvml.h:1013 FI_DEV_ECC_DBE_VOL_DEV = 12 // FI_DEV_ECC_SBE_VOL_REG as defined in nvml/nvml.h:1014 FI_DEV_ECC_SBE_VOL_REG = 13 // FI_DEV_ECC_DBE_VOL_REG as defined in nvml/nvml.h:1015 FI_DEV_ECC_DBE_VOL_REG = 14 // FI_DEV_ECC_SBE_VOL_TEX as defined in nvml/nvml.h:1016 FI_DEV_ECC_SBE_VOL_TEX = 15 // FI_DEV_ECC_DBE_VOL_TEX as defined in nvml/nvml.h:1017 FI_DEV_ECC_DBE_VOL_TEX = 16 // FI_DEV_ECC_DBE_VOL_CBU as defined in nvml/nvml.h:1018 FI_DEV_ECC_DBE_VOL_CBU = 17 // FI_DEV_ECC_SBE_AGG_L1 as defined in nvml/nvml.h:1019 FI_DEV_ECC_SBE_AGG_L1 = 18 // FI_DEV_ECC_DBE_AGG_L1 as defined in nvml/nvml.h:1020 FI_DEV_ECC_DBE_AGG_L1 = 19 // FI_DEV_ECC_SBE_AGG_L2 as defined in nvml/nvml.h:1021 FI_DEV_ECC_SBE_AGG_L2 = 20 // FI_DEV_ECC_DBE_AGG_L2 as defined in nvml/nvml.h:1022 FI_DEV_ECC_DBE_AGG_L2 = 21 // FI_DEV_ECC_SBE_AGG_DEV as defined in nvml/nvml.h:1023 FI_DEV_ECC_SBE_AGG_DEV = 22 // FI_DEV_ECC_DBE_AGG_DEV as defined in nvml/nvml.h:1024 FI_DEV_ECC_DBE_AGG_DEV = 23 // FI_DEV_ECC_SBE_AGG_REG as defined in nvml/nvml.h:1025 FI_DEV_ECC_SBE_AGG_REG = 24 // FI_DEV_ECC_DBE_AGG_REG as defined in nvml/nvml.h:1026 FI_DEV_ECC_DBE_AGG_REG = 25 // FI_DEV_ECC_SBE_AGG_TEX as defined in nvml/nvml.h:1027 FI_DEV_ECC_SBE_AGG_TEX = 26 // FI_DEV_ECC_DBE_AGG_TEX as defined in nvml/nvml.h:1028 FI_DEV_ECC_DBE_AGG_TEX = 27 // FI_DEV_ECC_DBE_AGG_CBU as defined in nvml/nvml.h:1029 FI_DEV_ECC_DBE_AGG_CBU = 28 // FI_DEV_RETIRED_SBE as defined in nvml/nvml.h:1032 FI_DEV_RETIRED_SBE = 29 // FI_DEV_RETIRED_DBE as defined in nvml/nvml.h:1033 FI_DEV_RETIRED_DBE = 30 // FI_DEV_RETIRED_PENDING as defined in nvml/nvml.h:1034 FI_DEV_RETIRED_PENDING = 31 // FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L0 as defined in nvml/nvml.h:1037 FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L0 = 32 // FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L1 as defined in nvml/nvml.h:1038 FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L1 = 33 // FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L2 as defined in nvml/nvml.h:1039 FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L2 = 34 // FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L3 as defined in nvml/nvml.h:1040 FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L3 = 35 // FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L4 as defined in nvml/nvml.h:1041 FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L4 = 36 // FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L5 as defined in nvml/nvml.h:1042 FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L5 = 37 // FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_TOTAL as defined in nvml/nvml.h:1043 FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_TOTAL = 38 // FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L0 as defined in nvml/nvml.h:1046 FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L0 = 39 // FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L1 as defined in nvml/nvml.h:1047 FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L1 = 40 // FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L2 as defined in nvml/nvml.h:1048 FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L2 = 41 // FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L3 as defined in nvml/nvml.h:1049 FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L3 = 42 // FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L4 as defined in nvml/nvml.h:1050 FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L4 = 43 // FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L5 as defined in nvml/nvml.h:1051 FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L5 = 44 // FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_TOTAL as defined in nvml/nvml.h:1052 FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_TOTAL = 45 // FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L0 as defined in nvml/nvml.h:1055 FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L0 = 46 // FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L1 as defined in nvml/nvml.h:1056 FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L1 = 47 // FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L2 as defined in nvml/nvml.h:1057 FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L2 = 48 // FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L3 as defined in nvml/nvml.h:1058 FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L3 = 49 // FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L4 as defined in nvml/nvml.h:1059 FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L4 = 50 // FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L5 as defined in nvml/nvml.h:1060 FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L5 = 51 // FI_DEV_NVLINK_REPLAY_ERROR_COUNT_TOTAL as defined in nvml/nvml.h:1061 FI_DEV_NVLINK_REPLAY_ERROR_COUNT_TOTAL = 52 // FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L0 as defined in nvml/nvml.h:1064 FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L0 = 53 // FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L1 as defined in nvml/nvml.h:1065 FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L1 = 54 // FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L2 as defined in nvml/nvml.h:1066 FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L2 = 55 // FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L3 as defined in nvml/nvml.h:1067 FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L3 = 56 // FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L4 as defined in nvml/nvml.h:1068 FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L4 = 57 // FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L5 as defined in nvml/nvml.h:1069 FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L5 = 58 // FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_TOTAL as defined in nvml/nvml.h:1070 FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_TOTAL = 59 // FI_DEV_NVLINK_BANDWIDTH_C0_L0 as defined in nvml/nvml.h:1081 FI_DEV_NVLINK_BANDWIDTH_C0_L0 = 60 // FI_DEV_NVLINK_BANDWIDTH_C0_L1 as defined in nvml/nvml.h:1082 FI_DEV_NVLINK_BANDWIDTH_C0_L1 = 61 // FI_DEV_NVLINK_BANDWIDTH_C0_L2 as defined in nvml/nvml.h:1083 FI_DEV_NVLINK_BANDWIDTH_C0_L2 = 62 // FI_DEV_NVLINK_BANDWIDTH_C0_L3 as defined in nvml/nvml.h:1084 FI_DEV_NVLINK_BANDWIDTH_C0_L3 = 63 // FI_DEV_NVLINK_BANDWIDTH_C0_L4 as defined in nvml/nvml.h:1085 FI_DEV_NVLINK_BANDWIDTH_C0_L4 = 64 // FI_DEV_NVLINK_BANDWIDTH_C0_L5 as defined in nvml/nvml.h:1086 FI_DEV_NVLINK_BANDWIDTH_C0_L5 = 65 // FI_DEV_NVLINK_BANDWIDTH_C0_TOTAL as defined in nvml/nvml.h:1087 FI_DEV_NVLINK_BANDWIDTH_C0_TOTAL = 66 // FI_DEV_NVLINK_BANDWIDTH_C1_L0 as defined in nvml/nvml.h:1090 FI_DEV_NVLINK_BANDWIDTH_C1_L0 = 67 // FI_DEV_NVLINK_BANDWIDTH_C1_L1 as defined in nvml/nvml.h:1091 FI_DEV_NVLINK_BANDWIDTH_C1_L1 = 68 // FI_DEV_NVLINK_BANDWIDTH_C1_L2 as defined in nvml/nvml.h:1092 FI_DEV_NVLINK_BANDWIDTH_C1_L2 = 69 // FI_DEV_NVLINK_BANDWIDTH_C1_L3 as defined in nvml/nvml.h:1093 FI_DEV_NVLINK_BANDWIDTH_C1_L3 = 70 // FI_DEV_NVLINK_BANDWIDTH_C1_L4 as defined in nvml/nvml.h:1094 FI_DEV_NVLINK_BANDWIDTH_C1_L4 = 71 // FI_DEV_NVLINK_BANDWIDTH_C1_L5 as defined in nvml/nvml.h:1095 FI_DEV_NVLINK_BANDWIDTH_C1_L5 = 72 // FI_DEV_NVLINK_BANDWIDTH_C1_TOTAL as defined in nvml/nvml.h:1096 FI_DEV_NVLINK_BANDWIDTH_C1_TOTAL = 73 // FI_DEV_PERF_POLICY_POWER as defined in nvml/nvml.h:1099 FI_DEV_PERF_POLICY_POWER = 74 // FI_DEV_PERF_POLICY_THERMAL as defined in nvml/nvml.h:1100 FI_DEV_PERF_POLICY_THERMAL = 75 // FI_DEV_PERF_POLICY_SYNC_BOOST as defined in nvml/nvml.h:1101 FI_DEV_PERF_POLICY_SYNC_BOOST = 76 // FI_DEV_PERF_POLICY_BOARD_LIMIT as defined in nvml/nvml.h:1102 FI_DEV_PERF_POLICY_BOARD_LIMIT = 77 // FI_DEV_PERF_POLICY_LOW_UTILIZATION as defined in nvml/nvml.h:1103 FI_DEV_PERF_POLICY_LOW_UTILIZATION = 78 // FI_DEV_PERF_POLICY_RELIABILITY as defined in nvml/nvml.h:1104 FI_DEV_PERF_POLICY_RELIABILITY = 79 // FI_DEV_PERF_POLICY_TOTAL_APP_CLOCKS as defined in nvml/nvml.h:1105 FI_DEV_PERF_POLICY_TOTAL_APP_CLOCKS = 80 // FI_DEV_PERF_POLICY_TOTAL_BASE_CLOCKS as defined in nvml/nvml.h:1106 FI_DEV_PERF_POLICY_TOTAL_BASE_CLOCKS = 81 // FI_DEV_MEMORY_TEMP as defined in nvml/nvml.h:1109 FI_DEV_MEMORY_TEMP = 82 // FI_DEV_TOTAL_ENERGY_CONSUMPTION as defined in nvml/nvml.h:1112 FI_DEV_TOTAL_ENERGY_CONSUMPTION = 83 // FI_DEV_NVLINK_SPEED_MBPS_L0 as defined in nvml/nvml.h:1115 FI_DEV_NVLINK_SPEED_MBPS_L0 = 84 // FI_DEV_NVLINK_SPEED_MBPS_L1 as defined in nvml/nvml.h:1116 FI_DEV_NVLINK_SPEED_MBPS_L1 = 85 // FI_DEV_NVLINK_SPEED_MBPS_L2 as defined in nvml/nvml.h:1117 FI_DEV_NVLINK_SPEED_MBPS_L2 = 86 // FI_DEV_NVLINK_SPEED_MBPS_L3 as defined in nvml/nvml.h:1118 FI_DEV_NVLINK_SPEED_MBPS_L3 = 87 // FI_DEV_NVLINK_SPEED_MBPS_L4 as defined in nvml/nvml.h:1119 FI_DEV_NVLINK_SPEED_MBPS_L4 = 88 // FI_DEV_NVLINK_SPEED_MBPS_L5 as defined in nvml/nvml.h:1120 FI_DEV_NVLINK_SPEED_MBPS_L5 = 89 // FI_DEV_NVLINK_SPEED_MBPS_COMMON as defined in nvml/nvml.h:1121 FI_DEV_NVLINK_SPEED_MBPS_COMMON = 90 // FI_DEV_NVLINK_LINK_COUNT as defined in nvml/nvml.h:1123 FI_DEV_NVLINK_LINK_COUNT = 91 // FI_DEV_RETIRED_PENDING_SBE as defined in nvml/nvml.h:1125 FI_DEV_RETIRED_PENDING_SBE = 92 // FI_DEV_RETIRED_PENDING_DBE as defined in nvml/nvml.h:1126 FI_DEV_RETIRED_PENDING_DBE = 93 // FI_DEV_PCIE_REPLAY_COUNTER as defined in nvml/nvml.h:1128 FI_DEV_PCIE_REPLAY_COUNTER = 94 // FI_DEV_PCIE_REPLAY_ROLLOVER_COUNTER as defined in nvml/nvml.h:1129 FI_DEV_PCIE_REPLAY_ROLLOVER_COUNTER = 95 // FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L6 as defined in nvml/nvml.h:1132 FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L6 = 96 // FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L7 as defined in nvml/nvml.h:1133 FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L7 = 97 // FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L8 as defined in nvml/nvml.h:1134 FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L8 = 98 // FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L9 as defined in nvml/nvml.h:1135 FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L9 = 99 // FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L10 as defined in nvml/nvml.h:1136 FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L10 = 100 // FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L11 as defined in nvml/nvml.h:1137 FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L11 = 101 // FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L6 as defined in nvml/nvml.h:1140 FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L6 = 102 // FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L7 as defined in nvml/nvml.h:1141 FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L7 = 103 // FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L8 as defined in nvml/nvml.h:1142 FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L8 = 104 // FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L9 as defined in nvml/nvml.h:1143 FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L9 = 105 // FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L10 as defined in nvml/nvml.h:1144 FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L10 = 106 // FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L11 as defined in nvml/nvml.h:1145 FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L11 = 107 // FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L6 as defined in nvml/nvml.h:1148 FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L6 = 108 // FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L7 as defined in nvml/nvml.h:1149 FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L7 = 109 // FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L8 as defined in nvml/nvml.h:1150 FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L8 = 110 // FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L9 as defined in nvml/nvml.h:1151 FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L9 = 111 // FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L10 as defined in nvml/nvml.h:1152 FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L10 = 112 // FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L11 as defined in nvml/nvml.h:1153 FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L11 = 113 // FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L6 as defined in nvml/nvml.h:1156 FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L6 = 114 // FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L7 as defined in nvml/nvml.h:1157 FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L7 = 115 // FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L8 as defined in nvml/nvml.h:1158 FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L8 = 116 // FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L9 as defined in nvml/nvml.h:1159 FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L9 = 117 // FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L10 as defined in nvml/nvml.h:1160 FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L10 = 118 // FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L11 as defined in nvml/nvml.h:1161 FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L11 = 119 // FI_DEV_NVLINK_BANDWIDTH_C0_L6 as defined in nvml/nvml.h:1172 FI_DEV_NVLINK_BANDWIDTH_C0_L6 = 120 // FI_DEV_NVLINK_BANDWIDTH_C0_L7 as defined in nvml/nvml.h:1173 FI_DEV_NVLINK_BANDWIDTH_C0_L7 = 121 // FI_DEV_NVLINK_BANDWIDTH_C0_L8 as defined in nvml/nvml.h:1174 FI_DEV_NVLINK_BANDWIDTH_C0_L8 = 122 // FI_DEV_NVLINK_BANDWIDTH_C0_L9 as defined in nvml/nvml.h:1175 FI_DEV_NVLINK_BANDWIDTH_C0_L9 = 123 // FI_DEV_NVLINK_BANDWIDTH_C0_L10 as defined in nvml/nvml.h:1176 FI_DEV_NVLINK_BANDWIDTH_C0_L10 = 124 // FI_DEV_NVLINK_BANDWIDTH_C0_L11 as defined in nvml/nvml.h:1177 FI_DEV_NVLINK_BANDWIDTH_C0_L11 = 125 // FI_DEV_NVLINK_BANDWIDTH_C1_L6 as defined in nvml/nvml.h:1180 FI_DEV_NVLINK_BANDWIDTH_C1_L6 = 126 // FI_DEV_NVLINK_BANDWIDTH_C1_L7 as defined in nvml/nvml.h:1181 FI_DEV_NVLINK_BANDWIDTH_C1_L7 = 127 // FI_DEV_NVLINK_BANDWIDTH_C1_L8 as defined in nvml/nvml.h:1182 FI_DEV_NVLINK_BANDWIDTH_C1_L8 = 128 // FI_DEV_NVLINK_BANDWIDTH_C1_L9 as defined in nvml/nvml.h:1183 FI_DEV_NVLINK_BANDWIDTH_C1_L9 = 129 // FI_DEV_NVLINK_BANDWIDTH_C1_L10 as defined in nvml/nvml.h:1184 FI_DEV_NVLINK_BANDWIDTH_C1_L10 = 130 // FI_DEV_NVLINK_BANDWIDTH_C1_L11 as defined in nvml/nvml.h:1185 FI_DEV_NVLINK_BANDWIDTH_C1_L11 = 131 // FI_DEV_NVLINK_SPEED_MBPS_L6 as defined in nvml/nvml.h:1188 FI_DEV_NVLINK_SPEED_MBPS_L6 = 132 // FI_DEV_NVLINK_SPEED_MBPS_L7 as defined in nvml/nvml.h:1189 FI_DEV_NVLINK_SPEED_MBPS_L7 = 133 // FI_DEV_NVLINK_SPEED_MBPS_L8 as defined in nvml/nvml.h:1190 FI_DEV_NVLINK_SPEED_MBPS_L8 = 134 // FI_DEV_NVLINK_SPEED_MBPS_L9 as defined in nvml/nvml.h:1191 FI_DEV_NVLINK_SPEED_MBPS_L9 = 135 // FI_DEV_NVLINK_SPEED_MBPS_L10 as defined in nvml/nvml.h:1192 FI_DEV_NVLINK_SPEED_MBPS_L10 = 136 // FI_DEV_NVLINK_SPEED_MBPS_L11 as defined in nvml/nvml.h:1193 FI_DEV_NVLINK_SPEED_MBPS_L11 = 137 // FI_DEV_NVLINK_THROUGHPUT_DATA_TX as defined in nvml/nvml.h:1202 FI_DEV_NVLINK_THROUGHPUT_DATA_TX = 138 // FI_DEV_NVLINK_THROUGHPUT_DATA_RX as defined in nvml/nvml.h:1203 FI_DEV_NVLINK_THROUGHPUT_DATA_RX = 139 // FI_DEV_NVLINK_THROUGHPUT_RAW_TX as defined in nvml/nvml.h:1204 FI_DEV_NVLINK_THROUGHPUT_RAW_TX = 140 // FI_DEV_NVLINK_THROUGHPUT_RAW_RX as defined in nvml/nvml.h:1205 FI_DEV_NVLINK_THROUGHPUT_RAW_RX = 141 // FI_DEV_REMAPPED_COR as defined in nvml/nvml.h:1208 FI_DEV_REMAPPED_COR = 142 // FI_DEV_REMAPPED_UNC as defined in nvml/nvml.h:1209 FI_DEV_REMAPPED_UNC = 143 // FI_DEV_REMAPPED_PENDING as defined in nvml/nvml.h:1210 FI_DEV_REMAPPED_PENDING = 144 // FI_DEV_REMAPPED_FAILURE as defined in nvml/nvml.h:1211 FI_DEV_REMAPPED_FAILURE = 145 // FI_MAX as defined in nvml/nvml.h:1213 FI_MAX = 146 // EventTypeSingleBitEccError as defined in nvml/nvml.h:1356 EventTypeSingleBitEccError = 1 // EventTypeDoubleBitEccError as defined in nvml/nvml.h:1362 EventTypeDoubleBitEccError = 2 // EventTypePState as defined in nvml/nvml.h:1370 EventTypePState = 4 // EventTypeXidCriticalError as defined in nvml/nvml.h:1373 EventTypeXidCriticalError = 8 // EventTypeClock as defined in nvml/nvml.h:1379 EventTypeClock = 16 // EventTypePowerSourceChange as defined in nvml/nvml.h:1382 EventTypePowerSourceChange = 128 // EventMigConfigChange as defined in nvml/nvml.h:1385 EventMigConfigChange = 256 // EventTypeNone as defined in nvml/nvml.h:1388 EventTypeNone = 0 // EventTypeAll as defined in nvml/nvml.h:1391 EventTypeAll = 415 // ClocksThrottleReasonGpuIdle as defined in nvml/nvml.h:1430 ClocksThrottleReasonGpuIdle = 1 // ClocksThrottleReasonApplicationsClocksSetting as defined in nvml/nvml.h:1437 ClocksThrottleReasonApplicationsClocksSetting = 2 // ClocksThrottleReasonUserDefinedClocks as defined in nvml/nvml.h:1443 ClocksThrottleReasonUserDefinedClocks = 2 // ClocksThrottleReasonSwPowerCap as defined in nvml/nvml.h:1451 ClocksThrottleReasonSwPowerCap = 4 // ClocksThrottleReasonHwSlowdown as defined in nvml/nvml.h:1466 ClocksThrottleReasonHwSlowdown = 8 // ClocksThrottleReasonSyncBoost as defined in nvml/nvml.h:1477 ClocksThrottleReasonSyncBoost = 16 // ClocksThrottleReasonSwThermalSlowdown as defined in nvml/nvml.h:1486 ClocksThrottleReasonSwThermalSlowdown = 32 // ClocksThrottleReasonHwThermalSlowdown as defined in nvml/nvml.h:1497 ClocksThrottleReasonHwThermalSlowdown = 64 // ClocksThrottleReasonHwPowerBrakeSlowdown as defined in nvml/nvml.h:1508 ClocksThrottleReasonHwPowerBrakeSlowdown = 128 // ClocksThrottleReasonDisplayClockSetting as defined in nvml/nvml.h:1514 ClocksThrottleReasonDisplayClockSetting = 256 // ClocksThrottleReasonNone as defined in nvml/nvml.h:1520 ClocksThrottleReasonNone = 0 // ClocksThrottleReasonAll as defined in nvml/nvml.h:1525 ClocksThrottleReasonAll = 511 // NVFBC_SESSION_FLAG_DIFFMAP_ENABLED as defined in nvml/nvml.h:1640 NVFBC_SESSION_FLAG_DIFFMAP_ENABLED = 1 // NVFBC_SESSION_FLAG_CLASSIFICATIONMAP_ENABLED as defined in nvml/nvml.h:1641 NVFBC_SESSION_FLAG_CLASSIFICATIONMAP_ENABLED = 2 // NVFBC_SESSION_FLAG_CAPTURE_WITH_WAIT_NO_WAIT as defined in nvml/nvml.h:1642 NVFBC_SESSION_FLAG_CAPTURE_WITH_WAIT_NO_WAIT = 4 // NVFBC_SESSION_FLAG_CAPTURE_WITH_WAIT_INFINITE as defined in nvml/nvml.h:1643 NVFBC_SESSION_FLAG_CAPTURE_WITH_WAIT_INFINITE = 8 // NVFBC_SESSION_FLAG_CAPTURE_WITH_WAIT_TIMEOUT as defined in nvml/nvml.h:1644 NVFBC_SESSION_FLAG_CAPTURE_WITH_WAIT_TIMEOUT = 16 // INIT_FLAG_NO_GPUS as defined in nvml/nvml.h:1702 INIT_FLAG_NO_GPUS = 1 // INIT_FLAG_NO_ATTACH as defined in nvml/nvml.h:1703 INIT_FLAG_NO_ATTACH = 2 // DEVICE_INFOROM_VERSION_BUFFER_SIZE as defined in nvml/nvml.h:1800 DEVICE_INFOROM_VERSION_BUFFER_SIZE = 16 // DEVICE_UUID_BUFFER_SIZE as defined in nvml/nvml.h:1805 DEVICE_UUID_BUFFER_SIZE = 80 // DEVICE_UUID_V2_BUFFER_SIZE as defined in nvml/nvml.h:1810 DEVICE_UUID_V2_BUFFER_SIZE = 96 // DEVICE_PART_NUMBER_BUFFER_SIZE as defined in nvml/nvml.h:1815 DEVICE_PART_NUMBER_BUFFER_SIZE = 80 // SYSTEM_DRIVER_VERSION_BUFFER_SIZE as defined in nvml/nvml.h:1820 SYSTEM_DRIVER_VERSION_BUFFER_SIZE = 80 // SYSTEM_NVML_VERSION_BUFFER_SIZE as defined in nvml/nvml.h:1825 SYSTEM_NVML_VERSION_BUFFER_SIZE = 80 // DEVICE_NAME_BUFFER_SIZE as defined in nvml/nvml.h:1830 DEVICE_NAME_BUFFER_SIZE = 64 // DEVICE_SERIAL_BUFFER_SIZE as defined in nvml/nvml.h:1835 DEVICE_SERIAL_BUFFER_SIZE = 30 // DEVICE_VBIOS_VERSION_BUFFER_SIZE as defined in nvml/nvml.h:1840 DEVICE_VBIOS_VERSION_BUFFER_SIZE = 32 // AFFINITY_SCOPE_NODE as defined in nvml/nvml.h:2437 AFFINITY_SCOPE_NODE = 0 // AFFINITY_SCOPE_SOCKET as defined in nvml/nvml.h:2439 AFFINITY_SCOPE_SOCKET = 1 // DEVICE_MIG_DISABLE as defined in nvml/nvml.h:6910 DEVICE_MIG_DISABLE = 0 // DEVICE_MIG_ENABLE as defined in nvml/nvml.h:6915 DEVICE_MIG_ENABLE = 1 // GPU_INSTANCE_PROFILE_1_SLICE as defined in nvml/nvml.h:6923 GPU_INSTANCE_PROFILE_1_SLICE = 0 // GPU_INSTANCE_PROFILE_2_SLICE as defined in nvml/nvml.h:6924 GPU_INSTANCE_PROFILE_2_SLICE = 1 // GPU_INSTANCE_PROFILE_3_SLICE as defined in nvml/nvml.h:6925 GPU_INSTANCE_PROFILE_3_SLICE = 2 // GPU_INSTANCE_PROFILE_4_SLICE as defined in nvml/nvml.h:6926 GPU_INSTANCE_PROFILE_4_SLICE = 3 // GPU_INSTANCE_PROFILE_7_SLICE as defined in nvml/nvml.h:6927 GPU_INSTANCE_PROFILE_7_SLICE = 4 // GPU_INSTANCE_PROFILE_COUNT as defined in nvml/nvml.h:6928 GPU_INSTANCE_PROFILE_COUNT = 5 // COMPUTE_INSTANCE_PROFILE_1_SLICE as defined in nvml/nvml.h:6967 COMPUTE_INSTANCE_PROFILE_1_SLICE = 0 // COMPUTE_INSTANCE_PROFILE_2_SLICE as defined in nvml/nvml.h:6968 COMPUTE_INSTANCE_PROFILE_2_SLICE = 1 // COMPUTE_INSTANCE_PROFILE_3_SLICE as defined in nvml/nvml.h:6969 COMPUTE_INSTANCE_PROFILE_3_SLICE = 2 // COMPUTE_INSTANCE_PROFILE_4_SLICE as defined in nvml/nvml.h:6970 COMPUTE_INSTANCE_PROFILE_4_SLICE = 3 // COMPUTE_INSTANCE_PROFILE_7_SLICE as defined in nvml/nvml.h:6971 COMPUTE_INSTANCE_PROFILE_7_SLICE = 4 // COMPUTE_INSTANCE_PROFILE_COUNT as defined in nvml/nvml.h:6972 COMPUTE_INSTANCE_PROFILE_COUNT = 5 // COMPUTE_INSTANCE_ENGINE_PROFILE_SHARED as defined in nvml/nvml.h:6974 COMPUTE_INSTANCE_ENGINE_PROFILE_SHARED = 0 // COMPUTE_INSTANCE_ENGINE_PROFILE_COUNT as defined in nvml/nvml.h:6975 COMPUTE_INSTANCE_ENGINE_PROFILE_COUNT = 1 )
Variables ¶
This section is empty.
Functions ¶
func ComputeInstanceGetInfo ¶
func ComputeInstanceGetInfo(ComputeInstance ComputeInstance) (ComputeInstanceInfo, Return)
nvml.ComputeInstanceGetInfo()
func DeviceCreateGpuInstance ¶
func DeviceCreateGpuInstance(Device Device, Info *GpuInstanceProfileInfo) (GpuInstance, Return)
nvml.DeviceCreateGpuInstance()
func DeviceGetAPIRestriction ¶
func DeviceGetAPIRestriction(Device Device, ApiType RestrictedAPI) (EnableState, Return)
nvml.DeviceGetAPIRestriction()
func DeviceGetAccountingMode ¶
func DeviceGetAccountingMode(Device Device) (EnableState, Return)
nvml.DeviceGetAccountingMode()
func DeviceGetAccountingStats ¶
func DeviceGetAccountingStats(Device Device, Pid uint32) (AccountingStats, Return)
nvml.DeviceGetAccountingStats()
func DeviceGetActiveVgpus ¶
func DeviceGetActiveVgpus(Device Device) ([]VgpuInstance, Return)
nvml.DeviceGetActiveVgpus()
func DeviceGetArchitecture ¶
func DeviceGetArchitecture(Device Device) (DeviceArchitecture, Return)
nvml.DeviceGetArchitecture()
func DeviceGetAttributes ¶
func DeviceGetAttributes(Device Device) (DeviceAttributes, Return)
nvml.DeviceGetAttributes()
func DeviceGetAutoBoostedClocksEnabled ¶
func DeviceGetAutoBoostedClocksEnabled(Device Device) (EnableState, EnableState, Return)
nvml.DeviceGetAutoBoostedClocksEnabled()
func DeviceGetBAR1MemoryInfo ¶
func DeviceGetBAR1MemoryInfo(Device Device) (BAR1Memory, Return)
nvml.DeviceGetBAR1MemoryInfo()
func DeviceGetBridgeChipInfo ¶
func DeviceGetBridgeChipInfo(Device Device) (BridgeChipHierarchy, Return)
nvml.DeviceGetBridgeChipInfo()
func DeviceGetComputeMode ¶
func DeviceGetComputeMode(Device Device) (ComputeMode, Return)
nvml.DeviceGetComputeMode()
func DeviceGetComputeRunningProcesses ¶
func DeviceGetComputeRunningProcesses(Device Device) ([]ProcessInfo, Return)
nvml.DeviceGetComputeRunningProcesses()
func DeviceGetCreatableVgpus ¶
func DeviceGetCreatableVgpus(Device Device) ([]VgpuTypeId, Return)
nvml.DeviceGetCreatableVgpus()
func DeviceGetDetailedEccErrors ¶
func DeviceGetDetailedEccErrors(Device Device, ErrorType MemoryErrorType, CounterType EccCounterType) (EccErrorCounts, Return)
nvml.DeviceGetDetailedEccErrors()
func DeviceGetDeviceHandleFromMigDeviceHandle ¶
nvml.DeviceGetDeviceHandleFromMigDeviceHandle()
func DeviceGetDisplayActive ¶
func DeviceGetDisplayActive(Device Device) (EnableState, Return)
nvml.DeviceGetDisplayActive()
func DeviceGetDisplayMode ¶
func DeviceGetDisplayMode(Device Device) (EnableState, Return)
nvml.DeviceGetDisplayMode()
func DeviceGetDriverModel ¶
func DeviceGetDriverModel(Device Device) (DriverModel, DriverModel, Return)
nvml.DeviceGetDriverModel()
func DeviceGetEccMode ¶
func DeviceGetEccMode(Device Device) (EnableState, EnableState, Return)
nvml.DeviceGetEccMode()
func DeviceGetEncoderSessions ¶
func DeviceGetEncoderSessions(Device Device) ([]EncoderSessionInfo, Return)
nvml.DeviceGetEncoderSessions()
func DeviceGetFBCSessions ¶
func DeviceGetFBCSessions(Device Device) ([]FBCSessionInfo, Return)
nvml.DeviceGetFBCSessions()
func DeviceGetFBCStats ¶
nvml.DeviceGetFBCStats()
func DeviceGetGpuInstanceById ¶
func DeviceGetGpuInstanceById(Device Device, Id int) (GpuInstance, Return)
nvml.DeviceGetGpuInstanceById()
func DeviceGetGpuInstancePossiblePlacements ¶
func DeviceGetGpuInstancePossiblePlacements(Device Device, Info *GpuInstanceProfileInfo) ([]GpuInstancePlacement, Return)
nvml.DeviceGetGpuInstancePossiblePlacements()
func DeviceGetGpuInstanceProfileInfo ¶
func DeviceGetGpuInstanceProfileInfo(Device Device, Profile int) (GpuInstanceProfileInfo, Return)
nvml.DeviceGetGpuInstanceProfileInfo()
func DeviceGetGpuInstances ¶
func DeviceGetGpuInstances(Device Device, Info *GpuInstanceProfileInfo) ([]GpuInstance, Return)
nvml.DeviceGetGpuInstances()
func DeviceGetGpuOperationMode ¶
func DeviceGetGpuOperationMode(Device Device) (GpuOperationMode, GpuOperationMode, Return)
nvml.DeviceGetGpuOperationMode()
func DeviceGetGraphicsRunningProcesses ¶
func DeviceGetGraphicsRunningProcesses(Device Device) ([]ProcessInfo, Return)
nvml.DeviceGetGraphicsRunningProcesses()
func DeviceGetGridLicensableFeatures ¶
func DeviceGetGridLicensableFeatures(Device Device) (GridLicensableFeatures, Return)
nvml.DeviceGetGridLicensableFeatures()
func DeviceGetHandleByIndex ¶
nvml.DeviceGetHandleByIndex()
func DeviceGetHandleByPciBusId ¶
nvml.DeviceGetHandleByPciBusId()
func DeviceGetHandleBySerial ¶
nvml.DeviceGetHandleBySerial()
func DeviceGetHandleByUUID ¶
nvml.DeviceGetHandleByUUID()
func DeviceGetHostVgpuMode ¶
func DeviceGetHostVgpuMode(Device Device) (HostVgpuMode, Return)
nvml.DeviceGetHostVgpuMode()
func DeviceGetMemoryInfo ¶
nvml.DeviceGetMemoryInfo()
func DeviceGetMigDeviceHandleByIndex ¶
nvml.DeviceGetMigDeviceHandleByIndex()
func DeviceGetNvLinkRemotePciInfo ¶
nvml.DeviceGetNvLinkRemotePciInfo()
func DeviceGetNvLinkState ¶
func DeviceGetNvLinkState(Device Device, Link int) (EnableState, Return)
nvml.DeviceGetNvLinkState()
func DeviceGetNvLinkUtilizationControl ¶
func DeviceGetNvLinkUtilizationControl(Device Device, Link int, Counter int) (NvLinkUtilizationControl, Return)
nvml.DeviceGetNvLinkUtilizationControl()
func DeviceGetP2PStatus ¶
func DeviceGetP2PStatus(Device1 Device, Device2 Device, P2pIndex GpuP2PCapsIndex) (GpuP2PStatus, Return)
nvml.DeviceGetP2PStatus()
func DeviceGetPciInfo ¶
nvml.DeviceGetPciInfo()
func DeviceGetPerformanceState ¶
nvml.DeviceGetPerformanceState()
func DeviceGetPersistenceMode ¶
func DeviceGetPersistenceMode(Device Device) (EnableState, Return)
nvml.DeviceGetPersistenceMode()
func DeviceGetPowerManagementMode ¶
func DeviceGetPowerManagementMode(Device Device) (EnableState, Return)
nvml.DeviceGetPowerManagementMode()
func DeviceGetPowerState ¶
nvml.DeviceGetPowerState()
func DeviceGetProcessUtilization ¶
func DeviceGetProcessUtilization(Device Device, LastSeenTimeStamp uint64) ([]ProcessUtilizationSample, Return)
nvml.DeviceGetProcessUtilization()
func DeviceGetRetiredPagesPendingStatus ¶
func DeviceGetRetiredPagesPendingStatus(Device Device) (EnableState, Return)
nvml.DeviceGetRetiredPagesPendingStatus()
func DeviceGetSamples ¶
func DeviceGetSamples(Device Device, _type SamplingType, LastSeenTimeStamp uint64) (ValueType, []Sample, Return)
nvml.DeviceGetSamples()
func DeviceGetSupportedVgpus ¶
func DeviceGetSupportedVgpus(Device Device) ([]VgpuTypeId, Return)
nvml.DeviceGetSupportedVgpus()
func DeviceGetTopologyCommonAncestor ¶
func DeviceGetTopologyCommonAncestor(Device1 Device, Device2 Device) (GpuTopologyLevel, Return)
nvml.DeviceGetTopologyCommonAncestor()
func DeviceGetTopologyNearestGpus ¶
func DeviceGetTopologyNearestGpus(device Device, Level GpuTopologyLevel) ([]Device, Return)
nvml.DeviceGetTopologyNearestGpus()
func DeviceGetUtilizationRates ¶
func DeviceGetUtilizationRates(Device Device) (Utilization, Return)
nvml.DeviceGetUtilizationRates()
func DeviceGetVgpuMetadata ¶
func DeviceGetVgpuMetadata(Device Device) (VgpuPgpuMetadata, Return)
nvml.DeviceGetVgpuMetadata()
func DeviceGetVgpuProcessUtilization ¶
func DeviceGetVgpuProcessUtilization(Device Device, LastSeenTimeStamp uint64) ([]VgpuProcessUtilizationSample, Return)
nvml.DeviceGetVgpuProcessUtilization()
func DeviceGetVgpuUtilization ¶
func DeviceGetVgpuUtilization(Device Device, LastSeenTimeStamp uint64) (ValueType, []VgpuInstanceUtilizationSample, Return)
nvml.DeviceGetVgpuUtilization()
func DeviceGetViolationStatus ¶
func DeviceGetViolationStatus(Device Device, PerfPolicyType PerfPolicyType) (ViolationTime, Return)
nvml.DeviceGetViolationStatus()
func DeviceGetVirtualizationMode ¶
func DeviceGetVirtualizationMode(Device Device) (GpuVirtualizationMode, Return)
nvml.DeviceGetVirtualizationMode()
func DeviceQueryDrainState ¶
func DeviceQueryDrainState(PciInfo *PciInfo) (EnableState, Return)
nvml.DeviceQueryDrainState()
func DeviceSetMigMode ¶
nvml.DeviceSetMigMode()
func EventSetWait ¶
nvml.EventSetWait()
func GetBlacklistDeviceInfoByIndex ¶
func GetBlacklistDeviceInfoByIndex(Index int) (BlacklistDeviceInfo, Return)
nvml.GetBlacklistDeviceInfoByIndex()
func GetVgpuCompatibility ¶
func GetVgpuCompatibility(nvmlVgpuMetadata *nvmlVgpuMetadata, PgpuMetadata *nvmlVgpuPgpuMetadata) (VgpuPgpuCompatibility, Return)
nvml.GetVgpuCompatibility()
func GetVgpuVersion ¶
func GetVgpuVersion() (VgpuVersion, VgpuVersion, Return)
nvml.GetVgpuVersion()
func GpuInstanceCreateComputeInstance ¶
func GpuInstanceCreateComputeInstance(GpuInstance GpuInstance, Info *ComputeInstanceProfileInfo) (ComputeInstance, Return)
nvml.GpuInstanceCreateComputeInstance()
func GpuInstanceGetComputeInstanceById ¶
func GpuInstanceGetComputeInstanceById(GpuInstance GpuInstance, Id int) (ComputeInstance, Return)
nvml.GpuInstanceGetComputeInstanceById()
func GpuInstanceGetComputeInstanceProfileInfo ¶
func GpuInstanceGetComputeInstanceProfileInfo(GpuInstance GpuInstance, Profile int, EngProfile int) (ComputeInstanceProfileInfo, Return)
nvml.GpuInstanceGetComputeInstanceProfileInfo()
func GpuInstanceGetComputeInstances ¶
func GpuInstanceGetComputeInstances(GpuInstance GpuInstance, Info *ComputeInstanceProfileInfo) ([]ComputeInstance, Return)
nvml.GpuInstanceGetComputeInstances()
func GpuInstanceGetInfo ¶
func GpuInstanceGetInfo(GpuInstance GpuInstance) (GpuInstanceInfo, Return)
nvml.GpuInstanceGetInfo()
func SystemGetHicVersion ¶
nvml.SystemGetHicVersion()
func SystemGetTopologyGpuSet ¶
nvml.SystemGetTopologyGpuSet()
func UnitGetFanSpeedInfo ¶
func UnitGetFanSpeedInfo(Unit Unit) (UnitFanSpeeds, Return)
nvml.UnitGetFanSpeedInfo()
func UnitGetHandleByIndex ¶
nvml.UnitGetHandleByIndex()
func VgpuInstanceGetAccountingMode ¶
func VgpuInstanceGetAccountingMode(VgpuInstance VgpuInstance) (EnableState, Return)
nvml.VgpuInstanceGetAccountingMode()
func VgpuInstanceGetAccountingStats ¶
func VgpuInstanceGetAccountingStats(VgpuInstance VgpuInstance, Pid int) (AccountingStats, Return)
nvml.VgpuInstanceGetAccountingStats()
func VgpuInstanceGetEccMode ¶
func VgpuInstanceGetEccMode(VgpuInstance VgpuInstance) (EnableState, Return)
nvml.VgpuInstanceGetEccMode()
func VgpuInstanceGetEncoderSessions ¶
func VgpuInstanceGetEncoderSessions(VgpuInstance VgpuInstance) (int, EncoderSessionInfo, Return)
nvml.VgpuInstanceGetEncoderSessions()
func VgpuInstanceGetFBCSessions ¶
func VgpuInstanceGetFBCSessions(VgpuInstance VgpuInstance) (int, FBCSessionInfo, Return)
nvml.VgpuInstanceGetFBCSessions()
func VgpuInstanceGetFBCStats ¶
func VgpuInstanceGetFBCStats(VgpuInstance VgpuInstance) (FBCStats, Return)
nvml.VgpuInstanceGetFBCStats()
func VgpuInstanceGetMetadata ¶
func VgpuInstanceGetMetadata(VgpuInstance VgpuInstance) (VgpuMetadata, Return)
nvml.VgpuInstanceGetMetadata()
func VgpuInstanceGetType ¶
func VgpuInstanceGetType(VgpuInstance VgpuInstance) (VgpuTypeId, Return)
nvml.VgpuInstanceGetType()
func VgpuInstanceGetVmID ¶
func VgpuInstanceGetVmID(VgpuInstance VgpuInstance) (string, VgpuVmIdType, Return)
nvml.VgpuInstanceGetVmID()
Types ¶
type AccountingStats ¶
type AffinityScope ¶
type AffinityScope uint32
type BAR1Memory ¶
type BlacklistDeviceInfo ¶
type BridgeChipHierarchy ¶
type BridgeChipHierarchy struct { BridgeCount uint8 BridgeChipInfo [128]BridgeChipInfo }
type BridgeChipInfo ¶
type BridgeChipType ¶
type BridgeChipType int32
BridgeChipType as declared in nvml/nvml.h:249
const ( BRIDGE_CHIP_PLX BridgeChipType = iota BRIDGE_CHIP_BRO4 BridgeChipType = 1 )
BridgeChipType enumeration from nvml/nvml.h:249
type ClockLimitId ¶
type ClockLimitId int32
ClockLimitId as declared in nvml/nvml.h:4907
const ( CLOCK_LIMIT_ID_RANGE_START ClockLimitId = -256 CLOCK_LIMIT_ID_TDP ClockLimitId = -255 CLOCK_LIMIT_ID_UNLIMITED ClockLimitId = -254 )
ClockLimitId enumeration from nvml/nvml.h:4907
type ComputeInstance ¶
type ComputeInstance struct {
Handle *_Ctype_struct_nvmlComputeInstance_st
}
func (ComputeInstance) Destroy ¶
func (ComputeInstance ComputeInstance) Destroy() Return
func (ComputeInstance) GetInfo ¶
func (ComputeInstance ComputeInstance) GetInfo() (ComputeInstanceInfo, Return)
type ComputeInstanceInfo ¶
type ComputeInstanceInfo struct { Device Device GpuInstance GpuInstance Id uint32 ProfileId uint32 }
type ComputeMode ¶
type ComputeMode int32
ComputeMode as declared in nvml/nvml.h:568
const ( COMPUTEMODE_DEFAULT ComputeMode = iota COMPUTEMODE_EXCLUSIVE_THREAD ComputeMode = 1 COMPUTEMODE_PROHIBITED ComputeMode = 2 COMPUTEMODE_EXCLUSIVE_PROCESS ComputeMode = 3 COMPUTEMODE_COUNT ComputeMode = 4 )
ComputeMode enumeration from nvml/nvml.h:568
type DetachGpuState ¶
type DetachGpuState int32
DetachGpuState as declared in nvml/nvml.h:1680
const ( DETACH_GPU_KEEP DetachGpuState = iota DETACH_GPU_REMOVE DetachGpuState = 1 )
DetachGpuState enumeration from nvml/nvml.h:1680
type Device ¶
type Device struct {
Handle *_Ctype_struct_nvmlDevice_st
}
func (Device) ClearAccountingPids ¶
func (Device) ClearCpuAffinity ¶
func (Device) ClearEccErrorCounts ¶
func (Device Device) ClearEccErrorCounts(CounterType EccCounterType) Return
func (Device) CreateGpuInstance ¶
func (Device Device) CreateGpuInstance(Info *GpuInstanceProfileInfo) (GpuInstance, Return)
func (Device) FreezeNvLinkUtilizationCounter ¶
func (Device Device) FreezeNvLinkUtilizationCounter(Link int, Counter int, Freeze EnableState) Return
func (Device) GetAPIRestriction ¶
func (Device Device) GetAPIRestriction(ApiType RestrictedAPI) (EnableState, Return)
func (Device) GetAccountingBufferSize ¶
func (Device) GetAccountingMode ¶
func (Device Device) GetAccountingMode() (EnableState, Return)
func (Device) GetAccountingPids ¶
func (Device) GetAccountingStats ¶
func (Device Device) GetAccountingStats(Pid uint32) (AccountingStats, Return)
func (Device) GetActiveVgpus ¶
func (Device Device) GetActiveVgpus() ([]VgpuInstance, Return)
func (Device) GetApplicationsClock ¶
func (Device) GetArchitecture ¶
func (Device Device) GetArchitecture() (DeviceArchitecture, Return)
func (Device) GetAttributes ¶
func (Device Device) GetAttributes() (DeviceAttributes, Return)
func (Device) GetAutoBoostedClocksEnabled ¶
func (Device Device) GetAutoBoostedClocksEnabled() (EnableState, EnableState, Return)
func (Device) GetBAR1MemoryInfo ¶
func (Device Device) GetBAR1MemoryInfo() (BAR1Memory, Return)
func (Device) GetBoardId ¶
func (Device) GetBoardPartNumber ¶
func (Device) GetBridgeChipInfo ¶
func (Device Device) GetBridgeChipInfo() (BridgeChipHierarchy, Return)
func (Device) GetComputeInstanceId ¶
func (Device) GetComputeMode ¶
func (Device Device) GetComputeMode() (ComputeMode, Return)
func (Device) GetComputeRunningProcesses ¶
func (Device Device) GetComputeRunningProcesses() ([]ProcessInfo, Return)
func (Device) GetCpuAffinityWithinScope ¶
func (Device Device) GetCpuAffinityWithinScope(NumCPUs int, Scope AffinityScope) ([]uint, Return)
func (Device) GetCreatableVgpus ¶
func (Device Device) GetCreatableVgpus() ([]VgpuTypeId, Return)
func (Device) GetCudaComputeCapability ¶
func (Device) GetCurrPcieLinkGeneration ¶
func (Device) GetCurrPcieLinkWidth ¶
func (Device) GetCurrentClocksThrottleReasons ¶
func (Device) GetDecoderUtilization ¶
func (Device) GetDefaultApplicationsClock ¶
func (Device) GetDetailedEccErrors ¶
func (Device Device) GetDetailedEccErrors(ErrorType MemoryErrorType, CounterType EccCounterType) (EccErrorCounts, Return)
func (Device) GetDeviceHandleFromMigDeviceHandle ¶
func (Device) GetDisplayActive ¶
func (Device Device) GetDisplayActive() (EnableState, Return)
func (Device) GetDisplayMode ¶
func (Device Device) GetDisplayMode() (EnableState, Return)
func (Device) GetDriverModel ¶
func (Device Device) GetDriverModel() (DriverModel, DriverModel, Return)
func (Device) GetEccMode ¶
func (Device Device) GetEccMode() (EnableState, EnableState, Return)
func (Device) GetEncoderCapacity ¶
func (Device Device) GetEncoderCapacity(EncoderQueryType EncoderType) (int, Return)
func (Device) GetEncoderSessions ¶
func (Device Device) GetEncoderSessions() ([]EncoderSessionInfo, Return)
func (Device) GetEncoderStats ¶
func (Device) GetEncoderUtilization ¶
func (Device) GetEnforcedPowerLimit ¶
func (Device) GetFBCSessions ¶
func (Device Device) GetFBCSessions() ([]FBCSessionInfo, Return)
func (Device) GetFBCStats ¶
func (Device) GetFanSpeed ¶
func (Device) GetFieldValues ¶
func (Device Device) GetFieldValues(Values []FieldValue) Return
func (Device) GetGpuInstanceById ¶
func (Device Device) GetGpuInstanceById(Id int) (GpuInstance, Return)
func (Device) GetGpuInstanceId ¶
func (Device) GetGpuInstancePossiblePlacements ¶
func (Device Device) GetGpuInstancePossiblePlacements(Info *GpuInstanceProfileInfo) ([]GpuInstancePlacement, Return)
func (Device) GetGpuInstanceProfileInfo ¶
func (Device Device) GetGpuInstanceProfileInfo(Profile int) (GpuInstanceProfileInfo, Return)
func (Device) GetGpuInstanceRemainingCapacity ¶
func (Device Device) GetGpuInstanceRemainingCapacity(Info *GpuInstanceProfileInfo) (int, Return)
func (Device) GetGpuInstances ¶
func (Device Device) GetGpuInstances(Info *GpuInstanceProfileInfo) ([]GpuInstance, Return)
func (Device) GetGpuOperationMode ¶
func (Device Device) GetGpuOperationMode() (GpuOperationMode, GpuOperationMode, Return)
func (Device) GetGraphicsRunningProcesses ¶
func (Device Device) GetGraphicsRunningProcesses() ([]ProcessInfo, Return)
func (Device) GetGridLicensableFeatures ¶
func (Device Device) GetGridLicensableFeatures() (GridLicensableFeatures, Return)
func (Device) GetHostVgpuMode ¶
func (Device Device) GetHostVgpuMode() (HostVgpuMode, Return)
func (Device) GetInforomConfigurationChecksum ¶
func (Device) GetInforomImageVersion ¶
func (Device) GetInforomVersion ¶
func (Device Device) GetInforomVersion(Object InforomObject) (string, Return)
func (Device) GetMaxClockInfo ¶
func (Device) GetMaxCustomerBoostClock ¶
func (Device) GetMaxMigDeviceCount ¶
func (Device) GetMaxPcieLinkGeneration ¶
func (Device) GetMaxPcieLinkWidth ¶
func (Device) GetMemoryAffinity ¶
func (Device Device) GetMemoryAffinity(NumNodes int, Scope AffinityScope) ([]uint, Return)
func (Device) GetMemoryErrorCounter ¶
func (Device Device) GetMemoryErrorCounter(ErrorType MemoryErrorType, CounterType EccCounterType, LocationType MemoryLocation) (uint64, Return)
func (Device) GetMemoryInfo ¶
func (Device) GetMigDeviceHandleByIndex ¶
func (Device) GetMinorNumber ¶
func (Device) GetMultiGpuBoard ¶
func (Device) GetNvLinkCapability ¶
func (Device Device) GetNvLinkCapability(Link int, Capability NvLinkCapability) (uint32, Return)
func (Device) GetNvLinkErrorCounter ¶
func (Device Device) GetNvLinkErrorCounter(Link int, Counter NvLinkErrorCounter) (uint64, Return)
func (Device) GetNvLinkRemotePciInfo ¶
func (Device) GetNvLinkState ¶
func (Device Device) GetNvLinkState(Link int) (EnableState, Return)
func (Device) GetNvLinkUtilizationControl ¶
func (Device Device) GetNvLinkUtilizationControl(Link int, Counter int) (NvLinkUtilizationControl, Return)
func (Device) GetNvLinkUtilizationCounter ¶
func (Device) GetP2PStatus ¶
func (Device1 Device) GetP2PStatus(Device2 Device, P2pIndex GpuP2PCapsIndex) (GpuP2PStatus, Return)
func (Device) GetPciInfo ¶
func (Device) GetPcieReplayCounter ¶
func (Device) GetPcieThroughput ¶
func (Device Device) GetPcieThroughput(Counter PcieUtilCounter) (uint32, Return)
func (Device) GetPerformanceState ¶
func (Device) GetPersistenceMode ¶
func (Device Device) GetPersistenceMode() (EnableState, Return)
func (Device) GetPgpuMetadataString ¶
func (Device) GetPowerManagementDefaultLimit ¶
func (Device) GetPowerManagementLimit ¶
func (Device) GetPowerManagementLimitConstraints ¶
func (Device) GetPowerManagementMode ¶
func (Device Device) GetPowerManagementMode() (EnableState, Return)
func (Device) GetPowerState ¶
func (Device) GetPowerUsage ¶
func (Device) GetProcessUtilization ¶
func (Device Device) GetProcessUtilization(LastSeenTimeStamp uint64) ([]ProcessUtilizationSample, Return)
func (Device) GetRemappedRows ¶
func (Device) GetRetiredPages ¶
func (Device Device) GetRetiredPages(Cause PageRetirementCause) ([]uint64, Return)
func (Device) GetRetiredPagesPendingStatus ¶
func (Device Device) GetRetiredPagesPendingStatus() (EnableState, Return)
func (Device) GetRetiredPages_v2 ¶
func (Device Device) GetRetiredPages_v2(Cause PageRetirementCause) ([]uint64, []uint64, Return)
func (Device) GetSamples ¶
func (Device) GetSupportedClocksThrottleReasons ¶
func (Device) GetSupportedEventTypes ¶
func (Device) GetSupportedGraphicsClocks ¶
func (Device) GetSupportedMemoryClocks ¶
func (Device) GetSupportedVgpus ¶
func (Device Device) GetSupportedVgpus() ([]VgpuTypeId, Return)
func (Device) GetTemperature ¶
func (Device Device) GetTemperature(SensorType TemperatureSensors) (uint32, Return)
func (Device) GetTemperatureThreshold ¶
func (Device Device) GetTemperatureThreshold(ThresholdType TemperatureThresholds) (uint32, Return)
func (Device) GetTopologyCommonAncestor ¶
func (Device1 Device) GetTopologyCommonAncestor(Device2 Device) (GpuTopologyLevel, Return)
func (Device) GetTopologyNearestGpus ¶
func (Device Device) GetTopologyNearestGpus(Level GpuTopologyLevel) ([]Device, Return)
func (Device) GetTotalEccErrors ¶
func (Device Device) GetTotalEccErrors(ErrorType MemoryErrorType, CounterType EccCounterType) (uint64, Return)
func (Device) GetTotalEnergyConsumption ¶
func (Device) GetUtilizationRates ¶
func (Device Device) GetUtilizationRates() (Utilization, Return)
func (Device) GetVbiosVersion ¶
func (Device) GetVgpuMetadata ¶
func (Device Device) GetVgpuMetadata() (VgpuPgpuMetadata, Return)
func (Device) GetVgpuProcessUtilization ¶
func (Device Device) GetVgpuProcessUtilization(LastSeenTimeStamp uint64) ([]VgpuProcessUtilizationSample, Return)
func (Device) GetVgpuUtilization ¶
func (Device Device) GetVgpuUtilization(LastSeenTimeStamp uint64) (ValueType, []VgpuInstanceUtilizationSample, Return)
func (Device) GetViolationStatus ¶
func (Device Device) GetViolationStatus(PerfPolicyType PerfPolicyType) (ViolationTime, Return)
func (Device) GetVirtualizationMode ¶
func (Device Device) GetVirtualizationMode() (GpuVirtualizationMode, Return)
func (Device) IsMigDeviceHandle ¶
func (Device) RegisterEvents ¶
func (Device) ResetApplicationsClocks ¶
func (Device) ResetGpuLockedClocks ¶
func (Device) ResetNvLinkErrorCounters ¶
func (Device) ResetNvLinkUtilizationCounter ¶
func (Device) SetAPIRestriction ¶
func (Device Device) SetAPIRestriction(ApiType RestrictedAPI, IsRestricted EnableState) Return
func (Device) SetAccountingMode ¶
func (Device Device) SetAccountingMode(Mode EnableState) Return
func (Device) SetApplicationsClocks ¶
func (Device) SetAutoBoostedClocksEnabled ¶
func (Device Device) SetAutoBoostedClocksEnabled(Enabled EnableState) Return
func (Device) SetComputeMode ¶
func (Device Device) SetComputeMode(Mode ComputeMode) Return
func (Device) SetCpuAffinity ¶
func (Device) SetDefaultAutoBoostedClocksEnabled ¶
func (Device Device) SetDefaultAutoBoostedClocksEnabled(Enabled EnableState, Flags uint32) Return
func (Device) SetDriverModel ¶
func (Device Device) SetDriverModel(DriverModel DriverModel, Flags uint32) Return
func (Device) SetEccMode ¶
func (Device Device) SetEccMode(Ecc EnableState) Return
func (Device) SetGpuLockedClocks ¶
func (Device) SetGpuOperationMode ¶
func (Device Device) SetGpuOperationMode(Mode GpuOperationMode) Return
func (Device) SetNvLinkUtilizationControl ¶
func (Device) SetPersistenceMode ¶
func (Device Device) SetPersistenceMode(Mode EnableState) Return
func (Device) SetPowerManagementLimit ¶
func (Device) SetVirtualizationMode ¶
func (Device Device) SetVirtualizationMode(VirtualMode GpuVirtualizationMode) Return
func (Device) ValidateInforom ¶
func (Device) VgpuTypeGetMaxInstances ¶
func (Device Device) VgpuTypeGetMaxInstances(VgpuTypeId VgpuTypeId) (int, Return)
type DeviceArchitecture ¶
type DeviceArchitecture uint32
type DeviceAttributes ¶
type DeviceAttributes struct { MultiprocessorCount uint32 }
type DriverModel ¶
type DriverModel int32
DriverModel as declared in nvml/nvml.h:674
const ( DRIVER_WDDM DriverModel = iota DRIVER_WDM DriverModel = 1 )
DriverModel enumeration from nvml/nvml.h:674
type EccCounterType ¶
type EccCounterType int32
EccCounterType as declared in nvml/nvml.h:632
const ( VOLATILE_ECC EccCounterType = iota AGGREGATE_ECC EccCounterType = 1 ECC_COUNTER_TYPE_COUNT EccCounterType = 2 )
EccCounterType enumeration from nvml/nvml.h:632
type EccErrorCounts ¶
type EnableState ¶
type EnableState int32
EnableState as declared in nvml/nvml.h:503
const ( FEATURE_DISABLED EnableState = iota FEATURE_ENABLED EnableState = 1 )
EnableState enumeration from nvml/nvml.h:503
type EncoderSessionInfo ¶
type EncoderType ¶
type EncoderType int32
EncoderType as declared in nvml/nvml.h:1593
const ( ENCODER_QUERY_H264 EncoderType = iota ENCODER_QUERY_HEVC EncoderType = 1 )
EncoderType enumeration from nvml/nvml.h:1593
type FBCSessionInfo ¶
type FBCSessionType ¶
type FBCSessionType int32
FBCSessionType as declared in nvml/nvml.h:1628
const ( FBC_SESSION_TYPE_UNKNOWN FBCSessionType = iota FBC_SESSION_TYPE_TOSYS FBCSessionType = 1 FBC_SESSION_TYPE_CUDA FBCSessionType = 2 FBC_SESSION_TYPE_VID FBCSessionType = 3 FBC_SESSION_TYPE_HWENC FBCSessionType = 4 )
FBCSessionType enumeration from nvml/nvml.h:1628
type FieldValue ¶
type GpuInstance ¶
type GpuInstance struct {
Handle *_Ctype_struct_nvmlGpuInstance_st
}
func (GpuInstance) CreateComputeInstance ¶
func (GpuInstance GpuInstance) CreateComputeInstance(Info *ComputeInstanceProfileInfo) (ComputeInstance, Return)
func (GpuInstance) Destroy ¶
func (GpuInstance GpuInstance) Destroy() Return
func (GpuInstance) GetComputeInstanceById ¶
func (GpuInstance GpuInstance) GetComputeInstanceById(Id int) (ComputeInstance, Return)
func (GpuInstance) GetComputeInstanceProfileInfo ¶
func (GpuInstance GpuInstance) GetComputeInstanceProfileInfo(Profile int, EngProfile int) (ComputeInstanceProfileInfo, Return)
func (GpuInstance) GetComputeInstanceRemainingCapacity ¶
func (GpuInstance GpuInstance) GetComputeInstanceRemainingCapacity(Info *ComputeInstanceProfileInfo) (int, Return)
func (GpuInstance) GetComputeInstances ¶
func (GpuInstance GpuInstance) GetComputeInstances(Info *ComputeInstanceProfileInfo) ([]ComputeInstance, Return)
func (GpuInstance) GetInfo ¶
func (GpuInstance GpuInstance) GetInfo() (GpuInstanceInfo, Return)
type GpuInstanceInfo ¶
type GpuInstanceInfo struct { Device Device Id uint32 ProfileId uint32 Placement GpuInstancePlacement }
type GpuInstancePlacement ¶
type GpuInstanceProfileInfo ¶
type GpuOperationMode ¶
type GpuOperationMode int32
GpuOperationMode as declared in nvml/nvml.h:716
const ( GOM_ALL_ON GpuOperationMode = iota GOM_COMPUTE GpuOperationMode = 1 GOM_LOW_DP GpuOperationMode = 2 )
GpuOperationMode enumeration from nvml/nvml.h:716
type GpuP2PCapsIndex ¶
type GpuP2PCapsIndex int32
GpuP2PCapsIndex as declared in nvml/nvml.h:368
const ( P2P_CAPS_INDEX_READ GpuP2PCapsIndex = iota P2P_CAPS_INDEX_WRITE GpuP2PCapsIndex = 1 P2P_CAPS_INDEX_NVLINK GpuP2PCapsIndex = 2 P2P_CAPS_INDEX_ATOMICS GpuP2PCapsIndex = 3 P2P_CAPS_INDEX_PROP GpuP2PCapsIndex = 4 P2P_CAPS_INDEX_UNKNOWN GpuP2PCapsIndex = 5 )
GpuP2PCapsIndex enumeration from nvml/nvml.h:368
type GpuP2PStatus ¶
type GpuP2PStatus int32
GpuP2PStatus as declared in nvml/nvml.h:357
const ( P2P_STATUS_OK GpuP2PStatus = iota P2P_STATUS_CHIPSET_NOT_SUPPORED GpuP2PStatus = 1 P2P_STATUS_GPU_NOT_SUPPORTED GpuP2PStatus = 2 P2P_STATUS_IOH_TOPOLOGY_NOT_SUPPORTED GpuP2PStatus = 3 P2P_STATUS_DISABLED_BY_REGKEY GpuP2PStatus = 4 P2P_STATUS_NOT_SUPPORTED GpuP2PStatus = 5 P2P_STATUS_UNKNOWN GpuP2PStatus = 6 )
GpuP2PStatus enumeration from nvml/nvml.h:357
type GpuTopologyLevel ¶
type GpuTopologyLevel int32
GpuTopologyLevel as declared in nvml/nvml.h:341
const ( TOPOLOGY_INTERNAL GpuTopologyLevel = iota TOPOLOGY_SINGLE GpuTopologyLevel = 10 TOPOLOGY_MULTIPLE GpuTopologyLevel = 20 TOPOLOGY_HOSTBRIDGE GpuTopologyLevel = 30 TOPOLOGY_NODE GpuTopologyLevel = 40 TOPOLOGY_SYSTEM GpuTopologyLevel = 50 )
GpuTopologyLevel enumeration from nvml/nvml.h:341
type GpuVirtualizationMode ¶
type GpuVirtualizationMode int32
GpuVirtualizationMode as declared in nvml/nvml.h:828
const ( GPU_VIRTUALIZATION_MODE_NONE GpuVirtualizationMode = iota GPU_VIRTUALIZATION_MODE_PASSTHROUGH GpuVirtualizationMode = 1 GPU_VIRTUALIZATION_MODE_VGPU GpuVirtualizationMode = 2 GPU_VIRTUALIZATION_MODE_HOST_VGPU GpuVirtualizationMode = 3 GPU_VIRTUALIZATION_MODE_HOST_VSGA GpuVirtualizationMode = 4 )
GpuVirtualizationMode enumeration from nvml/nvml.h:828
type GridLicensableFeature ¶
type GridLicensableFeatures ¶
type GridLicensableFeatures struct { IsGridLicenseSupported int32 LicensableFeaturesCount uint32 GridLicensableFeatures [3]GridLicensableFeature }
type GridLicenseFeatureCode ¶
type GridLicenseFeatureCode int32
GridLicenseFeatureCode as declared in nvml/nvml.h:862
const ( GRID_LICENSE_FEATURE_CODE_VGPU GridLicenseFeatureCode = 1 GRID_LICENSE_FEATURE_CODE_VWORKSTATION GridLicenseFeatureCode = 2 )
GridLicenseFeatureCode enumeration from nvml/nvml.h:862
type HostVgpuMode ¶
type HostVgpuMode int32
HostVgpuMode as declared in nvml/nvml.h:837
const ( HOST_VGPU_MODE_NON_SRIOV HostVgpuMode = iota HOST_VGPU_MODE_SRIOV HostVgpuMode = 1 )
HostVgpuMode enumeration from nvml/nvml.h:837
type InforomObject ¶
type InforomObject int32
InforomObject as declared in nvml/nvml.h:729
const ( INFOROM_OEM InforomObject = iota INFOROM_ECC InforomObject = 1 INFOROM_POWER InforomObject = 2 INFOROM_COUNT InforomObject = 3 )
InforomObject enumeration from nvml/nvml.h:729
type MemoryErrorType ¶
type MemoryErrorType int32
MemoryErrorType as declared in nvml/nvml.h:615
const ( MEMORY_ERROR_TYPE_CORRECTED MemoryErrorType = iota MEMORY_ERROR_TYPE_UNCORRECTED MemoryErrorType = 1 MEMORY_ERROR_TYPE_COUNT MemoryErrorType = 2 )
MemoryErrorType enumeration from nvml/nvml.h:615
type MemoryLocation ¶
type MemoryLocation int32
MemoryLocation as declared in nvml/nvml.h:780
const ( MEMORY_LOCATION_L1_CACHE MemoryLocation = iota MEMORY_LOCATION_L2_CACHE MemoryLocation = 1 MEMORY_LOCATION_DRAM MemoryLocation = 2 MEMORY_LOCATION_DEVICE_MEMORY MemoryLocation = 2 MEMORY_LOCATION_REGISTER_FILE MemoryLocation = 3 MEMORY_LOCATION_TEXTURE_MEMORY MemoryLocation = 4 MEMORY_LOCATION_TEXTURE_SHM MemoryLocation = 5 MEMORY_LOCATION_CBU MemoryLocation = 6 MEMORY_LOCATION_SRAM MemoryLocation = 7 MEMORY_LOCATION_COUNT MemoryLocation = 8 )
MemoryLocation enumeration from nvml/nvml.h:780
type NvLinkCapability ¶
type NvLinkCapability int32
NvLinkCapability as declared in nvml/nvml.h:311
const ( NVLINK_CAP_P2P_SUPPORTED NvLinkCapability = iota NVLINK_CAP_SYSMEM_ACCESS NvLinkCapability = 1 NVLINK_CAP_P2P_ATOMICS NvLinkCapability = 2 NVLINK_CAP_SYSMEM_ATOMICS NvLinkCapability = 3 NVLINK_CAP_SLI_BRIDGE NvLinkCapability = 4 NVLINK_CAP_VALID NvLinkCapability = 5 NVLINK_CAP_COUNT NvLinkCapability = 6 )
NvLinkCapability enumeration from nvml/nvml.h:311
type NvLinkErrorCounter ¶
type NvLinkErrorCounter int32
NvLinkErrorCounter as declared in nvml/nvml.h:325
const ( NVLINK_ERROR_DL_REPLAY NvLinkErrorCounter = iota NVLINK_ERROR_DL_RECOVERY NvLinkErrorCounter = 1 NVLINK_ERROR_DL_CRC_FLIT NvLinkErrorCounter = 2 NVLINK_ERROR_DL_CRC_DATA NvLinkErrorCounter = 3 NVLINK_ERROR_COUNT NvLinkErrorCounter = 4 )
NvLinkErrorCounter enumeration from nvml/nvml.h:325
type NvLinkUtilizationCountPktTypes ¶
type NvLinkUtilizationCountPktTypes int32
NvLinkUtilizationCountPktTypes as declared in nvml/nvml.h:287
const ( NVLINK_COUNTER_PKTFILTER_NOP NvLinkUtilizationCountPktTypes = 1 NVLINK_COUNTER_PKTFILTER_READ NvLinkUtilizationCountPktTypes = 2 NVLINK_COUNTER_PKTFILTER_WRITE NvLinkUtilizationCountPktTypes = 4 NVLINK_COUNTER_PKTFILTER_RATOM NvLinkUtilizationCountPktTypes = 8 NVLINK_COUNTER_PKTFILTER_NRATOM NvLinkUtilizationCountPktTypes = 16 NVLINK_COUNTER_PKTFILTER_FLUSH NvLinkUtilizationCountPktTypes = 32 NVLINK_COUNTER_PKTFILTER_RESPDATA NvLinkUtilizationCountPktTypes = 64 NVLINK_COUNTER_PKTFILTER_RESPNODATA NvLinkUtilizationCountPktTypes = 128 NVLINK_COUNTER_PKTFILTER_ALL NvLinkUtilizationCountPktTypes = 255 )
NvLinkUtilizationCountPktTypes enumeration from nvml/nvml.h:287
type NvLinkUtilizationCountUnits ¶
type NvLinkUtilizationCountUnits int32
NvLinkUtilizationCountUnits as declared in nvml/nvml.h:267
const ( NVLINK_COUNTER_UNIT_CYCLES NvLinkUtilizationCountUnits = iota NVLINK_COUNTER_UNIT_PACKETS NvLinkUtilizationCountUnits = 1 NVLINK_COUNTER_UNIT_BYTES NvLinkUtilizationCountUnits = 2 NVLINK_COUNTER_UNIT_RESERVED NvLinkUtilizationCountUnits = 3 NVLINK_COUNTER_UNIT_COUNT NvLinkUtilizationCountUnits = 4 )
NvLinkUtilizationCountUnits enumeration from nvml/nvml.h:267
type PageRetirementCause ¶
type PageRetirementCause int32
PageRetirementCause as declared in nvml/nvml.h:792
const ( PAGE_RETIREMENT_CAUSE_MULTIPLE_SINGLE_BIT_ECC_ERRORS PageRetirementCause = iota PAGE_RETIREMENT_CAUSE_DOUBLE_BIT_ECC_ERROR PageRetirementCause = 1 PAGE_RETIREMENT_CAUSE_COUNT PageRetirementCause = 2 )
PageRetirementCause enumeration from nvml/nvml.h:792
type PcieLinkState ¶
type PcieLinkState int32
PcieLinkState as declared in nvml/nvml.h:1689
const ( PCIE_LINK_KEEP PcieLinkState = iota PCIE_LINK_SHUT_DOWN PcieLinkState = 1 )
PcieLinkState enumeration from nvml/nvml.h:1689
type PcieUtilCounter ¶
type PcieUtilCounter int32
PcieUtilCounter as declared in nvml/nvml.h:421
const ( PCIE_UTIL_TX_BYTES PcieUtilCounter = iota PCIE_UTIL_RX_BYTES PcieUtilCounter = 1 PCIE_UTIL_COUNT PcieUtilCounter = 2 )
PcieUtilCounter enumeration from nvml/nvml.h:421
type PerfPolicyType ¶
type PerfPolicyType int32
PerfPolicyType as declared in nvml/nvml.h:477
const ( PERF_POLICY_POWER PerfPolicyType = iota PERF_POLICY_THERMAL PerfPolicyType = 1 PERF_POLICY_SYNC_BOOST PerfPolicyType = 2 PERF_POLICY_BOARD_LIMIT PerfPolicyType = 3 PERF_POLICY_LOW_UTILIZATION PerfPolicyType = 4 PERF_POLICY_RELIABILITY PerfPolicyType = 5 PERF_POLICY_TOTAL_APP_CLOCKS PerfPolicyType = 10 PERF_POLICY_TOTAL_BASE_CLOCKS PerfPolicyType = 11 PERF_POLICY_COUNT PerfPolicyType = 12 )
PerfPolicyType enumeration from nvml/nvml.h:477
type ProcessInfo ¶
type Pstates ¶
type Pstates int32
Pstates as declared in nvml/nvml.h:698
const ( PSTATE_0 Pstates = iota PSTATE_1 Pstates = 1 PSTATE_2 Pstates = 2 PSTATE_3 Pstates = 3 PSTATE_4 Pstates = 4 PSTATE_5 Pstates = 5 PSTATE_6 Pstates = 6 PSTATE_7 Pstates = 7 PSTATE_8 Pstates = 8 PSTATE_9 Pstates = 9 PSTATE_10 Pstates = 10 PSTATE_11 Pstates = 11 PSTATE_12 Pstates = 12 PSTATE_13 Pstates = 13 PSTATE_14 Pstates = 14 PSTATE_15 Pstates = 15 PSTATE_UNKNOWN Pstates = 32 )
Pstates enumeration from nvml/nvml.h:698
type RestrictedAPI ¶
type RestrictedAPI int32
RestrictedAPI as declared in nvml/nvml.h:805
const ( RESTRICTED_API_SET_APPLICATION_CLOCKS RestrictedAPI = iota RESTRICTED_API_SET_AUTO_BOOSTED_CLOCKS RestrictedAPI = 1 RESTRICTED_API_COUNT RestrictedAPI = 2 )
RestrictedAPI enumeration from nvml/nvml.h:805
type Return ¶
type Return int32
Return as declared in nvml/nvml.h:762
const ( SUCCESS Return = iota ERROR_UNINITIALIZED Return = 1 ERROR_INVALID_ARGUMENT Return = 2 ERROR_NOT_SUPPORTED Return = 3 ERROR_NO_PERMISSION Return = 4 ERROR_ALREADY_INITIALIZED Return = 5 ERROR_NOT_FOUND Return = 6 ERROR_INSUFFICIENT_SIZE Return = 7 ERROR_INSUFFICIENT_POWER Return = 8 ERROR_DRIVER_NOT_LOADED Return = 9 ERROR_TIMEOUT Return = 10 ERROR_IRQ_ISSUE Return = 11 ERROR_LIBRARY_NOT_FOUND Return = 12 ERROR_FUNCTION_NOT_FOUND Return = 13 ERROR_CORRUPTED_INFOROM Return = 14 ERROR_GPU_IS_LOST Return = 15 ERROR_RESET_REQUIRED Return = 16 ERROR_OPERATING_SYSTEM Return = 17 ERROR_LIB_RM_VERSION_MISMATCH Return = 18 ERROR_IN_USE Return = 19 ERROR_MEMORY Return = 20 ERROR_NO_DATA Return = 21 ERROR_VGPU_ECC_NOT_SUPPORTED Return = 22 ERROR_INSUFFICIENT_RESOURCES Return = 23 ERROR_UNKNOWN Return = 999 )
Return enumeration from nvml/nvml.h:762
func ComputeInstanceDestroy ¶
func ComputeInstanceDestroy(ComputeInstance ComputeInstance) Return
nvml.ComputeInstanceDestroy()
func DeviceClearAccountingPids ¶
nvml.DeviceClearAccountingPids()
func DeviceClearCpuAffinity ¶
nvml.DeviceClearCpuAffinity()
func DeviceClearEccErrorCounts ¶
func DeviceClearEccErrorCounts(Device Device, CounterType EccCounterType) Return
nvml.DeviceClearEccErrorCounts()
func DeviceFreezeNvLinkUtilizationCounter ¶
func DeviceFreezeNvLinkUtilizationCounter(Device Device, Link int, Counter int, Freeze EnableState) Return
nvml.DeviceFreezeNvLinkUtilizationCounter()
func DeviceGetAccountingBufferSize ¶
nvml.DeviceGetAccountingBufferSize()
func DeviceGetAccountingPids ¶
nvml.DeviceGetAccountingPids()
func DeviceGetApplicationsClock ¶
nvml.DeviceGetApplicationsClock()
func DeviceGetBoardId ¶
nvml.DeviceGetBoardId()
func DeviceGetBoardPartNumber ¶
nvml.DeviceGetBoardPartNumber()
func DeviceGetClock ¶
nvml.DeviceGetClock()
func DeviceGetClockInfo ¶
nvml.nvmlDeviceGetClockInfo()
func DeviceGetComputeInstanceId ¶
nvml.DeviceGetComputeInstanceId()
func DeviceGetCpuAffinity ¶
nvml.DeviceGetCpuAffinity()
func DeviceGetCpuAffinityWithinScope ¶
func DeviceGetCpuAffinityWithinScope(Device Device, NumCPUs int, Scope AffinityScope) ([]uint, Return)
nvml.DeviceGetCpuAffinityWithinScope()
func DeviceGetCudaComputeCapability ¶
nvml.DeviceGetCudaComputeCapability()
func DeviceGetCurrPcieLinkGeneration ¶
nvml.DeviceGetCurrPcieLinkGeneration()
func DeviceGetCurrPcieLinkWidth ¶
nvml.DeviceGetCurrPcieLinkWidth()
func DeviceGetCurrentClocksThrottleReasons ¶
nvml.DeviceGetCurrentClocksThrottleReasons()
func DeviceGetDecoderUtilization ¶
nvml.DeviceGetDecoderUtilization()
func DeviceGetDefaultApplicationsClock ¶
nvml.DeviceGetDefaultApplicationsClock()
func DeviceGetEncoderCapacity ¶
func DeviceGetEncoderCapacity(Device Device, EncoderQueryType EncoderType) (int, Return)
nvml.DeviceGetEncoderCapacity()
func DeviceGetEncoderStats ¶
nvml.DeviceGetEncoderStats()
func DeviceGetEncoderUtilization ¶
nvml.DeviceGetEncoderUtilization()
func DeviceGetEnforcedPowerLimit ¶
nvml.DeviceGetEnforcedPowerLimit()
func DeviceGetFanSpeed ¶
nvml.DeviceGetFanSpeed()
func DeviceGetFanSpeed_v2 ¶
nvml.DeviceGetFanSpeed_v2()
func DeviceGetFieldValues ¶
func DeviceGetFieldValues(Device Device, Values []FieldValue) Return
nvml.DeviceGetFieldValues()
func DeviceGetGpuInstanceId ¶
nvml DeviceGetGpuInstanceId()
func DeviceGetGpuInstanceRemainingCapacity ¶
func DeviceGetGpuInstanceRemainingCapacity(Device Device, Info *GpuInstanceProfileInfo) (int, Return)
nvml.DeviceGetGpuInstanceRemainingCapacity()
func DeviceGetInforomConfigurationChecksum ¶
nvml.DeviceGetInforomConfigurationChecksum()
func DeviceGetInforomImageVersion ¶
nvml.DeviceGetInforomImageVersion()
func DeviceGetInforomVersion ¶
func DeviceGetInforomVersion(Device Device, Object InforomObject) (string, Return)
nvml.DeviceGetInforomVersion()
func DeviceGetMaxClockInfo ¶
nvml.DeviceGetMaxClockInfo()
func DeviceGetMaxCustomerBoostClock ¶
nvml.DeviceGetMaxCustomerBoostClock()
func DeviceGetMaxMigDeviceCount ¶
nvml.DeviceGetMaxMigDeviceCount()
func DeviceGetMaxPcieLinkGeneration ¶
nvml.DeviceGetMaxPcieLinkGeneration()
func DeviceGetMaxPcieLinkWidth ¶
nvml.DeviceGetMaxPcieLinkWidth()
func DeviceGetMemoryAffinity ¶
func DeviceGetMemoryAffinity(Device Device, NumNodes int, Scope AffinityScope) ([]uint, Return)
nvml.DeviceGetMemoryAffinity()
func DeviceGetMemoryErrorCounter ¶
func DeviceGetMemoryErrorCounter(Device Device, ErrorType MemoryErrorType, CounterType EccCounterType, LocationType MemoryLocation) (uint64, Return)
nvml.DeviceGetMemoryErrorCounter()
func DeviceGetMigMode ¶
nvml.DeviceGetMigMode()
func DeviceGetMinorNumber ¶
nvml.DeviceGetMinorNumber()
func DeviceGetMultiGpuBoard ¶
nvml.DeviceGetMultiGpuBoard()
func DeviceGetNvLinkCapability ¶
func DeviceGetNvLinkCapability(Device Device, Link int, Capability NvLinkCapability) (uint32, Return)
nvml.DeviceGetNvLinkCapability()
func DeviceGetNvLinkErrorCounter ¶
func DeviceGetNvLinkErrorCounter(Device Device, Link int, Counter NvLinkErrorCounter) (uint64, Return)
nvml.DeviceGetNvLinkErrorCounter()
func DeviceGetNvLinkUtilizationCounter ¶
func DeviceGetNvLinkUtilizationCounter(Device Device, Link int, Counter int) (uint64, uint64, Return)
nvml.DeviceGetNvLinkUtilizationCounter()
func DeviceGetNvLinkVersion ¶
nvml.DeviceGetNvLinkVersion()
func DeviceGetPcieReplayCounter ¶
nvml.DeviceGetPcieReplayCounter()
func DeviceGetPcieThroughput ¶
func DeviceGetPcieThroughput(Device Device, Counter PcieUtilCounter) (uint32, Return)
nvml.DeviceGetPcieThroughput()
func DeviceGetPgpuMetadataString ¶
nvml.DeviceGetPgpuMetadataString()
func DeviceGetPowerManagementDefaultLimit ¶
nvml.DeviceGetPowerManagementDefaultLimit()
func DeviceGetPowerManagementLimit ¶
nvml.DeviceGetPowerManagementLimit()
func DeviceGetPowerManagementLimitConstraints ¶
nvml.DeviceGetPowerManagementLimitConstraints()
func DeviceGetPowerUsage ¶
nvml.DeviceGetPowerUsage()
func DeviceGetRemappedRows ¶
nvml.DeviceGetRemappedRows()
func DeviceGetRetiredPages ¶
func DeviceGetRetiredPages(Device Device, Cause PageRetirementCause) ([]uint64, Return)
nvml.DeviceGetRetiredPages()
func DeviceGetRetiredPages_v2 ¶
func DeviceGetRetiredPages_v2(Device Device, Cause PageRetirementCause) ([]uint64, []uint64, Return)
nvml.DeviceGetRetiredPages_v2()
func DeviceGetSupportedClocksThrottleReasons ¶
nvml.DeviceGetSupportedClocksThrottleReasons()
func DeviceGetSupportedEventTypes ¶
nvmlDeviceGetSupportedEventTypes()
func DeviceGetSupportedGraphicsClocks ¶
nvml.DeviceGetSupportedGraphicsClocks()
func DeviceGetSupportedMemoryClocks ¶
nvml.DeviceGetSupportedMemoryClocks()
func DeviceGetTemperature ¶
func DeviceGetTemperature(Device Device, SensorType TemperatureSensors) (uint32, Return)
nvml.DeviceGetTemperature()
func DeviceGetTemperatureThreshold ¶
func DeviceGetTemperatureThreshold(Device Device, ThresholdType TemperatureThresholds) (uint32, Return)
nvml.DeviceGetTemperatureThreshold()
func DeviceGetTotalEccErrors ¶
func DeviceGetTotalEccErrors(Device Device, ErrorType MemoryErrorType, CounterType EccCounterType) (uint64, Return)
nvml.DeviceGetTotalEccErrors()
func DeviceGetTotalEnergyConsumption ¶
nvml.DeviceGetTotalEnergyConsumption()
func DeviceGetVbiosVersion ¶
nvml.DeviceGetVbiosVersion()
func DeviceIsMigDeviceHandle ¶
nvml.DeviceIsMigDeviceHandle()
func DeviceModifyDrainState ¶
func DeviceModifyDrainState(PciInfo *PciInfo, NewState EnableState) Return
nvml.DeviceModifyDrainState()
func DeviceOnSameBoard ¶
nvml.DeviceOnSameBoard()
func DeviceRegisterEvents ¶
nvml.DeviceRegisterEvents()
func DeviceRemoveGpu_v2 ¶
func DeviceRemoveGpu_v2(PciInfo *PciInfo, GpuState DetachGpuState, LinkState PcieLinkState) Return
nvml.DeviceRemoveGpu_v2()
func DeviceResetApplicationsClocks ¶
nvml.DeviceResetApplicationsClocks()
func DeviceResetGpuLockedClocks ¶
nvml.DeviceResetGpuLockedClocks()
func DeviceResetNvLinkErrorCounters ¶
nvml.DeviceResetNvLinkErrorCounters()
func DeviceResetNvLinkUtilizationCounter ¶
nvml.DeviceResetNvLinkUtilizationCounter()
func DeviceSetAPIRestriction ¶
func DeviceSetAPIRestriction(Device Device, ApiType RestrictedAPI, IsRestricted EnableState) Return
nvml.DeviceSetAPIRestriction()
func DeviceSetAccountingMode ¶
func DeviceSetAccountingMode(Device Device, Mode EnableState) Return
nvml.DeviceSetAccountingMode()
func DeviceSetApplicationsClocks ¶
nvml.DeviceSetApplicationsClocks()
func DeviceSetAutoBoostedClocksEnabled ¶
func DeviceSetAutoBoostedClocksEnabled(Device Device, Enabled EnableState) Return
nvml.DeviceSetAutoBoostedClocksEnabled()
func DeviceSetComputeMode ¶
func DeviceSetComputeMode(Device Device, Mode ComputeMode) Return
nvml.DeviceSetComputeMode()
func DeviceSetCpuAffinity ¶
nvml.DeviceSetCpuAffinity()
func DeviceSetDefaultAutoBoostedClocksEnabled ¶
func DeviceSetDefaultAutoBoostedClocksEnabled(Device Device, Enabled EnableState, Flags uint32) Return
nvml.DeviceSetDefaultAutoBoostedClocksEnabled()
func DeviceSetDriverModel ¶
func DeviceSetDriverModel(Device Device, DriverModel DriverModel, Flags uint32) Return
nvml.DeviceSetDriverModel()
func DeviceSetEccMode ¶
func DeviceSetEccMode(Device Device, Ecc EnableState) Return
nvml.DeviceSetEccMode()
func DeviceSetGpuLockedClocks ¶
nvml.DeviceSetGpuLockedClocks()
func DeviceSetGpuOperationMode ¶
func DeviceSetGpuOperationMode(Device Device, Mode GpuOperationMode) Return
nvml.DeviceSetGpuOperationMode()
func DeviceSetNvLinkUtilizationControl ¶
func DeviceSetNvLinkUtilizationControl(Device Device, Link int, Counter int, Control *NvLinkUtilizationControl, Reset bool) Return
nvml.DeviceSetNvLinkUtilizationControl()
func DeviceSetPersistenceMode ¶
func DeviceSetPersistenceMode(Device Device, Mode EnableState) Return
nvml.DeviceSetPersistenceMode()
func DeviceSetPowerManagementLimit ¶
nvml.DeviceSetPowerManagementLimit()
func DeviceSetVirtualizationMode ¶
func DeviceSetVirtualizationMode(Device Device, VirtualMode GpuVirtualizationMode) Return
nvml.DeviceSetVirtualizationMode()
func DeviceValidateInforom ¶
nvml.DeviceValidateInforom()
func GetBlacklistDeviceCount ¶
nvml.GetBlacklistDeviceCount()
func GpuInstanceDestroy ¶
func GpuInstanceDestroy(GpuInstance GpuInstance) Return
nvml.GpuInstanceDestroy()
func GpuInstanceGetComputeInstanceRemainingCapacity ¶
func GpuInstanceGetComputeInstanceRemainingCapacity(GpuInstance GpuInstance, Info *ComputeInstanceProfileInfo) (int, Return)
nvml.GpuInstanceGetComputeInstanceRemainingCapacity()
func SystemGetCudaDriverVersion ¶
nvml.SystemGetCudaDriverVersion()
func SystemGetCudaDriverVersion_v2 ¶
nvml.SystemGetCudaDriverVersion_v2()
func SystemGetDriverVersion ¶
nvml.SystemGetDriverVersion()
func SystemGetNVMLVersion ¶
nvml.SystemGetNVMLVersion()
func SystemGetProcessName ¶
nvml.SystemGetProcessName()
func UnitGetTemperature ¶
nvml.UnitGetTemperature()
func UnitSetLedState ¶
nvml.UnitSetLedState()
func VgpuInstanceClearAccountingPids ¶
func VgpuInstanceClearAccountingPids(VgpuInstance VgpuInstance) Return
nvml.VgpuInstanceClearAccountingPids()
func VgpuInstanceGetAccountingPids ¶
func VgpuInstanceGetAccountingPids(VgpuInstance VgpuInstance) ([]int, Return)
nvml.VgpuInstanceGetAccountingPids()
func VgpuInstanceGetEncoderCapacity ¶
func VgpuInstanceGetEncoderCapacity(VgpuInstance VgpuInstance) (int, Return)
nvml.VgpuInstanceGetEncoderCapacity()
func VgpuInstanceGetEncoderStats ¶
func VgpuInstanceGetEncoderStats(VgpuInstance VgpuInstance) (int, uint32, uint32, Return)
nvml.VgpuInstanceGetEncoderStats()
func VgpuInstanceGetFbUsage ¶
func VgpuInstanceGetFbUsage(VgpuInstance VgpuInstance) (uint64, Return)
nvml.VgpuInstanceGetFbUsage()
func VgpuInstanceGetFrameRateLimit ¶
func VgpuInstanceGetFrameRateLimit(VgpuInstance VgpuInstance) (uint32, Return)
nvml.VgpuInstanceGetFrameRateLimit()
func VgpuInstanceGetLicenseStatus ¶
func VgpuInstanceGetLicenseStatus(VgpuInstance VgpuInstance) (int, Return)
nvml.VgpuInstanceGetLicenseStatus()
func VgpuInstanceGetMdevUUID ¶
func VgpuInstanceGetMdevUUID(VgpuInstance VgpuInstance) (string, Return)
nvml.VgpuInstanceGetMdevUUID()
func VgpuInstanceGetUUID ¶
func VgpuInstanceGetUUID(VgpuInstance VgpuInstance) (string, Return)
nvml.VgpuInstanceGetUUID()
func VgpuInstanceGetVmDriverVersion ¶
func VgpuInstanceGetVmDriverVersion(VgpuInstance VgpuInstance) (string, Return)
nvml.VgpuInstanceGetVmDriverVersion()
func VgpuInstanceSetEncoderCapacity ¶
func VgpuInstanceSetEncoderCapacity(VgpuInstance VgpuInstance, EncoderCapacity int) Return
nvml.VgpuInstanceSetEncoderCapacity()
func VgpuTypeGetClass ¶
func VgpuTypeGetClass(VgpuTypeId VgpuTypeId) (string, Return)
nvml.VgpuTypeGetClass()
func VgpuTypeGetDeviceID ¶
func VgpuTypeGetDeviceID(VgpuTypeId VgpuTypeId) (uint64, uint64, Return)
nvml.VgpuTypeGetDeviceID()
func VgpuTypeGetFrameRateLimit ¶
func VgpuTypeGetFrameRateLimit(VgpuTypeId VgpuTypeId) (uint32, Return)
nvml.VgpuTypeGetFrameRateLimit()
func VgpuTypeGetFramebufferSize ¶
func VgpuTypeGetFramebufferSize(VgpuTypeId VgpuTypeId) (uint64, Return)
nvml.VgpuTypeGetFramebufferSize()
func VgpuTypeGetLicense ¶
func VgpuTypeGetLicense(VgpuTypeId VgpuTypeId) (string, Return)
nvml.VgpuTypeGetLicense()
func VgpuTypeGetMaxInstances ¶
func VgpuTypeGetMaxInstances(Device Device, VgpuTypeId VgpuTypeId) (int, Return)
nvml.VgpuTypeGetMaxInstances()
func VgpuTypeGetMaxInstancesPerVm ¶
func VgpuTypeGetMaxInstancesPerVm(VgpuTypeId VgpuTypeId) (int, Return)
nvml.VgpuTypeGetMaxInstancesPerVm()
func VgpuTypeGetName ¶
func VgpuTypeGetName(VgpuTypeId VgpuTypeId) (string, Return)
nvml.VgpuTypeGetName()
func VgpuTypeGetNumDisplayHeads ¶
func VgpuTypeGetNumDisplayHeads(VgpuTypeId VgpuTypeId) (int, Return)
nvml.VgpuTypeGetNumDisplayHeads()
func VgpuTypeGetResolution ¶
func VgpuTypeGetResolution(VgpuTypeId VgpuTypeId, DisplayIndex int) (uint32, uint32, Return)
nvml.VgpuTypeGetResolution()
type SamplingType ¶
type SamplingType int32
SamplingType as declared in nvml/nvml.h:409
const ( TOTAL_POWER_SAMPLES SamplingType = iota GPU_UTILIZATION_SAMPLES SamplingType = 1 MEMORY_UTILIZATION_SAMPLES SamplingType = 2 ENC_UTILIZATION_SAMPLES SamplingType = 3 DEC_UTILIZATION_SAMPLES SamplingType = 4 PROCESSOR_CLK_SAMPLES SamplingType = 5 MEMORY_CLK_SAMPLES SamplingType = 6 SAMPLINGTYPE_COUNT SamplingType = 7 )
SamplingType enumeration from nvml/nvml.h:409
type TemperatureSensors ¶
type TemperatureSensors int32
TemperatureSensors as declared in nvml/nvml.h:550
const ( TEMPERATURE_GPU TemperatureSensors = iota TEMPERATURE_COUNT TemperatureSensors = 1 )
TemperatureSensors enumeration from nvml/nvml.h:550
type TemperatureThresholds ¶
type TemperatureThresholds int32
TemperatureThresholds as declared in nvml/nvml.h:539
const ( TEMPERATURE_THRESHOLD_SHUTDOWN TemperatureThresholds = iota TEMPERATURE_THRESHOLD_SLOWDOWN TemperatureThresholds = 1 TEMPERATURE_THRESHOLD_MEM_MAX TemperatureThresholds = 2 TEMPERATURE_THRESHOLD_GPU_MAX TemperatureThresholds = 3 TEMPERATURE_THRESHOLD_COUNT TemperatureThresholds = 4 )
TemperatureThresholds enumeration from nvml/nvml.h:539
type Unit ¶
type Unit struct {
Handle *_Ctype_struct_nvmlUnit_st
}
func (Unit) GetDevices ¶
func (Unit) GetFanSpeedInfo ¶
func (Unit Unit) GetFanSpeedInfo() (UnitFanSpeeds, Return)
func (Unit) GetLedState ¶
func (Unit) GetPsuInfo ¶
func (Unit) GetUnitInfo ¶
func (Unit) SetLedState ¶
type UnitFanInfo ¶
type UnitFanSpeeds ¶
type UnitFanSpeeds struct { Fans [24]UnitFanInfo Count uint32 }
type Utilization ¶
type VgpuGuestInfoState ¶
type VgpuGuestInfoState int32
VgpuGuestInfoState as declared in nvml/nvml.h:854
const ( VGPU_INSTANCE_GUEST_INFO_STATE_UNINITIALIZED VgpuGuestInfoState = iota VGPU_INSTANCE_GUEST_INFO_STATE_INITIALIZED VgpuGuestInfoState = 1 )
VgpuGuestInfoState enumeration from nvml/nvml.h:854
type VgpuInstance ¶
type VgpuInstance uint32
func (VgpuInstance) ClearAccountingPids ¶
func (VgpuInstance VgpuInstance) ClearAccountingPids() Return
func (VgpuInstance) GetAccountingMode ¶
func (VgpuInstance VgpuInstance) GetAccountingMode() (EnableState, Return)
func (VgpuInstance) GetAccountingPids ¶
func (VgpuInstance VgpuInstance) GetAccountingPids() ([]int, Return)
func (VgpuInstance) GetAccountingStats ¶
func (VgpuInstance VgpuInstance) GetAccountingStats(Pid int) (AccountingStats, Return)
func (VgpuInstance) GetEccMode ¶
func (VgpuInstance VgpuInstance) GetEccMode() (EnableState, Return)
func (VgpuInstance) GetEncoderCapacity ¶
func (VgpuInstance VgpuInstance) GetEncoderCapacity() (int, Return)
func (VgpuInstance) GetEncoderSessions ¶
func (VgpuInstance VgpuInstance) GetEncoderSessions() (int, EncoderSessionInfo, Return)
func (VgpuInstance) GetEncoderStats ¶
func (VgpuInstance VgpuInstance) GetEncoderStats() (int, uint32, uint32, Return)
func (VgpuInstance) GetFBCSessions ¶
func (VgpuInstance VgpuInstance) GetFBCSessions() (int, FBCSessionInfo, Return)
func (VgpuInstance) GetFBCStats ¶
func (VgpuInstance VgpuInstance) GetFBCStats() (FBCStats, Return)
func (VgpuInstance) GetFbUsage ¶
func (VgpuInstance VgpuInstance) GetFbUsage() (uint64, Return)
func (VgpuInstance) GetFrameRateLimit ¶
func (VgpuInstance VgpuInstance) GetFrameRateLimit() (uint32, Return)
func (VgpuInstance) GetLicenseStatus ¶
func (VgpuInstance VgpuInstance) GetLicenseStatus() (int, Return)
func (VgpuInstance) GetMdevUUID ¶
func (VgpuInstance VgpuInstance) GetMdevUUID() (string, Return)
func (VgpuInstance) GetMetadata ¶
func (VgpuInstance VgpuInstance) GetMetadata() (VgpuMetadata, Return)
func (VgpuInstance) GetType ¶
func (VgpuInstance VgpuInstance) GetType() (VgpuTypeId, Return)
func (VgpuInstance) GetUUID ¶
func (VgpuInstance VgpuInstance) GetUUID() (string, Return)
func (VgpuInstance) GetVmDriverVersion ¶
func (VgpuInstance VgpuInstance) GetVmDriverVersion() (string, Return)
func (VgpuInstance) GetVmID ¶
func (VgpuInstance VgpuInstance) GetVmID() (string, VgpuVmIdType, Return)
func (VgpuInstance) SetEncoderCapacity ¶
func (VgpuInstance VgpuInstance) SetEncoderCapacity(EncoderCapacity int) Return
type VgpuMetadata ¶
type VgpuMetadata struct { OpaqueData []byte // contains filtered or unexported fields }
nvml.VgpuMetadata
type VgpuPgpuCompatibility ¶
type VgpuPgpuCompatibilityLimitCode ¶
type VgpuPgpuCompatibilityLimitCode int32
VgpuPgpuCompatibilityLimitCode as declared in nvml/nvml.h:6472
const ( VGPU_COMPATIBILITY_LIMIT_NONE VgpuPgpuCompatibilityLimitCode = iota VGPU_COMPATIBILITY_LIMIT_HOST_DRIVER VgpuPgpuCompatibilityLimitCode = 1 VGPU_COMPATIBILITY_LIMIT_GUEST_DRIVER VgpuPgpuCompatibilityLimitCode = 2 VGPU_COMPATIBILITY_LIMIT_GPU VgpuPgpuCompatibilityLimitCode = 4 VGPU_COMPATIBILITY_LIMIT_OTHER VgpuPgpuCompatibilityLimitCode = -2147483648 )
VgpuPgpuCompatibilityLimitCode enumeration from nvml/nvml.h:6472
type VgpuPgpuMetadata ¶
type VgpuPgpuMetadata struct { OpaqueData []byte // contains filtered or unexported fields }
nvml.VgpuPgpuMetadata
type VgpuTypeId ¶
type VgpuTypeId uint32
func (VgpuTypeId) GetClass ¶
func (VgpuTypeId VgpuTypeId) GetClass() (string, Return)
func (VgpuTypeId) GetDeviceID ¶
func (VgpuTypeId VgpuTypeId) GetDeviceID() (uint64, uint64, Return)
func (VgpuTypeId) GetFrameRateLimit ¶
func (VgpuTypeId VgpuTypeId) GetFrameRateLimit() (uint32, Return)
func (VgpuTypeId) GetFramebufferSize ¶
func (VgpuTypeId VgpuTypeId) GetFramebufferSize() (uint64, Return)
func (VgpuTypeId) GetLicense ¶
func (VgpuTypeId VgpuTypeId) GetLicense() (string, Return)
func (VgpuTypeId) GetMaxInstances ¶
func (VgpuTypeId VgpuTypeId) GetMaxInstances(Device Device) (int, Return)
func (VgpuTypeId) GetMaxInstancesPerVm ¶
func (VgpuTypeId VgpuTypeId) GetMaxInstancesPerVm() (int, Return)
func (VgpuTypeId) GetName ¶
func (VgpuTypeId VgpuTypeId) GetName() (string, Return)
func (VgpuTypeId) GetNumDisplayHeads ¶
func (VgpuTypeId VgpuTypeId) GetNumDisplayHeads() (int, Return)
func (VgpuTypeId) GetResolution ¶
func (VgpuTypeId VgpuTypeId) GetResolution(DisplayIndex int) (uint32, uint32, Return)
type VgpuVersion ¶
type VgpuVmCompatibility ¶
type VgpuVmCompatibility int32
VgpuVmCompatibility as declared in nvml/nvml.h:6460
const ( VGPU_VM_COMPATIBILITY_NONE VgpuVmCompatibility = iota VGPU_VM_COMPATIBILITY_COLD VgpuVmCompatibility = 1 VGPU_VM_COMPATIBILITY_HIBERNATE VgpuVmCompatibility = 2 VGPU_VM_COMPATIBILITY_SLEEP VgpuVmCompatibility = 4 VGPU_VM_COMPATIBILITY_LIVE VgpuVmCompatibility = 8 )
VgpuVmCompatibility enumeration from nvml/nvml.h:6460
type VgpuVmIdType ¶
type VgpuVmIdType int32
VgpuVmIdType as declared in nvml/nvml.h:845
const ( VGPU_VM_ID_DOMAIN_ID VgpuVmIdType = iota VGPU_VM_ID_UUID VgpuVmIdType = 1 )
VgpuVmIdType enumeration from nvml/nvml.h:845