Documentation
¶
Overview ¶
Package dcgm provides Go bindings for the NVIDIA Data Center GPU Manager client library, libdcgm.
DCGM is a monitoring and management service. A host engine samples GPU telemetry and answers queries about it; a client attaches to that host engine, asks for entities and fields, and reads values back. This package binds the read-only part of that client API: library and connection lifetime, device and entity discovery, groups and field groups, field watches and value retrieval, and the diagnostic and health state a client can read. Explicit policy set/get/trigger and v2 callback registration are also bound; they do not run implicitly. PolicyRegisterV1 describes the distinct legacy v2.4.7 begin/finish ABI; availability depends on the loaded library. It is not a v2 alias.
Other configuration-changing management is not bound. dcgmConfigSet, dcgmHealthSet, dcgmActionValidate, dcgmRunDiagnostic and the job-tracking calls change the state of a shared service that other programs on the same node are also using, and several of them make the GPU unavailable for the duration. They are listed with a reason each in the generator's skipFuncReasons, so their absence is a recorded decision rather than an oversight.
Loading ¶
The library is opened on first use, not at import time, so importing this package on a machine without DCGM installed is legal. Load opens it explicitly; Path reports where it came from; Has reports whether one C symbol resolved. When the library or a symbol is missing, calls return *LibraryError or *SymbolError. Nothing in this package panics for an absent library, an absent symbol, or a failed call.
DCGM_LIB_PATH overrides the search. The default names are libdcgm.so.4 then libdcgm.so.
Lifetime ¶
Init must be called before anything else, and it is not called implicitly: Shutdown is process-wide, so a package that started the library would have to guess when to stop it.
After Init, get a session either by starting a host engine inside this process with StartEmbedded, or by attaching to one that is already running with Connect. See Session for what each owns.
if err := dcgm.Init(); err != nil { ... }
defer dcgm.Shutdown()
s, err := dcgm.StartEmbedded(dcgm.OperationModeAuto)
if err != nil { ... }
defer s.Close()
Ownership ¶
Groups, field groups and watches live in the host engine and outlive the process that created them. The raw API cannot tell an object this process created from one it found, so calling dcgmGroupDestroy on another program's group succeeds and stops that program's monitoring. Session exists to draw that line: it records what it created and Session.Close removes exactly that, in reverse order. It never destroys a group obtained from Handle.Groups, never touches a pseudo-group such as GroupAllGPUs, never stops a host engine reached with Connect, and never calls Shutdown. Session.Owns, Session.OwnsFieldGroup and Session.OwnsHostEngine report the line from the outside.
Buffers follow the same rule everywhere: a slice or string passed into a call is read during the call and not retained, and a value returned is a Go copy, not a view into library memory. NewPolicyNotifications retains one native trampoline and uses non-reused numeric tokens; close subscriptions before their group, connection, host engine or library. Raw callback callers must retain their trampoline for all possible late native callbacks. The only handles are Handle, GpuGrp, FieldGrp and StatusHandle; each is an opaque integer the host engine owns, and none of them is finalized. PolicyBool and PolicyNumber construct the versioned policy's tagged condition parameters; ReadPolicies initializes every requested policy slot. PolicyTrigger is an explicit caller action, never a notification loop.
Versioned structures ¶
This is the hazard that breaks bindings. Most DCGM structures begin with a version field, and the caller must stamp it with the exact constant for the structure layout it compiled against:
MAKE_DCGM_VERSION(t, v) = sizeof(t) | (v << 24)
The size is part of the number. A structure whose Go definition drifts from the header it was generated from produces a version constant DCGM does not recognize, and every call using it fails with ErrVerMismatch rather than misbehaving quietly. The generated versions.gen.go holds one constant per versioned structure, computed by the C compiler from the pinned headers; versions_test.go recomputes each one from unsafe.Sizeof of the Go type and fails if the two disagree.
Callers must stamp the field. The helpers in this package do it for the structures they own, but a structure passed to a generated function directly is the caller's to stamp:
info := dcgm.GroupInfo{Version: dcgm.GroupInfoVersion3}
err := dcgm.GroupGetInfo(h, groupID, &info)
Values ¶
A field read is not a number; it is a status, a timestamp and a payload, and all three matter. DCGM reports "no data" by returning the field successfully with a blank value rather than by failing, so a reading whose payload is used without checking is how an unsupported field becomes a plausible-looking zero. Check FieldValue.Err, then FieldValue.Blank, then read the payload; FieldValue.Time is when the host engine sampled it, which for a watch that has not ticked yet is the zero time.
Blankness is a sentinel comparison, not an equality: Int64Blank, Int64NotFound, Int64NotSupported and Int64NotPermissioned are consecutive, so the test is >=. FieldValueV1.Blank and FieldValueV2.Blank implement it for each type.
Field ids ¶
Every quantity DCGM can sample has a numeric id, defined as a macro in dcgm_fields.h. The clang AST carries no macros, so the generator scans the header for them and has the C compiler evaluate each one; fields.gen.go holds the result as FieldID constants with a name table behind FieldID.String. The macros the header computes rather than assigns -- counts and range bounds such as DCGM_FI_MAX_FIELDS -- are generated as uint16 rather than FieldID, so passing one where a field id is expected does not compile.
Testing without a GPU ¶
The generated tests check the ABI, not the hardware: struct sizes, alignments and field offsets measured by clang for x86_64-unknown-linux-gnu; every version constant against the Go type it stamps; every buffer bound against the array it governs; the blank sentinel ordering; the field-id table. They need no GPU, no driver and no libdcgm, and passing them says the bindings describe the pinned headers correctly. It says nothing about whether a call works.
A successful NVML query is not a DCGM test. NVML talks to the driver directly and answers from the calling process; DCGM answers from a host engine, over a connection, out of a sampling history that a watch had to establish first. NVML reporting a temperature proves the GPU and the driver are there. It does not prove that libdcgm loaded, that a host engine is running or reachable, that this process may talk to it, that a group or field group was created, that a watch was accepted, or that a sample ever arrived -- which is every step this package's paths depend on. The physical test in physical_test.go, behind the dcgm_physical build tag, is what checks those prerequisites and the resulting samples when run against a host engine. A successful host-only test run does not establish that physical behavior.
Code generated by gen-dcgm from DCGM v2.4.7. DO NOT EDIT.
Example ¶
Example watches two fields on every supported GPU and prints the most recent sample of each. It returns early when DCGM is not available, which is what running it on a machine without the library or without a host engine does.
The shape is the one every DCGM read has: watch first, let the host engine sample, then retrieve. A read before the first sample succeeds and returns blank values rather than failing, so Blank is checked on every reading.
package main
import (
"fmt"
"time"
"github.com/tmc/lib/nvidia/dcgm"
)
func main() {
if err := dcgm.Init(); err != nil {
fmt.Println("DCGM unavailable:", err)
return
}
defer dcgm.Shutdown()
// StartEmbedded runs the host engine in this process, so this Session
// owns it and Close stops it. dcgm.Connect would attach to an engine
// something else started, and Close would only disconnect.
s, err := dcgm.StartEmbedded(dcgm.OperationModeManual)
if err != nil {
fmt.Println("start embedded host engine:", err)
return
}
defer s.Close()
gpus, err := s.Handle.SupportedDevices()
if err != nil {
fmt.Println("supported devices:", err)
return
}
if len(gpus) == 0 {
fmt.Println("no DCGM-supported GPUs on this host")
return
}
// The group and the field group are created through the Session, so
// Close destroys them. Created through the raw entry points they would
// outlive the process and stay on the host engine.
group, err := s.NewGroup("example-group", dcgm.GroupDefault)
if err != nil {
fmt.Println("create group:", err)
return
}
fields := []dcgm.FieldID{dcgm.FieldDevGpuTempCelsius, dcgm.FieldDevSmClock}
fieldGroup, err := s.NewFieldGroup("example-fields", fields)
if err != nil {
fmt.Println("create field group:", err)
return
}
if err := s.Watch(group, fieldGroup, time.Second, time.Minute, 100); err != nil {
fmt.Println("watch:", err)
return
}
// In OperationModeManual nothing is sampled until this call. In
// OperationModeAuto a background thread samples, and a read this soon
// after Watch would come back blank.
if err := dcgm.UpdateAllFields(s.Handle, 1); err != nil {
fmt.Println("update fields:", err)
return
}
for _, gpu := range gpus {
values, err := s.Handle.LatestValues(gpu, fields)
if err != nil {
fmt.Println("latest values:", err)
return
}
for i := range values {
v := &values[i]
switch {
case v.Err() != nil:
fmt.Printf("gpu %d %v: %v\n", gpu, v.ID(), v.Err())
case v.Blank():
// Not an error. The field is unsupported on this
// entity, or no sample has arrived yet.
fmt.Printf("gpu %d %v: no data\n", gpu, v.ID())
default:
n, _ := v.Int64()
fmt.Printf("gpu %d %v = %d at %s\n", gpu, v.ID(), n, v.Time().Format(time.RFC3339))
}
}
}
}
Output:
Index ¶
- Constants
- Variables
- func ActionValidate(pDcgmHandle Handle, drd *RunDiagV10, response *DiagResponse) error
- func AttachDriver(pDcgmHandle Handle) error
- func Close() error
- func ConfigEnforce(pDcgmHandle Handle, groupId GpuGrp, statusHandle StatusHandle) error
- func ConfigGet(pDcgmHandle Handle, groupId GpuGrp, type_ ConfigType, ...) error
- func ConfigSet(pDcgmHandle Handle, groupId GpuGrp, pDeviceConfig *Config, ...) error
- func ConfigSetWorkloadPowerProfile(pDcgmHandle Handle, workloadPowerProfile *WorkloadPowerProfile) error
- func DcgmFieldsGetEntityGroupString(entityGroupId FieldEntityGroup) (string, error)
- func DcgmFieldsInit() (int32, error)
- func DcgmFieldsTerm() (int32, error)
- func DetachDriver(pDcgmHandle Handle) error
- func DiagSendHeartbeat(pDcgmHandle Handle) error
- func Disconnect(pDcgmHandle Handle) error
- func EntitiesGetLatestValues(pDcgmHandle Handle, entities *GroupEntityPair, entityCount uint32, ...) error
- func EntityGetLatestValues(pDcgmHandle Handle, entityGroup FieldEntityGroup, entityId int32, ...) error
- func ErrorGetFormatMsgByCode(code uint32) (string, error)
- func FieldGroupDestroy(dcgmHandle Handle, dcgmFieldGroupId FieldGrp) error
- func FieldGroupGetAll(dcgmHandle Handle, allGroupInfo *AllFieldGroup) error
- func FieldGroupGetInfo(dcgmHandle Handle, fieldGroupInfo *FieldGroupInfo) error
- func GetAllDevices(pDcgmHandle Handle, gpuIdList *uint32) (int32, error)
- func GetAllSupportedDevices(pDcgmHandle Handle, gpuIdList *uint32) (int32, error)
- func GetCpuHierarchyV2(dcgmHandle Handle, cpuHierarchy *CpuHierarchy) error
- func GetDeviceAttributes(pDcgmHandle Handle, gpuId uint32, pDcgmAttr *DeviceAttributes) error
- func GetDeviceTopology(pDcgmHandle Handle, gpuId uint32, pDcgmDeviceTopology *DeviceTopology) error
- func GetDeviceWorkloadPowerProfileInfo(pDcgmHandle Handle, gpuId uint32, ...) error
- func GetEntityGroupEntities(dcgmHandle Handle, entityGroup FieldEntityGroup, entities *FieldEid, ...) error
- func GetFieldSummary(pDcgmHandle Handle, request *FieldSummaryRequest) error
- func GetGpuInstanceHierarchy(dcgmHandle Handle, hierarchy *MigHierarchyV2) error
- func GetGroupTopology(pDcgmHandle Handle, groupId GpuGrp, pDcgmGroupTopology *GroupTopology) error
- func GetLatestValuesForFields(pDcgmHandle Handle, gpuId int32, fields *uint16, count uint32, ...) error
- func GetNvLinkLinkStatus(dcgmHandle Handle, linkStatus *NvLinkStatus) error
- func GetNvLinkP2PStatus(dcgmHandle Handle, linkStatus *NvLinkP2PStatus) error
- func GetPidInfo(pDcgmHandle Handle, groupId GpuGrp, pidInfo *PidInfo) error
- func GroupAddDevice(pDcgmHandle Handle, groupId GpuGrp, gpuId uint32) error
- func GroupAddEntity(pDcgmHandle Handle, groupId GpuGrp, entityGroupId FieldEntityGroup, ...) error
- func GroupDestroy(pDcgmHandle Handle, groupId GpuGrp) error
- func GroupGetAllIds(pDcgmHandle Handle, groupIdList *GpuGrp) (uint32, error)
- func GroupGetInfo(pDcgmHandle Handle, groupId GpuGrp, pDcgmGroupInfo *GroupInfo) error
- func GroupRemoveDevice(pDcgmHandle Handle, groupId GpuGrp, gpuId uint32) error
- func GroupRemoveEntity(pDcgmHandle Handle, groupId GpuGrp, entityGroupId FieldEntityGroup, ...) error
- func Has(symbol string) bool
- func HasActionValidate() bool
- func HasAttachDriver() bool
- func HasConfigEnforce() bool
- func HasConfigGet() bool
- func HasConfigSet() bool
- func HasConfigSetWorkloadPowerProfile() bool
- func HasConnectV2() bool
- func HasConnectV3() bool
- func HasDcgmFieldGetById() bool
- func HasDcgmFieldGetByTag() bool
- func HasDcgmFieldsGetEntityGroupString() bool
- func HasDcgmFieldsInit() bool
- func HasDcgmFieldsTerm() bool
- func HasDetachDriver() bool
- func HasDiagSendHeartbeat() bool
- func HasDisconnect() bool
- func HasEntitiesGetLatestValues() bool
- func HasEntityGetLatestValues() bool
- func HasErrorGetCategoryByCode() bool
- func HasErrorGetFormatMsgByCode() bool
- func HasErrorGetPriorityByCode() bool
- func HasErrorString() bool
- func HasFieldGroupCreate() bool
- func HasFieldGroupDestroy() bool
- func HasFieldGroupGetAll() bool
- func HasFieldGroupGetInfo() bool
- func HasGetAllDevices() bool
- func HasGetAllSupportedDevices() bool
- func HasGetCpuHierarchyV2() bool
- func HasGetDeviceAttributes() bool
- func HasGetDeviceTopology() bool
- func HasGetDeviceWorkloadPowerProfileInfo() bool
- func HasGetEntityGroupEntities() bool
- func HasGetFieldSummary() bool
- func HasGetGpuChipArchitecture() bool
- func HasGetGpuInstanceHierarchy() bool
- func HasGetGpuStatus() bool
- func HasGetGroupTopology() bool
- func HasGetLatestValues() bool
- func HasGetLatestValuesForFields() bool
- func HasGetNvLinkLinkStatus() bool
- func HasGetNvLinkP2PStatus() bool
- func HasGetPidInfo() bool
- func HasGetValuesSince() bool
- func HasGroupAddDevice() bool
- func HasGroupAddEntity() bool
- func HasGroupCreate() bool
- func HasGroupDestroy() bool
- func HasGroupGetAllIds() bool
- func HasGroupGetInfo() bool
- func HasGroupRemoveDevice() bool
- func HasGroupRemoveEntity() bool
- func HasHealthCheck() bool
- func HasHealthGet() bool
- func HasHealthSet() bool
- func HasHostengineEnvironmentVariableInfo() bool
- func HasHostengineIsHealthy() bool
- func HasHostengineSetLoggingSeverity() bool
- func HasHostengineVersionInfo() bool
- func HasInit() bool
- func HasIntrospectGetHostengineCpuUtilization() bool
- func HasIntrospectGetHostengineMemoryUsage() bool
- func HasJobGetStats() bool
- func HasJobRemove() bool
- func HasJobRemoveAll() bool
- func HasJobStartStats() bool
- func HasJobStopStats() bool
- func HasModuleDenylist() bool
- func HasModuleGetStatuses() bool
- func HasModuleIdToName() bool
- func HasPolicyCreate() bool
- func HasPolicyDelete() bool
- func HasPolicyDisable() bool
- func HasPolicyEnable() bool
- func HasPolicyGet() bool
- func HasPolicyGetAll() bool
- func HasPolicyGetOne() bool
- func HasPolicyGetViolations() bool
- func HasPolicyImport() bool
- func HasPolicyModify() bool
- func HasPolicyRegisterV2() bool
- func HasPolicySet() bool
- func HasPolicyTrigger() bool
- func HasPolicyUnregister() bool
- func HasPowerProfileIdToName() bool
- func HasProfGetSupportedMetricGroups() bool
- func HasProfPause() bool
- func HasProfResume() bool
- func HasRunDiagnostic() bool
- func HasRunMnDiagnostic() bool
- func HasSelectGpusByTopology() bool
- func HasShutdown() bool
- func HasStartEmbeddedV2() bool
- func HasStatusClear() bool
- func HasStatusCreate() bool
- func HasStatusDestroy() bool
- func HasStatusGetCount() bool
- func HasStatusPopError() bool
- func HasStopDiagnostic() bool
- func HasStopEmbedded() bool
- func HasStopMnDiagnostic() bool
- func HasUnwatchFields() bool
- func HasUpdateAllFields() bool
- func HasVersionInfo() bool
- func HasWatchFields() bool
- func HasWatchJobFields() bool
- func HasWatchPidFields() bool
- func HealthCheck(pDcgmHandle Handle, groupId GpuGrp, results *HealthResponse) error
- func HealthGet(pDcgmHandle Handle, groupId GpuGrp, systems *HealthSystems) error
- func HealthSet(pDcgmHandle Handle, params *HealthSetParamsV2) error
- func HostengineEnvironmentVariableInfo(pDcgmHandle Handle, pEnvVarInfo *EnvVarInfo) error
- func HostengineIsHealthy(pDcgmHandle Handle, heHealth *HostengineHealth) error
- func HostengineSetLoggingSeverity(pDcgmHandle Handle, logging *SettingsSetLoggingSeverity) error
- func HostengineVersionInfo(pDcgmHandle Handle, pVersionInfo *VersionInfoStruct) error
- func Init() error
- func IntrospectGetHostengineCpuUtilization(pDcgmHandle Handle, cpuUtil *IntrospectCpuUtil, waitIfNoData int32) error
- func IntrospectGetHostengineMemoryUsage(pDcgmHandle Handle, memoryInfo *IntrospectMemory, waitIfNoData int32) error
- func JobGetStats(pDcgmHandle Handle, jobId *JobID, pJobInfo *JobInfo) error
- func JobRemove(pDcgmHandle Handle, jobId *JobID) error
- func JobRemoveAll(pDcgmHandle Handle) error
- func JobStartStats(pDcgmHandle Handle, groupId GpuGrp, jobId *JobID) error
- func JobStopStats(pDcgmHandle Handle, jobId *JobID) error
- func Load(path string) error
- func Loaded() bool
- func ModuleDenylist(pDcgmHandle Handle, moduleId ModuleId) error
- func ModuleGetStatuses(pDcgmHandle Handle, moduleStatuses *ModuleGetStatusesStruct) error
- func ModuleIdToName(id ModuleId) (uintptr, error)
- func Path() string
- func PolicyCreate(pDcgmHandle Handle, fieldId uint16, name *byte, threshold float64, ...) error
- func PolicyDelete(pDcgmHandle Handle, fieldId uint16, policyId uint64, deleteAll uint32) error
- func PolicyDisable(pDcgmHandle Handle, fieldId uint16, policyId uint64) error
- func PolicyEnable(pDcgmHandle Handle, fieldId uint16, policyId uint64) error
- func PolicyGet(pDcgmHandle Handle, groupId GpuGrp, count int32, policy *Policy, ...) errordeprecated
- func PolicyGetAll(pDcgmHandle Handle, policies *PolicyInfo, count *uint32) error
- func PolicyGetOne(pDcgmHandle Handle, fieldId uint16, policyId uint64, policy *PolicyInfo) error
- func PolicyGetViolations(pDcgmHandle Handle, sinceTimestamp int64, violations *FieldPolicyViolation, ...) error
- func PolicyImport(pDcgmHandle Handle, path *byte) error
- func PolicyModify(pDcgmHandle Handle, policy *PolicyInfo) error
- func PolicyRegisterV1(handle Handle, group GpuGrp, condition PolicyCondition, ...) error
- func PolicyRegisterV2(pDcgmHandle Handle, groupId GpuGrp, condition PolicyCondition, ...) errordeprecated
- func PolicyRegisterV3(handle Handle, fieldID uint16, policyID uint64, callback FpRecvPolicyViolation, ...) error
- func PolicySet(pDcgmHandle Handle, groupId GpuGrp, policy *Policy, statusHandle StatusHandle) errordeprecated
- func PolicyTrigger(pDcgmHandle Handle) errordeprecated
- func PolicyUnregister(pDcgmHandle Handle, groupId GpuGrp, condition PolicyCondition) errordeprecated
- func PolicyUnregisterV3(handle Handle, fieldID uint16, policyID uint64) error
- func PowerProfileIdToName(id PowerProfileType) (uintptr, error)
- func ProfGetSupportedMetricGroups(pDcgmHandle Handle, metricGroups *ProfGetMetricGroups) error
- func ProfPause(pDcgmHandle Handle) error
- func ProfResume(pDcgmHandle Handle) error
- func RunDiagnostic(pDcgmHandle Handle, groupId GpuGrp, diagLevel DiagnosticLevel, ...) error
- func RunMnDiagnostic(pDcgmHandle Handle, drmnd *RunMnDiagV2, response *MnDiagResponseV2) error
- func SelectGpusByTopology(pDcgmHandle Handle, inputGpuIds uint64, numGpus uint32, outputGpuIds *uint64, ...) error
- func Shutdown() error
- func StartEmbeddedV2(params *StartEmbeddedV2ParamsV1) error
- func StatusClear(statusHandle StatusHandle) error
- func StatusDestroy(statusHandle StatusHandle) error
- func StatusGetCount(statusHandle StatusHandle) (uint32, error)
- func StatusPopError(statusHandle StatusHandle, pDcgmErrorInfo *ErrorInfo) error
- func StopDiagnostic(pDcgmHandle Handle) error
- func StopEmbedded(pDcgmHandle Handle) error
- func StopMnDiagnostic(pDcgmHandle Handle) error
- func UnwatchFields(pDcgmHandle Handle, groupId GpuGrp, fieldGroupId FieldGrp) error
- func UpdateAllFields(pDcgmHandle Handle, waitForUpdate int32) error
- func VersionInfo(pVersionInfo *VersionInfoStruct) error
- func WatchFields(pDcgmHandle Handle, groupId GpuGrp, fieldGroupId FieldGrp, updateFreq int64, ...) error
- func WatchJobFields(pDcgmHandle Handle, groupId GpuGrp, updateFreq int64, maxKeepAge float64, ...) error
- func WatchPidFields(pDcgmHandle Handle, groupId GpuGrp, updateFreq int64, maxKeepAge float64, ...) error
- type AllFieldGroup
- type AllFieldGroupV1
- type BindFailure
- type BindUnbindEventState
- type CallError
- type ChipArchitecture
- type ClockSet
- type ClockSetV1
- type ComputeInstanceProfileInfo
- type ComputeInstanceProfileInfoV1
- type ComputeInstanceProfiles
- type ComputeInstanceProfilesV1
- type Config
- type ConfigPerfStateSettings
- type ConfigPowerLimit
- type ConfigPowerLimitType
- type ConfigType
- type ConfigV1
- type ConfigV2
- type ConnectOptions
- type ConnectV2Params
- type ConnectV2ParamsV1deprecated
- type ConnectV2ParamsV2
- type ConnectV3Params
- type ConnectV3ParamsV1
- type CpuHierarchy
- type CpuHierarchyCpuV1
- type CpuHierarchyCpuV2
- type CpuHierarchyOwnedCores
- type CpuHierarchyOwnedCoresV1
- type CpuHierarchyV1
- type CpuHierarchyV2
- type DeviceAttributes
- type DeviceAttributesV3
- type DeviceEncStats
- type DeviceEncStatsV1
- type DeviceFbcSessionInfo
- type DeviceFbcSessionInfoV1
- type DeviceFbcSessions
- type DeviceFbcSessionsV1
- type DeviceFbcStats
- type DeviceFbcStatsV1
- type DeviceIdentifiers
- type DeviceIdentifiersV1
- type DeviceMemoryUsage
- type DeviceMemoryUsageV1
- type DeviceMigAttributes
- type DeviceMigAttributesInfo
- type DeviceMigAttributesInfoV1
- type DeviceMigAttributesV1
- type DevicePidAccountingStats
- type DevicePidAccountingStatsV1
- type DevicePowerLimits
- type DevicePowerLimitsV1
- type DeviceSettings
- type DeviceSettingsV2
- type DeviceSupportedClockSets
- type DeviceSupportedClockSetsV1
- type DeviceSupportedVgpuTypeInfo
- type DeviceSupportedVgpuTypeInfoV1
- type DeviceThermals
- type DeviceThermalsV1
- type DeviceTopology
- type DeviceTopologyV1
- type DeviceTopologyV2
- type DeviceVgpuEncSessions
- type DeviceVgpuEncSessionsV1
- type DeviceVgpuProcessUtilInfo
- type DeviceVgpuProcessUtilInfoV1
- type DeviceVgpuTypeInfo
- type DeviceVgpuTypeInfoV1
- type DeviceVgpuTypeInfoV2
- type DeviceVgpuUtilInfo
- type DeviceVgpuUtilInfoV1
- type DeviceWorkloadPowerProfilesStatus
- type DeviceWorkloadPowerProfilesStatusV1
- type DiagEntityResultV1
- type DiagEntityV1
- type DiagErrorDetail
- type DiagErrorDetailV2
- type DiagErrorV1
- type DiagInfoV1
- type DiagResponse
- type DiagResponsePerGpuV3
- type DiagResponsePerGpuV4
- type DiagResponsePerGpuV5
- type DiagResponseV7
- type DiagResponseV8
- type DiagResponseV9
- type DiagResponseV10deprecated
- type DiagResponseV11deprecated
- type DiagResponseV12
- type DiagResult
- type DiagStatus
- type DiagStatusV1
- type DiagTestAuxDataV1
- type DiagTestResultV2
- type DiagTestResultV3
- type DiagTestRunV1deprecated
- type DiagTestRunV2
- type DiagnosticLevel
- type EncoderType
- type EntityStatus
- type EnvVarInfo
- type EnvVarInfoV1
- type ErrorCategory
- type ErrorCode
- type ErrorInfo
- type ErrorMeta
- type ErrorSeverity
- type FBCSessionType
- type FabricManagerStatus
- type FieldEid
- type FieldEntityGroup
- type FieldGroupInfo
- type FieldGroupInfoV1
- type FieldGrp
- type FieldID
- type FieldMeta
- type FieldMetaP
- type FieldOutputFormat
- type FieldOutputFormatP
- type FieldPolicyViolation
- type FieldSummaryRequest
- type FieldSummaryRequestV1
- type FieldValue
- type FieldValueEntityEnumerationF
- type FieldValueEnumerationF
- type FieldValueV1
- func (v *FieldValueV1) Blank() bool
- func (v *FieldValueV1) Blob() []byte
- func (v *FieldValueV1) Err() error
- func (v *FieldValueV1) Float64() (f float64, ok bool)
- func (v *FieldValueV1) ID() FieldID
- func (v *FieldValueV1) Int64() (n int64, ok bool)
- func (v *FieldValueV1) Text() (s string, ok bool)
- func (v *FieldValueV1) Time() time.Time
- func (v *FieldValueV1) Type() uint16
- type FieldValueV2
- func (v *FieldValueV2) Blank() bool
- func (v *FieldValueV2) Blob() []byte
- func (v *FieldValueV2) Entity() GroupEntityPair
- func (v *FieldValueV2) Err() error
- func (v *FieldValueV2) Float64() (f float64, ok bool)
- func (v *FieldValueV2) ID() FieldID
- func (v *FieldValueV2) Int64() (n int64, ok bool)
- func (v *FieldValueV2) Text() (s string, ok bool)
- func (v *FieldValueV2) Time() time.Time
- func (v *FieldValueV2) Type() uint16
- type FpRecvPolicyViolation
- type FpRecvUpdates
- type GpuGrp
- type GpuInstanceProfileInfo
- type GpuInstanceProfileInfoV1
- type GpuInstanceProfiles
- type GpuInstanceProfilesV1
- type GpuNVLinkErrorType
- type GpuTopologyLevel
- type GpuTopologyLevelV1
- type GpuUsageInfo
- type GpuVirtualizationMode
- type GroupEntityPair
- type GroupInfo
- type GroupInfoV2
- type GroupInfoV3
- type GroupTopology
- type GroupTopologyV1
- type GroupTopologyV2
- type GroupType
- type Handle
- func (h Handle) ActionValidate(drd *RunDiagV10, response *DiagResponse) error
- func (h Handle) AllDevices(gpuIdList *uint32) (int32, error)
- func (h Handle) AllSupportedDevices(gpuIdList *uint32) (int32, error)
- func (h Handle) AttachDriver() error
- func (h Handle) CheckHealth(group GpuGrp) (HealthWatchResults, []IncidentInfo, error)
- func (h Handle) ConfigEnforce(groupId GpuGrp, statusHandle StatusHandle) error
- func (h Handle) ConfigGet(groupId GpuGrp, type_ ConfigType, deviceConfigList []Config, ...) error
- func (h Handle) ConfigSet(groupId GpuGrp, pDeviceConfig *Config, statusHandle StatusHandle) error
- func (h Handle) ConfigSetWorkloadPowerProfile(workloadPowerProfile *WorkloadPowerProfile) error
- func (h Handle) CpuHierarchyV2(cpuHierarchy *CpuHierarchy) error
- func (h Handle) DetachDriver() error
- func (h Handle) DeviceAttributes(gpuId uint32, pDcgmAttr *DeviceAttributes) error
- func (h Handle) DeviceTopology(gpuId uint32, pDcgmDeviceTopology *DeviceTopology) error
- func (h Handle) DeviceWorkloadPowerProfileInfo(gpuId uint32, profilesInfo *WorkloadPowerProfileProfilesInfo, ...) error
- func (h Handle) Devices() ([]uint32, error)
- func (h Handle) DiagSendHeartbeat() error
- func (h Handle) Disconnect() error
- func (h Handle) EntitiesGetLatestValues(entities *GroupEntityPair, entityCount uint32, fields *uint16, ...) error
- func (h Handle) EntityGetLatestValues(entityGroup FieldEntityGroup, entityId int32, fields *uint16, count uint32, ...) error
- func (h Handle) EntityGroupEntities(entityGroup FieldEntityGroup, entities *FieldEid, numEntities *int32, ...) error
- func (h Handle) EntityLatestValues(entities []GroupEntityPair, fields []FieldID, flags uint32) ([]FieldValueV2, error)
- func (h Handle) FieldGroupCreate(numFieldIds int32, fieldIds *uint16, fieldGroupName *byte) (FieldGrp, error)
- func (h Handle) FieldGroupDestroy(dcgmFieldGroupId FieldGrp) error
- func (h Handle) FieldGroupGetAll(allGroupInfo *AllFieldGroup) error
- func (h Handle) FieldGroupGetInfo(fieldGroupInfo *FieldGroupInfo) error
- func (h Handle) FieldSummary(request *FieldSummaryRequest) error
- func (h Handle) GpuChipArchitecture(gpuId uint32) (ChipArchitecture, error)
- func (h Handle) GpuInstanceHierarchy(hierarchy *MigHierarchyV2) error
- func (h Handle) GpuStatus(gpuId uint32) (EntityStatus, error)
- func (h Handle) GroupAddDevice(groupId GpuGrp, gpuId uint32) error
- func (h Handle) GroupAddEntity(groupId GpuGrp, entityGroupId FieldEntityGroup, entityId FieldEid) error
- func (h Handle) GroupCreate(type_ GroupType, groupName *byte) (GpuGrp, error)
- func (h Handle) GroupDestroy(groupId GpuGrp) error
- func (h Handle) GroupEntities(groupID GpuGrp) ([]GroupEntityPair, error)
- func (h Handle) GroupGetAllIds(groupIdList *GpuGrp) (uint32, error)
- func (h Handle) GroupGetInfo(groupId GpuGrp, pDcgmGroupInfo *GroupInfo) error
- func (h Handle) GroupRemoveDevice(groupId GpuGrp, gpuId uint32) error
- func (h Handle) GroupRemoveEntity(groupId GpuGrp, entityGroupId FieldEntityGroup, entityId FieldEid) error
- func (h Handle) GroupTopology(groupId GpuGrp, pDcgmGroupTopology *GroupTopology) error
- func (h Handle) Groups() ([]GpuGrp, error)
- func (h Handle) HealthCheck(groupId GpuGrp, results *HealthResponse) error
- func (h Handle) HealthGet(groupId GpuGrp, systems *HealthSystems) error
- func (h Handle) HealthSet(params *HealthSetParamsV2) error
- func (h Handle) HostengineEnvironmentVariableInfo(pEnvVarInfo *EnvVarInfo) error
- func (h Handle) HostengineIsHealthy(heHealth *HostengineHealth) error
- func (h Handle) HostengineSetLoggingSeverity(logging *SettingsSetLoggingSeverity) error
- func (h Handle) HostengineVersionInfo(pVersionInfo *VersionInfoStruct) error
- func (h Handle) IntrospectGetHostengineCpuUtilization(cpuUtil *IntrospectCpuUtil, waitIfNoData int32) error
- func (h Handle) IntrospectGetHostengineMemoryUsage(memoryInfo *IntrospectMemory, waitIfNoData int32) error
- func (h Handle) JobGetStats(jobId *JobID, pJobInfo *JobInfo) error
- func (h Handle) JobRemove(jobId *JobID) error
- func (h Handle) JobRemoveAll() error
- func (h Handle) JobStartStats(groupId GpuGrp, jobId *JobID) error
- func (h Handle) JobStopStats(jobId *JobID) error
- func (h Handle) LatestValues(gpuID uint32, fields []FieldID) ([]FieldValueV1, error)
- func (h Handle) LatestValuesForFields(gpuId int32, fields *uint16, count uint32, values *FieldValueV1) error
- func (h Handle) ModuleDenylist(moduleId ModuleId) error
- func (h Handle) ModuleGetStatuses(moduleStatuses *ModuleGetStatusesStruct) error
- func (h Handle) NvLinkLinkStatus(linkStatus *NvLinkStatus) error
- func (h Handle) NvLinkP2PStatus(linkStatus *NvLinkP2PStatus) error
- func (h Handle) PidInfo(groupId GpuGrp, pidInfo *PidInfo) error
- func (h Handle) PolicyCreate(fieldId uint16, name *byte, threshold float64, policyOperator PolicyOperator, ...) error
- func (h Handle) PolicyDelete(fieldId uint16, policyId uint64, deleteAll uint32) error
- func (h Handle) PolicyDisable(fieldId uint16, policyId uint64) error
- func (h Handle) PolicyEnable(fieldId uint16, policyId uint64) error
- func (h Handle) PolicyGet(groupId GpuGrp, count int32, policy *Policy, statusHandle StatusHandle) errordeprecated
- func (h Handle) PolicyGetAll(policies *PolicyInfo, count *uint32) error
- func (h Handle) PolicyGetOne(fieldId uint16, policyId uint64, policy *PolicyInfo) error
- func (h Handle) PolicyGetViolations(sinceTimestamp int64, violations *FieldPolicyViolation, count *uint32) error
- func (h Handle) PolicyImport(path *byte) error
- func (h Handle) PolicyModify(policy *PolicyInfo) error
- func (h Handle) PolicyRegisterV2(groupId GpuGrp, condition PolicyCondition, callback FpRecvUpdates, ...) errordeprecated
- func (h Handle) PolicySet(groupId GpuGrp, policy *Policy, statusHandle StatusHandle) errordeprecated
- func (h Handle) PolicyTrigger() errordeprecated
- func (h Handle) PolicyUnregister(groupId GpuGrp, condition PolicyCondition) errordeprecated
- func (h Handle) ProfGetSupportedMetricGroups(metricGroups *ProfGetMetricGroups) error
- func (h Handle) ProfPause() error
- func (h Handle) ProfResume() error
- func (h Handle) RunDiagnostic(groupId GpuGrp, diagLevel DiagnosticLevel, diagResponse *DiagResponse) error
- func (h Handle) RunMnDiagnostic(drmnd *RunMnDiagV2, response *MnDiagResponseV2) error
- func (h Handle) SelectGpusByTopology(inputGpuIds uint64, numGpus uint32, outputGpuIds *uint64, hintFlags uint64) error
- func (h Handle) StopDiagnostic() error
- func (h Handle) StopEmbedded() error
- func (h Handle) StopMnDiagnostic() error
- func (h Handle) SupportedDevices() ([]uint32, error)
- func (h Handle) UnwatchFields(groupId GpuGrp, fieldGroupId FieldGrp) error
- func (h Handle) UpdateAllFields(waitForUpdate int32) error
- func (h Handle) WatchFields(groupId GpuGrp, fieldGroupId FieldGrp, updateFreq int64, maxKeepAge float64, ...) error
- func (h Handle) WatchJobFields(groupId GpuGrp, updateFreq int64, maxKeepAge float64, maxKeepSamples int32) error
- func (h Handle) WatchPidFields(groupId GpuGrp, updateFreq int64, maxKeepAge float64, maxKeepSamples int32) error
- type HealthResponse
- type HealthResponseV5
- type HealthSetParamsV2
- type HealthSystems
- type HealthWatchResults
- type HostengineHealth
- type HostengineHealthV1
- type IncidentInfo
- type IntrospectCpuUtil
- type IntrospectCpuUtilV1
- type IntrospectMemory
- type IntrospectMemoryV1
- type JobID
- type JobInfo
- type JobInfoV3
- type LibraryAttempt
- type LibraryConflictError
- type LibraryError
- type Link
- func (l *Link) GpuId() FieldEid
- func (l *Link) Index() uint32
- func (l *Link) Raw() FieldEid
- func (l *Link) SetGpuId(v FieldEid)
- func (l *Link) SetIndex(v uint32)
- func (l *Link) SetRaw(v FieldEid)
- func (l *Link) SetSwitchId(v FieldEid)
- func (l *Link) SetType(v FieldEntityGroup)
- func (l *Link) SwitchId() FieldEid
- func (l *Link) Type() FieldEntityGroup
- type LoggingSeverity
- type MigEntityInfo
- type MigHierarchyInfo
- type MigHierarchyInfoV2
- type MigHierarchyV2
- type MigProfile
- type MnDiagEntity
- type MnDiagEntityResult
- type MnDiagEntityResultV1
- type MnDiagEntityV1
- type MnDiagError
- type MnDiagErrorV1
- type MnDiagHosts
- type MnDiagHostsV1
- type MnDiagInfo
- type MnDiagInfoV1
- type MnDiagResponseV1
- type MnDiagResponseV2
- type MnDiagTestAuxData
- type MnDiagTestAuxDataV1
- type MnDiagTestRunV1
- type MnDiagTestRunV2
- type ModuleGetStatusesModule
- type ModuleGetStatusesStruct
- type ModuleGetStatusesStructV1
- type ModuleId
- type ModuleStatus
- type ModulesReloadable
- type ModulesReloadableV1
- type NvLinkGpuLinkP2PStatusV1
- type NvLinkGpuLinkStatusV1
- type NvLinkGpuLinkStatusV2
- type NvLinkGpuLinkStatusV3
- type NvLinkGpuLinkStatusV4
- type NvLinkGpuP2PStatus
- type NvLinkLinkState
- type NvLinkNvSwitchLinkStatus
- type NvLinkP2PStatus
- type NvLinkP2PStatusV1
- type NvLinkStatus
- type NvLinkStatusV4
- type NvLinkStatusV5
- type OperationMode
- type Order
- type PerGpuTestIndices
- type PidInfo
- type PidInfoV2
- type PidSingleInfo
- type Policydeprecated
- type PolicyActiondeprecated
- type PolicyCallbackResponsedeprecated
- type PolicyCallbackResponseV1
- type PolicyCallbackResponseV2
- type PolicyCallbackV1
- type PolicyChannel
- type PolicyConditiondeprecated
- type PolicyConditionDbe
- type PolicyConditionIdxdeprecated
- type PolicyConditionMpr
- type PolicyConditionNvlink
- type PolicyConditionParamsdeprecated
- type PolicyConditionPci
- type PolicyConditionPower
- type PolicyConditionThermal
- type PolicyConditionXID
- type PolicyFailureRespdeprecated
- type PolicyInfo
- type PolicyInfoV1
- type PolicyIsolationdeprecated
- type PolicyModedeprecated
- type PolicyNotifications
- type PolicyOperator
- type PolicySpec
- type PolicySpecV1
- type PolicyState
- type PolicyV1
- type PolicyValidationdeprecated
- type PolicyViolation
- type PolicyViolationNotifydeprecated
- type PolicyViolationV1
- type PowerProfileType
- type ProcessUtilInfo
- type ProcessUtilSample
- type ProfGetMetricGroups
- type ProfGetMetricGroupsV3
- type ProfMetricGroupInfoV2
- type Result
- type RunDiagV7deprecated
- type RunDiagV8deprecated
- type RunDiagV9deprecated
- type RunDiagV10
- type RunMnDiagV1
- type RunMnDiagV2
- type RunningProcess
- type RunningProcessV1
- type Session
- func (s *Session) AddEntity(groupID GpuGrp, entityGroup FieldEntityGroup, entityID FieldEid) error
- func (s *Session) Close() error
- func (s *Session) NewFieldGroup(name string, fields []FieldID) (FieldGrp, error)
- func (s *Session) NewGroup(name string, groupType GroupType) (GpuGrp, error)
- func (s *Session) Owns(groupID GpuGrp) bool
- func (s *Session) OwnsFieldGroup(fieldGroup FieldGrp) bool
- func (s *Session) OwnsHostEngine() bool
- func (s *Session) Watch(groupID GpuGrp, fieldGroup FieldGrp, updateFreq, maxKeepAge time.Duration, ...) error
- type SettingsSetLoggingSeverity
- type SettingsSetLoggingSeverityV1
- type SettingsSetLoggingSeverityV2
- type SoftwareTest
- type StartEmbeddedV2Params
- type StartEmbeddedV2ParamsV1
- type StartEmbeddedV2ParamsV2
- type StartEmbeddedV2ParamsV3
- type StatSummaryFp64
- type StatSummaryInt32
- type StatSummaryInt64
- type StatusHandle
- type SummaryResponse
- type SymbolError
- type TopoSchedHint
- type TopoSchedHintV1
- type VersionInfoStruct
- type VersionInfoStructV2
- type WorkloadPowerProfile
- type WorkloadPowerProfileInfo
- type WorkloadPowerProfileInfoV1
- type WorkloadPowerProfileProfilesInfo
- type WorkloadPowerProfileProfilesInfoV1
- type WorkloadPowerProfileV1
- type WorkloadProfileAction
Examples ¶
- Package
- Connect
- ErrorCode
- ErrorCode.String
- NewPolicyNotifications
- NewPolicyNotifications
- PolicyBool
- PolicyNotifications.Close
- PolicyNotifications.Close
- PolicyNotifications.Dropped
- PolicyNotifications.Dropped
- PolicyNotifications.Notifications
- PolicyNotifications.Notifications
- PolicyNumber
- ReadPolicies
- ReadPolicies
Constants ¶
const ( // AffinityBitmaskArraySize is DCGM_AFFINITY_BITMASK_ARRAY_SIZE. AffinityBitmaskArraySize = 8 // ClocksEventMaskLen is DCGM_CLOCKS_EVENT_MASK_LEN. ClocksEventMaskLen = 50 // ClocksEventReasonClocksSetting is DCGM_CLOCKS_EVENT_REASON_CLOCKS_SETTING. GPU clocks are limited by current setting of applications clocks. ClocksEventReasonClocksSetting uint64 = 2 // ClocksEventReasonDisplayClocks is DCGM_CLOCKS_EVENT_REASON_DISPLAY_CLOCKS. GPU clocks are limited by current setting of Display clocks. ClocksEventReasonDisplayClocks uint64 = 256 // ClocksEventReasonGpuIdle is DCGM_CLOCKS_EVENT_REASON_GPU_IDLE. Nothing is running on the GPU and the clocks are dropping to Idle state. // // Note: This limiter may be removed in a later release. ClocksEventReasonGpuIdle uint64 = 1 // ClocksEventReasonHwPowerBrake is DCGM_CLOCKS_EVENT_REASON_HW_POWER_BRAKE. HW Power Brake Slowdown (reducing the core clocks by a factor of 2 or more) is engaged. // // This is an indicator of: // - External Power Brake Assertion being triggered (e.g. by the system power supply) ClocksEventReasonHwPowerBrake uint64 = 128 // ClocksEventReasonHwSlowdown is DCGM_CLOCKS_EVENT_REASON_HW_SLOWDOWN. HW Slowdown (reducing the core clocks by a factor of 2 or more) is engaged. // // This is an indicator of: // - temperature being too high // - External Power Brake Assertion is triggered (e.g. by the system power supply) // - Power draw is too high and Fast Trigger protection is reducing the clocks // - May be also reported during PState or clock change // - This behavior may be removed in a later release. ClocksEventReasonHwSlowdown uint64 = 8 // ClocksEventReasonHwThermal is DCGM_CLOCKS_EVENT_REASON_HW_THERMAL. HW Thermal Slowdown (reducing the core clocks by a factor of 2 or more) is engaged. // // This is an indicator of: // - temperature being too high ClocksEventReasonHwThermal uint64 = 64 // ClocksEventReasonSwPowerCap is DCGM_CLOCKS_EVENT_REASON_SW_POWER_CAP. The clocks have been optimized to ensure not to exceed currently set power limits. ClocksEventReasonSwPowerCap uint64 = 4 // ClocksEventReasonSwThermal is DCGM_CLOCKS_EVENT_REASON_SW_THERMAL. SW Thermal Slowdown. // // The current clocks have been optimized to ensure the the following is true: // - Current GPU temperature does not exceed GPU Max Operating Temperature // - Current memory temperature does not exceed Memory Max Operating Temperature ClocksEventReasonSwThermal uint64 = 32 // ClocksEventReasonSyncBoost is DCGM_CLOCKS_EVENT_REASON_SYNC_BOOST. Sync Boost. // // This GPU has been added to a Sync boost group with nvidia-smi or DCGM in order to maximize performance per watt. All GPUs in the sync boost group will boost to the minimum possible clocks across the entire group. Look at the throttle reasons for other GPUs in the system to see why those GPUs are holding this one at lower clocks. ClocksEventReasonSyncBoost uint64 = 16 // ClocksThrottleReasonClocksSetting is DCGM_CLOCKS_THROTTLE_REASON_CLOCKS_SETTING. // // Deprecated: Use [ClocksEventReasonClocksSetting] instead. ClocksThrottleReasonClocksSetting = ClocksEventReasonClocksSetting // ClocksThrottleReasonDisplayClocks is DCGM_CLOCKS_THROTTLE_REASON_DISPLAY_CLOCKS. // // Deprecated: Use [ClocksEventReasonDisplayClocks] instead. ClocksThrottleReasonDisplayClocks = ClocksEventReasonDisplayClocks // ClocksThrottleReasonGpuIdle is DCGM_CLOCKS_THROTTLE_REASON_GPU_IDLE. // // Deprecated: Use [ClocksEventReasonGpuIdle] instead. ClocksThrottleReasonGpuIdle = ClocksEventReasonGpuIdle // ClocksThrottleReasonHwPowerBrake is DCGM_CLOCKS_THROTTLE_REASON_HW_POWER_BRAKE. // // Deprecated: Use [ClocksEventReasonHwPowerBrake] instead. ClocksThrottleReasonHwPowerBrake = ClocksEventReasonHwPowerBrake // ClocksThrottleReasonHwSlowdown is DCGM_CLOCKS_THROTTLE_REASON_HW_SLOWDOWN. // // Deprecated: Use [ClocksEventReasonHwSlowdown] instead. ClocksThrottleReasonHwSlowdown = ClocksEventReasonHwSlowdown // ClocksThrottleReasonHwThermal is DCGM_CLOCKS_THROTTLE_REASON_HW_THERMAL. // // Deprecated: Use [ClocksEventReasonHwThermal] instead. ClocksThrottleReasonHwThermal = ClocksEventReasonHwThermal // ClocksThrottleReasonSwPowerCap is DCGM_CLOCKS_THROTTLE_REASON_SW_POWER_CAP. // // Deprecated: Use [ClocksEventReasonSwPowerCap] instead. ClocksThrottleReasonSwPowerCap = ClocksEventReasonSwPowerCap // ClocksThrottleReasonSwThermal is DCGM_CLOCKS_THROTTLE_REASON_SW_THERMAL. // // Deprecated: Use [ClocksEventReasonSwThermal] instead. ClocksThrottleReasonSwThermal = ClocksEventReasonSwThermal // ClocksThrottleReasonSyncBoost is DCGM_CLOCKS_THROTTLE_REASON_SYNC_BOOST. // // Deprecated: Use [ClocksEventReasonSyncBoost] instead. ClocksThrottleReasonSyncBoost = ClocksEventReasonSyncBoost // ConfigComputemodeDefault is DCGM_CONFIG_COMPUTEMODE_DEFAULT. Default compute mode -- multiple contexts per device. ConfigComputemodeDefault = 0 // ConfigComputemodeExclusiveProcess is DCGM_CONFIG_COMPUTEMODE_EXCLUSIVE_PROCESS. Compute-exclusive-process mode -- only one context per device, usable from multiple threads at a time. ConfigComputemodeExclusiveProcess = 2 // ConfigComputemodeProhibited is DCGM_CONFIG_COMPUTEMODE_PROHIBITED. Compute-prohibited mode -- no contexts per device. ConfigComputemodeProhibited = 1 // CpuCoreBitmaskCountV1 is DCGM_CPU_CORE_BITMASK_COUNT_V1. Bitmask indicating which cores are owned by this CPUs. CpuCoreBitmaskCountV1 uint64 = 16 // DeviceIdLen is DCGM_DEVICE_ID_LEN. SKU Device ID (string). DeviceIdLen = 5 // DeviceUuidBufferSize is DCGM_DEVICE_UUID_BUFFER_SIZE. Represents the size of a buffer that holds string related to attributes specific to vGPU instance. DeviceUuidBufferSize = 80 // DiagAuxDataLen is DCGM_DIAG_AUX_DATA_LEN. DiagAuxDataLen = 2048 // DiagResponseCategoriesMax is DCGM_DIAG_RESPONSE_CATEGORIES_MAX. One of Deployment | Hardware | Integration | Stress. DiagResponseCategoriesMax = 5 // DiagResponseCategoryLen is DCGM_DIAG_RESPONSE_CATEGORY_LEN. Number of bytes (including '\0') for each category. DiagResponseCategoryLen = 20 // DiagResponseEntitiesMax is DCGM_DIAG_RESPONSE_ENTITIES_MAX. Maximum number of entities that can be reported. DiagResponseEntitiesMax = GroupMaxEntitiesV2 // DiagResponseErrorsMax is DCGM_DIAG_RESPONSE_ERRORS_MAX. Maximum number of errors that can be reported. This must match DCGM_DIAG_PLUGINRUN_ERROR_INDICES_MAX. DiagResponseErrorsMax = DiagTestRunErrorIndicesMax // DiagResponseInfoMax is DCGM_DIAG_RESPONSE_INFO_MAX. // // Deprecated: Maximum number of info msgs that can be reported. This must match [DiagTestRunInfoIndicesMax]. DiagResponseInfoMax = DiagTestRunInfoIndicesMax // DiagResponseInfoMaxV2 is DCGM_DIAG_RESPONSE_INFO_MAX_V2. Maximum number of info msgs that can be reported (v2). This must match [DiagTestRunInfoIndicesMaxV2]. DiagResponseInfoMaxV2 = DiagTestRunInfoIndicesMaxV2 // DiagResponseResultsMax is DCGM_DIAG_RESPONSE_RESULTS_MAX. Maximum number of results that can be reported. DiagResponseResultsMax = 20480 // DiagResponseSystemError is DCGM_DIAG_RESPONSE_SYSTEM_ERROR. Used to flag an error as a system error. DiagResponseSystemError = Int8Blank // DiagResponseTestsMax is DCGM_DIAG_RESPONSE_TESTS_MAX. Maximum number of plugins that can return results. DiagResponseTestsMax = 20 // DiagResponseV11UnusedLen is DCGM_DIAG_RESPONSE_V11_UNUSED_LEN. Unused bytes in diagResponse_v11 for compatibility with v10 and earlier. DiagResponseV11UnusedLen = 682880 // DiagResponseV12UnusedLen is DCGM_DIAG_RESPONSE_V12_UNUSED_LEN. Unused bytes in diagResponse_v12 for compatibility with v11 and earlier. DiagResponseV12UnusedLen = 621952 // DiagTestRunErrorIndicesMax is DCGM_DIAG_TEST_RUN_ERROR_INDICES_MAX. The maximum number of per-entity errors that can be reported. DiagTestRunErrorIndicesMax = 32 // DiagTestRunInfoIndicesMax is DCGM_DIAG_TEST_RUN_INFO_INDICES_MAX. // // Deprecated: The maximum number of per-entity info msgs that can be reported. DiagTestRunInfoIndicesMax = 16 // DiagTestRunInfoIndicesMaxV2 is DCGM_DIAG_TEST_RUN_INFO_INDICES_MAX_V2. The maximum number of per-entity info msgs that can be reported (v2). DiagTestRunInfoIndicesMaxV2 = 128 // DiagTestRunNameLen is DCGM_DIAG_TEST_RUN_NAME_LEN. The maximum number of characters (including '\0') used for a name. DiagTestRunNameLen = 32 // DiagTestRunResultsMax is DCGM_DIAG_TEST_RUN_RESULTS_MAX. The maximum number of per-entity results that can be reported. DiagTestRunResultsMax = GroupMaxEntitiesV2 // EntityIdListLen is DCGM_ENTITY_ID_LIST_LEN. EntityIdListLen = 2048 // ErrMsgLength is DCGM_ERR_MSG_LENGTH. ErrMsgLength = 512 // ExpectedEntitiesLen is DCGM_EXPECTED_ENTITIES_LEN. ExpectedEntitiesLen = 50 // FileLen is DCGM_FILE_LEN. FileLen = 30 // FsDevice is DCGM_FS_DEVICE. Field is associated with a device. // // Deprecated: Use [FsEntity]. FsDevice = FsEntity // FsEntity is DCGM_FS_ENTITY. Field is associated with an entity (GPU, VGPU...etc). FsEntity = 1 // FsGlobal is DCGM_FS_GLOBAL. Field is global (ex: driver version). FsGlobal = 0 // FvFlagLiveData is DCGM_FV_FLAG_LIVE_DATA. Field value flags used by [Handle.EntitiesGetLatestValues]. // // Retrieve live data from the driver rather than cached data. Warning: Setting this flag will result in multiple calls to the NVIDIA driver that will be much slower than retrieving a cached value. FvFlagLiveData = 1 // GegeFlagOnlySupported is DCGM_GEGE_FLAG_ONLY_SUPPORTED. Flags for [Handle.EntityGroupEntities]'s flags parameter. // // Only return entities that are supported by DCGM. This mimics the behavior of [Handle.AllSupportedDevices]. GegeFlagOnlySupported = 1 // GpuListLen is DCGM_GPU_LIST_LEN. GpuListLen = 50 // GridLicenseBufferSize is DCGM_GRID_LICENSE_BUFFER_SIZE. Represents the size of a buffer that holds a vGPU license string. GridLicenseBufferSize = 128 // GroupNull is DCGM_GROUP_NULL. GroupNull = 2147483642 // HealthWatchCountV1 is DCGM_HEALTH_WATCH_COUNT_V1. For iterating through the dcgmHealthSystems_v1 enum. HealthWatchCountV1 = 10 // HealthWatchCountV2 is DCGM_HEALTH_WATCH_COUNT_V2. For iterating through the dcgmHealthSystems_v2 enum. HealthWatchCountV2 = 12 // HealthWatchCountV3 is DCGM_HEALTH_WATCH_COUNT_V3. For iterating through the dcgmHealthSystems_v3 enum. HealthWatchCountV3 = 13 // HealthWatchCountV4 is DCGM_HEALTH_WATCH_COUNT_V4. For iterating through the dcgmHealthSystems_v4 enum. HealthWatchCountV4 = 14 // HealthWatchMaxIncidentsV2 is DCGM_HEALTH_WATCH_MAX_INCIDENTS_V2. HealthWatchMaxIncidentsV2 = GroupMaxEntitiesV2 // HealthWatchNvlinkErrorNumFields is DCGM_HEALTH_WATCH_NVLINK_ERROR_NUM_FIELDS. Number of nvlink error types: TODO: update with refactor of ampere-next nvlink APIs (JIRA DCGM-2628). HealthWatchNvlinkErrorNumFields = 6 // HePortNumber is DCGM_HE_PORT_NUMBER. Default Port Number for DCGM Host Engine. HePortNumber = 5555 // IgnoreErrorMaxLen is DCGM_IGNORE_ERROR_MAX_LEN. IgnoreErrorMaxLen = 512 // LaneMaxLanesPerNvswichLink is DCGM_LANE_MAX_LANES_PER_NVSWICH_LINK. Number of Lanes per NvSwitch NvLink supported by DCGM. LaneMaxLanesPerNvswichLink = 4 // MaxAgeUsecDefault is DCGM_MAX_AGE_USEC_DEFAULT. Default maximum age of samples kept (usec). MaxAgeUsecDefault = 30000000 // MaxClocks is DCGM_MAX_CLOCKS. Max number of clocks supported for a device. MaxClocks = 256 // MaxComputeInstances is DCGM_MAX_COMPUTE_INSTANCES. The maximum compute instances are always the same as the maximum instances because each compute instance is part of an instance. MaxComputeInstances = MaxInstances // MaxComputeInstancesPerGpu is DCGM_MAX_COMPUTE_INSTANCES_PER_GPU. There can never be more compute instances per GPU than instances per GPU because a compute instance is part of an instance. MaxComputeInstancesPerGpu = MaxInstancesPerGpu // MaxConfigFileLen is DCGM_MAX_CONFIG_FILE_LEN. MaxConfigFileLen = 10000 // MaxErrors is DCGM_MAX_ERRORS. MaxErrors = 5 // MaxFbcSessions is DCGM_MAX_FBC_SESSIONS. Max number of active FBC sessions. MaxFbcSessions = 256 // MaxHierarchyInfo is DCGM_MAX_HIERARCHY_INFO. MaxHierarchyInfo = 448 // MaxInstances is DCGM_MAX_INSTANCES. MaxInstances = 256 // MaxInstancesPerGpu is DCGM_MAX_INSTANCES_PER_GPU. MaxInstancesPerGpu = 8 // MaxNumCpus is DCGM_MAX_NUM_CPUS. Max number of CPU nodes. MaxNumCpus = 8 // MaxNumCpuCores is DCGM_MAX_NUM_CPU_CORES. Max number of CPUs. MaxNumCpuCores = 1024 // MaxNumHosts is DCGM_MAX_NUM_HOSTS. Maximum number of hosts in a multi-node diagnostic (legacy). MaxNumHosts = 72 // MaxNumSwitches is DCGM_MAX_NUM_SWITCHES. Max number of NvSwitches supported by DCGM. MaxNumSwitches = 12 // MaxPidInfoNum is DCGM_MAX_PID_INFO_NUM. MaxPidInfoNum = 16 // MaxTestNames is DCGM_MAX_TEST_NAMES. MaxTestNames = 20 // MaxTestNamesLen is DCGM_MAX_TEST_NAMES_LEN. MaxTestNamesLen = 50 // MaxTestParms is DCGM_MAX_TEST_PARMS. MaxTestParms = 100 // MaxTestParmsLen is DCGM_MAX_TEST_PARMS_LEN. MaxTestParmsLen = 100 // MaxTestParmsLenV2 is DCGM_MAX_TEST_PARMS_LEN_V2. MaxTestParmsLenV2 = 1050 // MaxTotalInstancesPerGpu is DCGM_MAX_TOTAL_INSTANCES_PER_GPU. MaxTotalInstancesPerGpu = 14 // MaxVgpuInstancesPerPgpu is DCGM_MAX_VGPU_INSTANCES_PER_PGPU. Maximum number of vGPU instances per physical GPU. MaxVgpuInstancesPerPgpu = 32 // MaxVgpuTypesPerPgpu is DCGM_MAX_VGPU_TYPES_PER_PGPU. Maximum number of vGPU types per physical GPU. MaxVgpuTypesPerPgpu = 32 // MaxXidInfo is DCGM_MAX_XID_INFO. Max number of XID info to store. MaxXidInfo = 10 // MndiagMaxNumHosts is DCGM_MNDIAG_MAX_NUM_HOSTS. Maximum number of hosts for multi-node diagnostics (mndiag-specific). Sized to cover NVL576 (288 Grace CPUs) with headroom for future growth. MndiagMaxNumHosts = 576 // MnDiagAuxDataLen is DCGM_MN_DIAG_AUX_DATA_LEN. MnDiagAuxDataLen = 2048 // MnDiagResponseEntitiesMax is DCGM_MN_DIAG_RESPONSE_ENTITIES_MAX. MnDiagResponseEntitiesMax = 9216 // MnDiagResponseEntitiesMaxV1 is DCGM_MN_DIAG_RESPONSE_ENTITIES_MAX_V1. MnDiagResponseEntitiesMaxV1 = 1152 // MnDiagResponseEntitiesPerHostMax is DCGM_MN_DIAG_RESPONSE_ENTITIES_PER_HOST_MAX. The maximum number of entities per host. MnDiagResponseEntitiesPerHostMax = 16 // MnDiagResponseErrorsMax is DCGM_MN_DIAG_RESPONSE_ERRORS_MAX. MnDiagResponseErrorsMax = MnDiagTestRunErrorIndicesMax // MnDiagResponseHostsMax is DCGM_MN_DIAG_RESPONSE_HOSTS_MAX. The maximum number of hosts that can be reported. MnDiagResponseHostsMax = 576 // MnDiagResponseHostsMaxV1 is DCGM_MN_DIAG_RESPONSE_HOSTS_MAX_V1. MnDiagResponseHostsMaxV1 = 72 // MnDiagResponseInfoMax is DCGM_MN_DIAG_RESPONSE_INFO_MAX. MnDiagResponseInfoMax = MnDiagTestRunInfoIndicesMax // MnDiagResponseResultsMax is DCGM_MN_DIAG_RESPONSE_RESULTS_MAX. Maximum number of results that can be reported. MnDiagResponseResultsMax = 36864 // MnDiagResponseResultsMaxV1 is DCGM_MN_DIAG_RESPONSE_RESULTS_MAX_V1. MnDiagResponseResultsMaxV1 = 4608 // MnDiagResponseTestsMax is DCGM_MN_DIAG_RESPONSE_TESTS_MAX. The maximum number of tests that can be reported. MnDiagResponseTestsMax = 4 // MnDiagTestRunErrorIndicesMax is DCGM_MN_DIAG_TEST_RUN_ERROR_INDICES_MAX. The maximum number of per-entity errors that can be reported. MnDiagTestRunErrorIndicesMax = 32 // MnDiagTestRunInfoIndicesMax is DCGM_MN_DIAG_TEST_RUN_INFO_INDICES_MAX. The maximum number of per-entity info msgs that can be reported. MnDiagTestRunInfoIndicesMax = 128 // MnDiagTestRunNameLen is DCGM_MN_DIAG_TEST_RUN_NAME_LEN. The maximum number of characters (including '\0') used for a name. MnDiagTestRunNameLen = 32 // ModuleIdCountV1 is DCGM_MODULE_ID_COUNT_V1. Freezed version of DcgmModuleIdCount for backward compatibility. ModuleIdCountV1 = 10 // ModuleIdCountV2 is DCGM_MODULE_ID_COUNT_V2. This is larger than DcgmModuleIdCount so we can add modules without versioning this request Make sure to update [ModuleIdCountV2] if you add more modules such that DcgmModuleIdCount is greater than [ModuleIdCountV2]. ModuleIdCountV2 = 16 // ModuleStatusesCapacity is DCGM_MODULE_STATUSES_CAPACITY. This is larger than DcgmModuleIdCount so we can add modules without versioning this request. ModuleStatusesCapacity = 16 // NvlinkErrorCount is DCGM_NVLINK_ERROR_COUNT. Number of nvlink errors supported by DCGM. // // NVML_NVLINK_ERROR_DL_ECC_DATA not currently supported. NvlinkErrorCount = 4 // NvlinkMaxLinksPerGpu is DCGM_NVLINK_MAX_LINKS_PER_GPU. Number of NvLink links per GPU supported by DCGM 36 for newer GPUs, 18 for previous-generation GPUs, 12 for older GPUs, and 6/4 for legacy GPUs. NvlinkMaxLinksPerGpu = 36 // NvlinkMaxLinksPerGpuLegacy1 is DCGM_NVLINK_MAX_LINKS_PER_GPU_LEGACY1. Maximum NvLink links pre-Ampere. NvlinkMaxLinksPerGpuLegacy1 = 6 // NvlinkMaxLinksPerGpuLegacy2 is DCGM_NVLINK_MAX_LINKS_PER_GPU_LEGACY2. Maximum NvLink links pre-Hopper. NvlinkMaxLinksPerGpuLegacy2 = 12 // NvlinkMaxLinksPerGpuLegacy3 is DCGM_NVLINK_MAX_LINKS_PER_GPU_LEGACY3. Maximum NvLink links for 18-link GPUs. NvlinkMaxLinksPerGpuLegacy3 = 18 // NvlinkMaxLinksPerNvswitch is DCGM_NVLINK_MAX_LINKS_PER_NVSWITCH. Number of NvLink links per NvSwitch supported by DCGM. NvlinkMaxLinksPerNvswitch = 256 // PathLen is DCGM_PATH_LEN. PathLen = 128 // PerGpuTestCountV7 is DCGM_PER_GPU_TEST_COUNT_V7. PerGpuTestCountV7 = 9 // PerGpuTestCountV8 is DCGM_PER_GPU_TEST_COUNT_V8. PerGpuTestCountV8 = 13 // PolicyCondIdxMax is DCGM_POLICY_COND_IDX_MAX. PolicyCondIdxMax = 7 // PolicyCondMax is DCGM_POLICY_COND_MAX. PolicyCondMax = PolicyCondIdxMax // PolicyMaxPath is DCGM_POLICY_MAX_PATH. PolicyMaxPath = 4096 // PolicyMaxPolicies is DCGM_POLICY_MAX_POLICIES. PolicyMaxPolicies = 1525 // PolicyMaxViolations is DCGM_POLICY_MAX_VIOLATIONS. PolicyMaxViolations = 128 // PowerProfileArraySize is DCGM_POWER_PROFILE_ARRAY_SIZE. Power profile array size. PowerProfileArraySize = 8 // PowerProfileMaskBitsPerElem is DCGM_POWER_PROFILE_MASK_BITS_PER_ELEM. Power profile bits per element. PowerProfileMaskBitsPerElem = 32 // PowerProfileMaxNum is DCGM_POWER_PROFILE_MAX_NUM. Max number of power profiles. PowerProfileMaxNum = 255 // ProfMaxFieldIdsPerGroupV2 is DCGM_PROF_MAX_FIELD_IDS_PER_GROUP_V2. Maximum number of field IDs that can be in a single DCGM profiling metric group. ProfMaxFieldIdsPerGroupV2 = 64 // ProfMaxNumGroupsV2 is DCGM_PROF_MAX_NUM_GROUPS_V2. Maximum number of metric ID groups that can exist in DCGM. ProfMaxNumGroupsV2 = 10 // RunFlagsEnableHeartbeat is DCGM_RUN_FLAGS_ENABLE_HEARTBEAT. Enable heartbeat for the diagnostic. // // This flag enables heartbeat mechanism for the diagnostic in cases where the host engine can stop the diagnostic if the client that triggered it has terminated. // // When using this flag, you have to call [Handle.DiagSendHeartbeat] at least once every 10 minutes (from another thread) to keep the diagnostic running. RunFlagsEnableHeartbeat = 32 // RunFlagsFailEarly is DCGM_RUN_FLAGS_FAIL_EARLY. Enable fail early checks for the Targeted Stress, Targeted Power, SM Stress, and Diagnostic tests. RunFlagsFailEarly = 16 // RunFlagsForceTrain is DCGM_RUN_FLAGS_FORCE_TRAIN. UNUSED Ignore warnings against training the diagnostic and train anyway. RunFlagsForceTrain = 8 // RunFlagsStatsonfail is DCGM_RUN_FLAGS_STATSONFAIL. Output stats only on failure. RunFlagsStatsonfail = 2 // RunFlagsTrain is DCGM_RUN_FLAGS_TRAIN. UNUSED Train DCGM diagnostic and output a configuration file with golden values. RunFlagsTrain = 4 // RunFlagsVerbose is DCGM_RUN_FLAGS_VERBOSE. Output in verbose mode; include information as well as warnings. RunFlagsVerbose = 1 // SmPerfIndex is DCGM_SM_PERF_INDEX. SmPerfIndex = SmStressIndex // SummaryAvg is DCGM_SUMMARY_AVG. SummaryAvg = 4 // SummaryCount is DCGM_SUMMARY_COUNT. SummaryCount = 16 // SummaryDiff is DCGM_SUMMARY_DIFF. SummaryDiff = 64 // SummaryIntegral is DCGM_SUMMARY_INTEGRAL. SummaryIntegral = 32 // SummaryMax is DCGM_SUMMARY_MAX. SummaryMax = 2 // SummaryMin is DCGM_SUMMARY_MIN. SummaryMin = 1 // SummarySize is DCGM_SUMMARY_SIZE. SummarySize = 7 // SummarySum is DCGM_SUMMARY_SUM. SummarySum = 8 // SwtestCount is DCGM_SWTEST_COUNT. SwtestCount = 11 // ThrottleMaskLen is DCGM_THROTTLE_MASK_LEN. // // Deprecated: Use [ClocksEventMaskLen] instead. ThrottleMaskLen = ClocksEventMaskLen // TopologyNvlink19 is DCGM_TOPOLOGY_NVLINK19. GPUs connected via 19 NVLINK links. TopologyNvlink19 GpuTopologyLevel = 67108864 // TopologyNvlink20 is DCGM_TOPOLOGY_NVLINK20. GPUs connected via 20 NVLINK links. TopologyNvlink20 GpuTopologyLevel = 134217728 // TopologyNvlink21 is DCGM_TOPOLOGY_NVLINK21. GPUs connected via 21 NVLINK links. TopologyNvlink21 GpuTopologyLevel = 268435456 // TopologyNvlink22 is DCGM_TOPOLOGY_NVLINK22. GPUs connected via 22 NVLINK links. TopologyNvlink22 GpuTopologyLevel = 536870912 // TopologyNvlink23 is DCGM_TOPOLOGY_NVLINK23. GPUs connected via 23 NVLINK links. TopologyNvlink23 GpuTopologyLevel = 1073741824 // TopologyNvlink24 is DCGM_TOPOLOGY_NVLINK24. GPUs connected via 24 NVLINK links. TopologyNvlink24 GpuTopologyLevel = 2147483648 // TopologyNvlink25 is DCGM_TOPOLOGY_NVLINK25. GPUs connected via 25 NVLINK links. TopologyNvlink25 GpuTopologyLevel = 4294967296 // TopologyNvlink26 is DCGM_TOPOLOGY_NVLINK26. GPUs connected via 26 NVLINK links. TopologyNvlink26 GpuTopologyLevel = 8589934592 // TopologyNvlink27 is DCGM_TOPOLOGY_NVLINK27. GPUs connected via 27 NVLINK links. TopologyNvlink27 GpuTopologyLevel = 17179869184 // TopologyNvlink28 is DCGM_TOPOLOGY_NVLINK28. GPUs connected via 28 NVLINK links. TopologyNvlink28 GpuTopologyLevel = 34359738368 // TopologyNvlink29 is DCGM_TOPOLOGY_NVLINK29. GPUs connected via 29 NVLINK links. TopologyNvlink29 GpuTopologyLevel = 68719476736 // TopologyNvlink30 is DCGM_TOPOLOGY_NVLINK30. GPUs connected via 30 NVLINK links. TopologyNvlink30 GpuTopologyLevel = 137438953472 // TopologyNvlink31 is DCGM_TOPOLOGY_NVLINK31. GPUs connected via 31 NVLINK links. TopologyNvlink31 GpuTopologyLevel = 274877906944 // TopologyNvlink32 is DCGM_TOPOLOGY_NVLINK32. GPUs connected via 32 NVLINK links. TopologyNvlink32 GpuTopologyLevel = 549755813888 // TopologyNvlink33 is DCGM_TOPOLOGY_NVLINK33. GPUs connected via 33 NVLINK links. TopologyNvlink33 GpuTopologyLevel = 1099511627776 // TopologyNvlink34 is DCGM_TOPOLOGY_NVLINK34. GPUs connected via 34 NVLINK links. TopologyNvlink34 GpuTopologyLevel = 2199023255552 // TopologyNvlink35 is DCGM_TOPOLOGY_NVLINK35. GPUs connected via 35 NVLINK links. TopologyNvlink35 GpuTopologyLevel = 4398046511104 // TopologyNvlink36 is DCGM_TOPOLOGY_NVLINK36. GPUs connected via 36 NVLINK links. TopologyNvlink36 GpuTopologyLevel = 8796093022208 // TopoHintFIgnorehealth is DCGM_TOPO_HINT_F_IGNOREHEALTH. Ignore the health of the GPUs when picking GPUs for job execution. By default, only healthy GPUs are considered. TopoHintFIgnorehealth = 1 // TopoHintFNone is DCGM_TOPO_HINT_F_NONE. No hints specified. TopoHintFNone = 0 // VersionLen is DCGM_VERSION_LEN. DCGM Version (string). VersionLen = 12 // VgpuNameBufferSize is DCGM_VGPU_NAME_BUFFER_SIZE. Represents the size of a buffer that holds a vGPU type Name or vGPU class type or name of process running on vGPU instance. VgpuNameBufferSize = 64 )
const ( // FieldMaxVgpuFields is DCGM_FI_MAX_VGPU_FIELDS, which the header computes rather than assigns. FieldMaxVgpuFields uint16 = 50 // FieldMaxNvswitchFields is DCGM_FI_MAX_NVSWITCH_FIELDS, which the header computes rather than assigns. FieldMaxNvswitchFields uint16 = 200 // FieldMaxFields is DCGM_FI_MAX_FIELDS, which the header computes rather than assigns. FieldMaxFields uint16 = 1651 )
Counts and range bounds. The header computes each of these from field ids rather than assigning it one, so none of them is a field to watch: passing one where a FieldID is expected would watch whatever id the arithmetic happens to land on. They are typed uint16 rather than FieldID to make that mistake a compile error.
const ( // MaxNumDevices is the largest number of GPUs DCGM reports, and so the // smallest safe length for a gpuIdList buffer. // // C: DCGM_MAX_NUM_DEVICES MaxNumDevices = 32 // MaxNumGroups is the largest number of entity groups a host engine holds, // and so the smallest safe length for a group id buffer. // // C: DCGM_MAX_NUM_GROUPS MaxNumGroups = 64 // MaxNumFieldGroups is the largest number of field groups a host engine holds. // // C: DCGM_MAX_NUM_FIELD_GROUPS MaxNumFieldGroups = 64 // MaxFieldIDsPerFieldGroup is the largest number of field ids one field // group may contain. // // C: DCGM_MAX_FIELD_IDS_PER_FIELD_GROUP MaxFieldIDsPerFieldGroup = 128 // GroupMaxEntitiesV1 is the entity capacity of the version 1 group layouts. // // C: DCGM_GROUP_MAX_ENTITIES_V1 GroupMaxEntitiesV1 = 64 // GroupMaxEntitiesV2 is the entity capacity of the current group layouts. // // C: DCGM_GROUP_MAX_ENTITIES_V2 GroupMaxEntitiesV2 = 1024 // MaxStrLength is the length of the fixed character arrays DCGM uses for // names, and the capacity of a string-typed field value. // // C: DCGM_MAX_STR_LENGTH MaxStrLength = 256 // MaxBlobLength is the capacity in bytes of a field value's payload union. // // C: DCGM_MAX_BLOB_LENGTH MaxBlobLength = 4096 // GroupAllGPUs is the pseudo-group id standing for every GPU. It is not a // group this process created, so it must never be passed to GroupDestroy. // // C: DCGM_GROUP_ALL_GPUS GroupAllGPUs = 0x7fffffff // GroupAllNvSwitches is the pseudo-group id standing for every NvSwitch. // // C: DCGM_GROUP_ALL_NVSWITCHES GroupAllNvSwitches = 0x7ffffffe // GroupAllInstances is the pseudo-group id standing for every GPU instance. // // C: DCGM_GROUP_ALL_INSTANCES GroupAllInstances = 0x7ffffffd // GroupAllComputeInstances is the pseudo-group id standing for every compute // instance. // // C: DCGM_GROUP_ALL_COMPUTE_INSTANCES GroupAllComputeInstances = 0x7ffffffc // GroupAllEntities is the pseudo-group id standing for every entity. // // C: DCGM_GROUP_ALL_ENTITIES GroupAllEntities = 0x7ffffffb )
Buffer bounds and entity-group ids from the pinned headers, evaluated by the C compiler for x86_64-unknown-linux-gnu.
DCGM writes up to these bounds. A caller that sizes a buffer from anything else is guessing, and a guess that is too small is a write past the end of Go memory the library was handed.
const ( // FieldTypeBinary marks a field value whose payload is an opaque blob. // // C: DCGM_FT_BINARY FieldTypeBinary uint16 = 98 // FieldTypeDouble marks a field value whose payload is a float64. // // C: DCGM_FT_DOUBLE FieldTypeDouble uint16 = 100 // FieldTypeInt64 marks a field value whose payload is an int64. // // C: DCGM_FT_INT64 FieldTypeInt64 uint16 = 105 // FieldTypeString marks a field value whose payload is a NUL-terminated string. // // C: DCGM_FT_STRING FieldTypeString uint16 = 115 // FieldTypeTimestamp marks a field value whose payload is an int64 timestamp // in microseconds since the Unix epoch. // // C: DCGM_FT_TIMESTAMP FieldTypeTimestamp uint16 = 116 )
Field-type discriminators. FieldValueV1.FieldType and FieldValueV2.FieldType carry one of these, and it selects which arm of the value union holds the reading.
const ( // Int8Blank is the smallest int8 sentinel. Any int8 field value at or above // it carries no data. // // C: DCGM_INT8_BLANK Int8Blank = 0x70 // Int32Blank is the smallest int32 sentinel. Any int32 field value at or // above it carries no data. // // C: DCGM_INT32_BLANK Int32Blank = 0x7ffffff0 // Int32NotFound reports that the field was not found. // // C: DCGM_INT32_NOT_FOUND Int32NotFound = 0x7ffffff1 // Int32NotSupported reports that the entity does not support the field. // // C: DCGM_INT32_NOT_SUPPORTED Int32NotSupported = 0x7ffffff2 // Int32NotPermissioned reports that the caller may not read the field. // // C: DCGM_INT32_NOT_PERMISSIONED Int32NotPermissioned = 0x7ffffff3 // Int64Blank is the smallest int64 sentinel. Any int64 field value at or // above it carries no data. // // C: DCGM_INT64_BLANK Int64Blank = 0x7ffffffffffffff0 // Int64NotFound reports that the field was not found. // // C: DCGM_INT64_NOT_FOUND Int64NotFound = 0x7ffffffffffffff1 // Int64NotSupported reports that the entity does not support the field. // // C: DCGM_INT64_NOT_SUPPORTED Int64NotSupported = 0x7ffffffffffffff2 // Int64NotPermissioned reports that the caller may not read the field. // // C: DCGM_INT64_NOT_PERMISSIONED Int64NotPermissioned = 0x7ffffffffffffff3 )
Sentinel values DCGM writes into a field it has no reading for.
A field can be returned with Result Success and still carry no data: the entity does not support it, nothing has been sampled yet, or the caller is not permitted to read it. DCGM signals that in the value rather than in the status, and the test is an inequality -- any value at or above the blank constant for its type is blank -- because the specific reasons are the blank value plus a small offset.
FieldValueV1.Blank and FieldValueV2.Blank apply this test; these constants are exported for a caller that has already decoded the union.
const ( // Fp64Blank is the smallest float64 sentinel. Any float64 field value at // or above it carries no data. // // C: DCGM_FP64_BLANK Fp64Blank = 140737488355328.0 // Fp64NotFound reports that the field was not found. // // C: DCGM_FP64_NOT_FOUND Fp64NotFound = Fp64Blank + 1.0 // Fp64NotSupported reports that the entity does not support the field. // // C: DCGM_FP64_NOT_SUPPORTED Fp64NotSupported = Fp64Blank + 2.0 // Fp64NotPermissioned reports that the caller may not read the field. // // C: DCGM_FP64_NOT_PERMISSIONED Fp64NotPermissioned = Fp64Blank + 3.0 // StrBlank is the string DCGM writes into a string field carrying no // data. The header's own test is looser than equality -- it accepts any // value bracketed by "<<<" and ">>>" -- and [FieldValueV1.Blank] applies // that looser test. // // C: DCGM_STR_BLANK StrBlank = "<<<NULL>>>" )
Float64 and string sentinels. These two are read from the pinned header text rather than evaluated by the compiler, which returns integers only. The derived forms are spelled as the header spells them, an offset from the blank value, so they cannot drift from it.
const ( // AllFieldGroupVersion1 is dcgmAllFieldGroup_version1: the stamp for dcgmAllFieldGroup_v1, which is Go's [AllFieldGroup]. AllFieldGroupVersion1 = 0x1008408 // ClockSetVersion1 is dcgmClockSet_version1: the stamp for dcgmClockSet_v1, which is Go's [ClockSet]. ClockSetVersion1 = 0x100000c // ComputeInstanceProfileInfoVersion1 is dcgmComputeInstanceProfileInfo_version1: the stamp for dcgmComputeInstanceProfileInfo_v1, which is Go's [ComputeInstanceProfileInfo]. ComputeInstanceProfileInfoVersion1 = 0x100002c // ComputeInstanceProfilesVersion1 is dcgmComputeInstanceProfiles_version1: the stamp for dcgmComputeInstanceProfiles_v1, which is Go's [ComputeInstanceProfiles]. ComputeInstanceProfilesVersion1 = 0x1000034 // ConfigVersion1 is dcgmConfig_version1: the stamp for dcgmConfig_v1, which is Go's [ConfigV1]. ConfigVersion1 = 0x1000028 // ConfigVersion2 is dcgmConfig_version2: the stamp for dcgmConfig_v2, which is Go's [Config]. ConfigVersion2 = 0x2000048 // ConnectV2ParamsVersion1 is dcgmConnectV2Params_version1: the stamp for dcgmConnectV2Params_v1, which is Go's [ConnectV2ParamsV1]. ConnectV2ParamsVersion1 = 0x1000008 // ConnectV2ParamsVersion2 is dcgmConnectV2Params_version2: the stamp for dcgmConnectV2Params_v2, which is Go's [ConnectV2Params]. ConnectV2ParamsVersion2 = 0x2000010 // ConnectV3ParamsVersion1 is dcgmConnectV3Params_version1: the stamp for dcgmConnectV3Params_v1, which is Go's [ConnectV3Params]. ConnectV3ParamsVersion1 = 0x100000c // CpuHierarchyOwnedCoresVersion1 is dcgmCpuHierarchyOwnedCores_version1: the stamp for dcgmCpuHierarchyOwnedCores_v1, which is Go's [CpuHierarchyOwnedCores]. CpuHierarchyOwnedCoresVersion1 = 0x1000088 // CpuHierarchyVersion1 is dcgmCpuHierarchy_version1: the stamp for dcgmCpuHierarchy_v1, which is Go's [CpuHierarchyV1]. CpuHierarchyVersion1 = 0x1000488 // CpuHierarchyVersion2 is dcgmCpuHierarchy_version2: the stamp for dcgmCpuHierarchy_v2, which is Go's [CpuHierarchy]. CpuHierarchyVersion2 = 0x2000c88 // DeviceAttributesVersion3 is dcgmDeviceAttributes_version3: the stamp for dcgmDeviceAttributes_v3, which is Go's [DeviceAttributes]. DeviceAttributesVersion3 = 0x3001464 // DeviceEncStatsVersion1 is dcgmDeviceEncStats_version1: the stamp for dcgmDeviceEncStats_v1, which is Go's [DeviceEncStats]. DeviceEncStatsVersion1 = 0x1000010 // DeviceFbcSessionInfoVersion1 is dcgmDeviceFbcSessionInfo_version1: the stamp for dcgmDeviceFbcSessionInfo_v1, which is Go's [DeviceFbcSessionInfo]. DeviceFbcSessionInfoVersion1 = 0x1000034 // DeviceFbcSessionsVersion1 is dcgmDeviceFbcSessions_version1: the stamp for dcgmDeviceFbcSessions_v1, which is Go's [DeviceFbcSessions]. DeviceFbcSessionsVersion1 = 0x1003408 // DeviceFbcStatsVersion1 is dcgmDeviceFbcStats_version1: the stamp for dcgmDeviceFbcStats_v1, which is Go's [DeviceFbcStats]. DeviceFbcStatsVersion1 = 0x1000010 // DeviceIdentifiersVersion1 is dcgmDeviceIdentifiers_version1: the stamp for dcgmDeviceIdentifiers_v1, which is Go's [DeviceIdentifiers]. DeviceIdentifiersVersion1 = 0x1000810 // DeviceMemoryUsageVersion1 is dcgmDeviceMemoryUsage_version1: the stamp for dcgmDeviceMemoryUsage_v1, which is Go's [DeviceMemoryUsage]. DeviceMemoryUsageVersion1 = 0x1000014 // DeviceMigAttributesInfoVersion1 is dcgmDeviceMigAttributesInfo_version1: the stamp for dcgmDeviceMigAttributesInfo_v1, which is Go's [DeviceMigAttributesInfo]. DeviceMigAttributesInfoVersion1 = 0x1000038 // DeviceMigAttributesVersion1 is dcgmDeviceMigAttributes_version1: the stamp for dcgmDeviceMigAttributes_v1, which is Go's [DeviceMigAttributes]. DeviceMigAttributesVersion1 = 0x1000040 // DevicePidAccountingStatsVersion1 is dcgmDevicePidAccountingStats_version1: the stamp for dcgmDevicePidAccountingStats_v1, which is Go's [DevicePidAccountingStats]. DevicePidAccountingStatsVersion1 = 0x1000028 // DevicePowerLimitsVersion1 is dcgmDevicePowerLimits_version1: the stamp for dcgmDevicePowerLimits_v1, which is Go's [DevicePowerLimits]. DevicePowerLimitsVersion1 = 0x1000018 // DeviceSettingsVersion2 is dcgmDeviceSettings_version2: the stamp for dcgmDeviceSettings_v2, which is Go's [DeviceSettings]. DeviceSettingsVersion2 = 0x2000010 // DeviceSupportedClockSetsVersion1 is dcgmDeviceSupportedClockSets_version1: the stamp for dcgmDeviceSupportedClockSets_v1, which is Go's [DeviceSupportedClockSets]. DeviceSupportedClockSetsVersion1 = 0x1000c08 // DeviceSupportedVgpuTypeInfoVersion1 is dcgmDeviceSupportedVgpuTypeInfo_version1: the stamp for dcgmDeviceSupportedVgpuTypeInfo_v1, which is Go's [DeviceSupportedVgpuTypeInfo]. DeviceSupportedVgpuTypeInfoVersion1 = 0x1000040 // DeviceThermalsVersion1 is dcgmDeviceThermals_version1: the stamp for dcgmDeviceThermals_v1, which is Go's [DeviceThermals]. DeviceThermalsVersion1 = 0x100000c // DeviceTopologyVersion1 is dcgmDeviceTopology_version1: the stamp for dcgmDeviceTopology_v1, which is Go's [DeviceTopologyV1]. DeviceTopologyVersion1 = 0x10001c0 // DeviceTopologyVersion2 is dcgmDeviceTopology_version2: the stamp for dcgmDeviceTopology_v2, which is Go's [DeviceTopology]. DeviceTopologyVersion2 = 0x2000338 // DeviceVgpuEncSessionsVersion1 is dcgmDeviceVgpuEncSessions_version1: the stamp for dcgmDeviceVgpuEncSessions_v1, which is Go's [DeviceVgpuEncSessions]. DeviceVgpuEncSessionsVersion1 = 0x1000024 // DeviceVgpuProcessUtilInfoVersion1 is dcgmDeviceVgpuProcessUtilInfo_version1: the stamp for dcgmDeviceVgpuProcessUtilInfo_v1, which is Go's [DeviceVgpuProcessUtilInfo]. DeviceVgpuProcessUtilInfoVersion1 = 0x100005c // DeviceVgpuTypeInfoVersion1 is dcgmDeviceVgpuTypeInfo_version1: the stamp for dcgmDeviceVgpuTypeInfo_v1, which is Go's [DeviceVgpuTypeInfoV1]. DeviceVgpuTypeInfoVersion1 = 0x1000128 // DeviceVgpuTypeInfoVersion2 is dcgmDeviceVgpuTypeInfo_version2: the stamp for dcgmDeviceVgpuTypeInfo_v2, which is Go's [DeviceVgpuTypeInfo]. DeviceVgpuTypeInfoVersion2 = 0x200012c // DeviceVgpuUtilInfoVersion1 is dcgmDeviceVgpuUtilInfo_version1: the stamp for dcgmDeviceVgpuUtilInfo_v1, which is Go's [DeviceVgpuUtilInfo]. DeviceVgpuUtilInfoVersion1 = 0x1000018 // DeviceWorkloadPowerProfilesStatusVersion1 is dcgmDeviceWorkloadPowerProfilesStatus_version1: the stamp for dcgmDeviceWorkloadPowerProfilesStatus_v1, which is Go's [DeviceWorkloadPowerProfilesStatus]. DeviceWorkloadPowerProfilesStatusVersion1 = 0x1000064 // DiagResponseVersion10 is dcgmDiagResponse_version10: the stamp for dcgmDiagResponse_v10, which is Go's [DiagResponseV10]. DiagResponseVersion10 = 0xa155abc // DiagResponseVersion11 is dcgmDiagResponse_version11: the stamp for dcgmDiagResponse_v11, which is Go's [DiagResponseV11]. DiagResponseVersion11 = 0xb155abc // DiagResponseVersion12 is dcgmDiagResponse_version12: the stamp for dcgmDiagResponse_v12, which is Go's [DiagResponse]. DiagResponseVersion12 = 0xc155abc // DiagResponseVersion7 is dcgmDiagResponse_version7: the stamp for dcgmDiagResponse_v7, which is Go's [DiagResponseV7]. DiagResponseVersion7 = 0x7099290 // DiagResponseVersion8 is dcgmDiagResponse_version8: the stamp for dcgmDiagResponse_v8, which is Go's [DiagResponseV8]. DiagResponseVersion8 = 0x80d9690 // DiagResponseVersion9 is dcgmDiagResponse_version9: the stamp for dcgmDiagResponse_v9, which is Go's [DiagResponseV9]. DiagResponseVersion9 = 0x914f4dc // DiagStatusVersion1 is dcgmDiagStatus_version1: the stamp for dcgmDiagStatus_v1, which is Go's [DiagStatus]. DiagStatusVersion1 = 0x1000090 // DiagTestAuxDataVersion1 is dcgmDiagTestAuxData_version1: the stamp for dcgmDiagTestAuxData_v1, which is Go's [DiagTestAuxDataV1]. DiagTestAuxDataVersion1 = 0x1000804 // EnvVarInfoVersion1 is dcgmEnvVarInfo_version1: the stamp for dcgmEnvVarInfo_v1, which is Go's [EnvVarInfo]. EnvVarInfoVersion1 = 0x1000208 // FieldGroupInfoVersion1 is dcgmFieldGroupInfo_version1: the stamp for dcgmFieldGroupInfo_v1, which is Go's [FieldGroupInfo]. FieldGroupInfoVersion1 = 0x1000210 // FieldSummaryRequestVersion1 is dcgmFieldSummaryRequest_version1: the stamp for dcgmFieldSummaryRequest_v1, which is Go's [FieldSummaryRequest]. FieldSummaryRequestVersion1 = 0x1000068 // FieldValueVersion1 is dcgmFieldValue_version1: the stamp for dcgmFieldValue_v1, which is Go's [FieldValueV1]. FieldValueVersion1 = 0x1001018 // FieldValueVersion2 is dcgmFieldValue_version2: the stamp for dcgmFieldValue_v2, which is Go's [FieldValueV2]. FieldValueVersion2 = 0x2001020 // GpuInstanceProfileInfoVersion1 is dcgmGpuInstanceProfileInfo_version1: the stamp for dcgmGpuInstanceProfileInfo_v1, which is Go's [GpuInstanceProfileInfo]. GpuInstanceProfileInfoVersion1 = 0x1000038 // GpuInstanceProfilesVersion1 is dcgmGpuInstanceProfiles_version1: the stamp for dcgmGpuInstanceProfiles_v1, which is Go's [GpuInstanceProfiles]. GpuInstanceProfilesVersion1 = 0x1000040 // GroupInfoVersion2 is dcgmGroupInfo_version2: the stamp for dcgmGroupInfo_v2, which is Go's [GroupInfoV2]. GroupInfoVersion2 = 0x2000308 // GroupInfoVersion3 is dcgmGroupInfo_version3: the stamp for dcgmGroupInfo_v3, which is Go's [GroupInfo]. GroupInfoVersion3 = 0x3002108 // GroupTopologyVersion1 is dcgmGroupTopology_version1: the stamp for dcgmGroupTopology_v1, which is Go's [GroupTopologyV1]. GroupTopologyVersion1 = 0x1000050 // GroupTopologyVersion2 is dcgmGroupTopology_version2: the stamp for dcgmGroupTopology_v2, which is Go's [GroupTopology]. GroupTopologyVersion2 = 0x2000058 // HealthResponseVersion5 is dcgmHealthResponse_version5: the stamp for dcgmHealthResponse_v5, which is Go's [HealthResponse]. HealthResponseVersion5 = 0x510500c // HealthSetParamsVersion2 is dcgmHealthSetParams_version2: the stamp for dcgmHealthSetParams_v2, which is Go's [HealthSetParamsV2]. HealthSetParamsVersion2 = 0x2000028 // HostengineHealthVersion1 is dcgmHostengineHealth_version1: the stamp for dcgmHostengineHealth_v1, which is Go's [HostengineHealth]. HostengineHealthVersion1 = 0x1000008 // IntrospectCpuUtilVersion1 is dcgmIntrospectCpuUtil_version1: the stamp for dcgmIntrospectCpuUtil_v1, which is Go's [IntrospectCpuUtil]. IntrospectCpuUtilVersion1 = 0x1000020 // IntrospectMemoryVersion1 is dcgmIntrospectMemory_version1: the stamp for dcgmIntrospectMemory_v1, which is Go's [IntrospectMemory]. IntrospectMemoryVersion1 = 0x1000010 // JobInfoVersion3 is dcgmJobInfo_version3: the stamp for dcgmJobInfo_v3, which is Go's [JobInfo]. JobInfoVersion3 = 0x30098a8 // LinkVersion1 is dcgmLink_version1: the stamp for dcgm_link_t, which is Go's [Link]. LinkVersion1 = 0x1000004 // MigHierarchyVersion2 is dcgmMigHierarchy_version2: the stamp for dcgmMigHierarchy_v2, which is Go's [MigHierarchyV2]. MigHierarchyVersion2 = 0x2011f08 // MnDiagEntityResultVersion1 is dcgmMnDiagEntityResult_version1: the stamp for dcgmMnDiagEntityResult_v1, which is Go's [MnDiagEntityResult]. MnDiagEntityResultVersion1 = 0x1000014 // MnDiagEntityVersion1 is dcgmMnDiagEntity_version1: the stamp for dcgmMnDiagEntity_v1, which is Go's [MnDiagEntity]. MnDiagEntityVersion1 = 0x1000114 // MnDiagErrorVersion1 is dcgmMnDiagError_version1: the stamp for dcgmMnDiagError_v1, which is Go's [MnDiagError]. MnDiagErrorVersion1 = 0x100021c // MnDiagHostsVersion1 is dcgmMnDiagHosts_version1: the stamp for dcgmMnDiagHosts_v1, which is Go's [MnDiagHosts]. MnDiagHostsVersion1 = 0x1000250 // MnDiagInfoVersion1 is dcgmMnDiagInfo_version1: the stamp for dcgmMnDiagInfo_v1, which is Go's [MnDiagInfo]. MnDiagInfoVersion1 = 0x1000210 // MnDiagResponseVersion1 is dcgmMnDiagResponse_version1: the stamp for dcgmMnDiagResponse_v1, which is Go's [MnDiagResponseV1]. MnDiagResponseVersion1 = 0x1087be0 // MnDiagResponseVersion2 is dcgmMnDiagResponse_version2: the stamp for dcgmMnDiagResponse_v2, which is Go's [MnDiagResponseV2]. MnDiagResponseVersion2 = 0x239d350 // MnDiagTestAuxDataVersion1 is dcgmMnDiagTestAuxData_version1: the stamp for dcgmMnDiagTestAuxData_v1, which is Go's [MnDiagTestAuxData]. MnDiagTestAuxDataVersion1 = 0x1000804 // MnDiagTestRunVersion1 is dcgmMnDiagTestRun_version1: the stamp for dcgmMnDiagTestRun_v1, which is Go's [MnDiagTestRunV1]. MnDiagTestRunVersion1 = 0x10011f4 // MnDiagTestRunVersion2 is dcgmMnDiagTestRun_version2: the stamp for dcgmMnDiagTestRun_v2, which is Go's [MnDiagTestRunV2]. MnDiagTestRunVersion2 = 0x20050f0 // ModuleGetStatusesStructVersion1 is dcgmModuleGetStatuses_version1: the stamp for dcgmModuleGetStatuses_v1, which is Go's [ModuleGetStatusesStruct]. ModuleGetStatusesStructVersion1 = 0x1000088 // ModulesReloadableVersion1 is dcgmModulesReloadable_version1: the stamp for dcgmModulesReloadable_v1, which is Go's [ModulesReloadable]. ModulesReloadableVersion1 = 0x1000008 // NvLinkP2PStatusVersion1 is dcgmNvLinkP2PStatus_version1: the stamp for dcgmNvLinkP2PStatus_v1, which is Go's [NvLinkP2PStatus]. NvLinkP2PStatusVersion1 = 0x1001088 // NvLinkStatusVersion4 is dcgmNvLinkStatus_version4: the stamp for dcgmNvLinkStatus_v4, which is Go's [NvLinkStatusV4]. NvLinkStatusVersion4 = 0x40039bc // NvLinkStatusVersion5 is dcgmNvLinkStatus_version5: the stamp for dcgmNvLinkStatus_v5, which is Go's [NvLinkStatus]. NvLinkStatusVersion5 = 0x50042bc // PidInfoVersion2 is dcgmPidInfo_version2: the stamp for dcgmPidInfo_v2, which is Go's [PidInfo]. PidInfoVersion2 = 0x2004528 // PolicyCallbackResponseVersion2 is dcgmPolicyCallbackResponse_version2: the stamp for dcgmPolicyCallbackResponse_v2, which is Go's [PolicyCallbackResponse]. PolicyCallbackResponseVersion2 = 0x2000020 // PolicyInfoVersion1 is dcgmPolicyInfo_version1: the stamp for dcgmPolicyInfo_v1, which is Go's [PolicyInfo]. PolicyInfoVersion1 = 0x1000258 // PolicySpecVersion1 is dcgmPolicySpec_version1: the stamp for dcgmPolicySpec_v1, which is Go's [PolicySpec]. PolicySpecVersion1 = 0x1000228 // PolicyViolationVersion1 is dcgmPolicyViolation_version1: the stamp for dcgmPolicyViolation_v1, which is Go's [PolicyViolation]. PolicyViolationVersion1 = 0x1000010 // PolicyVersion1 is dcgmPolicy_version1: the stamp for dcgmPolicy_v1, which is Go's [Policy]. PolicyVersion1 = 0x1000090 // ProfGetMetricGroupsVersion3 is dcgmProfGetMetricGroups_version3: the stamp for dcgmProfGetMetricGroups_v3, which is Go's [ProfGetMetricGroups]. ProfGetMetricGroupsVersion3 = 0x3000560 // RunDiagVersion10 is dcgmRunDiag_version10: the stamp for dcgmRunDiag_v10, which is Go's [RunDiagV10]. RunDiagVersion10 = 0xa01d1e8 // RunDiagVersion7 is dcgmRunDiag_version7: the stamp for dcgmRunDiag_v7, which is Go's [RunDiagV7]. RunDiagVersion7 = 0x70054d0 // RunDiagVersion8 is dcgmRunDiag_version8: the stamp for dcgmRunDiag_v8, which is Go's [RunDiagV8]. RunDiagVersion8 = 0x801c818 // RunDiagVersion9 is dcgmRunDiag_version9: the stamp for dcgmRunDiag_v9, which is Go's [RunDiagV9]. RunDiagVersion9 = 0x901cfe8 // RunMnDiagVersion1 is dcgmRunMnDiag_version1: the stamp for dcgmRunMnDiag_v1, which is Go's [RunMnDiagV1]. RunMnDiagVersion1 = 0x101e32c // RunMnDiagVersion2 is dcgmRunMnDiag_version2: the stamp for dcgmRunMnDiag_v2, which is Go's [RunMnDiagV2]. RunMnDiagVersion2 = 0x203db2c // RunningProcessVersion1 is dcgmRunningProcess_version1: the stamp for dcgmRunningProcess_v1, which is Go's [RunningProcess]. RunningProcessVersion1 = 0x1000010 // SettingsSetLoggingSeverityVersion1 is dcgmSettingsSetLoggingSeverity_version1: the stamp for dcgmSettingsSetLoggingSeverity_v1, which is Go's [SettingsSetLoggingSeverityV1]. SettingsSetLoggingSeverityVersion1 = 0x1000008 // SettingsSetLoggingSeverityVersion2 is dcgmSettingsSetLoggingSeverity_version2: the stamp for dcgmSettingsSetLoggingSeverity_v2, which is Go's [SettingsSetLoggingSeverity]. SettingsSetLoggingSeverityVersion2 = 0x200000c // StartEmbeddedV2ParamsVersion1 is dcgmStartEmbeddedV2Params_version1: the stamp for dcgmStartEmbeddedV2Params_v1, which is Go's [StartEmbeddedV2ParamsV1]. StartEmbeddedV2ParamsVersion1 = 0x1000048 // StartEmbeddedV2ParamsVersion2 is dcgmStartEmbeddedV2Params_version2: the stamp for dcgmStartEmbeddedV2Params_v2, which is Go's [StartEmbeddedV2ParamsV2]. StartEmbeddedV2ParamsVersion2 = 0x2000050 // StartEmbeddedV2ParamsVersion3 is dcgmStartEmbeddedV2Params_version3: the stamp for dcgmStartEmbeddedV2Params_v3, which is Go's [StartEmbeddedV2Params]. StartEmbeddedV2ParamsVersion3 = 0x3000068 // TopoSchedHintVersion1 is dcgmTopoSchedHint_version1: the stamp for dcgmTopoSchedHint_v1, which is Go's [TopoSchedHint]. TopoSchedHintVersion1 = 0x1000020 // VersionInfoStructVersion2 is dcgmVersionInfo_version2: the stamp for dcgmVersionInfo_v2, which is Go's [VersionInfoStruct]. VersionInfoStructVersion2 = 0x2000204 // WorkloadPowerProfileInfoVersion1 is dcgmWorkloadPowerProfileInfo_version1: the stamp for dcgmWorkloadPowerProfileInfo_v1, which is Go's [WorkloadPowerProfileInfo]. WorkloadPowerProfileInfoVersion1 = 0x100002c // WorkloadPowerProfileProfilesInfoVersion1 is dcgmWorkloadPowerProfileProfilesInfo_version1: the stamp for dcgmWorkloadPowerProfileProfilesInfo_v1, which is Go's [WorkloadPowerProfileProfilesInfo]. WorkloadPowerProfileProfilesInfoVersion1 = 0x1002bdc // WorkloadPowerProfileVersion1 is dcgmWorkloadPowerProfile_version1: the stamp for dcgmWorkloadPowerProfile_v1, which is Go's [WorkloadPowerProfile]. WorkloadPowerProfileVersion1 = 0x1000038 )
Version stamps for DCGM's versioned structures.
Every structure DCGM accepts across the ABI carries a version field, and the library compares it against the version it was built with; a mismatch is reported as ErrVerMismatch and no work is done. Stamp the field before the call:
var info GroupInfo info.Version = GroupInfoVersion3
The value is the size of the C structure in its low 24 bits combined with the structure's version number in the high bits, so it moves whenever the header does. These were evaluated by the C compiler from the pinned headers for x86_64-unknown-linux-gnu. versions_test.go recomputes each one from the Go structure, so a Go layout that no longer matches C fails there rather than at the first call on a machine with a GPU.
const ( // AllFieldGroupVersion is dcgmAllFieldGroup_version, which the pinned headers define as dcgmAllFieldGroup_version1. AllFieldGroupVersion = AllFieldGroupVersion1 // ClockSetVersion is dcgmClockSet_version, which the pinned headers define as dcgmClockSet_version1. ClockSetVersion = ClockSetVersion1 // ComputeInstanceProfileInfoVersion is dcgmComputeInstanceProfileInfo_version, which the pinned headers define as dcgmComputeInstanceProfileInfo_version1. ComputeInstanceProfileInfoVersion = ComputeInstanceProfileInfoVersion1 // ComputeInstanceProfilesVersion is dcgmComputeInstanceProfiles_version, which the pinned headers define as dcgmComputeInstanceProfiles_version1. ComputeInstanceProfilesVersion = ComputeInstanceProfilesVersion1 // ConfigVersion is dcgmConfig_version, which the pinned headers define as dcgmConfig_version2. ConfigVersion = ConfigVersion2 // ConnectV2ParamsVersion is dcgmConnectV2Params_version, which the pinned headers define as dcgmConnectV2Params_version2. ConnectV2ParamsVersion = ConnectV2ParamsVersion2 // ConnectV3ParamsVersion is dcgmConnectV3Params_version, which the pinned headers define as dcgmConnectV3Params_version1. ConnectV3ParamsVersion = ConnectV3ParamsVersion1 // CpuHierarchyVersion is dcgmCpuHierarchy_version, which the pinned headers define as dcgmCpuHierarchy_version2. CpuHierarchyVersion = CpuHierarchyVersion2 // DeviceAttributesVersion is dcgmDeviceAttributes_version, which the pinned headers define as dcgmDeviceAttributes_version3. DeviceAttributesVersion = DeviceAttributesVersion3 // DeviceEncStatsVersion is dcgmDeviceEncStats_version, which the pinned headers define as dcgmDeviceEncStats_version1. DeviceEncStatsVersion = DeviceEncStatsVersion1 // DeviceFbcSessionInfoVersion is dcgmDeviceFbcSessionInfo_version, which the pinned headers define as dcgmDeviceFbcSessionInfo_version1. DeviceFbcSessionInfoVersion = DeviceFbcSessionInfoVersion1 // DeviceFbcSessionsVersion is dcgmDeviceFbcSessions_version, which the pinned headers define as dcgmDeviceFbcSessions_version1. DeviceFbcSessionsVersion = DeviceFbcSessionsVersion1 // DeviceFbcStatsVersion is dcgmDeviceFbcStats_version, which the pinned headers define as dcgmDeviceFbcStats_version1. DeviceFbcStatsVersion = DeviceFbcStatsVersion1 // DeviceIdentifiersVersion is dcgmDeviceIdentifiers_version, which the pinned headers define as dcgmDeviceIdentifiers_version1. DeviceIdentifiersVersion = DeviceIdentifiersVersion1 // DeviceMemoryUsageVersion is dcgmDeviceMemoryUsage_version, which the pinned headers define as dcgmDeviceMemoryUsage_version1. DeviceMemoryUsageVersion = DeviceMemoryUsageVersion1 // DeviceMigAttributesInfoVersion is dcgmDeviceMigAttributesInfo_version, which the pinned headers define as dcgmDeviceMigAttributesInfo_version1. DeviceMigAttributesInfoVersion = DeviceMigAttributesInfoVersion1 // DeviceMigAttributesVersion is dcgmDeviceMigAttributes_version, which the pinned headers define as dcgmDeviceMigAttributes_version1. DeviceMigAttributesVersion = DeviceMigAttributesVersion1 // DevicePidAccountingStatsVersion is dcgmDevicePidAccountingStats_version, which the pinned headers define as dcgmDevicePidAccountingStats_version1. DevicePidAccountingStatsVersion = DevicePidAccountingStatsVersion1 // DevicePowerLimitsVersion is dcgmDevicePowerLimits_version, which the pinned headers define as dcgmDevicePowerLimits_version1. DevicePowerLimitsVersion = DevicePowerLimitsVersion1 // DeviceSettingsVersion is dcgmDeviceSettings_version, which the pinned headers define as dcgmDeviceSettings_version2. DeviceSettingsVersion = DeviceSettingsVersion2 // DeviceSupportedClockSetsVersion is dcgmDeviceSupportedClockSets_version, which the pinned headers define as dcgmDeviceSupportedClockSets_version1. DeviceSupportedClockSetsVersion = DeviceSupportedClockSetsVersion1 // DeviceSupportedVgpuTypeInfoVersion is dcgmDeviceSupportedVgpuTypeInfo_version, which the pinned headers define as dcgmDeviceSupportedVgpuTypeInfo_version1. DeviceSupportedVgpuTypeInfoVersion = DeviceSupportedVgpuTypeInfoVersion1 // DeviceThermalsVersion is dcgmDeviceThermals_version, which the pinned headers define as dcgmDeviceThermals_version1. DeviceThermalsVersion = DeviceThermalsVersion1 // DeviceTopologyVersion is dcgmDeviceTopology_version, which the pinned headers define as dcgmDeviceTopology_version2. DeviceTopologyVersion = DeviceTopologyVersion2 // DeviceVgpuEncSessionsVersion is dcgmDeviceVgpuEncSessions_version, which the pinned headers define as dcgmDeviceVgpuEncSessions_version1. DeviceVgpuEncSessionsVersion = DeviceVgpuEncSessionsVersion1 // DeviceVgpuProcessUtilInfoVersion is dcgmDeviceVgpuProcessUtilInfo_version, which the pinned headers define as dcgmDeviceVgpuProcessUtilInfo_version1. DeviceVgpuProcessUtilInfoVersion = DeviceVgpuProcessUtilInfoVersion1 // DeviceVgpuTypeInfoVersion is dcgmDeviceVgpuTypeInfo_version, which the pinned headers define as dcgmDeviceVgpuTypeInfo_version2. DeviceVgpuTypeInfoVersion = DeviceVgpuTypeInfoVersion2 // DeviceVgpuUtilInfoVersion is dcgmDeviceVgpuUtilInfo_version, which the pinned headers define as dcgmDeviceVgpuUtilInfo_version1. DeviceVgpuUtilInfoVersion = DeviceVgpuUtilInfoVersion1 // DeviceWorkloadPowerProfilesStatusVersion is dcgmDeviceWorkloadPowerProfilesStatus_version, which the pinned headers define as dcgmDeviceWorkloadPowerProfilesStatus_version1. DeviceWorkloadPowerProfilesStatusVersion = DeviceWorkloadPowerProfilesStatusVersion1 // DiagResponseVersion is dcgmDiagResponse_version, which the pinned headers define as dcgmDiagResponse_version12. DiagResponseVersion = DiagResponseVersion12 // DiagStatusVersion is dcgmDiagStatus_version, which the pinned headers define as dcgmDiagStatus_version1. DiagStatusVersion = DiagStatusVersion1 // DiagTestAuxDataVersion is dcgmDiagTestAuxData_version, which the pinned headers define as dcgmDiagTestAuxData_version1. DiagTestAuxDataVersion = DiagTestAuxDataVersion1 // EnvVarInfoVersion is dcgmEnvVarInfo_version, which the pinned headers define as dcgmEnvVarInfo_version1. EnvVarInfoVersion = EnvVarInfoVersion1 // FieldGroupInfoVersion is dcgmFieldGroupInfo_version, which the pinned headers define as dcgmFieldGroupInfo_version1. FieldGroupInfoVersion = FieldGroupInfoVersion1 // GpuInstanceProfileInfoVersion is dcgmGpuInstanceProfileInfo_version, which the pinned headers define as dcgmGpuInstanceProfileInfo_version1. GpuInstanceProfileInfoVersion = GpuInstanceProfileInfoVersion1 // GpuInstanceProfilesVersion is dcgmGpuInstanceProfiles_version, which the pinned headers define as dcgmGpuInstanceProfiles_version1. GpuInstanceProfilesVersion = GpuInstanceProfilesVersion1 // GroupInfoVersion is dcgmGroupInfo_version, which the pinned headers define as dcgmGroupInfo_version3. GroupInfoVersion = GroupInfoVersion3 // GroupTopologyVersion is dcgmGroupTopology_version, which the pinned headers define as dcgmGroupTopology_version2. GroupTopologyVersion = GroupTopologyVersion2 // HealthResponseVersion is dcgmHealthResponse_version, which the pinned headers define as dcgmHealthResponse_version5. HealthResponseVersion = HealthResponseVersion5 // HostengineHealthVersion is dcgmHostengineHealth_version, which the pinned headers define as dcgmHostengineHealth_version1. HostengineHealthVersion = HostengineHealthVersion1 // IntrospectCpuUtilVersion is dcgmIntrospectCpuUtil_version, which the pinned headers define as dcgmIntrospectCpuUtil_version1. IntrospectCpuUtilVersion = IntrospectCpuUtilVersion1 // IntrospectMemoryVersion is dcgmIntrospectMemory_version, which the pinned headers define as dcgmIntrospectMemory_version1. IntrospectMemoryVersion = IntrospectMemoryVersion1 // JobInfoVersion is dcgmJobInfo_version, which the pinned headers define as dcgmJobInfo_version3. JobInfoVersion = JobInfoVersion3 // MigHierarchyVersion is dcgmMigHierarchy_version, which the pinned headers define as dcgmMigHierarchy_version2. MigHierarchyVersion = MigHierarchyVersion2 // MnDiagEntityResultVersion is dcgmMnDiagEntityResult_version, which the pinned headers define as dcgmMnDiagEntityResult_version1. MnDiagEntityResultVersion = MnDiagEntityResultVersion1 // MnDiagEntityVersion is dcgmMnDiagEntity_version, which the pinned headers define as dcgmMnDiagEntity_version1. MnDiagEntityVersion = MnDiagEntityVersion1 // MnDiagErrorVersion is dcgmMnDiagError_version, which the pinned headers define as dcgmMnDiagError_version1. MnDiagErrorVersion = MnDiagErrorVersion1 // MnDiagHostsVersion is dcgmMnDiagHosts_version, which the pinned headers define as dcgmMnDiagHosts_version1. MnDiagHostsVersion = MnDiagHostsVersion1 // MnDiagInfoVersion is dcgmMnDiagInfo_version, which the pinned headers define as dcgmMnDiagInfo_version1. MnDiagInfoVersion = MnDiagInfoVersion1 // MnDiagTestAuxDataVersion is dcgmMnDiagTestAuxData_version, which the pinned headers define as dcgmMnDiagTestAuxData_version1. MnDiagTestAuxDataVersion = MnDiagTestAuxDataVersion1 // ModuleGetStatusesStructVersion is dcgmModuleGetStatuses_version, which the pinned headers define as dcgmModuleGetStatuses_version1. ModuleGetStatusesStructVersion = ModuleGetStatusesStructVersion1 // ModulesReloadableVersion is dcgmModulesReloadable_version, which the pinned headers define as dcgmModulesReloadable_version1. ModulesReloadableVersion = ModulesReloadableVersion1 // NvLinkStatusVersion is dcgmNvLinkStatus_version, which the pinned headers define as dcgmNvLinkStatus_version5. NvLinkStatusVersion = NvLinkStatusVersion5 // PidInfoVersion is dcgmPidInfo_version, which the pinned headers define as dcgmPidInfo_version2. PidInfoVersion = PidInfoVersion2 // PolicyCallbackResponseVersion is dcgmPolicyCallbackResponse_version, which the pinned headers define as dcgmPolicyCallbackResponse_version2. PolicyCallbackResponseVersion = PolicyCallbackResponseVersion2 // PolicyInfoVersion is dcgmPolicyInfo_version, which the pinned headers define as dcgmPolicyInfo_version1. PolicyInfoVersion = PolicyInfoVersion1 // PolicySpecVersion is dcgmPolicySpec_version, which the pinned headers define as dcgmPolicySpec_version1. PolicySpecVersion = PolicySpecVersion1 // PolicyViolationVersion is dcgmPolicyViolation_version, which the pinned headers define as dcgmPolicyViolation_version1. PolicyViolationVersion = PolicyViolationVersion1 // PolicyVersion is dcgmPolicy_version, which the pinned headers define as dcgmPolicy_version1. PolicyVersion = PolicyVersion1 // ProfGetMetricGroupsVersion is dcgmProfGetMetricGroups_version, which the pinned headers define as dcgmProfGetMetricGroups_version3. ProfGetMetricGroupsVersion = ProfGetMetricGroupsVersion3 // RunningProcessVersion is dcgmRunningProcess_version, which the pinned headers define as dcgmRunningProcess_version1. RunningProcessVersion = RunningProcessVersion1 // SettingsSetLoggingSeverityVersion is dcgmSettingsSetLoggingSeverity_version, which the pinned headers define as dcgmSettingsSetLoggingSeverity_version2. SettingsSetLoggingSeverityVersion = SettingsSetLoggingSeverityVersion2 // StartEmbeddedV2ParamsVersion is dcgmStartEmbeddedV2Params_version, which the pinned headers define as dcgmStartEmbeddedV2Params_version3. StartEmbeddedV2ParamsVersion = StartEmbeddedV2ParamsVersion3 // VersionInfoStructVersion is dcgmVersionInfo_version, which the pinned headers define as dcgmVersionInfo_version2. VersionInfoStructVersion = VersionInfoStructVersion2 // WorkloadPowerProfileInfoVersion is dcgmWorkloadPowerProfileInfo_version, which the pinned headers define as dcgmWorkloadPowerProfileInfo_version1. WorkloadPowerProfileInfoVersion = WorkloadPowerProfileInfoVersion1 // WorkloadPowerProfileProfilesInfoVersion is dcgmWorkloadPowerProfileProfilesInfo_version, which the pinned headers define as dcgmWorkloadPowerProfileProfilesInfo_version1. WorkloadPowerProfileProfilesInfoVersion = WorkloadPowerProfileProfilesInfoVersion1 // WorkloadPowerProfileVersion is dcgmWorkloadPowerProfile_version, which the pinned headers define as dcgmWorkloadPowerProfile_version1. WorkloadPowerProfileVersion = WorkloadPowerProfileVersion1 )
Current version stamps. Each names the newest version of a structure in the pinned headers, matching the header's unsuffixed _version macro. A later DCGM release can point one of these at a different structure, so code that must keep working against one specific layout should use the numbered constant instead.
const PolicyCallbackResponseVersion1 = 0x1000018
PolicyCallbackResponseVersion1 is the separately measured v2.4.7 stamp.
Variables ¶
var ErrClosed = errors.New("dcgm: session is closed")
ErrClosed reports use of a Session after Close.
var ErrTooManyFields = fmt.Errorf("dcgm: more than %d fields, which is DCGM_MAX_FIELD_IDS_PER_FIELD_GROUP", MaxFieldIDsPerFieldGroup)
ErrTooManyFields reports a field list longer than one field group can hold.
Functions ¶
func ActionValidate ¶
func ActionValidate(pDcgmHandle Handle, drd *RunDiagV10, response *DiagResponse) error
ActionValidate Inform the action manager to perform a manual validation of a group of GPUs on the system
- pDcgmHandle: IN: DCGM Handle
- drd: IN: Contains the group id, test names, test parameters, struct version, and the validation that should be performed. Look at Handle.GroupCreate for details on creating the group. Alternatively, pass in the group id as GroupAllGPUs to perform operation on all the GPUs
- response: OUT: Result of the validation process. Refer to DiagResponse for details. Note: It's a caller's responsibility to make sure the response is zero-initialized, except for the version field
Wraps dcgmActionValidate_v2.
func AttachDriver ¶
AttachDriver attaches the driver to the DCGM.
This API attaches NVML to DCGM. It does nothing if the driver is already attached. Use this to update the driver without restarting DCGM. Handle.DetachDriver
- pDcgmHandle: IN: DCGM Handle
Wraps dcgmAttachDriver.
func Close ¶
func Close() error
Close unloads the library and clears all bound function pointers.
The function pointers are package-level state, so Close must not be called concurrently with any other call into this package: doing so is a use-after-free. It is intended for test teardown, not for reclaiming a live library.
func ConfigEnforce ¶
func ConfigEnforce(pDcgmHandle Handle, groupId GpuGrp, statusHandle StatusHandle) error
ConfigEnforce is used to enforce previously set configuration for all the GPUs present in the group.
This API provides a mechanism to the users to manually enforce the configuration at any point of time. The configuration can only be enforced if it's already configured using the API Handle.ConfigSet.
If any of the properties can't be enforced for any of the GPUs in the group then the API returns an error. The status handle statusHandle should be further evaluated to access error attributes for the failed operations. Please refer to status management APIs at DCGMAPI_ST to access the error attributes.
- pDcgmHandle: IN: DCGM Handle
- groupId: IN: Group ID representing collection of one or more GPUs. Look at Handle.GroupCreate for details on creating the group. Alternatively, pass in the group id as GroupAllGPUs to perform operation on all the GPUs
- statusHandle: IN/OUT: Resulting error status for multiple operations. Pass it as NULL if the detailed error information is not needed. Look at NewStatusHandle for details on creating status handle
Wraps dcgmConfigEnforce.
func ConfigGet ¶
func ConfigGet(pDcgmHandle Handle, groupId GpuGrp, type_ ConfigType, deviceConfigList []Config, statusHandle StatusHandle) error
ConfigGet is used to get configuration for all the GPUs present in the group.
This API can get the most recent target or desired configuration set by Handle.ConfigSet. Set type as ConfigTargetState to get target configuration. The target configuration properties are maintained by DCGM and are automatically enforced after a GPU reset or reinitialization is completed.
The method can also be used to get the actual configuration state for the GPUs in the group. Set type as ConfigCurrentState to get the actually configuration state. Ideally, the actual configuration state will be exact same as the target configuration state.
If any of the property in the target configuration is unknown then the property value in the output is populated as one of Int32Blank, Int64Blank, DCGM_FP64_BLANK or DCGM_STR_BLANK based on the data type of the property.
If any of the property in the current configuration state is not supported then the property value in the output is populated as one of Int32NotSupported, Int64NotSupported, DCGM_FP64_NOT_SUPPORTED or DCGM_STR_NOT_SUPPORTED based on the data type of the property.
If any of the properties can't be fetched for any of the GPUs in the group then the API returns an error. The status handle statusHandle should be further evaluated to access error attributes for the failed operations. Please refer to status management APIs at DCGMAPI_ST to access the error attributes.
- pDcgmHandle: IN: DCGM Handle
- groupId: IN: Group ID representing collection of one or more GPUs. Look at Handle.GroupCreate for details on creating the group
- type_: IN: Type of configuration values to be fetched
- deviceConfigList: OUT: Pointer to memory to hold requested configuration corresponding to all the GPUs in the group (groupId). The size of the memory must be greater than or equal to hold output information for the number of GPUs present in the group (groupId)
- statusHandle: IN/OUT: Resulting error status for multiple operations. Pass it as NULL if the detailed error information is not needed. Look at NewStatusHandle for details on creating status handle
Wraps dcgmConfigGet.
func ConfigSet ¶
func ConfigSet(pDcgmHandle Handle, groupId GpuGrp, pDeviceConfig *Config, statusHandle StatusHandle) error
ConfigSet is used to set configuration for the group of one or more GPUs identified by groupId.
The configuration settings specified in pDeviceConfig are applied to all the GPUs in the group. Since DCGM group is a logical grouping of GPUs, the configuration settings stays intact for the individual GPUs even after the group is destroyed.
If the user wishes to ignore the configuration of one or more properties in the input pDeviceConfig then the property should be specified as one of Int32Blank, Int64Blank, DCGM_FP64_BLANK or DCGM_STR_BLANK based on the data type of the property to be ignored.
If any of the properties fail to be configured for any of the GPUs in the group then the API returns an error. The status handle statusHandle should be further evaluated to access error attributes for the failed operations. Please refer to status management APIs at DCGMAPI_ST to access the error attributes.
To find out valid supported clock values that can be passed to Handle.ConfigSet, look at the device attributes of a GPU in the group using the API Handle.DeviceAttributes.
- pDcgmHandle: IN: DCGM Handle
- groupId: IN: Group ID representing collection of one or more GPUs. Look at Handle.GroupCreate for details on creating the group
- pDeviceConfig: IN: Pointer to memory to hold desired configuration to be applied for all the GPU in the group represented by groupId. The caller must populate the version field of pDeviceConfig
- statusHandle: IN/OUT: Resulting error status for multiple operations. Pass it as NULL if the detailed error information is not needed. Look at NewStatusHandle for details on creating status handle
Wraps dcgmConfigSet.
func ConfigSetWorkloadPowerProfile ¶
func ConfigSetWorkloadPowerProfile(pDcgmHandle Handle, workloadPowerProfile *WorkloadPowerProfile) error
ConfigSetWorkloadPowerProfile is used to set, clear, or overwrite the workload power profile for all the GPUs present in a group.
This API will return an error if the operation fails for any of the GPUs in the group.
- pDcgmHandle: IN: DCGM Handle
- workloadPowerProfile: IN: Workload power profile describing the target group, requested mask, and action
Wraps dcgmConfigSetWorkloadPowerProfile.
func DcgmFieldsGetEntityGroupString ¶
func DcgmFieldsGetEntityGroupString(entityGroupId FieldEntityGroup) (string, error)
DcgmFieldsGetEntityGroupString gets the string version of a entityGroupId
Wraps DcgmFieldsGetEntityGroupString. The error reports an unavailable library or symbol.
func DcgmFieldsInit ¶
DcgmFieldsInit wraps DcgmFieldsInit. The error reports an unavailable library or symbol.
func DcgmFieldsTerm ¶
DcgmFieldsTerm wraps DcgmFieldsTerm. The error reports an unavailable library or symbol.
func DetachDriver ¶
DetachDriver detaches the driver from the DCGM.
This API detaches NVML from DCGM. It does nothing if the driver is already detached. Use this to update the driver without restarting DCGM. Handle.AttachDriver
- pDcgmHandle: IN: DCGM Handle
Wraps dcgmDetachDriver.
func DiagSendHeartbeat ¶
DiagSendHeartbeat sends a diagnostic heartbeat to the DCGM.
When RunFlagsEnableHeartbeat is used, the DCGM host engine will check the heartbeat from the DCGM client during the diagnostic. If the heartbeat is not received within the timeout period (10 minutes), the diagnostic will be terminated. This API should be called periodically during the diagnostic if RunFlagsEnableHeartbeat is used.
- pDcgmHandle: IN: DCGM Handle
Wraps dcgmDiagSendHeartbeat.
func Disconnect ¶
Disconnect is used to disconnect from a stand-alone host engine process.
- pDcgmHandle: IN: DCGM Handle that came from Connect
Wraps dcgmDisconnect.
func EntitiesGetLatestValues ¶
func EntitiesGetLatestValues(pDcgmHandle Handle, entities *GroupEntityPair, entityCount uint32, fields *uint16, fieldCount uint32, flags uint32, values *FieldValueV2) error
EntitiesGetLatestValues requests the latest cached or live field value for a list of fields for a group of entities
Note: The returned entities are not guaranteed to be in any order. Reordering can occur internally in order to optimize calls to the NVIDIA driver.
- pDcgmHandle: IN: DCGM Handle
- entities: IN: List of entities to get values for
- entityCount: IN: Number of entries in entities[]
- fields: IN: Field IDs to return data for. See the definitions in dcgm_fields.h that start with DCGM_FI_
- fieldCount: IN: Number of field IDs in fields[] array
- flags: IN: Optional flags that affect how this request is processed. Pass FvFlagLiveData here to retrieve a live driver value rather than a cached value. See that flag's documentation for caveats
- values: OUT: Latest field values for the fields requested. This must be able to hold entityCount * fieldCount field value records
Wraps dcgmEntitiesGetLatestValues.
func EntityGetLatestValues ¶
func EntityGetLatestValues(pDcgmHandle Handle, entityGroup FieldEntityGroup, entityId int32, fields *uint16, count uint32, values *FieldValueV1) error
EntityGetLatestValues requests latest cached field value for a group of fields for a specific entity
- pDcgmHandle: IN: DCGM Handle
- entityGroup: IN: entity_group_t (e.g. switch)
- entityId: IN: entity ID representing the rntity for which the fields are being requested
- fields: IN: Field IDs to return data for. See the definitions in dcgm_fields.h that start with DCGM_FI_
- count: IN: Number of field IDs in fields[] array
- values: OUT: Latest field values for the fields in fields[]
Wraps dcgmEntityGetLatestValues.
func ErrorGetFormatMsgByCode ¶
ErrorGetFormatMsgByCode wraps dcgmErrorGetFormatMsgByCode. The error reports an unavailable library or symbol.
func FieldGroupDestroy ¶
FieldGroupDestroy is used to remove a field group that was created with Handle.FieldGroupCreate
- dcgmHandle: IN: DCGM handle
- dcgmFieldGroupId: IN: Field group to remove
Wraps dcgmFieldGroupDestroy.
func FieldGroupGetAll ¶
func FieldGroupGetAll(dcgmHandle Handle, allGroupInfo *AllFieldGroup) error
FieldGroupGetAll is used to get information about all field groups in the system.
- dcgmHandle: IN: DCGM handle
- allGroupInfo: IN/OUT: Info about all of the field groups that exist. .version should be set to dcgmAllFieldGroup_version before this call
Wraps dcgmFieldGroupGetAll.
func FieldGroupGetInfo ¶
func FieldGroupGetInfo(dcgmHandle Handle, fieldGroupInfo *FieldGroupInfo) error
FieldGroupGetInfo is used to get information about a field group that was created with Handle.FieldGroupCreate.
- dcgmHandle: IN: DCGM handle
- fieldGroupInfo: IN/OUT: Info about all of the field groups that exist. .version should be set to dcgmFieldGroupInfo_version before this call .fieldGroupId should contain the fieldGroupId you are interested in querying information for
Wraps dcgmFieldGroupGetInfo.
func GetAllDevices ¶
GetAllDevices is used to get identifiers corresponding to all the devices on the system.
The identifier represents DCGM GPU Id corresponding to each GPU on the system and is immutable during the lifespan of the engine. The list should be queried again if the engine is restarted. The GPUs returned from this function include gpuIds of GPUs that are not supported by DCGM. To only get gpuIds of GPUs that are supported by DCGM, use Handle.AllSupportedDevices.
- pDcgmHandle: IN: DCGM Handle
- gpuIdList: OUT: Array reference to fill GPU Ids present on the system
- count: OUT: Number of GPUs returned in gpuIdList
Wraps dcgmGetAllDevices.
func GetAllSupportedDevices ¶
GetAllSupportedDevices is used to get identifiers corresponding to all the DCGM-supported devices on the system.
The identifier represents DCGM GPU Id corresponding to each GPU on the system and is immutable during the lifespan of the engine. The list should be queried again if the engine is restarted. The GPUs returned from this function ONLY includes gpuIds of GPUs that are supported by DCGM. To get gpuIds of all GPUs in the system, use Handle.AllDevices.
- pDcgmHandle: IN: DCGM Handle
- gpuIdList: OUT: Array reference to fill GPU Ids present on the system
- count: OUT: Number of GPUs returned in gpuIdList
Wraps dcgmGetAllSupportedDevices.
func GetCpuHierarchyV2 ¶
func GetCpuHierarchyV2(dcgmHandle Handle, cpuHierarchy *CpuHierarchy) error
GetCpuHierarchyV2 List supported CPUs and their cores present on the system
This and other CPU APIs only support datacenter NVIDIA CPUs.
- dcgmHandle: IN: DCGM Handle
- cpuHierarchy: OUT: Structure where the CPUs and their associated cores will be enumerated
Wraps dcgmGetCpuHierarchy_v2.
func GetDeviceAttributes ¶
func GetDeviceAttributes(pDcgmHandle Handle, gpuId uint32, pDcgmAttr *DeviceAttributes) error
GetDeviceAttributes gets device attributes corresponding to the gpuId.
If operation is not successful for any of the requested fields then the field is populated with one of DCGM_BLANK_VALUES defined in dcgm_structs.h.
- pDcgmHandle: IN: DCGM Handle
- gpuId: IN: GPU Id corresponding to which the attributes should be fetched
- pDcgmAttr: IN/OUT: Device attributes corresponding to gpuId. pDcgmAttr->version should be set to dcgmDeviceAttributes_version before this call
Wraps dcgmGetDeviceAttributes.
func GetDeviceTopology ¶
func GetDeviceTopology(pDcgmHandle Handle, gpuId uint32, pDcgmDeviceTopology *DeviceTopology) error
GetDeviceTopology gets device topology corresponding to the gpuId.
- pDcgmHandle: IN: DCGM Handle
- gpuId: IN: GPU Id corresponding to which topology information should be fetched
- pDcgmDeviceTopology: IN/OUT: Topology information corresponding to gpuId. pDcgmDeviceTopology->version must be set to dcgmDeviceTopology_version or dcgmDeviceTopology_version1 before this call
Wraps dcgmGetDeviceTopology.
func GetDeviceWorkloadPowerProfileInfo ¶
func GetDeviceWorkloadPowerProfileInfo(pDcgmHandle Handle, gpuId uint32, profilesInfo *WorkloadPowerProfileProfilesInfo, profilesStatus *DeviceWorkloadPowerProfilesStatus) error
GetDeviceWorkloadPowerProfileInfo gets device workload power profile information and status.
- pDcgmHandle: IN: DCGM Handle
- gpuId: IN: GPU Id corresponding to which the information should be fetched
- profilesInfo: OUT: Information about each of the supported workload power profiles available on this device
- profilesStatus: OUT: Currently active, requested, and enforced workload power profiles on this device
Wraps dcgmGetDeviceWorkloadPowerProfileInfo.
func GetEntityGroupEntities ¶
func GetEntityGroupEntities(dcgmHandle Handle, entityGroup FieldEntityGroup, entities *FieldEid, numEntities *int32, flags uint32) error
GetEntityGroupEntities gets the list of entities that exist for a given entity group.
This API can be used in place of Handle.AllDevices.
- dcgmHandle: IN: DCGM Handle
- entityGroup: IN: Entity group to list entities of
- entities: OUT: Array of entities for entityGroup
- numEntities: IN/OUT: Upon calling, this should be the number of entities that entityList[] can hold. Upon return, this will contain the number of entities actually saved to entityList
- flags: IN: Flags to modify the behavior of this request. See DCGM_GEGE_FLAG_* #defines in dcgm_structs.h
Wraps dcgmGetEntityGroupEntities.
func GetFieldSummary ¶
func GetFieldSummary(pDcgmHandle Handle, request *FieldSummaryRequest) error
GetFieldSummary gets a summary of the values for a field id over a period of time.
- pDcgmHandle: IN: DCGM Handle
- request: IN/OUT: a pointer to the struct detailing the request and containing the response
Wraps dcgmGetFieldSummary.
func GetGpuInstanceHierarchy ¶
func GetGpuInstanceHierarchy(dcgmHandle Handle, hierarchy *MigHierarchyV2) error
GetGpuInstanceHierarchy gets the hierarchy of GPUs, GPU Instances, and Compute Instances.
- dcgmHandle: IN: DCGM Handle
- hierarchy: OUT: Hierarchy of GPUs, GPU Instances, and Compute Instances
Wraps dcgmGetGpuInstanceHierarchy.
func GetGroupTopology ¶
func GetGroupTopology(pDcgmHandle Handle, groupId GpuGrp, pDcgmGroupTopology *GroupTopology) error
GetGroupTopology gets group topology corresponding to the groupId.
- pDcgmHandle: IN: DCGM Handle
- groupId: IN: GroupId corresponding to which topology information should be fetched
- pDcgmGroupTopology: IN/OUT: Topology information corresponding to groupId. pDcgmgroupTopology->version must be set to dcgmGroupTopology_version or dcgmGroupTopology_version1
Wraps dcgmGetGroupTopology.
func GetLatestValuesForFields ¶
func GetLatestValuesForFields(pDcgmHandle Handle, gpuId int32, fields *uint16, count uint32, values *FieldValueV1) error
GetLatestValuesForFields requests latest cached field value for a GPU
- pDcgmHandle: IN: DCGM Handle
- gpuId: IN: Gpu ID representing the GPU for which the fields are being requested
- fields: IN: Field IDs to return data for. See the definitions in dcgm_fields.h that start with DCGM_FI_
- count: IN: Number of field IDs in fields[] array
- values: OUT: Latest field values for the fields in fields[]
Wraps dcgmGetLatestValuesForFields.
func GetNvLinkLinkStatus ¶
func GetNvLinkLinkStatus(dcgmHandle Handle, linkStatus *NvLinkStatus) error
GetNvLinkLinkStatus gets the NvLink link status for every NvLink in this system.
This includes the NvLinks of both GPUs and NvSwitches. Note that only NvSwitches and GPUs that are visible to the current environment will be returned in this structure.
- dcgmHandle: IN: DCGM Handle
- linkStatus: OUT: Structure in which to store NvLink link statuses. .version should be set to dcgmNvLinkStatus_version before calling this
Wraps dcgmGetNvLinkLinkStatus.
func GetNvLinkP2PStatus ¶
func GetNvLinkP2PStatus(dcgmHandle Handle, linkStatus *NvLinkP2PStatus) error
GetNvLinkP2PStatus gets the NvLink P2P status for every GPU NvLink in this system.
Only GPUs that are visible to the current environment will be returned in this structure.
- dcgmHandle: IN: DCGM Handle
- linkStatus: OUT: Structure in which to store NvLink P2P statuses. .version should be set to dcgmNvLinkP2PStatus_version1 before calling this
Wraps dcgmGetNvLinkP2PStatus.
func GetPidInfo ¶
GetPidInfo gets information about all GPUs while the provided pid was running
In order for this request to work, you must first call Handle.WatchPidFields to make sure that DCGM is watching the appropriate field IDs that will be populated in pidInfo
- pDcgmHandle: IN: DCGM Handle
- groupId: IN: Group ID representing collection of one or more GPUs. Look at Handle.GroupCreate for details on creating the group. Alternatively, pass in the group id as GroupAllGPUs to perform operation on all the GPUs
- pidInfo: IN/OUT: Structure to return information about pid in. pidInfo->pid must be set to the pid in question. pidInfo->version should be set to dcgmPidInfo_version
Wraps dcgmGetPidInfo.
func GroupAddDevice ¶
GroupAddDevice is used to add specified GPU Id to the group represented by groupId.
- pDcgmHandle: IN: DCGM Handle
- groupId: IN: Group Id to which device should be added
- gpuId: IN: DCGM GPU Id
Wraps dcgmGroupAddDevice.
func GroupAddEntity ¶
func GroupAddEntity(pDcgmHandle Handle, groupId GpuGrp, entityGroupId FieldEntityGroup, entityId FieldEid) error
GroupAddEntity is used to add specified entity to the group represented by groupId.
- pDcgmHandle: IN: DCGM Handle
- groupId: IN: Group Id to which device should be added
- entityGroupId: IN: Entity group that entityId belongs to
- entityId: IN: DCGM entityId
Wraps dcgmGroupAddEntity.
func GroupDestroy ¶
GroupDestroy is used to destroy a group represented by groupId.
Since DCGM group is a logical grouping of entities, the properties applied on the group stay intact for the individual entities even after the group is destroyed.
- pDcgmHandle: IN: DCGM Handle
- groupId: IN: Group ID
Wraps dcgmGroupDestroy.
func GroupGetAllIds ¶
GroupGetAllIds is used to get the Ids of all groups of entities.
The information returned is a list of group ids in groupIdList as well as a count of how many ids there are in count. Please allocate enough memory for groupIdList. Memory of size MAX_NUM_GROUPS should be allocated for groupIdList.
- pDcgmHandle: IN: DCGM Handle
- groupIdList: OUT: List of Group Ids
- count: OUT: The number of Group ids in the list
Wraps dcgmGroupGetAllIds.
func GroupGetInfo ¶
GroupGetInfo is used to get information corresponding to the group represented by groupId.
The information returned in pDcgmGroupInfo consists of group name, and the list of entities present in the group.
- pDcgmHandle: IN: DCGM Handle
- groupId: IN: Group ID for which information to be fetched
- pDcgmGroupInfo: OUT: Group Information
Wraps dcgmGroupGetInfo.
func GroupRemoveDevice ¶
GroupRemoveDevice is used to remove specified GPU Id from the group represented by groupId.
- pDcgmHandle: IN: DCGM Handle
- groupId: IN: Group ID from which device should be removed
- gpuId: IN: DCGM GPU Id
Wraps dcgmGroupRemoveDevice.
func GroupRemoveEntity ¶
func GroupRemoveEntity(pDcgmHandle Handle, groupId GpuGrp, entityGroupId FieldEntityGroup, entityId FieldEid) error
GroupRemoveEntity is used to remove specified entity from the group represented by groupId.
- pDcgmHandle: IN: DCGM Handle
- groupId: IN: Group ID from which device should be removed
- entityGroupId: IN: Entity group that entityId belongs to
- entityId: IN: DCGM entityId
Wraps dcgmGroupRemoveEntity.
func Has ¶
Has reports whether the named C symbol resolved in the loaded library, loading it first if necessary. It returns false if the library failed to load. Use it to gate on capabilities before calling into them.
func HasActionValidate ¶
func HasActionValidate() bool
HasActionValidate reports whether dcgmActionValidate_v2 resolved in the loaded library.
func HasAttachDriver ¶
func HasAttachDriver() bool
HasAttachDriver reports whether dcgmAttachDriver resolved in the loaded library.
func HasConfigEnforce ¶
func HasConfigEnforce() bool
HasConfigEnforce reports whether dcgmConfigEnforce resolved in the loaded library.
func HasConfigGet ¶
func HasConfigGet() bool
HasConfigGet reports whether dcgmConfigGet resolved in the loaded library.
func HasConfigSet ¶
func HasConfigSet() bool
HasConfigSet reports whether dcgmConfigSet resolved in the loaded library.
func HasConfigSetWorkloadPowerProfile ¶
func HasConfigSetWorkloadPowerProfile() bool
HasConfigSetWorkloadPowerProfile reports whether dcgmConfigSetWorkloadPowerProfile resolved in the loaded library.
func HasConnectV2 ¶
func HasConnectV2() bool
HasConnectV2 reports whether dcgmConnect_v2 resolved in the loaded library.
func HasConnectV3 ¶
func HasConnectV3() bool
HasConnectV3 reports whether dcgmConnect_v3 resolved in the loaded library.
func HasDcgmFieldGetById ¶
func HasDcgmFieldGetById() bool
HasDcgmFieldGetById reports whether DcgmFieldGetById resolved in the loaded library.
func HasDcgmFieldGetByTag ¶
func HasDcgmFieldGetByTag() bool
HasDcgmFieldGetByTag reports whether DcgmFieldGetByTag resolved in the loaded library.
func HasDcgmFieldsGetEntityGroupString ¶
func HasDcgmFieldsGetEntityGroupString() bool
HasDcgmFieldsGetEntityGroupString reports whether DcgmFieldsGetEntityGroupString resolved in the loaded library.
func HasDcgmFieldsInit ¶
func HasDcgmFieldsInit() bool
HasDcgmFieldsInit reports whether DcgmFieldsInit resolved in the loaded library.
func HasDcgmFieldsTerm ¶
func HasDcgmFieldsTerm() bool
HasDcgmFieldsTerm reports whether DcgmFieldsTerm resolved in the loaded library.
func HasDetachDriver ¶
func HasDetachDriver() bool
HasDetachDriver reports whether dcgmDetachDriver resolved in the loaded library.
func HasDiagSendHeartbeat ¶
func HasDiagSendHeartbeat() bool
HasDiagSendHeartbeat reports whether dcgmDiagSendHeartbeat resolved in the loaded library.
func HasDisconnect ¶
func HasDisconnect() bool
HasDisconnect reports whether dcgmDisconnect resolved in the loaded library.
func HasEntitiesGetLatestValues ¶
func HasEntitiesGetLatestValues() bool
HasEntitiesGetLatestValues reports whether dcgmEntitiesGetLatestValues resolved in the loaded library.
func HasEntityGetLatestValues ¶
func HasEntityGetLatestValues() bool
HasEntityGetLatestValues reports whether dcgmEntityGetLatestValues resolved in the loaded library.
func HasErrorGetCategoryByCode ¶
func HasErrorGetCategoryByCode() bool
HasErrorGetCategoryByCode reports whether dcgmErrorGetCategoryByCode resolved in the loaded library.
func HasErrorGetFormatMsgByCode ¶
func HasErrorGetFormatMsgByCode() bool
HasErrorGetFormatMsgByCode reports whether dcgmErrorGetFormatMsgByCode resolved in the loaded library.
func HasErrorGetPriorityByCode ¶
func HasErrorGetPriorityByCode() bool
HasErrorGetPriorityByCode reports whether dcgmErrorGetPriorityByCode resolved in the loaded library.
func HasErrorString ¶
func HasErrorString() bool
HasErrorString reports whether errorString resolved in the loaded library.
func HasFieldGroupCreate ¶
func HasFieldGroupCreate() bool
HasFieldGroupCreate reports whether dcgmFieldGroupCreate resolved in the loaded library.
func HasFieldGroupDestroy ¶
func HasFieldGroupDestroy() bool
HasFieldGroupDestroy reports whether dcgmFieldGroupDestroy resolved in the loaded library.
func HasFieldGroupGetAll ¶
func HasFieldGroupGetAll() bool
HasFieldGroupGetAll reports whether dcgmFieldGroupGetAll resolved in the loaded library.
func HasFieldGroupGetInfo ¶
func HasFieldGroupGetInfo() bool
HasFieldGroupGetInfo reports whether dcgmFieldGroupGetInfo resolved in the loaded library.
func HasGetAllDevices ¶
func HasGetAllDevices() bool
HasGetAllDevices reports whether dcgmGetAllDevices resolved in the loaded library.
func HasGetAllSupportedDevices ¶
func HasGetAllSupportedDevices() bool
HasGetAllSupportedDevices reports whether dcgmGetAllSupportedDevices resolved in the loaded library.
func HasGetCpuHierarchyV2 ¶
func HasGetCpuHierarchyV2() bool
HasGetCpuHierarchyV2 reports whether dcgmGetCpuHierarchy_v2 resolved in the loaded library.
func HasGetDeviceAttributes ¶
func HasGetDeviceAttributes() bool
HasGetDeviceAttributes reports whether dcgmGetDeviceAttributes resolved in the loaded library.
func HasGetDeviceTopology ¶
func HasGetDeviceTopology() bool
HasGetDeviceTopology reports whether dcgmGetDeviceTopology resolved in the loaded library.
func HasGetDeviceWorkloadPowerProfileInfo ¶
func HasGetDeviceWorkloadPowerProfileInfo() bool
HasGetDeviceWorkloadPowerProfileInfo reports whether dcgmGetDeviceWorkloadPowerProfileInfo resolved in the loaded library.
func HasGetEntityGroupEntities ¶
func HasGetEntityGroupEntities() bool
HasGetEntityGroupEntities reports whether dcgmGetEntityGroupEntities resolved in the loaded library.
func HasGetFieldSummary ¶
func HasGetFieldSummary() bool
HasGetFieldSummary reports whether dcgmGetFieldSummary resolved in the loaded library.
func HasGetGpuChipArchitecture ¶
func HasGetGpuChipArchitecture() bool
HasGetGpuChipArchitecture reports whether dcgmGetGpuChipArchitecture resolved in the loaded library.
func HasGetGpuInstanceHierarchy ¶
func HasGetGpuInstanceHierarchy() bool
HasGetGpuInstanceHierarchy reports whether dcgmGetGpuInstanceHierarchy resolved in the loaded library.
func HasGetGpuStatus ¶
func HasGetGpuStatus() bool
HasGetGpuStatus reports whether dcgmGetGpuStatus resolved in the loaded library.
func HasGetGroupTopology ¶
func HasGetGroupTopology() bool
HasGetGroupTopology reports whether dcgmGetGroupTopology resolved in the loaded library.
func HasGetLatestValues ¶
func HasGetLatestValues() bool
HasGetLatestValues reports whether dcgmGetLatestValues_v2 resolved in the loaded library.
func HasGetLatestValuesForFields ¶
func HasGetLatestValuesForFields() bool
HasGetLatestValuesForFields reports whether dcgmGetLatestValuesForFields resolved in the loaded library.
func HasGetNvLinkLinkStatus ¶
func HasGetNvLinkLinkStatus() bool
HasGetNvLinkLinkStatus reports whether dcgmGetNvLinkLinkStatus resolved in the loaded library.
func HasGetNvLinkP2PStatus ¶
func HasGetNvLinkP2PStatus() bool
HasGetNvLinkP2PStatus reports whether dcgmGetNvLinkP2PStatus resolved in the loaded library.
func HasGetPidInfo ¶
func HasGetPidInfo() bool
HasGetPidInfo reports whether dcgmGetPidInfo resolved in the loaded library.
func HasGetValuesSince ¶
func HasGetValuesSince() bool
HasGetValuesSince reports whether dcgmGetValuesSince_v2 resolved in the loaded library.
func HasGroupAddDevice ¶
func HasGroupAddDevice() bool
HasGroupAddDevice reports whether dcgmGroupAddDevice resolved in the loaded library.
func HasGroupAddEntity ¶
func HasGroupAddEntity() bool
HasGroupAddEntity reports whether dcgmGroupAddEntity resolved in the loaded library.
func HasGroupCreate ¶
func HasGroupCreate() bool
HasGroupCreate reports whether dcgmGroupCreate resolved in the loaded library.
func HasGroupDestroy ¶
func HasGroupDestroy() bool
HasGroupDestroy reports whether dcgmGroupDestroy resolved in the loaded library.
func HasGroupGetAllIds ¶
func HasGroupGetAllIds() bool
HasGroupGetAllIds reports whether dcgmGroupGetAllIds resolved in the loaded library.
func HasGroupGetInfo ¶
func HasGroupGetInfo() bool
HasGroupGetInfo reports whether dcgmGroupGetInfo resolved in the loaded library.
func HasGroupRemoveDevice ¶
func HasGroupRemoveDevice() bool
HasGroupRemoveDevice reports whether dcgmGroupRemoveDevice resolved in the loaded library.
func HasGroupRemoveEntity ¶
func HasGroupRemoveEntity() bool
HasGroupRemoveEntity reports whether dcgmGroupRemoveEntity resolved in the loaded library.
func HasHealthCheck ¶
func HasHealthCheck() bool
HasHealthCheck reports whether dcgmHealthCheck resolved in the loaded library.
func HasHealthGet ¶
func HasHealthGet() bool
HasHealthGet reports whether dcgmHealthGet resolved in the loaded library.
func HasHealthSet ¶
func HasHealthSet() bool
HasHealthSet reports whether dcgmHealthSet_v2 resolved in the loaded library.
func HasHostengineEnvironmentVariableInfo ¶
func HasHostengineEnvironmentVariableInfo() bool
HasHostengineEnvironmentVariableInfo reports whether dcgmHostengineEnvironmentVariableInfo resolved in the loaded library.
func HasHostengineIsHealthy ¶
func HasHostengineIsHealthy() bool
HasHostengineIsHealthy reports whether dcgmHostengineIsHealthy resolved in the loaded library.
func HasHostengineSetLoggingSeverity ¶
func HasHostengineSetLoggingSeverity() bool
HasHostengineSetLoggingSeverity reports whether dcgmHostengineSetLoggingSeverity resolved in the loaded library.
func HasHostengineVersionInfo ¶
func HasHostengineVersionInfo() bool
HasHostengineVersionInfo reports whether dcgmHostengineVersionInfo resolved in the loaded library.
func HasIntrospectGetHostengineCpuUtilization ¶
func HasIntrospectGetHostengineCpuUtilization() bool
HasIntrospectGetHostengineCpuUtilization reports whether dcgmIntrospectGetHostengineCpuUtilization resolved in the loaded library.
func HasIntrospectGetHostengineMemoryUsage ¶
func HasIntrospectGetHostengineMemoryUsage() bool
HasIntrospectGetHostengineMemoryUsage reports whether dcgmIntrospectGetHostengineMemoryUsage resolved in the loaded library.
func HasJobGetStats ¶
func HasJobGetStats() bool
HasJobGetStats reports whether dcgmJobGetStats resolved in the loaded library.
func HasJobRemove ¶
func HasJobRemove() bool
HasJobRemove reports whether dcgmJobRemove resolved in the loaded library.
func HasJobRemoveAll ¶
func HasJobRemoveAll() bool
HasJobRemoveAll reports whether dcgmJobRemoveAll resolved in the loaded library.
func HasJobStartStats ¶
func HasJobStartStats() bool
HasJobStartStats reports whether dcgmJobStartStats resolved in the loaded library.
func HasJobStopStats ¶
func HasJobStopStats() bool
HasJobStopStats reports whether dcgmJobStopStats resolved in the loaded library.
func HasModuleDenylist ¶
func HasModuleDenylist() bool
HasModuleDenylist reports whether dcgmModuleDenylist resolved in the loaded library.
func HasModuleGetStatuses ¶
func HasModuleGetStatuses() bool
HasModuleGetStatuses reports whether dcgmModuleGetStatuses resolved in the loaded library.
func HasModuleIdToName ¶
func HasModuleIdToName() bool
HasModuleIdToName reports whether dcgmModuleIdToName resolved in the loaded library.
func HasPolicyCreate ¶
func HasPolicyCreate() bool
HasPolicyCreate reports whether dcgmPolicyCreate resolved in the loaded library.
func HasPolicyDelete ¶
func HasPolicyDelete() bool
HasPolicyDelete reports whether dcgmPolicyDelete resolved in the loaded library.
func HasPolicyDisable ¶
func HasPolicyDisable() bool
HasPolicyDisable reports whether dcgmPolicyDisable resolved in the loaded library.
func HasPolicyEnable ¶
func HasPolicyEnable() bool
HasPolicyEnable reports whether dcgmPolicyEnable resolved in the loaded library.
func HasPolicyGet ¶
func HasPolicyGet() bool
HasPolicyGet reports whether dcgmPolicyGet resolved in the loaded library.
func HasPolicyGetAll ¶
func HasPolicyGetAll() bool
HasPolicyGetAll reports whether dcgmPolicyGetAll resolved in the loaded library.
func HasPolicyGetOne ¶
func HasPolicyGetOne() bool
HasPolicyGetOne reports whether dcgmPolicyGetOne resolved in the loaded library.
func HasPolicyGetViolations ¶
func HasPolicyGetViolations() bool
HasPolicyGetViolations reports whether dcgmPolicyGetViolations resolved in the loaded library.
func HasPolicyImport ¶
func HasPolicyImport() bool
HasPolicyImport reports whether dcgmPolicyImport resolved in the loaded library.
func HasPolicyModify ¶
func HasPolicyModify() bool
HasPolicyModify reports whether dcgmPolicyModify resolved in the loaded library.
func HasPolicyRegisterV2 ¶
func HasPolicyRegisterV2() bool
HasPolicyRegisterV2 reports whether dcgmPolicyRegister_v2 resolved in the loaded library.
func HasPolicySet ¶
func HasPolicySet() bool
HasPolicySet reports whether dcgmPolicySet resolved in the loaded library.
func HasPolicyTrigger ¶
func HasPolicyTrigger() bool
HasPolicyTrigger reports whether dcgmPolicyTrigger resolved in the loaded library.
func HasPolicyUnregister ¶
func HasPolicyUnregister() bool
HasPolicyUnregister reports whether dcgmPolicyUnregister resolved in the loaded library.
func HasPowerProfileIdToName ¶
func HasPowerProfileIdToName() bool
HasPowerProfileIdToName reports whether dcgmPowerProfileIdToName resolved in the loaded library.
func HasProfGetSupportedMetricGroups ¶
func HasProfGetSupportedMetricGroups() bool
HasProfGetSupportedMetricGroups reports whether dcgmProfGetSupportedMetricGroups resolved in the loaded library.
func HasProfPause ¶
func HasProfPause() bool
HasProfPause reports whether dcgmProfPause resolved in the loaded library.
func HasProfResume ¶
func HasProfResume() bool
HasProfResume reports whether dcgmProfResume resolved in the loaded library.
func HasRunDiagnostic ¶
func HasRunDiagnostic() bool
HasRunDiagnostic reports whether dcgmRunDiagnostic resolved in the loaded library.
func HasRunMnDiagnostic ¶
func HasRunMnDiagnostic() bool
HasRunMnDiagnostic reports whether dcgmRunMnDiagnostic resolved in the loaded library.
func HasSelectGpusByTopology ¶
func HasSelectGpusByTopology() bool
HasSelectGpusByTopology reports whether dcgmSelectGpusByTopology resolved in the loaded library.
func HasShutdown ¶
func HasShutdown() bool
HasShutdown reports whether dcgmShutdown resolved in the loaded library.
func HasStartEmbeddedV2 ¶
func HasStartEmbeddedV2() bool
HasStartEmbeddedV2 reports whether dcgmStartEmbedded_v2 resolved in the loaded library.
func HasStatusClear ¶
func HasStatusClear() bool
HasStatusClear reports whether dcgmStatusClear resolved in the loaded library.
func HasStatusCreate ¶
func HasStatusCreate() bool
HasStatusCreate reports whether dcgmStatusCreate resolved in the loaded library.
func HasStatusDestroy ¶
func HasStatusDestroy() bool
HasStatusDestroy reports whether dcgmStatusDestroy resolved in the loaded library.
func HasStatusGetCount ¶
func HasStatusGetCount() bool
HasStatusGetCount reports whether dcgmStatusGetCount resolved in the loaded library.
func HasStatusPopError ¶
func HasStatusPopError() bool
HasStatusPopError reports whether dcgmStatusPopError resolved in the loaded library.
func HasStopDiagnostic ¶
func HasStopDiagnostic() bool
HasStopDiagnostic reports whether dcgmStopDiagnostic resolved in the loaded library.
func HasStopEmbedded ¶
func HasStopEmbedded() bool
HasStopEmbedded reports whether dcgmStopEmbedded resolved in the loaded library.
func HasStopMnDiagnostic ¶
func HasStopMnDiagnostic() bool
HasStopMnDiagnostic reports whether dcgmStopMnDiagnostic resolved in the loaded library.
func HasUnwatchFields ¶
func HasUnwatchFields() bool
HasUnwatchFields reports whether dcgmUnwatchFields resolved in the loaded library.
func HasUpdateAllFields ¶
func HasUpdateAllFields() bool
HasUpdateAllFields reports whether dcgmUpdateAllFields resolved in the loaded library.
func HasVersionInfo ¶
func HasVersionInfo() bool
HasVersionInfo reports whether dcgmVersionInfo resolved in the loaded library.
func HasWatchFields ¶
func HasWatchFields() bool
HasWatchFields reports whether dcgmWatchFields resolved in the loaded library.
func HasWatchJobFields ¶
func HasWatchJobFields() bool
HasWatchJobFields reports whether dcgmWatchJobFields resolved in the loaded library.
func HasWatchPidFields ¶
func HasWatchPidFields() bool
HasWatchPidFields reports whether dcgmWatchPidFields resolved in the loaded library.
func HealthCheck ¶
func HealthCheck(pDcgmHandle Handle, groupId GpuGrp, results *HealthResponse) error
HealthCheck checks the configured watches for any errors/failures/warnings that have occurred since the last time this check was invoked.
On the first call, stateful information about all of the enabled watches within a group is created but no error results are provided. On subsequent calls, any error information will be returned.
- pDcgmHandle: IN: DCGM Handle
- groupId: IN: Group ID representing a collection of one or more entities. Refer to Handle.GroupCreate for details on creating a group
- results: OUT: A reference to the HealthResponse structure to populate. results->version must be set to dcgmHealthResponse_version
Wraps dcgmHealthCheck.
func HealthGet ¶
func HealthGet(pDcgmHandle Handle, groupId GpuGrp, systems *HealthSystems) error
HealthGet retrieves the current state of the DCGM health check system
- pDcgmHandle: IN: DCGM Handle
- groupId: IN: Group ID representing collection of one or more entities. Look at Handle.GroupCreate for details on creating the group. Alternatively, pass in the group id as GroupAllGPUs to perform operation on all the GPUs or GroupAllNvSwitches to perform operation on all the NvSwitches
- systems: OUT: An integer representing the enabled systems for the given group Refer to HealthSystems for details
Wraps dcgmHealthGet.
func HealthSet ¶
func HealthSet(pDcgmHandle Handle, params *HealthSetParamsV2) error
HealthSet enables the DCGM health check system for the given systems defined in HealthSystems
Since DCGM 2.0
- pDcgmHandle: IN: DCGM Handle
Wraps dcgmHealthSet_v2.
func HostengineEnvironmentVariableInfo ¶
func HostengineEnvironmentVariableInfo(pDcgmHandle Handle, pEnvVarInfo *EnvVarInfo) error
HostengineEnvironmentVariableInfo is used to retrieve the value of an environment variable from the hostengine.
Note: only CUDA_VISIBLE_DEVICES env is supported
- pDcgmHandle: IN: DCGM Handle that came from Connect
- pEnvVarInfo: IN/OUT: Pointer to a EnvVarInfo structure. - envVarName must be set to the name of the environment variable to query (input). - envVarValue will be filled with the value of the environment variable (output)
Wraps dcgmHostengineEnvironmentVariableInfo.
func HostengineIsHealthy ¶
func HostengineIsHealthy(pDcgmHandle Handle, heHealth *HostengineHealth) error
HostengineIsHealthy is used to return whether or not the host engine considers itself healthy
- pDcgmHandle: in the handle to DCGM
- heHealth: out struct describing the health of the hostengine. if heHealth.hostengineHealth is 0, then the hostengine is healthy. Non-zero indicates not healthy with error codes determining the cause
Wraps dcgmHostengineIsHealthy.
func HostengineSetLoggingSeverity ¶
func HostengineSetLoggingSeverity(pDcgmHandle Handle, logging *SettingsSetLoggingSeverity) error
HostengineSetLoggingSeverity is used to set the logging severity on HostEngine for the specified logger
- pDcgmHandle: IN: DCGM Handle
- logging: IN: SettingsSetLoggingSeverity struct containing the target logger and severity
Wraps dcgmHostengineSetLoggingSeverity.
func HostengineVersionInfo ¶
func HostengineVersionInfo(pDcgmHandle Handle, pVersionInfo *VersionInfoStruct) error
HostengineVersionInfo is used to return information about the build environment of the hostengine.
- pDcgmHandle: IN: DCGM Handle that came from Connect
- pVersionInfo: OUT: Build environment information
Wraps dcgmHostengineVersionInfo.
func Init ¶
func Init() error
Init is used to initialize DCGM within this process.
This must be called before StartEmbedded or Connect * @return
- Success if DCGM has been properly initialized
- ErrInitError if there was an error initializing the library
Wraps dcgmInit.
func IntrospectGetHostengineCpuUtilization ¶
func IntrospectGetHostengineCpuUtilization(pDcgmHandle Handle, cpuUtil *IntrospectCpuUtil, waitIfNoData int32) error
IntrospectGetHostengineCpuUtilization retrieves the CPU utilization of the DCGM hostengine process.
- pDcgmHandle: IN: DCGM Handle
- cpuUtil: IN/OUT: see IntrospectCpuUtil. cpuUtil->version must be set to dcgmIntrospectCpuUtil_version prior to this call
- waitIfNoData: IN: if no metadata is gathered wait till this occurs (!0) or return ErrNoData (0)
Wraps dcgmIntrospectGetHostengineCpuUtilization.
func IntrospectGetHostengineMemoryUsage ¶
func IntrospectGetHostengineMemoryUsage(pDcgmHandle Handle, memoryInfo *IntrospectMemory, waitIfNoData int32) error
IntrospectGetHostengineMemoryUsage retrieves the total amount of memory that the hostengine process is currently using.
This measurement represents both the resident set size (what is currently in RAM) and the swapped memory that belongs to the process.
- pDcgmHandle: IN: DCGM Handle
- memoryInfo: IN/OUT: see IntrospectMemory. memoryInfo->version must be set to dcgmIntrospectMemory_version prior to this call
- waitIfNoData: IN: if no metadata is gathered wait till this occurs (!0) or return ErrNoData (0)
Wraps dcgmIntrospectGetHostengineMemoryUsage.
func JobGetStats ¶
JobGetStats gets stats for the job identified by DCGM generated job id.
The stats can be retrieved at any point when the job is in process. If you want to reuse this jobId, call Handle.JobRemove after this call.
- pDcgmHandle: IN: DCGM Handle
- jobId: IN: User provided string to represent the job
- pJobInfo: IN/OUT: Structure to return information about the job. .version should be set to dcgmJobInfo_version before this call
Wraps dcgmJobGetStats.
func JobRemove ¶
JobRemove tells DCGM to stop tracking the job given by jobId.
After this call, you will no longer be able to call Handle.JobGetStats on this jobId. However, you will be able to reuse jobId after this call.
- pDcgmHandle: IN: DCGM Handle
- jobId: IN: User provided string to represent the job
Wraps dcgmJobRemove.
func JobRemoveAll ¶
JobRemoveAll tells DCGM to stop tracking all jobs.
After this call, you will no longer be able to call Handle.JobGetStats any jobs until you call Handle.JobStartStats again. You will be able to reuse any previously-used jobIds after this call.
- pDcgmHandle: IN: DCGM Handle
Wraps dcgmJobRemoveAll.
func JobStartStats ¶
JobStartStats is used by the client to notify DCGM about the job to be started.
Should be invoked as part of job prologue
- pDcgmHandle: IN: DCGM Handle
- groupId: IN: Group ID representing collection of one or more GPUs. Look at Handle.GroupCreate for details on creating the group. Alternatively, pass in the group id as GroupAllGPUs to perform operation on all the GPUs
- jobId: IN: User provided string to represent the job
Wraps dcgmJobStartStats.
func JobStopStats ¶
JobStopStats is used by the clients to notify DCGM to stop collecting stats for the job represented by job id.
Should be invoked as part of job epilogue. The job Id remains available to view the stats at any point but cannot be used to start a new job. You must call Handle.WatchJobFields before this call to enable watching of job
- pDcgmHandle: IN: DCGM Handle
- jobId: IN: User provided string to represent the job
Wraps dcgmJobStopStats.
func Load ¶
Load opens the shared library from path, or from the default search list when path is empty, and binds all symbols. Callers that need to direct loading should call Load before any other function; otherwise the first call loads from the default search list.
Load is idempotent: calling it again with the same path, or with an empty path, returns nil. Calling it with a different path after a successful load returns *LibraryConflictError rather than replacing the library. After a failed load, Load retries.
func Loaded ¶
func Loaded() bool
Loaded reports whether the library is currently loaded. It does not trigger a load.
func ModuleDenylist ¶
ModuleDenylist adds a module to the denylist.
This module will be prevented from being loaded if it hasn't been loaded already. Modules are lazy-loaded as they are used by DCGM APIs, so it's important to call this API soon after the host engine has been started. You can also pass --denylist-modules to the nv-hostengine binary to make sure modules get add to the denylist immediately after the host engine starts up.
- pDcgmHandle: IN: DCGM Handle
- moduleId: IN: ID of the module to denylist. Use Handle.ModuleGetStatuses to get a list of valid module IDs
Wraps dcgmModuleDenylist.
func ModuleGetStatuses ¶
func ModuleGetStatuses(pDcgmHandle Handle, moduleStatuses *ModuleGetStatusesStruct) error
ModuleGetStatuses gets the status of all of the DCGM modules.
- pDcgmHandle: IN: DCGM Handle
- moduleStatuses: OUT: Module statuses. .version should be set to dcgmModuleStatuses_version upon calling
Wraps dcgmModuleGetStatuses.
func ModuleIdToName ¶
ModuleIdToName describes DCGM Module by given Module ID
Wraps dcgmModuleIdToName.
func Path ¶
func Path() string
Path returns the path or name the loaded library was opened from, or the empty string if no library is loaded.
func PolicyCreate ¶
func PolicyCreate(pDcgmHandle Handle, fieldId uint16, name *byte, threshold float64, policyOperator PolicyOperator, entities *GroupEntityPair, entityCount uint32, channelMask uint32, enabled uint32, rateLimitSec uint32, policyId *uint64) error
PolicyCreate creates a field-based policy that monitors a DCGM field against a threshold.
This call blocks until the policy module responds. The module assigns policyId and persists the policy when watch setup succeeds.
- pDcgmHandle: IN: DCGM Handle
- fieldId: IN: DCGM field ID to monitor
- name: IN: NUL-terminated policy display name
- threshold: IN: Comparison threshold
- policyOperator: IN: Comparison operator (see PolicyOperator)
- entities: IN: GPU entities to monitor; may be NULL when entityCount is 0
- entityCount: IN: Number of valid entries in entities
- channelMask: IN: Bitmask of notification channels (see PolicyChannel)
- enabled: IN: Non-zero to create the policy enabled; zero to create disabled
- rateLimitSec: IN: Minimum seconds between notifications
- policyId: OUT: Module-assigned policy identifier on success
Wraps dcgmPolicyCreate.
func PolicyDelete ¶
PolicyDelete Delete one field-based policy or all field-based policies.
This call blocks until the policy module responds.
- pDcgmHandle: IN: DCGM Handle
- fieldId: IN: Field ID of the policy to delete when deleteAll is 0
- policyId: IN: Policy identifier to delete when deleteAll is 0
- deleteAll: IN: Non-zero to delete all field-based policies; zero to delete one policy
Wraps dcgmPolicyDelete.
func PolicyDisable ¶
PolicyDisable disables a field-based policy.
This call blocks until the policy module responds and field watches are refreshed.
- pDcgmHandle: IN: DCGM Handle
- fieldId: IN: Field ID of the policy to disable
- policyId: IN: Policy identifier to disable
Wraps dcgmPolicyDisable.
func PolicyEnable ¶
PolicyEnable enables a field-based policy.
This call blocks until the policy module responds and field watches are refreshed.
- pDcgmHandle: IN: DCGM Handle
- fieldId: IN: Field ID of the policy to enable
- policyId: IN: Policy identifier to enable
Wraps dcgmPolicyEnable.
func PolicyGet
deprecated
func PolicyGet(pDcgmHandle Handle, groupId GpuGrp, count int32, policy *Policy, statusHandle StatusHandle) error
PolicyGet gets the current violation policy inside the policy manager.
Given a groupId, a number of policy structures are retrieved.
- pDcgmHandle: IN: DCGM Handle
- groupId: IN: Group ID representing collection of one or more GPUs. Look at Handle.GroupCreate for details on creating the group. Alternatively, pass in the group id as GroupAllGPUs to perform operation on all the GPUs
- count: IN: The size of the policy array. This is the maximum number of policies that will be retrieved and ultimately should correspond to the number of GPUs specified in the group
- policy: OUT: A reference to Policy that will used as storage for the current policies applied to each GPU in the group
- statusHandle: IN/OUT: Resulting status for the operation. Pass it as NULL if the detailed error information for the operation is not needed. Refer to NewStatusHandle for details on creating a status handle
Wraps dcgmPolicyGet.
Deprecated: Use Handle.PolicyGetOne instead. For field-policy state, use Handle.PolicyGetOne or Handle.PolicyGetAll.
func PolicyGetAll ¶
func PolicyGetAll(pDcgmHandle Handle, policies *PolicyInfo, count *uint32) error
PolicyGetAll gets all registered field-based policies.
This call blocks until the policy module responds. On ErrInsufficientSize, policies contains up to count entries and count is updated to the total available.
- pDcgmHandle: IN: DCGM Handle
- policies: OUT: Array of policy records; may be NULL when count is 0
- count: IN/OUT: On input, capacity of policies. On output, total policies available
Wraps dcgmPolicyGetAll.
func PolicyGetOne ¶
func PolicyGetOne(pDcgmHandle Handle, fieldId uint16, policyId uint64, policy *PolicyInfo) error
PolicyGetOne gets one field-based policy by fieldId and policyId.
This call blocks until the policy module responds.
- pDcgmHandle: IN: DCGM Handle
- fieldId: IN: Field ID of the policy to retrieve
- policyId: IN: Policy identifier to retrieve
- policy: IN/OUT: Caller buffer; version must be dcgmPolicyInfo_version. Populated on success
Wraps dcgmPolicyGetOne.
func PolicyGetViolations ¶
func PolicyGetViolations(pDcgmHandle Handle, sinceTimestamp int64, violations *FieldPolicyViolation, count *uint32) error
PolicyGetViolations reads recent field-based policy violations.
- pDcgmHandle: IN: DCGM handle
- sinceTimestamp: IN: Return violations at or after this timestamp (usec since 1970); 0 for all recent
- violations: OUT: Caller-allocated array of PolicyViolation
- count: IN/OUT: On input, capacity of violations; on output, total violations available
Wraps dcgmPolicyGetViolations.
func PolicyImport ¶
PolicyImport imports field-based policies from a YAML file.
This call blocks until the policy module responds and field watches are refreshed.
- pDcgmHandle: IN: DCGM Handle
- path: IN: NUL-terminated path to the YAML policy file
Wraps dcgmPolicyImport.
func PolicyModify ¶
func PolicyModify(pDcgmHandle Handle, policy *PolicyInfo) error
PolicyModify modifies an existing field-based policy identified by policyId and fieldId.
This call blocks until the policy module responds. Runtime fields such as violationCount are preserved by the module.
- pDcgmHandle: IN: DCGM Handle
- policy: IN: Policy configuration to apply; version must be dcgmPolicyInfo_version
Wraps dcgmPolicyModify.
func PolicyRegisterV1 ¶
func PolicyRegisterV1(handle Handle, group GpuGrp, condition PolicyCondition, begin, finish PolicyCallbackV1) error
PolicyRegisterV1 registers independent legacy begin and finish callbacks. It returns SymbolError when the loaded library does not export the legacy entry point. It does not adapt the v2 callback or manage callback lifetime.
func PolicyRegisterV2
deprecated
func PolicyRegisterV2(pDcgmHandle Handle, groupId GpuGrp, condition PolicyCondition, callback FpRecvUpdates, userData uint64) error
PolicyRegisterV2 registers a function to be called when a specific policy condition (see PolicyCondition) has been violated.
This callback(s) will be called automatically when in OperationModeAuto mode and only after Handle.PolicyTrigger when in OperationModeManual mode. All callbacks are made within a separate thread.
- pDcgmHandle: IN: DCGM Handle
- groupId: IN: Group ID representing collection of one or more GPUs. Look at Handle.GroupCreate for details on creating the group. Alternatively, pass in the group id as GroupAllGPUs to perform operation on all the GPUs
- condition: IN: The set of conditions specified as an OR'd list (see PolicyCondition) for which to register a callback function
- callback: IN: A reference to a function that should be called should a violation occur. This function will be called prior to any actions specified by the policy are taken (see FpRecvUpdates)
- userData: IN: User data pointer to pass to the userData field of callback
Wraps dcgmPolicyRegister_v2.
Deprecated: Deprecated by NVIDIA. This group-policy callback API is being retired. Use the field-policy API: create a policy with Handle.PolicyCreate and register a callback with dcgmPolicyRegister_v3.
func PolicyRegisterV3 ¶
func PolicyRegisterV3(handle Handle, fieldID uint16, policyID uint64, callback FpRecvPolicyViolation, userData uint64) error
PolicyRegisterV3 registers a callback for a field-policy violation. The callback value is an ABI function pointer owned by the caller.
func PolicySet
deprecated
func PolicySet(pDcgmHandle Handle, groupId GpuGrp, policy *Policy, statusHandle StatusHandle) error
PolicySet sets the current violation policy inside the policy manager.
Given the conditions within the Policy structure, if a violation has occurred, subsequent action(s) may be performed to either report or contain the failure.
- pDcgmHandle: IN: DCGM Handle
- groupId: IN: Group ID representing collection of one or more GPUs. Look at Handle.GroupCreate for details on creating the group. Alternatively, pass in the group id as GroupAllGPUs to perform operation on all the GPUs
- policy: IN: A reference to Policy that will be applied to all GPUs in the group
- statusHandle: IN/OUT: Resulting status for the operation. Pass it as NULL if the detailed error information is not needed. Refer to NewStatusHandle for details on creating a status handle
Wraps dcgmPolicySet.
Deprecated: Deprecated by NVIDIA. For threshold monitoring, use the field-policy APIs beginning with Handle.PolicyCreate.
func PolicyTrigger
deprecated
PolicyTrigger Inform the policy manager loop to perform an iteration and trigger the callbacks of any registered functions.
Callback functions will be called from a separate thread as the calling function.
- pDcgmHandle: IN: DCGM Handle
Wraps dcgmPolicyTrigger.
Deprecated: Deprecated by NVIDIA. Use field-policy callbacks, which evaluate Cache Manager updates automatically. Note: The GPU monitoring and management agent must call this method periodically if the operation mode is set to manual mode (OperationModeManual) during initialization (Init).
func PolicyUnregister
deprecated
func PolicyUnregister(pDcgmHandle Handle, groupId GpuGrp, condition PolicyCondition) error
PolicyUnregister unregisters a function to be called for a specific policy condition (see PolicyCondition).
This function will unregister all callbacks for a given condition and handle.
- pDcgmHandle: IN: DCGM Handle
- groupId: IN: Group ID representing collection of one or more GPUs. Look at Handle.GroupCreate for details on creating the group. Alternatively, pass in the group id as GroupAllGPUs to perform operation on all the GPUs
- condition: IN: The set of conditions specified as an OR'd list (see PolicyCondition) for which to unregister a callback function
Wraps dcgmPolicyUnregister.
Deprecated: Use Handle.PolicyUnregister instead. This group-policy callback API is being retired. Use Handle.PolicyUnregister to unregister a field-policy callback registered with dcgmPolicyRegister_v3.
func PolicyUnregisterV3 ¶
PolicyUnregisterV3 unregisters a field-policy callback by its registration key.
func PowerProfileIdToName ¶
func PowerProfileIdToName(id PowerProfileType) (uintptr, error)
PowerProfileIdToName gets Friendly Power Profile name.
Wraps dcgmPowerProfileIdToName.
func ProfGetSupportedMetricGroups ¶
func ProfGetSupportedMetricGroups(pDcgmHandle Handle, metricGroups *ProfGetMetricGroups) error
ProfGetSupportedMetricGroups gets all of the profiling metric groups for a given GPU group.
The behavior of this API differs depending on the GPU architecture:
**Ampere and Older GPUs (Profiling Module):** Profiling metrics are watched in groups of fields that are all watched together. For instance, if you want to watch DCGM_FI_PROF_GR_ENGINE_ACTIVITY, this might also be in the same group as DCGM_FI_PROF_SM_EFFICIENCY. Watching this group would result in DCGM storing values for both of these metrics.
Some groups cannot be watched concurrently as others as they utilize the same hardware resource. For instance, you may not be able to watch DCGM_FI_PROF_TENSOR_OP_UTIL at the same time as DCGM_FI_PROF_GR_ENGINE_ACTIVITY on your hardware. At the same time, you may be able to watch DCGM_FI_PROF_TENSOR_OP_UTIL at the same time as DCGM_FI_PROF_NVLINK_TX_DATA.
Metrics that can be watched concurrently will have different .majorId fields in their dcgmProfMetricGroupInfo_t
**Hopper and Newer GPUs (GPM (GPU Performance Monitoring) Module):** GPM metrics are obtained from NVML's GPM APIs that capture all performance metrics data together. The metrics are still organized into groups for convenience and API consistency with older architectures. These groups do not have the same concurrency restrictions as on older architectures. On these platforms, all GPM metric and profiling groups can be watched concurrently without hardware resource conflicts.
See Handle.GroupCreate for details on creating a GPU group See Handle.WatchFields to actually watch the underlying profiling fields
- pDcgmHandle: IN: DCGM Handle
- metricGroups: IN/OUT: Metric groups supported for metricGroups->groupId. metricGroups->version should be set to dcgmProfGetMetricGroups_version upon calling
Wraps dcgmProfGetSupportedMetricGroups.
func ProfPause ¶
ProfPause Pause profiling activities in DCGM.
This should be used when you are monitoring profiling fields from DCGM but want to be able to still run developer tools like nvprof, nsight systems, and nsight compute. Profiling fields start with DCGM_PROF_ and are in the field ID range 1001-1012. Call this API before you launch one of those tools and Handle.ProfResume after the tool has completed.
DCGM will save BLANK values while profiling is paused.
Calling this while profiling activities are already paused is fine and will be treated as a no-op.
- pDcgmHandle: IN: DCGM Handle
Wraps dcgmProfPause.
func ProfResume ¶
ProfResume resumes profiling activities in DCGM that were previously paused with Handle.ProfPause.
Call this API after you have completed running other NVIDIA developer tools to reenable DCGM profiling metrics.
DCGM will save BLANK values while profiling is paused.
Calling this while profiling activities have already been resumed is fine and will be treated as a no-op.
- pDcgmHandle: IN: DCGM Handle
Wraps dcgmProfResume.
func RunDiagnostic ¶
func RunDiagnostic(pDcgmHandle Handle, groupId GpuGrp, diagLevel DiagnosticLevel, diagResponse *DiagResponse) error
RunDiagnostic Run a diagnostic on a group of GPUs
- pDcgmHandle: IN: DCGM Handle
- groupId: IN: Group ID representing collection of one or more GPUs. Look at Handle.GroupCreate for details on creating the group. Alternatively, pass in the group id as GroupAllGPUs to perform operation on all the GPUs
- diagLevel: IN: Diagnostic level to run
- diagResponse: IN/OUT: Result of running the DCGM diagnostic. .version should be set to dcgmDiagResponse_version before this call
Wraps dcgmRunDiagnostic.
func RunMnDiagnostic ¶
func RunMnDiagnostic(pDcgmHandle Handle, drmnd *RunMnDiagV2, response *MnDiagResponseV2) error
RunMnDiagnostic Run a multi-node diagnostic test
- pDcgmHandle: IN: DCGM Handle
- drmnd: IN: Multi-node diagnostic parameters. See RunMnDiagV2
- response: OUT: Result of running the multi-node diagnostic. See MnDiagResponseV2
Wraps dcgmRunMnDiagnostic.
func SelectGpusByTopology ¶
func SelectGpusByTopology(pDcgmHandle Handle, inputGpuIds uint64, numGpus uint32, outputGpuIds *uint64, hintFlags uint64) error
SelectGpusByTopology gets the best group of gpus from the specified bitmask according to topological proximity: cpuAffinity, NUMA node, and NVLink.
- pDcgmHandle: IN: DCGM Handle
- inputGpuIds: IN: a bitmask of which GPUs DCGM should consider. If some of the GPUs on the system are already in use, they shouldn't be included in the bitmask. 0 means that all of the GPUs in the system should be considered
- numGpus: IN: the number of GPUs that are desired from inputGpuIds. If this number is greater than the number of healthy GPUs in inputGpuIds, then less than numGpus gpus will be specified in outputGpuIds
- outputGpuIds: OUT: a bitmask of numGpus or fewer GPUs from inputGpuIds that represent the best placement available from inputGpuIds
- hintFlags: IN: a bitmask of DCGM_TOPO_HINT_F_ #defines of hints that should be taken into account when assigning outputGpuIds
Wraps dcgmSelectGpusByTopology.
func Shutdown ¶
func Shutdown() error
Shutdown is used to shut down DCGM.
Any embedded host engines or remote connections will automatically be shut down as well.
Wraps dcgmShutdown.
func StartEmbeddedV2 ¶
func StartEmbeddedV2(params *StartEmbeddedV2ParamsV1) error
StartEmbeddedV2 starts an embedded host engine agent within this process.
The agent is loaded as a shared library. This mode is provided to avoid any extra jitter associated with an additional autonomous agent needs to be managed. In this mode, the user has to periodically call APIs such as Handle.PolicyTrigger and Handle.UpdateAllFields which tells DCGM to wake up and perform data collection and operations needed for policy management.
- params: in,out A pointer to either StartEmbeddedV2ParamsV1 or StartEmbeddedV2ParamsV2
Wraps dcgmStartEmbedded_v2.
func StatusClear ¶
func StatusClear(statusHandle StatusHandle) error
StatusClear is used to clear all the errors in the status handle created by the API NewStatusHandle.
After one set of operation, the statusHandle can be cleared and reused for the next set of operation.
- statusHandle: IN: Handle to list of statuses
Wraps dcgmStatusClear.
func StatusDestroy ¶
func StatusDestroy(statusHandle StatusHandle) error
StatusDestroy is used to destroy status handle created using NewStatusHandle.
- statusHandle: IN: Handle to list of statuses
Wraps dcgmStatusDestroy.
func StatusGetCount ¶
func StatusGetCount(statusHandle StatusHandle) (uint32, error)
StatusGetCount is used to get count of error entries stored inside the opaque handle statusHandle.
- statusHandle: IN: Handle to list of statuses
- count: OUT: Number of error entries present in the list of statuses
Wraps dcgmStatusGetCount.
func StatusPopError ¶
func StatusPopError(statusHandle StatusHandle, pDcgmErrorInfo *ErrorInfo) error
StatusPopError is used to iterate through the list of errors maintained behind statusHandle.
The method pops the first error from the list of DCGM statuses. In order to iterate through all the errors, the user can invoke this API for the number of errors or until all the errors are fetched.
- statusHandle: IN: Handle to list of statuses
- pDcgmErrorInfo: OUT: First error from the list of statuses
Wraps dcgmStatusPopError.
func StopDiagnostic ¶
StopDiagnostic stops a diagnostic if there is one currently running.
- pDcgmHandle: IN: DCGM Handle
Wraps dcgmStopDiagnostic.
func StopEmbedded ¶
StopEmbedded stops the embedded host engine within this process that was started with StartEmbedded
- pDcgmHandle: IN : DCGM Handle of the embedded host engine that came from StartEmbedded
Wraps dcgmStopEmbedded.
func StopMnDiagnostic ¶
StopMnDiagnostic stops a multi-node diagnostic if there is one currently running.
- pDcgmHandle: IN: DCGM Handle
Wraps dcgmStopMnDiagnostic.
func UnwatchFields ¶
UnwatchFields requests that DCGM stop recording updates for a given field collection.
- pDcgmHandle: IN: DCGM Handle
- groupId: IN: Group ID representing collection of one or more entities. Look at Handle.GroupCreate for details on creating the group. Alternatively, pass in the group id as GroupAllGPUs to perform operation on all the GPUs or GroupAllNvSwitches to to perform the operation on all NvSwitches
- fieldGroupId: IN: Fields to unwatch
Wraps dcgmUnwatchFields.
func UpdateAllFields ¶
UpdateAllFields is used to tell the DCGM module to update all the fields being watched.
Note: If the if the operation mode was set to manual mode (OperationModeManual) during initialization (Init), this method must be caused periodically to allow field value watches the opportunity to gather samples.
- pDcgmHandle: IN: DCGM Handle
- waitForUpdate: IN: Whether or not to wait for the update loop to complete before returning to the caller 1=wait. 0=do not wait
Wraps dcgmUpdateAllFields.
func VersionInfo ¶
func VersionInfo(pVersionInfo *VersionInfoStruct) error
VersionInfo is used to return information about the build environment where DCGM was built.
- pVersionInfo: OUT: Build environment information
Wraps dcgmVersionInfo.
func WatchFields ¶
func WatchFields(pDcgmHandle Handle, groupId GpuGrp, fieldGroupId FieldGrp, updateFreq int64, maxKeepAge float64, maxKeepSamples int32) error
WatchFields requests that DCGM start recording updates for a given field collection.
Note that the first update of the field will not occur until the next field update cycle. To force a field update cycle, call Handle.UpdateAllFields(1).
- pDcgmHandle: IN: DCGM Handle
- groupId: IN: Group ID representing collection of one or more entities. Look at Handle.GroupCreate for details on creating the group. Alternatively, pass in the group id as GroupAllGPUs to perform operation on all the GPUs or GroupAllNvSwitches to to perform the operation on all NvSwitches
- fieldGroupId: IN: Fields to watch
- updateFreq: IN: How often to update this field in usec
- maxKeepAge: IN: How long to keep data for this field in seconds
- maxKeepSamples: IN: Maximum number of samples to keep. 0=no limit
Wraps dcgmWatchFields.
func WatchJobFields ¶
func WatchJobFields(pDcgmHandle Handle, groupId GpuGrp, updateFreq int64, maxKeepAge float64, maxKeepSamples int32) error
WatchJobFields requests that DCGM start recording stats for fields that are queried with Handle.JobGetStats
Note that the first update of the field will not occur until the next field update cycle. To force a field update cycle, call Handle.UpdateAllFields(1).
- pDcgmHandle: IN: DCGM Handle
- groupId: IN: Group ID representing collection of one or more GPUs. Look at Handle.GroupCreate for details on creating the group. Alternatively, pass in the group id as GroupAllGPUs to perform operation on all the GPUs
- updateFreq: IN: How often to update this field in usec
- maxKeepAge: IN: How long to keep data for this field in seconds
- maxKeepSamples: IN: Maximum number of samples to keep. 0=no limit
Wraps dcgmWatchJobFields.
func WatchPidFields ¶
func WatchPidFields(pDcgmHandle Handle, groupId GpuGrp, updateFreq int64, maxKeepAge float64, maxKeepSamples int32) error
WatchPidFields requests that DCGM start recording stats for fields that can be queried with Handle.PidInfo.
Note that the first update of the field will not occur until the next field update cycle. To force a field update cycle, call Handle.UpdateAllFields(1).
- pDcgmHandle: IN: DCGM Handle
- groupId: IN: Group ID representing collection of one or more GPUs. Look at Handle.GroupCreate for details on creating the group. Alternatively, pass in the group id as GroupAllGPUs to perform operation on all the GPUs
- updateFreq: IN: How often to update this field in usec
- maxKeepAge: IN: How long to keep data for this field in seconds
- maxKeepSamples: IN: Maximum number of samples to keep. 0=no limit
Wraps dcgmWatchPidFields.
Types ¶
type AllFieldGroup ¶
type AllFieldGroup struct {
Version uint32
NumFieldGroups uint32
FieldGroups [64]FieldGroupInfo
}
AllFieldGroup represents dcgmAllFieldGroup_v1.
type AllFieldGroupV1 ¶
type AllFieldGroupV1 = AllFieldGroup
AllFieldGroupV1 is an alias for AllFieldGroup.
type BindFailure ¶
BindFailure names a symbol the loaded library exports but that could not be bound, and why.
func BindFailures ¶
func BindFailures() []BindFailure
BindFailures returns the symbols the loaded library exports that could not be bound, sorted by symbol name, or nil if every exported symbol bound. Calling one of these reports *SymbolError with the same Err.
A load that reports no error can still leave symbols unbound: the library is fine and the signatures are not representable here. Call this after Load to find that out at once rather than one call site at a time. It does not trigger a load, and returns nil if none has happened.
type BindUnbindEventState ¶
type BindUnbindEventState int32
BindUnbindEventState represents dcgmBindUnbindEventState_t.
const ( DcgmBUEventStateSystemReinitializing BindUnbindEventState = 1 DcgmBUEventStateSystemReinitializationCompleted BindUnbindEventState = 2 )
func (BindUnbindEventState) String ¶
func (e BindUnbindEventState) String() string
String returns the constant name, or a numeric representation for unknown values.
type CallError ¶
CallError reports that a library call returned a failure result.
Unwrap returns Result, so errors.Is(err, c) reports whether the call returned the Result constant c, and errors.As(err, &r) with r of type Result recovers the code.
type ChipArchitecture ¶
type ChipArchitecture uint32
ChipArchitecture represents simplified chip architecture.
Note that these are made to match nvmlChipArchitecture_t and thus do not start at 0.
const ( ChipArchOlder ChipArchitecture = 1 // All GPUs older than Kepler ChipArchKepler ChipArchitecture = 2 // All Kepler-architecture parts ChipArchMaxwell ChipArchitecture = 3 // All Maxwell-architecture parts ChipArchPascal ChipArchitecture = 4 // All Pascal-architecture parts ChipArchVolta ChipArchitecture = 5 // All Volta-architecture parts ChipArchTuring ChipArchitecture = 6 // All Turing-architecture parts ChipArchAmpere ChipArchitecture = 7 // All Ampere-architecture parts ChipArchAda ChipArchitecture = 8 // All Ada-architecture parts ChipArchHopper ChipArchitecture = 9 // All Hopper-architecture parts ChipArchBlackwell ChipArchitecture = 10 // All Blackwell-architecture parts ChipArchCount ChipArchitecture = 10 // Keep this 2nd to last, exclude unknown ChipArchUnknown ChipArchitecture = 0xffffffff // Anything else, presumably something newer )
func GetGpuChipArchitecture ¶
func GetGpuChipArchitecture(dcgmHandle Handle, gpuId uint32) (ChipArchitecture, error)
GetGpuChipArchitecture gets simplified GPU chip architecture enumeration.
- dcgmHandle: IN: DCGM Handle
- gpuId: IN: DCGM GPU Id
- chipArchitecture: OUT: GPU chip architecture enumeration value
Wraps dcgmGetGpuChipArchitecture.
func (ChipArchitecture) String ¶
func (e ChipArchitecture) String() string
String returns the constant name, or a numeric representation for unknown values.
type ClockSet ¶
ClockSet represents a set of memory, SM, and video clocks for a device.
This can be current values or a target values based on context.
type ComputeInstanceProfileInfo ¶
type ComputeInstanceProfileInfo struct {
Version uint32
GpuInstanceId uint32
Id uint32
SliceCount uint32
InstanceCount uint32
MultiprocessorCount uint32
}
ComputeInstanceProfileInfo represents compute instance profile information.
type ComputeInstanceProfileInfoV1 ¶
type ComputeInstanceProfileInfoV1 = ComputeInstanceProfileInfo
ComputeInstanceProfileInfoV1 is an alias for ComputeInstanceProfileInfo.
type ComputeInstanceProfiles ¶
type ComputeInstanceProfiles struct {
Version uint32
ProfileCount uint32
ProfileInfo ComputeInstanceProfileInfo
}
ComputeInstanceProfiles represents compute instance profiles.
type ComputeInstanceProfilesV1 ¶
type ComputeInstanceProfilesV1 = ComputeInstanceProfiles
ComputeInstanceProfilesV1 is an alias for ComputeInstanceProfiles.
type Config ¶
type Config struct {
Version uint32
GpuId uint32
EccMode uint32
ComputeMode uint32
PerfState ConfigPerfStateSettings
PowerLimit ConfigPowerLimit
WorkloadPowerProfiles [8]uint32
}
Config represents dcgmConfig_v2.
type ConfigPerfStateSettings ¶
ConfigPerfStateSettings represents used to represent Performance state settings.
type ConfigPowerLimit ¶
type ConfigPowerLimit struct {
Type ConfigPowerLimitType
Val uint32
}
ConfigPowerLimit represents used to represents the power capping limit for each GPU in the group or to represent the power budget for the entire group.
type ConfigPowerLimitType ¶
type ConfigPowerLimitType int32
ConfigPowerLimitType represents the power cap for each member of the group.
const ( ConfigPowerCapIndividual ConfigPowerLimitType = 0 // Represents the power cap to be applied for each member of the group ConfigPowerBudgetGroup ConfigPowerLimitType = 1 // Represents the power budget for the entire group )
func (ConfigPowerLimitType) String ¶
func (e ConfigPowerLimitType) String() string
String returns the constant name, or a numeric representation for unknown values.
type ConfigType ¶
type ConfigType int32
ConfigType represents the type of configuration to be fetched from the GPUs.
const ( ConfigTargetState ConfigType = 0 // The target configuration values to be applied ConfigCurrentState ConfigType = 1 // The current configuration state )
func (ConfigType) String ¶
func (e ConfigType) String() string
String returns the constant name, or a numeric representation for unknown values.
type ConfigV1 ¶
type ConfigV1 struct {
Version uint32
GpuId uint32
EccMode uint32
ComputeMode uint32
PerfState ConfigPerfStateSettings
PowerLimit ConfigPowerLimit
}
ConfigV1 represents default and target configuration for a device.
type ConnectOptions ¶
type ConnectOptions struct {
// Timeout bounds the connection attempt. Zero leaves DCGM's default,
// which the header does not state; pass an explicit value when the
// caller has a deadline of its own.
Timeout time.Duration
// UnixSocket says the address is a filesystem socket path rather than a
// TCP/IP address.
UnixSocket bool
// PersistAfterDisconnect leaves the watches this connection created in
// place after it goes away.
//
// It is false by default, and that default is the safe one. DCGM
// normally removes a connection's watches when the connection ends, so
// a crash or a missed Close does not leave this program's watches
// running on a host engine it no longer talks to. Setting it true makes
// those watches outlive the process, and nothing in this package can
// then remove them.
PersistAfterDisconnect bool
}
ConnectOptions are the options for Connect. The zero value connects to a TCP/IP address with DCGM's own timeout and does not persist state.
type ConnectV2Params ¶
type ConnectV2Params struct {
Version uint32
PersistAfterDisconnect uint32
TimeoutMs uint32
AddressIsUnixSocket uint32
}
ConnectV2Params represents connection options for ConnectV2 (v2).
type ConnectV2ParamsV1
deprecated
ConnectV2ParamsV1 represents connection options for ConnectV2 (v1).
Deprecated: Use ConnectV2Params instead.
type ConnectV2ParamsV2 ¶
type ConnectV2ParamsV2 = ConnectV2Params
ConnectV2ParamsV2 is an alias for ConnectV2Params.
type ConnectV3Params ¶
ConnectV3Params represents connection options for ConnectV3 (v1).
type ConnectV3ParamsV1 ¶
type ConnectV3ParamsV1 = ConnectV3Params
ConnectV3ParamsV1 is an alias for ConnectV3Params.
type CpuHierarchy ¶
type CpuHierarchy struct {
Version uint32
NumCpus uint32
Cpus [8]CpuHierarchyCpuV2
}
CpuHierarchy represents dcgmCpuHierarchy_v2.
type CpuHierarchyCpuV1 ¶
type CpuHierarchyCpuV1 struct {
CpuId uint32
OwnedCores CpuHierarchyOwnedCores
}
CpuHierarchyCpuV1 represents dcgmCpuHierarchyCpu_v1.
type CpuHierarchyCpuV2 ¶
type CpuHierarchyCpuV2 struct {
CpuId uint32
OwnedCores CpuHierarchyOwnedCores
Serial [256]byte
}
CpuHierarchyCpuV2 represents dcgmCpuHierarchyCpu_v2.
type CpuHierarchyOwnedCores ¶
CpuHierarchyOwnedCores represents dcgmCpuHierarchyOwnedCores_v1.
type CpuHierarchyOwnedCoresV1 ¶
type CpuHierarchyOwnedCoresV1 = CpuHierarchyOwnedCores
CpuHierarchyOwnedCoresV1 is an alias for CpuHierarchyOwnedCores.
type CpuHierarchyV1 ¶
type CpuHierarchyV1 struct {
Version uint32
NumCpus uint32
Cpus [8]CpuHierarchyCpuV1
}
CpuHierarchyV1 represents hierarchy of CPUs and their cores.
type CpuHierarchyV2 ¶
type CpuHierarchyV2 = CpuHierarchy
CpuHierarchyV2 is an alias for CpuHierarchy.
type DeviceAttributes ¶
type DeviceAttributes struct {
Version uint32
ClockSets DeviceSupportedClockSets
ThermalSettings DeviceThermals
PowerLimits DevicePowerLimits
Identifiers DeviceIdentifiers
MemoryUsage DeviceMemoryUsage
Settings DeviceSettings
}
DeviceAttributes represents dcgmDeviceAttributes_v3.
type DeviceAttributesV3 ¶
type DeviceAttributesV3 = DeviceAttributes
DeviceAttributesV3 is an alias for DeviceAttributes.
type DeviceEncStats ¶
type DeviceEncStats struct {
Version uint32
SessionCount uint32
AverageFps uint32
AverageLatency uint32
}
DeviceEncStats represents current encoder statistics for the given device/vGPU instance.
type DeviceEncStatsV1 ¶
type DeviceEncStatsV1 = DeviceEncStats
DeviceEncStatsV1 is an alias for DeviceEncStats.
type DeviceFbcSessionInfo ¶
type DeviceFbcSessionInfo struct {
Version uint32
SessionId uint32
Pid uint32
VgpuId uint32
DisplayOrdinal uint32
SessionType FBCSessionType
SessionFlags uint32
HMaxResolution uint32
VMaxResolution uint32
HResolution uint32
VResolution uint32
AverageFps uint32
AverageLatency uint32
}
DeviceFbcSessionInfo represents information about active FBC session on the given device/vGPU instance.
type DeviceFbcSessionInfoV1 ¶
type DeviceFbcSessionInfoV1 = DeviceFbcSessionInfo
DeviceFbcSessionInfoV1 is an alias for DeviceFbcSessionInfo.
type DeviceFbcSessions ¶
type DeviceFbcSessions struct {
Version uint32
SessionCount uint32
SessionInfo [256]DeviceFbcSessionInfo
}
DeviceFbcSessions represents all the active FBC sessions on the given device/vGPU instance.
type DeviceFbcSessionsV1 ¶
type DeviceFbcSessionsV1 = DeviceFbcSessions
DeviceFbcSessionsV1 is an alias for DeviceFbcSessions.
type DeviceFbcStats ¶
type DeviceFbcStats struct {
Version uint32
SessionCount uint32
AverageFps uint32
AverageLatency uint32
}
DeviceFbcStats represents current frame buffer capture sessions statistics for the given device/vGPU instance.
type DeviceFbcStatsV1 ¶
type DeviceFbcStatsV1 = DeviceFbcStats
DeviceFbcStatsV1 is an alias for DeviceFbcStats.
type DeviceIdentifiers ¶
type DeviceIdentifiers struct {
Version uint32
BrandName [256]byte
DeviceName [256]byte
PciBusId [256]byte
Serial [256]byte
Uuid [256]byte
Vbios [256]byte
InforomImageVersion [256]byte
PciDeviceId uint32
PciSubSystemId uint32
DriverVersion [256]byte
VirtualizationMode uint32
}
DeviceIdentifiers represents device identifiers.
type DeviceIdentifiersV1 ¶
type DeviceIdentifiersV1 = DeviceIdentifiers
DeviceIdentifiersV1 is an alias for DeviceIdentifiers.
type DeviceMemoryUsage ¶
type DeviceMemoryUsage struct {
Version uint32
Bar1Total uint32
FbTotal uint32
FbUsed uint32
FbFree uint32
}
DeviceMemoryUsage represents device memory and usage.
type DeviceMemoryUsageV1 ¶
type DeviceMemoryUsageV1 = DeviceMemoryUsage
DeviceMemoryUsageV1 is an alias for DeviceMemoryUsage.
type DeviceMigAttributes ¶
type DeviceMigAttributes struct {
Version uint32
MigDevicesCount uint32
MigAttributesInfo DeviceMigAttributesInfo
}
DeviceMigAttributes represents attributes for a MIG device.
type DeviceMigAttributesInfo ¶
type DeviceMigAttributesInfo struct {
Version uint32
GpuInstanceId uint32
ComputeInstanceId uint32
MultiprocessorCount uint32
GpuInstanceSliceCount uint32
ComputeInstanceSliceCount uint32
MemorySizeMB uint64
}
DeviceMigAttributesInfo represents attributes info for a MIG device.
type DeviceMigAttributesInfoV1 ¶
type DeviceMigAttributesInfoV1 = DeviceMigAttributesInfo
DeviceMigAttributesInfoV1 is an alias for DeviceMigAttributesInfo.
type DeviceMigAttributesV1 ¶
type DeviceMigAttributesV1 = DeviceMigAttributes
DeviceMigAttributesV1 is an alias for DeviceMigAttributes.
type DevicePidAccountingStats ¶
type DevicePidAccountingStats struct {
Version uint32
Pid uint32
GpuUtilization uint32
MemoryUtilization uint32
MaxMemoryUsage uint64
StartTimestamp uint64
ActiveTimeUsec uint64
}
DevicePidAccountingStats represents accounting data for one process.
type DevicePidAccountingStatsV1 ¶
type DevicePidAccountingStatsV1 = DevicePidAccountingStats
DevicePidAccountingStatsV1 is an alias for DevicePidAccountingStats.
type DevicePowerLimits ¶
type DevicePowerLimits struct {
Version uint32
CurPowerLimit uint32
DefaultPowerLimit uint32
EnforcedPowerLimit uint32
MinPowerLimit uint32
MaxPowerLimit uint32
}
DevicePowerLimits represents various power limits.
type DevicePowerLimitsV1 ¶
type DevicePowerLimitsV1 = DevicePowerLimits
DevicePowerLimitsV1 is an alias for DevicePowerLimits.
type DeviceSettings ¶
type DeviceSettings struct {
Version uint32
PersistenceModeEnabled uint32
MigModeEnabled uint32
ConfidentialComputeMode uint32
}
DeviceSettings represents dcgmDeviceSettings_v2.
type DeviceSettingsV2 ¶
type DeviceSettingsV2 = DeviceSettings
DeviceSettingsV2 is an alias for DeviceSettings.
type DeviceSupportedClockSets ¶
DeviceSupportedClockSets represents list of supported clock sets for a device.
type DeviceSupportedClockSetsV1 ¶
type DeviceSupportedClockSetsV1 = DeviceSupportedClockSets
DeviceSupportedClockSetsV1 is an alias for DeviceSupportedClockSets.
type DeviceSupportedVgpuTypeInfo ¶
type DeviceSupportedVgpuTypeInfo struct {
Version uint32
DeviceId uint64
SubsystemId uint64
NumDisplayHeads uint32
MaxInstances uint32
FrameRateLimit uint32
MaxResolutionX uint32
MaxResolutionY uint32
FbTotal uint64
GpuInstanceProfileId uint32
}
DeviceSupportedVgpuTypeInfo represents the info related to vGPUs supported on the device.
type DeviceSupportedVgpuTypeInfoV1 ¶
type DeviceSupportedVgpuTypeInfoV1 = DeviceSupportedVgpuTypeInfo
DeviceSupportedVgpuTypeInfoV1 is an alias for DeviceSupportedVgpuTypeInfo.
type DeviceThermals ¶
DeviceThermals represents thermal information.
type DeviceThermalsV1 ¶
type DeviceThermalsV1 = DeviceThermals
DeviceThermalsV1 is an alias for DeviceThermals.
type DeviceTopology ¶
type DeviceTopology struct {
Version uint32
CpuAffinityMask [8]uint
NumGpus uint32
GpuPaths [31][3]uint64
}
DeviceTopology represents device topology information with 64-bit topology path and NvLink link-id masks.
type DeviceTopologyV1 ¶
type DeviceTopologyV1 struct {
Version uint32
CpuAffinityMask [8]uint
NumGpus uint32
GpuPaths [31][3]uint32
}
DeviceTopologyV1 represents device topology information.
type DeviceTopologyV2 ¶
type DeviceTopologyV2 = DeviceTopology
DeviceTopologyV2 is an alias for DeviceTopology.
type DeviceVgpuEncSessions ¶
type DeviceVgpuEncSessions struct {
Version uint32
EncoderSessionInfo [1]uint32
SessionId uint32
Pid uint32
CodecType EncoderType
HResolution uint32
VResolution uint32
AverageFps uint32
AverageLatency uint32
}
DeviceVgpuEncSessions represents information about active encoder sessions on the given vGPU instance.
type DeviceVgpuEncSessionsV1 ¶
type DeviceVgpuEncSessionsV1 = DeviceVgpuEncSessions
DeviceVgpuEncSessionsV1 is an alias for DeviceVgpuEncSessions.
type DeviceVgpuProcessUtilInfo ¶
type DeviceVgpuProcessUtilInfo struct {
Version uint32
VgpuProcessUtilInfo [1]uint32
Pid uint32
ProcessName [64]byte
SmUtil uint32
MemUtil uint32
EncUtil uint32
DecUtil uint32
}
DeviceVgpuProcessUtilInfo represents utilization values for processes running in vGPU VMs using the device.
type DeviceVgpuProcessUtilInfoV1 ¶
type DeviceVgpuProcessUtilInfoV1 = DeviceVgpuProcessUtilInfo
DeviceVgpuProcessUtilInfoV1 is an alias for DeviceVgpuProcessUtilInfo.
type DeviceVgpuTypeInfo ¶
type DeviceVgpuTypeInfo struct {
Version uint32
VgpuTypeInfo [1]uint32
VgpuTypeName [64]byte
VgpuTypeClass [64]byte
VgpuTypeLicense [128]byte
DeviceId int32
SubsystemId int32
NumDisplayHeads int32
MaxInstances int32
FrameRateLimit int32
MaxResolutionX int32
MaxResolutionY int32
FbTotal int32
GpuInstanceProfileId int32
}
DeviceVgpuTypeInfo represents dcgmDeviceVgpuTypeInfo_v2.
type DeviceVgpuTypeInfoV1 ¶
type DeviceVgpuTypeInfoV1 struct {
Version uint32
VgpuTypeInfo [1]uint32
VgpuTypeName [64]byte
VgpuTypeClass [64]byte
VgpuTypeLicense [128]byte
DeviceId int32
SubsystemId int32
NumDisplayHeads int32
MaxInstances int32
FrameRateLimit int32
MaxResolutionX int32
MaxResolutionY int32
FbTotal int32
}
DeviceVgpuTypeInfoV1 represents static info related to vGPUs supported on the device.
type DeviceVgpuTypeInfoV2 ¶
type DeviceVgpuTypeInfoV2 = DeviceVgpuTypeInfo
DeviceVgpuTypeInfoV2 is an alias for DeviceVgpuTypeInfo.
type DeviceVgpuUtilInfo ¶
type DeviceVgpuUtilInfo struct {
Version uint32
VgpuId uint32
SmUtil uint32
MemUtil uint32
EncUtil uint32
DecUtil uint32
}
DeviceVgpuUtilInfo represents utilization values for vGPUs running on the device.
type DeviceVgpuUtilInfoV1 ¶
type DeviceVgpuUtilInfoV1 = DeviceVgpuUtilInfo
DeviceVgpuUtilInfoV1 is an alias for DeviceVgpuUtilInfo.
type DeviceWorkloadPowerProfilesStatus ¶
type DeviceWorkloadPowerProfilesStatus struct {
Version uint32
ProfileMask [8]uint32
RequestedProfileMask [8]uint32
EnforcedProfileMask [8]uint32
}
DeviceWorkloadPowerProfilesStatus represents device workload profile information.
type DeviceWorkloadPowerProfilesStatusV1 ¶
type DeviceWorkloadPowerProfilesStatusV1 = DeviceWorkloadPowerProfilesStatus
DeviceWorkloadPowerProfilesStatusV1 is an alias for DeviceWorkloadPowerProfilesStatus.
type DiagEntityResultV1 ¶
type DiagEntityResultV1 struct {
Entity GroupEntityPair
Result DiagResult
TestId uint32
}
DiagEntityResultV1 represents diagnostic plugin per-entity error results v1.
Since DCGM 4.0 See also PluginInterface.h: dcgmDiagEntityResults_v1.
type DiagEntityV1 ¶
type DiagEntityV1 struct {
Entity GroupEntityPair
SerialNum [256]byte
SkuDeviceId [5]byte
}
DiagEntityV1 represents additional entity details for entity-centric diagnostic run.
Since DCGM 4.0.
type DiagErrorDetail ¶
DiagErrorDetail represents dcgmDiagErrorDetail_t.
type DiagErrorDetailV2 ¶
type DiagErrorDetailV2 struct {
Msg [512]byte
GpuId int32
Code uint32
Category uint32
Severity uint32
}
DiagErrorDetailV2 represents error details.
Since DCGM 3.3.
type DiagErrorV1 ¶
type DiagErrorV1 struct {
Entity GroupEntityPair
Code uint32
Category uint32
Severity uint32
Msg [512]byte
TestId uint32
}
DiagErrorV1 represents diagnostic plugin per-entity error results v1.
Since DCGM 4.0.
type DiagInfoV1 ¶
type DiagInfoV1 struct {
Entity GroupEntityPair
Msg [512]byte
TestId uint32
}
DiagInfoV1 represents diagnostic plugin per-entity info results v1.
Since DCGM 4.0.
type DiagResponse ¶
type DiagResponse struct {
Version uint32
NumTests uint8
NumErrors uint8
NumInfo uint8
NumCategories uint8
NumEntities uint16
NumResults uint16
Tests [20]DiagTestRunV2
Entities [1024]DiagEntityV1
Errors [32]DiagErrorV1
Info [128]DiagInfoV1
Results [20480]DiagEntityResultV1
Categories [5][20]byte
DcgmVersion [12]byte
DriverVersion [256]byte
Unused [621952]byte
}
DiagResponse represents global diagnostics result structure v12.
Since DCGM 4.2.
Note: This structure is not byte-for-byte compatible with v11. Conversion is required.
type DiagResponsePerGpuV3 ¶
type DiagResponsePerGpuV3 struct {
GpuId uint32
HwDiagnosticReturn uint32
Results [9]DiagTestResultV2
}
DiagResponsePerGpuV3 represents per gpu response structure v3.
Since DCGM 2.4.
type DiagResponsePerGpuV4 ¶
type DiagResponsePerGpuV4 struct {
GpuId uint32
HwDiagnosticReturn uint32
Results [13]DiagTestResultV2
}
DiagResponsePerGpuV4 represents per GPU diagnostics result structure.
type DiagResponsePerGpuV5 ¶
type DiagResponsePerGpuV5 struct {
GpuId uint32
HwDiagnosticReturn uint32
Results [13]DiagTestResultV3
}
DiagResponsePerGpuV5 represents dcgmDiagResponsePerGpu_v5.
type DiagResponseV7 ¶
type DiagResponseV7 struct {
Version uint32
GpuCount uint32
LevelOneTestCount uint32
LevelOneResults [16]DiagTestResultV2
PerGpuResponses [32]DiagResponsePerGpuV3
SystemError DiagErrorDetail
Unused [1024]byte
}
DiagResponseV7 represents global diagnostics result structure v7.
Since DCGM 2.4.
type DiagResponseV8 ¶
type DiagResponseV8 struct {
Version uint32
GpuCount uint32
LevelOneTestCount uint32
LevelOneResults [16]DiagTestResultV2
PerGpuResponses [32]DiagResponsePerGpuV4
SystemError DiagErrorDetail
DevIds [32][5]byte
DcgmVersion [12]byte
DriverVersion [256]byte
Unused [596]byte
}
DiagResponseV8 represents global diagnostics result structure v8.
Since DCGM 3.0.
type DiagResponseV9 ¶
type DiagResponseV9 struct {
Version uint32
GpuCount uint32
LevelOneTestCount uint32
LevelOneResults [16]DiagTestResultV3
PerGpuResponses [32]DiagResponsePerGpuV5
SystemError DiagErrorDetailV2
DevIds [32][5]byte
DevSerials [32][256]byte
DcgmVersion [12]byte
DriverVersion [256]byte
Unused [596]byte
}
DiagResponseV9 represents global diagnostics result structure v9.
Since DCGM 3.3.
type DiagResponseV10
deprecated
type DiagResponseV10 struct {
Version uint32
GpuCount uint32
LevelOneTestCount uint32
LevelOneResults [16]DiagTestResultV3
PerGpuResponses [32]DiagResponsePerGpuV5
SystemError DiagErrorDetailV2
DevIds [32][5]byte
DevSerials [32][256]byte
DcgmVersion [12]byte
DriverVersion [256]byte
AuxDataPerTest [13]DiagTestAuxDataV1
}
DiagResponseV10 represents global diagnostics result structure v10 Since DCGM 3.3.7.
Deprecated: Use DiagResponse instead.
type DiagResponseV11
deprecated
type DiagResponseV11 struct {
Version uint32
NumTests uint8
NumErrors uint8
NumInfo uint8
NumCategories uint8
NumEntities uint16
NumResults uint16
Tests [20]DiagTestRunV1
Entities [1024]DiagEntityV1
Errors [32]DiagErrorV1
Info [16]DiagInfoV1
Results [20480]DiagEntityResultV1
Categories [5][20]byte
DcgmVersion [12]byte
DriverVersion [256]byte
Unused [682880]byte
}
DiagResponseV11 represents global diagnostics result structure v11 Since DCGM 4.0.
Deprecated: Use DiagResponse instead.
type DiagResponseV12 ¶
type DiagResponseV12 = DiagResponse
DiagResponseV12 is an alias for DiagResponse.
type DiagResult ¶
type DiagResult int32
DiagResult represents diagnostic test results.
const ( DiagResultPass DiagResult = 0 // This test passed as diagnostics DiagResultSkip DiagResult = 1 // This test was skipped DiagResultWarn DiagResult = 2 // This test passed with warnings DiagResultFail DiagResult = 3 // This test failed the diagnostics DiagResultNotRun DiagResult = 4 // This test wasn't executed )
func (DiagResult) String ¶
func (e DiagResult) String() string
String returns the constant name, or a numeric representation for unknown values.
type DiagStatus ¶
type DiagStatus struct {
Version uint32
TotalTests uint32
CompletedTests uint32
TestName [128]byte
ErrorCode uint32
}
DiagStatus represents diagnostics live status structure v1.
Since DCGM 4.0.
type DiagTestAuxDataV1 ¶
DiagTestAuxDataV1 represents per test aux data structure v1.
Since DCGM 4.0.
type DiagTestResultV2 ¶
type DiagTestResultV2 struct {
Status DiagResult
Error DiagErrorDetail
Info [1024]byte
}
DiagTestResultV2 represents dcgmDiagTestResult_v2.
type DiagTestResultV3 ¶
type DiagTestResultV3 struct {
Status DiagResult
Error [5]DiagErrorDetailV2
Info [512]byte
}
DiagTestResultV3 represents dcgmDiagTestResult_v3.
type DiagTestRunV1
deprecated
type DiagTestRunV1 struct {
Name [32]byte
PluginName [32]byte
Result DiagResult
NumErrors uint8
NumInfo uint8
CategoryIndex uint8
Unused uint8
NumResults uint16
ErrorIndices [32]uint8
InfoIndices [16]uint8
ResultIndices [1024]uint16
AuxData DiagTestAuxDataV1
}
DiagTestRunV1 represents information about each test run.
Since DCGM 4.0.
Deprecated: Use DiagTestRunV2 instead.
type DiagTestRunV2 ¶
type DiagTestRunV2 struct {
Name [32]byte
PluginName [32]byte
Result DiagResult
NumErrors uint8
NumInfo uint8
CategoryIndex uint8
Unused uint8
NumResults uint16
ErrorIndices [32]uint8
InfoIndices [128]uint8
ResultIndices [1024]uint16
AuxData DiagTestAuxDataV1
}
DiagTestRunV2 represents information about each test run.
Since DCGM 4.2.
Note: This structure is not byte-for-byte compatible with v1. Conversion is required.
type DiagnosticLevel ¶
type DiagnosticLevel int32
DiagnosticLevel is an enumeration for diagnostic levels.
const ( DiagLvlInvalid DiagnosticLevel = 0 // Uninitialized DiagLvlShort DiagnosticLevel = 10 // run a very basic health check on the system DiagLvlMed DiagnosticLevel = 20 // run a medium-length diagnostic (a few minutes) DiagLvlLong DiagnosticLevel = 30 // run a extensive diagnostic (several minutes) DiagLvlXlong DiagnosticLevel = 40 // run a very extensive diagnostic (many minutes) )
func (DiagnosticLevel) String ¶
func (e DiagnosticLevel) String() string
String returns the constant name, or a numeric representation for unknown values.
type EncoderType ¶
type EncoderType int32
EncoderType represents dcgmEncoderType_t.
const ( EncoderQueryH264 EncoderType = 0 EncoderQueryHevc EncoderType = 1 )
func (EncoderType) String ¶
func (e EncoderType) String() string
String returns the constant name, or a numeric representation for unknown values.
type EntityStatus ¶
type EntityStatus int32
EntityStatus represents status of an entity (GPU, NvSwitch, etc.).
const ( DcgmEntityStatusUnknown EntityStatus = 0 // Entity has not been referenced yet DcgmEntityStatusOk EntityStatus = 1 // Entity is known and OK DcgmEntityStatusUnsupported EntityStatus = 2 // Entity is unsupported by DCGM DcgmEntityStatusInaccessible EntityStatus = 3 // Entity is inaccessible, usually due to cgroups DcgmEntityStatusLost EntityStatus = 4 // Entity has been lost. Usually set from NVML returning NVML_ERROR_GPU_IS_LOST DcgmEntityStatusFake EntityStatus = 5 // Entity is a fake, injection-only entity for testing DcgmEntityStatusDisabled EntityStatus = 6 // Don't collect values from this GPU DcgmEntityStatusDetached EntityStatus = 7 // Entity is detached, not good for any uses )
func GetGpuStatus ¶
func GetGpuStatus(pDcgmHandle Handle, gpuId uint32) (EntityStatus, error)
GetGpuStatus gets the status of a GPU
- pDcgmHandle: in DCGM Handle of an active connection
- gpuId: in GPU ID to query status for
- status: out The GPU status
Wraps dcgmGetGpuStatus.
func (EntityStatus) String ¶
func (e EntityStatus) String() string
String returns the constant name, or a numeric representation for unknown values.
type EnvVarInfo ¶
EnvVarInfo represents dcgmEnvVarInfo_v1.
type ErrorCategory ¶
type ErrorCategory int32
ErrorCategory represents dcgmErrorCategory_t.
const ( CategoryNone ErrorCategory = 0 // 0 NONE CategoryPerfThreshold ErrorCategory = 1 // 1 Performance Threshold CategoryPerfViolation ErrorCategory = 2 // 2 Performance Violation CategorySoftwareConfig ErrorCategory = 3 // 3 Software Configuration CategorySoftwareLibrary ErrorCategory = 4 // 4 Software Library CategorySoftwareXid ErrorCategory = 5 // 5 Software XID CategorySoftwareCuda ErrorCategory = 6 // 6 Software Cuda CategorySoftwareEud ErrorCategory = 7 // 7 Software EUD CategorySoftwareOther ErrorCategory = 8 // 8 Software Other CategoryHardwareThermal ErrorCategory = 9 // 9 Hardware Thermal CategoryHardwareMemory ErrorCategory = 10 // 10 Hardware Memory CategoryHardwareNvlink ErrorCategory = 11 // 11 Hardware NvLink CategoryHardwareNvswitch ErrorCategory = 12 // 12 Hardware NvSwitch CategoryHardwarePcie ErrorCategory = 13 // 13 Hardware PCIe CategoryHardwarePower ErrorCategory = 14 // 14 Hardware Power CategoryHardwareOther ErrorCategory = 15 // 15 Hardware Other CategoryInternalOther ErrorCategory = 16 // 16 Internal Other CategorySoftwareCpuSdc ErrorCategory = 17 // 17 Software CPU SDC )
func ErrorGetCategoryByCode ¶
func ErrorGetCategoryByCode(code uint32) (ErrorCategory, error)
ErrorGetCategoryByCode wraps dcgmErrorGetCategoryByCode. The error reports an unavailable library or symbol.
func (ErrorCategory) String ¶
func (e ErrorCategory) String() string
String returns the constant name, or a numeric representation for unknown values.
type ErrorCode ¶
type ErrorCode uint32
ErrorCode identifies a passive or active health diagnostic detail. It is distinct from Result, which identifies an API return status. Convert a diagnostic's raw uint32 Code field explicitly; unknown values are preserved.
Example ¶
package main
import (
"fmt"
"github.com/tmc/lib/nvidia/dcgm"
)
func main() {
detail := dcgm.DiagErrorDetail{Code: 101}
fmt.Println(dcgm.ErrorCode(detail.Code))
fmt.Println(dcgm.ErrorCode(0xffffffff))
}
Output: DCGM_FR_XID_ERROR ErrorCode(4294967295)
const ( // ErrorCodeOk is DCGM_FR_OK. ErrorCodeOk ErrorCode = 0 // ErrorCodeUnknown is DCGM_FR_UNKNOWN. ErrorCodeUnknown ErrorCode = 1 // ErrorCodeUnrecognized is DCGM_FR_UNRECOGNIZED. ErrorCodeUnrecognized ErrorCode = 2 // ErrorCodePciReplayRate is DCGM_FR_PCI_REPLAY_RATE. ErrorCodePciReplayRate ErrorCode = 3 // ErrorCodeVolatileDbeDetected is DCGM_FR_VOLATILE_DBE_DETECTED. ErrorCodeVolatileDbeDetected ErrorCode = 4 // ErrorCodeVolatileSbeDetected is DCGM_FR_VOLATILE_SBE_DETECTED. ErrorCodeVolatileSbeDetected ErrorCode = 5 // ErrorCodePendingPageRetirements is DCGM_FR_PENDING_PAGE_RETIREMENTS. ErrorCodePendingPageRetirements ErrorCode = 6 // ErrorCodeRetiredPagesLimit is DCGM_FR_RETIRED_PAGES_LIMIT. ErrorCodeRetiredPagesLimit ErrorCode = 7 // ErrorCodeRetiredPagesDbeLimit is DCGM_FR_RETIRED_PAGES_DBE_LIMIT. ErrorCodeRetiredPagesDbeLimit ErrorCode = 8 // ErrorCodeCorruptInforom is DCGM_FR_CORRUPT_INFOROM. ErrorCodeCorruptInforom ErrorCode = 9 // ErrorCodeClocksEventThermal is DCGM_FR_CLOCKS_EVENT_THERMAL. ErrorCodeClocksEventThermal ErrorCode = 10 // ErrorCodeClockThrottleThermal is DCGM_FR_CLOCK_THROTTLE_THERMAL. ErrorCodeClockThrottleThermal ErrorCode = 10 // ErrorCodePowerUnreadable is DCGM_FR_POWER_UNREADABLE. ErrorCodePowerUnreadable ErrorCode = 11 // ErrorCodeClocksEventPower is DCGM_FR_CLOCKS_EVENT_POWER. ErrorCodeClocksEventPower ErrorCode = 12 // ErrorCodeClockThrottlePower is DCGM_FR_CLOCK_THROTTLE_POWER. ErrorCodeClockThrottlePower ErrorCode = 12 // ErrorCodeNvlinkErrorThreshold is DCGM_FR_NVLINK_ERROR_THRESHOLD. ErrorCodeNvlinkErrorThreshold ErrorCode = 13 // ErrorCodeNvlinkDown is DCGM_FR_NVLINK_DOWN. ErrorCodeNvlinkDown ErrorCode = 14 // ErrorCodeNvswitchFatalError is DCGM_FR_NVSWITCH_FATAL_ERROR. ErrorCodeNvswitchFatalError ErrorCode = 15 // ErrorCodeNvswitchNonFatalError is DCGM_FR_NVSWITCH_NON_FATAL_ERROR. ErrorCodeNvswitchNonFatalError ErrorCode = 16 // ErrorCodeNvswitchDown is DCGM_FR_NVSWITCH_DOWN. ErrorCodeNvswitchDown ErrorCode = 17 // ErrorCodeNoAccessToFile is DCGM_FR_NO_ACCESS_TO_FILE. ErrorCodeNoAccessToFile ErrorCode = 18 // ErrorCodeNvmlApi is DCGM_FR_NVML_API. ErrorCodeNvmlApi ErrorCode = 19 // ErrorCodeDeviceCountMismatch is DCGM_FR_DEVICE_COUNT_MISMATCH. ErrorCodeDeviceCountMismatch ErrorCode = 20 // ErrorCodeBadParameter is DCGM_FR_BAD_PARAMETER. ErrorCodeBadParameter ErrorCode = 21 // ErrorCodeCannotOpenLib is DCGM_FR_CANNOT_OPEN_LIB. ErrorCodeCannotOpenLib ErrorCode = 22 // ErrorCodeDenylistedDriver is DCGM_FR_DENYLISTED_DRIVER. ErrorCodeDenylistedDriver ErrorCode = 23 // ErrorCodeNvmlLibBad is DCGM_FR_NVML_LIB_BAD. ErrorCodeNvmlLibBad ErrorCode = 24 // ErrorCodeGraphicsProcesses is DCGM_FR_GRAPHICS_PROCESSES. ErrorCodeGraphicsProcesses ErrorCode = 25 // ErrorCodeHostengineConn is DCGM_FR_HOSTENGINE_CONN. ErrorCodeHostengineConn ErrorCode = 26 // ErrorCodeFieldQuery is DCGM_FR_FIELD_QUERY. ErrorCodeFieldQuery ErrorCode = 27 // ErrorCodeBadCudaEnv is DCGM_FR_BAD_CUDA_ENV. ErrorCodeBadCudaEnv ErrorCode = 28 // ErrorCodePersistenceMode is DCGM_FR_PERSISTENCE_MODE. ErrorCodePersistenceMode ErrorCode = 29 // ErrorCodeLowBandwidth is DCGM_FR_LOW_BANDWIDTH. ErrorCodeLowBandwidth ErrorCode = 30 // ErrorCodeHighLatency is DCGM_FR_HIGH_LATENCY. ErrorCodeHighLatency ErrorCode = 31 // ErrorCodeCannotGetFieldTag is DCGM_FR_CANNOT_GET_FIELD_TAG. ErrorCodeCannotGetFieldTag ErrorCode = 32 // ErrorCodeFieldViolation is DCGM_FR_FIELD_VIOLATION. ErrorCodeFieldViolation ErrorCode = 33 // ErrorCodeFieldThreshold is DCGM_FR_FIELD_THRESHOLD. ErrorCodeFieldThreshold ErrorCode = 34 // ErrorCodeFieldViolationDbl is DCGM_FR_FIELD_VIOLATION_DBL. ErrorCodeFieldViolationDbl ErrorCode = 35 // ErrorCodeFieldThresholdDbl is DCGM_FR_FIELD_THRESHOLD_DBL. ErrorCodeFieldThresholdDbl ErrorCode = 36 // ErrorCodeUnsupportedFieldType is DCGM_FR_UNSUPPORTED_FIELD_TYPE. ErrorCodeUnsupportedFieldType ErrorCode = 37 // ErrorCodeFieldThresholdTs is DCGM_FR_FIELD_THRESHOLD_TS. ErrorCodeFieldThresholdTs ErrorCode = 38 // ErrorCodeFieldThresholdTsDbl is DCGM_FR_FIELD_THRESHOLD_TS_DBL. ErrorCodeFieldThresholdTsDbl ErrorCode = 39 // ErrorCodeThermalViolations is DCGM_FR_THERMAL_VIOLATIONS. ErrorCodeThermalViolations ErrorCode = 40 // ErrorCodeThermalViolationsTs is DCGM_FR_THERMAL_VIOLATIONS_TS. ErrorCodeThermalViolationsTs ErrorCode = 41 // ErrorCodeTempViolation is DCGM_FR_TEMP_VIOLATION. ErrorCodeTempViolation ErrorCode = 42 // ErrorCodeClocksEventViolation is DCGM_FR_CLOCKS_EVENT_VIOLATION. ErrorCodeClocksEventViolation ErrorCode = 43 // ErrorCodeThrottlingViolation is DCGM_FR_THROTTLING_VIOLATION. ErrorCodeThrottlingViolation ErrorCode = 43 // ErrorCodeInternal is DCGM_FR_INTERNAL. ErrorCodeInternal ErrorCode = 44 // ErrorCodePcieGeneration is DCGM_FR_PCIE_GENERATION. ErrorCodePcieGeneration ErrorCode = 45 // ErrorCodePcieWidth is DCGM_FR_PCIE_WIDTH. ErrorCodePcieWidth ErrorCode = 46 // ErrorCodeAborted is DCGM_FR_ABORTED. ErrorCodeAborted ErrorCode = 47 // ErrorCodeTestDisabled is DCGM_FR_TEST_DISABLED. ErrorCodeTestDisabled ErrorCode = 48 // ErrorCodeCannotGetStat is DCGM_FR_CANNOT_GET_STAT. ErrorCodeCannotGetStat ErrorCode = 49 // ErrorCodeStressLevel is DCGM_FR_STRESS_LEVEL. ErrorCodeStressLevel ErrorCode = 50 // ErrorCodeCudaApi is DCGM_FR_CUDA_API. ErrorCodeCudaApi ErrorCode = 51 // ErrorCodeFaultyMemory is DCGM_FR_FAULTY_MEMORY. ErrorCodeFaultyMemory ErrorCode = 52 // ErrorCodeCannotSetWatches is DCGM_FR_CANNOT_SET_WATCHES. ErrorCodeCannotSetWatches ErrorCode = 53 // ErrorCodeCudaUnbound is DCGM_FR_CUDA_UNBOUND. ErrorCodeCudaUnbound ErrorCode = 54 // ErrorCodeEccDisabled is DCGM_FR_ECC_DISABLED. ErrorCodeEccDisabled ErrorCode = 55 // ErrorCodeMemoryAlloc is DCGM_FR_MEMORY_ALLOC. ErrorCodeMemoryAlloc ErrorCode = 56 // ErrorCodeCudaDbe is DCGM_FR_CUDA_DBE. ErrorCodeCudaDbe ErrorCode = 57 // ErrorCodeMemoryMismatch is DCGM_FR_MEMORY_MISMATCH. ErrorCodeMemoryMismatch ErrorCode = 58 // ErrorCodeCudaDevice is DCGM_FR_CUDA_DEVICE. ErrorCodeCudaDevice ErrorCode = 59 // ErrorCodeEccUnsupported is DCGM_FR_ECC_UNSUPPORTED. ErrorCodeEccUnsupported ErrorCode = 60 // ErrorCodeEccPending is DCGM_FR_ECC_PENDING. ErrorCodeEccPending ErrorCode = 61 // ErrorCodeMemoryBandwidth is DCGM_FR_MEMORY_BANDWIDTH. ErrorCodeMemoryBandwidth ErrorCode = 62 // ErrorCodeTargetPower is DCGM_FR_TARGET_POWER. ErrorCodeTargetPower ErrorCode = 63 // ErrorCodeApiFail is DCGM_FR_API_FAIL. ErrorCodeApiFail ErrorCode = 64 // ErrorCodeApiFailGpu is DCGM_FR_API_FAIL_GPU. ErrorCodeApiFailGpu ErrorCode = 65 // ErrorCodeCudaContext is DCGM_FR_CUDA_CONTEXT. ErrorCodeCudaContext ErrorCode = 66 // ErrorCodeDcgmApi is DCGM_FR_DCGM_API. ErrorCodeDcgmApi ErrorCode = 67 // ErrorCodeConcurrentGpus is DCGM_FR_CONCURRENT_GPUS. ErrorCodeConcurrentGpus ErrorCode = 68 // ErrorCodeTooManyErrors is DCGM_FR_TOO_MANY_ERRORS. ErrorCodeTooManyErrors ErrorCode = 69 // ErrorCodeNvlinkCrcErrorThreshold is DCGM_FR_NVLINK_CRC_ERROR_THRESHOLD. ErrorCodeNvlinkCrcErrorThreshold ErrorCode = 70 // ErrorCodeNvlinkErrorCritical is DCGM_FR_NVLINK_ERROR_CRITICAL. ErrorCodeNvlinkErrorCritical ErrorCode = 71 // ErrorCodeEnforcedPowerLimit is DCGM_FR_ENFORCED_POWER_LIMIT. ErrorCodeEnforcedPowerLimit ErrorCode = 72 // ErrorCodeMemoryAllocHost is DCGM_FR_MEMORY_ALLOC_HOST. ErrorCodeMemoryAllocHost ErrorCode = 73 // ErrorCodeGpuOpMode is DCGM_FR_GPU_OP_MODE. ErrorCodeGpuOpMode ErrorCode = 74 // ErrorCodeNoMemoryClocks is DCGM_FR_NO_MEMORY_CLOCKS. ErrorCodeNoMemoryClocks ErrorCode = 75 // ErrorCodeNoGraphicsClocks is DCGM_FR_NO_GRAPHICS_CLOCKS. ErrorCodeNoGraphicsClocks ErrorCode = 76 // ErrorCodeHadToRestoreState is DCGM_FR_HAD_TO_RESTORE_STATE. ErrorCodeHadToRestoreState ErrorCode = 77 // ErrorCodeL1tagUnsupported is DCGM_FR_L1TAG_UNSUPPORTED. ErrorCodeL1tagUnsupported ErrorCode = 78 // ErrorCodeL1tagMiscompare is DCGM_FR_L1TAG_MISCOMPARE. ErrorCodeL1tagMiscompare ErrorCode = 79 // ErrorCodeRowRemapFailure is DCGM_FR_ROW_REMAP_FAILURE. ErrorCodeRowRemapFailure ErrorCode = 80 // ErrorCodeUncontainedError is DCGM_FR_UNCONTAINED_ERROR. ErrorCodeUncontainedError ErrorCode = 81 // ErrorCodeEmptyGpuList is DCGM_FR_EMPTY_GPU_LIST. ErrorCodeEmptyGpuList ErrorCode = 82 // ErrorCodeDbePendingPageRetirements is DCGM_FR_DBE_PENDING_PAGE_RETIREMENTS. ErrorCodeDbePendingPageRetirements ErrorCode = 83 // ErrorCodeUncorrectableRowRemap is DCGM_FR_UNCORRECTABLE_ROW_REMAP. ErrorCodeUncorrectableRowRemap ErrorCode = 84 // ErrorCodePendingRowRemap is DCGM_FR_PENDING_ROW_REMAP. ErrorCodePendingRowRemap ErrorCode = 85 // ErrorCodeBrokenP2PMemoryDevice is DCGM_FR_BROKEN_P2P_MEMORY_DEVICE. ErrorCodeBrokenP2PMemoryDevice ErrorCode = 86 // ErrorCodeBrokenP2PWriterDevice is DCGM_FR_BROKEN_P2P_WRITER_DEVICE. ErrorCodeBrokenP2PWriterDevice ErrorCode = 87 // ErrorCodeNvswitchNvlinkDown is DCGM_FR_NVSWITCH_NVLINK_DOWN. ErrorCodeNvswitchNvlinkDown ErrorCode = 88 // ErrorCodeEudBinaryPermissions is DCGM_FR_EUD_BINARY_PERMISSIONS. ErrorCodeEudBinaryPermissions ErrorCode = 89 // ErrorCodeEudNonRootUser is DCGM_FR_EUD_NON_ROOT_USER. ErrorCodeEudNonRootUser ErrorCode = 90 // ErrorCodeEudSpawnFailure is DCGM_FR_EUD_SPAWN_FAILURE. ErrorCodeEudSpawnFailure ErrorCode = 91 // ErrorCodeEudTimeout is DCGM_FR_EUD_TIMEOUT. ErrorCodeEudTimeout ErrorCode = 92 // ErrorCodeEudZombie is DCGM_FR_EUD_ZOMBIE. ErrorCodeEudZombie ErrorCode = 93 // ErrorCodeEudNonZeroExitCode is DCGM_FR_EUD_NON_ZERO_EXIT_CODE. ErrorCodeEudNonZeroExitCode ErrorCode = 94 // ErrorCodeEudTestFailed is DCGM_FR_EUD_TEST_FAILED. ErrorCodeEudTestFailed ErrorCode = 95 // ErrorCodeFileCreatePermissions is DCGM_FR_FILE_CREATE_PERMISSIONS. ErrorCodeFileCreatePermissions ErrorCode = 96 // ErrorCodePauseResumeFailed is DCGM_FR_PAUSE_RESUME_FAILED. ErrorCodePauseResumeFailed ErrorCode = 97 // ErrorCodePcieHReplayViolation is DCGM_FR_PCIE_H_REPLAY_VIOLATION. ErrorCodePcieHReplayViolation ErrorCode = 98 // ErrorCodeGpuExpectedNvlinksUp is DCGM_FR_GPU_EXPECTED_NVLINKS_UP. ErrorCodeGpuExpectedNvlinksUp ErrorCode = 99 // ErrorCodeNvswitchExpectedNvlinksUp is DCGM_FR_NVSWITCH_EXPECTED_NVLINKS_UP. ErrorCodeNvswitchExpectedNvlinksUp ErrorCode = 100 // ErrorCodeXidError is DCGM_FR_XID_ERROR. ErrorCodeXidError ErrorCode = 101 // ErrorCodeSbeViolation is DCGM_FR_SBE_VIOLATION. ErrorCodeSbeViolation ErrorCode = 102 // ErrorCodeDbeViolation is DCGM_FR_DBE_VIOLATION. ErrorCodeDbeViolation ErrorCode = 103 // ErrorCodePcieReplayViolation is DCGM_FR_PCIE_REPLAY_VIOLATION. ErrorCodePcieReplayViolation ErrorCode = 104 // ErrorCodeSbeThresholdViolation is DCGM_FR_SBE_THRESHOLD_VIOLATION. ErrorCodeSbeThresholdViolation ErrorCode = 105 // ErrorCodeDbeThresholdViolation is DCGM_FR_DBE_THRESHOLD_VIOLATION. ErrorCodeDbeThresholdViolation ErrorCode = 106 // ErrorCodePcieReplayThresholdViolation is DCGM_FR_PCIE_REPLAY_THRESHOLD_VIOLATION. ErrorCodePcieReplayThresholdViolation ErrorCode = 107 // ErrorCodeCudaFmNotInitialized is DCGM_FR_CUDA_FM_NOT_INITIALIZED. ErrorCodeCudaFmNotInitialized ErrorCode = 108 // ErrorCodeSxidError is DCGM_FR_SXID_ERROR. ErrorCodeSxidError ErrorCode = 109 // ErrorCodeGflopsThresholdViolation is DCGM_FR_GFLOPS_THRESHOLD_VIOLATION. ErrorCodeGflopsThresholdViolation ErrorCode = 110 // ErrorCodeNanValue is DCGM_FR_NAN_VALUE. ErrorCodeNanValue ErrorCode = 111 // ErrorCodeFabricManagerTrainingError is DCGM_FR_FABRIC_MANAGER_TRAINING_ERROR. ErrorCodeFabricManagerTrainingError ErrorCode = 112 // ErrorCodeBrokenP2PPcieMemoryDevice is DCGM_FR_BROKEN_P2P_PCIE_MEMORY_DEVICE. ErrorCodeBrokenP2PPcieMemoryDevice ErrorCode = 113 // ErrorCodeBrokenP2PPcieWriterDevice is DCGM_FR_BROKEN_P2P_PCIE_WRITER_DEVICE. ErrorCodeBrokenP2PPcieWriterDevice ErrorCode = 114 // ErrorCodeBrokenP2PNvlinkMemoryDevice is DCGM_FR_BROKEN_P2P_NVLINK_MEMORY_DEVICE. ErrorCodeBrokenP2PNvlinkMemoryDevice ErrorCode = 115 // ErrorCodeBrokenP2PNvlinkWriterDevice is DCGM_FR_BROKEN_P2P_NVLINK_WRITER_DEVICE. ErrorCodeBrokenP2PNvlinkWriterDevice ErrorCode = 116 // ErrorCodeTestSkipped is DCGM_FR_TEST_SKIPPED. ErrorCodeTestSkipped ErrorCode = 117 // ErrorCodeSramThreshold is DCGM_FR_SRAM_THRESHOLD. ErrorCodeSramThreshold ErrorCode = 118 // ErrorCodeNvlinkEffectiveBerThreshold is DCGM_FR_NVLINK_EFFECTIVE_BER_THRESHOLD. ErrorCodeNvlinkEffectiveBerThreshold ErrorCode = 119 // ErrorCodeFallenOffBus is DCGM_FR_FALLEN_OFF_BUS. ErrorCodeFallenOffBus ErrorCode = 120 // ErrorCodeNvlinkSymbolBerThreshold is DCGM_FR_NVLINK_SYMBOL_BER_THRESHOLD. ErrorCodeNvlinkSymbolBerThreshold ErrorCode = 121 // ErrorCodeImexUnhealthy is DCGM_FR_IMEX_UNHEALTHY. ErrorCodeImexUnhealthy ErrorCode = 122 // ErrorCodeFabricProbeState is DCGM_FR_FABRIC_PROBE_STATE. ErrorCodeFabricProbeState ErrorCode = 123 // ErrorCodeBinaryPermissions is DCGM_FR_BINARY_PERMISSIONS. ErrorCodeBinaryPermissions ErrorCode = 124 // ErrorCodeGpuRecoveryReset is DCGM_FR_GPU_RECOVERY_RESET. ErrorCodeGpuRecoveryReset ErrorCode = 125 // ErrorCodeGpuRecoveryReboot is DCGM_FR_GPU_RECOVERY_REBOOT. ErrorCodeGpuRecoveryReboot ErrorCode = 126 // ErrorCodeGpuRecoveryDrainP2P is DCGM_FR_GPU_RECOVERY_DRAIN_P2P. ErrorCodeGpuRecoveryDrainP2P ErrorCode = 127 // ErrorCodeGpuRecoveryDrainReset is DCGM_FR_GPU_RECOVERY_DRAIN_RESET. ErrorCodeGpuRecoveryDrainReset ErrorCode = 128 // ErrorCodeNcclError is DCGM_FR_NCCL_ERROR. ErrorCodeNcclError ErrorCode = 129 // ErrorCodeRetestRequested is DCGM_FR_RETEST_REQUESTED. ErrorCodeRetestRequested ErrorCode = 130 // ErrorCodeContainedError is DCGM_FR_CONTAINED_ERROR. ErrorCodeContainedError ErrorCode = 131 // ErrorCodeUncorrectableRowRemapLimit is DCGM_FR_UNCORRECTABLE_ROW_REMAP_LIMIT. ErrorCodeUncorrectableRowRemapLimit ErrorCode = 132 // ErrorCodeCpuSdcTestFailed is DCGM_FR_CPU_SDC_TEST_FAILED. ErrorCodeCpuSdcTestFailed ErrorCode = 133 // ErrorCodeRistTestFailed is DCGM_FR_RIST_TEST_FAILED. ErrorCodeRistTestFailed ErrorCode = 134 // ErrorCodeRistNoResults is DCGM_FR_RIST_NO_RESULTS. ErrorCodeRistNoResults ErrorCode = 135 // ErrorCodeRistProtocol is DCGM_FR_RIST_PROTOCOL. ErrorCodeRistProtocol ErrorCode = 136 // ErrorCodeRistNonzeroExit is DCGM_FR_RIST_NONZERO_EXIT. ErrorCodeRistNonzeroExit ErrorCode = 137 // ErrorCodeChildTerminated is DCGM_FR_CHILD_TERMINATED. ErrorCodeChildTerminated ErrorCode = 138 // ErrorCodeRistTimeout is DCGM_FR_RIST_TIMEOUT. ErrorCodeRistTimeout ErrorCode = 139 // ErrorCodeRistHeartbeatStalled is DCGM_FR_RIST_HEARTBEAT_STALLED. ErrorCodeRistHeartbeatStalled ErrorCode = 140 // ErrorCodeChildSpawnFailed is DCGM_FR_CHILD_SPAWN_FAILED. ErrorCodeChildSpawnFailed ErrorCode = 141 // ErrorCodeGpuRecoveryImexDomain is DCGM_FR_GPU_RECOVERY_IMEX_DOMAIN. ErrorCodeGpuRecoveryImexDomain ErrorCode = 142 // ErrorCodeErrorSentinel is DCGM_FR_ERROR_SENTINEL. ErrorCodeErrorSentinel ErrorCode = 143 )
func (ErrorCode) Message ¶
Message returns the printf-style format DCGM uses to describe c, as defined by the pinned dcgm_errors.h, or "" if the header defines none. The library's own copy is returned by ErrorGetFormatMsgByCode.
func (ErrorCode) NextSteps ¶
NextSteps returns the action dcgm_errors.h suggests for c, or "" if the header suggests none.
func (ErrorCode) String ¶
String returns the canonical C name, or ErrorCode(<decimal>) for an unknown value. Deprecated aliases use the first, current spelling in the pinned header.
Example ¶
package main
import (
"fmt"
"github.com/tmc/lib/nvidia/dcgm"
)
func main() {
fmt.Println(dcgm.ErrorCode(109).String())
}
Output: DCGM_FR_SXID_ERROR
type ErrorMeta ¶
type ErrorMeta struct {
ErrorId ErrorCode
MsgFormat uintptr
Suggestion uintptr
Severity int32
Category int32
}
ErrorMeta represents dcgm_error_meta_t.
type ErrorSeverity ¶
type ErrorSeverity int32
ErrorSeverity represents dcgmErrorSeverity_t.
const ( SeverityNone ErrorSeverity = 0 // 0 NONE SeverityMonitor ErrorSeverity = 1 // 1 Can perform workload, but needs to be monitored. SeverityIsolate ErrorSeverity = 2 // 2 Cannot perform workload. GPU should be isolated. SeverityUnknown ErrorSeverity = 3 // 3 This error code is not recognized SeverityTriage ErrorSeverity = 4 // 4 This error should be triaged SeverityConfig ErrorSeverity = 5 // 5 This error can be configured SeverityReset ErrorSeverity = 6 // 6 Drain and reset GPU )
func ErrorGetPriorityByCode ¶
func ErrorGetPriorityByCode(code uint32) (ErrorSeverity, error)
ErrorGetPriorityByCode wraps dcgmErrorGetPriorityByCode. The error reports an unavailable library or symbol.
func (ErrorSeverity) String ¶
func (e ErrorSeverity) String() string
String returns the constant name, or a numeric representation for unknown values.
type FBCSessionType ¶
type FBCSessionType int32
FBCSessionType represents dcgmFBCSessionType_t.
const ( FbcSessionTypeUnknown FBCSessionType = 0 // Unknown FbcSessionTypeTosys FBCSessionType = 1 // FB capture for a system buffer FbcSessionTypeCuda FBCSessionType = 2 // FB capture for a cuda buffer FbcSessionTypeVid FBCSessionType = 3 // FB capture for a Vid buffer FbcSessionTypeHwenc FBCSessionType = 4 // FB capture for a NVENC HW buffer )
func (FBCSessionType) String ¶
func (e FBCSessionType) String() string
String returns the constant name, or a numeric representation for unknown values.
type FabricManagerStatus ¶
type FabricManagerStatus int32
FabricManagerStatus represents dcgmFabricManagerStatus_t.
const ( DcgmFMStatusNotSupported FabricManagerStatus = 0 // The Fabric Manager isn't supported for this GPU DcgmFMStatusNotStarted FabricManagerStatus = 1 // The Fabric Manager has not started for this GPU yet. DcgmFMStatusInProgress FabricManagerStatus = 2 // The Fabric Manager is still starting up DcgmFMStatusSuccess FabricManagerStatus = 3 // The Fabric Manager has started successfully DcgmFMStatusFailure FabricManagerStatus = 4 // The Fabric Manager finished training, but failed DcgmFMStatusUnrecognized FabricManagerStatus = 5 // NVML returned an unrecognized status for the fabric manager DcgmFMStatusNvmlTooOld FabricManagerStatus = 6 // NVML returned NVML_ERROR_FUNCTION_NOT_FOUND when querying fabric manager status DcgmFMStatusCount FabricManagerStatus = 7 // The count of valid statuses, always 1 more than the last status )
func (FabricManagerStatus) String ¶
func (e FabricManagerStatus) String() string
String returns the constant name, or a numeric representation for unknown values.
type FieldEntityGroup ¶
type FieldEntityGroup int32
FieldEntityGroup is an enum of possible field entity groups.
const ( FeNone FieldEntityGroup = 0 // !< Field is not associated with an entity. Field scope should be [FsGlobal] FeGpu FieldEntityGroup = 1 // !< Field is associated with a GPU entity FeVgpu FieldEntityGroup = 2 // !< Field is associated with a VGPU entity FeSwitch FieldEntityGroup = 3 // !< Field is associated with a Switch entity FeGpuI FieldEntityGroup = 4 // !< Field is associated with a GPU Instance entity FeGpuCi FieldEntityGroup = 5 // !< Field is associated with a GPU Compute Instance entity FeLink FieldEntityGroup = 6 // !< Field is associated with an NVLink FeCpu FieldEntityGroup = 7 // !< Field is associated with a CPU node FeCpuCore FieldEntityGroup = 8 // !< Field is associated with a CPU FeConnectx FieldEntityGroup = 9 // !< Field is associated with a ConnectX card FeCount FieldEntityGroup = 10 // !< Number of elements in this enumeration. Keep this entry last )
func (FieldEntityGroup) String ¶
func (e FieldEntityGroup) String() string
String returns the constant name, or a numeric representation for unknown values.
type FieldGroupInfo ¶
type FieldGroupInfo struct {
Version uint32
NumFieldIds uint32
FieldGroupId FieldGrp
FieldGroupName [256]byte
FieldIds [128]uint16
}
FieldGroupInfo represents information about a field group.
type FieldGroupInfoV1 ¶
type FieldGroupInfoV1 = FieldGroupInfo
FieldGroupInfoV1 is an alias for FieldGroupInfo.
type FieldGrp ¶
type FieldGrp uintptr
FieldGrp represents dcgmFieldGrp_t.
func FieldGroupCreate ¶
func FieldGroupCreate(dcgmHandle Handle, numFieldIds int32, fieldIds *uint16, fieldGroupName *byte) (FieldGrp, error)
FieldGroupCreate is used to create a group of fields and return the handle
- dcgmHandle: IN: DCGM handle
- numFieldIds: IN: Number of field IDs that are being provided in fieldIds[]. Must be between 1 and MaxFieldIDsPerFieldGroup
- fieldIds: IN: Field IDs to be added to the newly-created field group
- fieldGroupName: IN: Unique name for this group of fields. This must not be the same as any existing field groups
- dcgmFieldGroupId: OUT: Handle to the newly-created field group
Wraps dcgmFieldGroupCreate.
type FieldID ¶
type FieldID uint16
A FieldID names one quantity DCGM can sample. It is the unit a field group is built from and the identity a reading comes back with.
Not every field is available on every entity. DCGM reports an unsupported field by returning it successfully with a blank value rather than by failing, so a caller must check FieldValueV1.Blank on every reading.
const ( // FieldSystemFieldUnknown is DCGM_FI_SYSTEM_FIELD_UNKNOWN. FieldSystemFieldUnknown FieldID = 0 // FieldSystemDriverVersion is DCGM_FI_SYSTEM_DRIVER_VERSION. FieldSystemDriverVersion FieldID = 1 // FieldSystemNvmlVersion is DCGM_FI_SYSTEM_NVML_VERSION. FieldSystemNvmlVersion FieldID = 2 // FieldSystemProcessName is DCGM_FI_SYSTEM_PROCESS_NAME. FieldSystemProcessName FieldID = 3 // FieldSystemGpuQuantity is DCGM_FI_SYSTEM_GPU_QUANTITY. FieldSystemGpuQuantity FieldID = 4 // FieldCudaDriverVersion is DCGM_FI_CUDA_DRIVER_VERSION. FieldCudaDriverVersion FieldID = 5 // FieldSystemGpuBindEvent is DCGM_FI_SYSTEM_GPU_BIND_EVENT. FieldSystemGpuBindEvent FieldID = 6 // FieldDevGpuName is DCGM_FI_DEV_GPU_NAME. FieldDevGpuName FieldID = 50 // FieldDevGpuBrand is DCGM_FI_DEV_GPU_BRAND. FieldDevGpuBrand FieldID = 51 // FieldDevNvmlIndex is DCGM_FI_DEV_NVML_INDEX. FieldDevNvmlIndex FieldID = 52 // FieldDevBoardSerial is DCGM_FI_DEV_BOARD_SERIAL. FieldDevBoardSerial FieldID = 53 // FieldDevGpuUuid is DCGM_FI_DEV_GPU_UUID. FieldDevGpuUuid FieldID = 54 // FieldDevGpuMinorNumber is DCGM_FI_DEV_GPU_MINOR_NUMBER. FieldDevGpuMinorNumber FieldID = 55 // FieldDevInforomOemVersion is DCGM_FI_DEV_INFOROM_OEM_VERSION. FieldDevInforomOemVersion FieldID = 56 // FieldDevPciBusId is DCGM_FI_DEV_PCI_BUS_ID. FieldDevPciBusId FieldID = 57 // FieldDevPciCombinedId is DCGM_FI_DEV_PCI_COMBINED_ID. FieldDevPciCombinedId FieldID = 58 // FieldDevPciSubsysId is DCGM_FI_DEV_PCI_SUBSYS_ID. FieldDevPciSubsysId FieldID = 59 // FieldSystemPciTopology is DCGM_FI_SYSTEM_PCI_TOPOLOGY. FieldSystemPciTopology FieldID = 60 // FieldSystemNvlinkTopology is DCGM_FI_SYSTEM_NVLINK_TOPOLOGY. FieldSystemNvlinkTopology FieldID = 61 // FieldSystemGpuAffinity is DCGM_FI_SYSTEM_GPU_AFFINITY. FieldSystemGpuAffinity FieldID = 62 // FieldCudaGpuComputeCapability is DCGM_FI_CUDA_GPU_COMPUTE_CAPABILITY. FieldCudaGpuComputeCapability FieldID = 63 // FieldDevNvlinkP2PStatus is DCGM_FI_DEV_NVLINK_P2P_STATUS. FieldDevNvlinkP2PStatus FieldID = 64 // FieldDevGpuComputeMode is DCGM_FI_DEV_GPU_COMPUTE_MODE. FieldDevGpuComputeMode FieldID = 65 // FieldDevGpuPersistenceMode is DCGM_FI_DEV_GPU_PERSISTENCE_MODE. FieldDevGpuPersistenceMode FieldID = 66 // FieldDevMigMode is DCGM_FI_DEV_MIG_MODE. FieldDevMigMode FieldID = 67 // FieldCudaGpuVisibleDevices is DCGM_FI_CUDA_GPU_VISIBLE_DEVICES. FieldCudaGpuVisibleDevices FieldID = 68 // FieldDevMigMaxSlices is DCGM_FI_DEV_MIG_MAX_SLICES. FieldDevMigMaxSlices FieldID = 69 // FieldDevCpuAffinity0 is DCGM_FI_DEV_CPU_AFFINITY_0. FieldDevCpuAffinity0 FieldID = 70 // FieldDevCpuAffinity1 is DCGM_FI_DEV_CPU_AFFINITY_1. FieldDevCpuAffinity1 FieldID = 71 // FieldDevCpuAffinity2 is DCGM_FI_DEV_CPU_AFFINITY_2. FieldDevCpuAffinity2 FieldID = 72 // FieldDevCpuAffinity3 is DCGM_FI_DEV_CPU_AFFINITY_3. FieldDevCpuAffinity3 FieldID = 73 // FieldDevCcMode is DCGM_FI_DEV_CC_MODE. FieldDevCcMode FieldID = 74 // FieldDevMigAttributes is DCGM_FI_DEV_MIG_ATTRIBUTES. FieldDevMigAttributes FieldID = 75 // FieldDevMigGiInfo is DCGM_FI_DEV_MIG_GI_INFO. FieldDevMigGiInfo FieldID = 76 // FieldDevMigCiInfo is DCGM_FI_DEV_MIG_CI_INFO. FieldDevMigCiInfo FieldID = 77 // FieldDevInforomEccVersion is DCGM_FI_DEV_INFOROM_ECC_VERSION. FieldDevInforomEccVersion FieldID = 80 // FieldDevInforomPowerVersion is DCGM_FI_DEV_INFOROM_POWER_VERSION. FieldDevInforomPowerVersion FieldID = 81 // FieldDevInforomImageVersion is DCGM_FI_DEV_INFOROM_IMAGE_VERSION. FieldDevInforomImageVersion FieldID = 82 // FieldDevInforomChecksum is DCGM_FI_DEV_INFOROM_CHECKSUM. FieldDevInforomChecksum FieldID = 83 // FieldDevInforomValid is DCGM_FI_DEV_INFOROM_VALID. FieldDevInforomValid FieldID = 84 // FieldDevVbiosVersion is DCGM_FI_DEV_VBIOS_VERSION. FieldDevVbiosVersion FieldID = 85 // FieldDevMemoryAffinity0 is DCGM_FI_DEV_MEMORY_AFFINITY_0. FieldDevMemoryAffinity0 FieldID = 86 // FieldDevMemoryAffinity1 is DCGM_FI_DEV_MEMORY_AFFINITY_1. FieldDevMemoryAffinity1 FieldID = 87 // FieldDevMemoryAffinity2 is DCGM_FI_DEV_MEMORY_AFFINITY_2. FieldDevMemoryAffinity2 FieldID = 88 // FieldDevMemoryAffinity3 is DCGM_FI_DEV_MEMORY_AFFINITY_3. FieldDevMemoryAffinity3 FieldID = 89 // FieldDevBAR1Total is DCGM_FI_DEV_BAR1_TOTAL. FieldDevBAR1Total FieldID = 90 // FieldSystemGpuSyncBoost is DCGM_FI_SYSTEM_GPU_SYNC_BOOST. FieldSystemGpuSyncBoost FieldID = 91 // FieldDevBAR1Used is DCGM_FI_DEV_BAR1_USED. FieldDevBAR1Used FieldID = 92 // FieldDevBAR1Free is DCGM_FI_DEV_BAR1_FREE. FieldDevBAR1Free FieldID = 93 // FieldDevGpmSupport is DCGM_FI_DEV_GPM_SUPPORT. FieldDevGpmSupport FieldID = 94 // FieldDevSmClock is DCGM_FI_DEV_SM_CLOCK. FieldDevSmClock FieldID = 100 // FieldDevMemClock is DCGM_FI_DEV_MEM_CLOCK. FieldDevMemClock FieldID = 101 // FieldDevVideoClock is DCGM_FI_DEV_VIDEO_CLOCK. FieldDevVideoClock FieldID = 102 // FieldDevAppSmClock is DCGM_FI_DEV_APP_SM_CLOCK. FieldDevAppSmClock FieldID = 110 // FieldDevAppMemClock is DCGM_FI_DEV_APP_MEM_CLOCK. FieldDevAppMemClock FieldID = 111 // FieldDevClocksEventReasons is DCGM_FI_DEV_CLOCKS_EVENT_REASONS. FieldDevClocksEventReasons FieldID = 112 // FieldDevClockThrottleReasons is DCGM_FI_DEV_CLOCK_THROTTLE_REASONS. // // The header defines it as DCGM_FI_DEV_CLOCKS_EVENT_REASONS. FieldDevClockThrottleReasons FieldID = 112 // FieldDevMaxSmClock is DCGM_FI_DEV_MAX_SM_CLOCK. FieldDevMaxSmClock FieldID = 113 // FieldDevMaxMemClock is DCGM_FI_DEV_MAX_MEM_CLOCK. FieldDevMaxMemClock FieldID = 114 // FieldDevMaxVideoClock is DCGM_FI_DEV_MAX_VIDEO_CLOCK. FieldDevMaxVideoClock FieldID = 115 // FieldDevClocksAutoboostMode is DCGM_FI_DEV_CLOCKS_AUTOBOOST_MODE. FieldDevClocksAutoboostMode FieldID = 120 // FieldDevClocksSupported is DCGM_FI_DEV_CLOCKS_SUPPORTED. FieldDevClocksSupported FieldID = 130 // FieldDevMemoryTempCelsius is DCGM_FI_DEV_MEMORY_TEMP_CELSIUS. FieldDevMemoryTempCelsius FieldID = 140 // FieldDevGpuTempCelsius is DCGM_FI_DEV_GPU_TEMP_CELSIUS. FieldDevGpuTempCelsius FieldID = 150 // FieldDevMemoryMaxOpTempCelsius is DCGM_FI_DEV_MEMORY_MAX_OP_TEMP_CELSIUS. FieldDevMemoryMaxOpTempCelsius FieldID = 151 // FieldDevGpuMaxOpTempCelsius is DCGM_FI_DEV_GPU_MAX_OP_TEMP_CELSIUS. FieldDevGpuMaxOpTempCelsius FieldID = 152 // FieldDevGpuTempMarginCelsius is DCGM_FI_DEV_GPU_TEMP_MARGIN_CELSIUS. FieldDevGpuTempMarginCelsius FieldID = 153 // FieldDevBoardPowerWatts is DCGM_FI_DEV_BOARD_POWER_WATTS. FieldDevBoardPowerWatts FieldID = 155 // FieldDevTotalEnergyConsumption is DCGM_FI_DEV_TOTAL_ENERGY_CONSUMPTION. FieldDevTotalEnergyConsumption FieldID = 156 // FieldDevBoardPowerRawWatts is DCGM_FI_DEV_BOARD_POWER_RAW_WATTS. FieldDevBoardPowerRawWatts FieldID = 157 // FieldDevGpuTempSlowdownCelsius is DCGM_FI_DEV_GPU_TEMP_SLOWDOWN_CELSIUS. FieldDevGpuTempSlowdownCelsius FieldID = 158 // FieldDevGpuTempShutdownCelsius is DCGM_FI_DEV_GPU_TEMP_SHUTDOWN_CELSIUS. FieldDevGpuTempShutdownCelsius FieldID = 159 // FieldDevBoardPowerLimitRequestedWatts is DCGM_FI_DEV_BOARD_POWER_LIMIT_REQUESTED_WATTS. FieldDevBoardPowerLimitRequestedWatts FieldID = 160 // FieldDevBoardPowerLimitMinWatts is DCGM_FI_DEV_BOARD_POWER_LIMIT_MIN_WATTS. FieldDevBoardPowerLimitMinWatts FieldID = 161 // FieldDevBoardPowerLimitMaxWatts is DCGM_FI_DEV_BOARD_POWER_LIMIT_MAX_WATTS. FieldDevBoardPowerLimitMaxWatts FieldID = 162 // FieldDevBoardPowerLimitDefaultWatts is DCGM_FI_DEV_BOARD_POWER_LIMIT_DEFAULT_WATTS. FieldDevBoardPowerLimitDefaultWatts FieldID = 163 // FieldDevBoardPowerLimitEnforcedWatts is DCGM_FI_DEV_BOARD_POWER_LIMIT_ENFORCED_WATTS. FieldDevBoardPowerLimitEnforcedWatts FieldID = 164 // FieldDevBoardPowerProfileRequestedMask is DCGM_FI_DEV_BOARD_POWER_PROFILE_REQUESTED_MASK. FieldDevBoardPowerProfileRequestedMask FieldID = 165 // FieldDevBoardPowerProfileEnforcedMask is DCGM_FI_DEV_BOARD_POWER_PROFILE_ENFORCED_MASK. FieldDevBoardPowerProfileEnforcedMask FieldID = 166 // FieldDevBoardPowerProfileSupportedMask is DCGM_FI_DEV_BOARD_POWER_PROFILE_SUPPORTED_MASK. FieldDevBoardPowerProfileSupportedMask FieldID = 167 // FieldDevFabricManagerStatus is DCGM_FI_DEV_FABRIC_MANAGER_STATUS. FieldDevFabricManagerStatus FieldID = 170 // FieldDevFabricManagerError is DCGM_FI_DEV_FABRIC_MANAGER_ERROR. FieldDevFabricManagerError FieldID = 171 // FieldDevFabricClusterUuid is DCGM_FI_DEV_FABRIC_CLUSTER_UUID. FieldDevFabricClusterUuid FieldID = 172 // FieldDevFabricCliqueId is DCGM_FI_DEV_FABRIC_CLIQUE_ID. FieldDevFabricCliqueId FieldID = 173 // FieldDevFabricHealthMask is DCGM_FI_DEV_FABRIC_HEALTH_MASK. FieldDevFabricHealthMask FieldID = 174 // FieldDevFabricHealthSummary is DCGM_FI_DEV_FABRIC_HEALTH_SUMMARY. FieldDevFabricHealthSummary FieldID = 175 // FieldDevGpuPstate is DCGM_FI_DEV_GPU_PSTATE. FieldDevGpuPstate FieldID = 190 // FieldDevFanSpeed is DCGM_FI_DEV_FAN_SPEED. FieldDevFanSpeed FieldID = 191 // FieldDevPcieTxThroughput is DCGM_FI_DEV_PCIE_TX_THROUGHPUT. FieldDevPcieTxThroughput FieldID = 200 // FieldDevPcieRxThroughput is DCGM_FI_DEV_PCIE_RX_THROUGHPUT. FieldDevPcieRxThroughput FieldID = 201 // FieldDevPcieReplayTotal is DCGM_FI_DEV_PCIE_REPLAY_TOTAL. FieldDevPcieReplayTotal FieldID = 202 // FieldDevGpuUtil is DCGM_FI_DEV_GPU_UTIL. FieldDevGpuUtil FieldID = 203 // FieldDevMemCopyUtil is DCGM_FI_DEV_MEM_COPY_UTIL. FieldDevMemCopyUtil FieldID = 204 // FieldDevProcessAccountingStats is DCGM_FI_DEV_PROCESS_ACCOUNTING_STATS. FieldDevProcessAccountingStats FieldID = 205 // FieldDevEncUtil is DCGM_FI_DEV_ENC_UTIL. FieldDevEncUtil FieldID = 206 // FieldDevDecUtil is DCGM_FI_DEV_DEC_UTIL. FieldDevDecUtil FieldID = 207 // FieldDevXidError is DCGM_FI_DEV_XID_ERROR. FieldDevXidError FieldID = 230 // FieldDevPcieMaxLinkGen is DCGM_FI_DEV_PCIE_MAX_LINK_GEN. FieldDevPcieMaxLinkGen FieldID = 235 // FieldDevPcieMaxLinkWidth is DCGM_FI_DEV_PCIE_MAX_LINK_WIDTH. FieldDevPcieMaxLinkWidth FieldID = 236 // FieldDevPcieLinkGen is DCGM_FI_DEV_PCIE_LINK_GEN. FieldDevPcieLinkGen FieldID = 237 // FieldDevPcieLinkWidth is DCGM_FI_DEV_PCIE_LINK_WIDTH. FieldDevPcieLinkWidth FieldID = 238 // FieldDevPowerViolation is DCGM_FI_DEV_POWER_VIOLATION. FieldDevPowerViolation FieldID = 240 // FieldDevThermalViolation is DCGM_FI_DEV_THERMAL_VIOLATION. FieldDevThermalViolation FieldID = 241 // FieldDevSyncBoostViolation is DCGM_FI_DEV_SYNC_BOOST_VIOLATION. FieldDevSyncBoostViolation FieldID = 242 // FieldDevBoardLimitViolation is DCGM_FI_DEV_BOARD_LIMIT_VIOLATION. FieldDevBoardLimitViolation FieldID = 243 // FieldDevLowUtilViolation is DCGM_FI_DEV_LOW_UTIL_VIOLATION. FieldDevLowUtilViolation FieldID = 244 // FieldDevReliabilityViolation is DCGM_FI_DEV_RELIABILITY_VIOLATION. FieldDevReliabilityViolation FieldID = 245 // FieldDevTotalAppClocksViolation is DCGM_FI_DEV_TOTAL_APP_CLOCKS_VIOLATION. FieldDevTotalAppClocksViolation FieldID = 246 // FieldDevTotalBaseClocksViolation is DCGM_FI_DEV_TOTAL_BASE_CLOCKS_VIOLATION. FieldDevTotalBaseClocksViolation FieldID = 247 // FieldDevFbTotal is DCGM_FI_DEV_FB_TOTAL. FieldDevFbTotal FieldID = 250 // FieldDevFbFree is DCGM_FI_DEV_FB_FREE. FieldDevFbFree FieldID = 251 // FieldDevFbUsed is DCGM_FI_DEV_FB_USED. FieldDevFbUsed FieldID = 252 // FieldDevFbReserved is DCGM_FI_DEV_FB_RESERVED. FieldDevFbReserved FieldID = 253 // FieldDevFbUsedRatio is DCGM_FI_DEV_FB_USED_RATIO. FieldDevFbUsedRatio FieldID = 254 // FieldDevC2CLinkQuantity is DCGM_FI_DEV_C2C_LINK_QUANTITY. FieldDevC2CLinkQuantity FieldID = 285 // FieldDevC2CLinkStatus is DCGM_FI_DEV_C2C_LINK_STATUS. FieldDevC2CLinkStatus FieldID = 286 // FieldDevC2CMaxBandwidth is DCGM_FI_DEV_C2C_MAX_BANDWIDTH. FieldDevC2CMaxBandwidth FieldID = 287 // FieldDevEccMode is DCGM_FI_DEV_ECC_MODE. FieldDevEccMode FieldID = 300 // FieldDevEccPending is DCGM_FI_DEV_ECC_PENDING. FieldDevEccPending FieldID = 301 // FieldDevEccSbeVolTotal is DCGM_FI_DEV_ECC_SBE_VOL_TOTAL. FieldDevEccSbeVolTotal FieldID = 310 // FieldDevEccDbeVolTotal is DCGM_FI_DEV_ECC_DBE_VOL_TOTAL. FieldDevEccDbeVolTotal FieldID = 311 // FieldDevEccSbeAggTotal is DCGM_FI_DEV_ECC_SBE_AGG_TOTAL. FieldDevEccSbeAggTotal FieldID = 312 // FieldDevEccDbeAggTotal is DCGM_FI_DEV_ECC_DBE_AGG_TOTAL. FieldDevEccDbeAggTotal FieldID = 313 // FieldDevEccSbeVolL1 is DCGM_FI_DEV_ECC_SBE_VOL_L1. FieldDevEccSbeVolL1 FieldID = 314 // FieldDevEccDbeVolL1 is DCGM_FI_DEV_ECC_DBE_VOL_L1. FieldDevEccDbeVolL1 FieldID = 315 // FieldDevEccSbeVolL2 is DCGM_FI_DEV_ECC_SBE_VOL_L2. FieldDevEccSbeVolL2 FieldID = 316 // FieldDevEccDbeVolL2 is DCGM_FI_DEV_ECC_DBE_VOL_L2. FieldDevEccDbeVolL2 FieldID = 317 // FieldDevEccSbeVolDev is DCGM_FI_DEV_ECC_SBE_VOL_DEV. FieldDevEccSbeVolDev FieldID = 318 // FieldDevEccDbeVolDev is DCGM_FI_DEV_ECC_DBE_VOL_DEV. FieldDevEccDbeVolDev FieldID = 319 // FieldDevEccSbeVolReg is DCGM_FI_DEV_ECC_SBE_VOL_REG. FieldDevEccSbeVolReg FieldID = 320 // FieldDevEccDbeVolReg is DCGM_FI_DEV_ECC_DBE_VOL_REG. FieldDevEccDbeVolReg FieldID = 321 // FieldDevEccSbeVolTex is DCGM_FI_DEV_ECC_SBE_VOL_TEX. FieldDevEccSbeVolTex FieldID = 322 // FieldDevEccDbeVolTex is DCGM_FI_DEV_ECC_DBE_VOL_TEX. FieldDevEccDbeVolTex FieldID = 323 // FieldDevEccSbeAggL1 is DCGM_FI_DEV_ECC_SBE_AGG_L1. FieldDevEccSbeAggL1 FieldID = 324 // FieldDevEccDbeAggL1 is DCGM_FI_DEV_ECC_DBE_AGG_L1. FieldDevEccDbeAggL1 FieldID = 325 // FieldDevEccSbeAggL2 is DCGM_FI_DEV_ECC_SBE_AGG_L2. FieldDevEccSbeAggL2 FieldID = 326 // FieldDevEccDbeAggL2 is DCGM_FI_DEV_ECC_DBE_AGG_L2. FieldDevEccDbeAggL2 FieldID = 327 // FieldDevEccSbeAggDev is DCGM_FI_DEV_ECC_SBE_AGG_DEV. FieldDevEccSbeAggDev FieldID = 328 // FieldDevEccDbeAggDev is DCGM_FI_DEV_ECC_DBE_AGG_DEV. FieldDevEccDbeAggDev FieldID = 329 // FieldDevEccSbeAggReg is DCGM_FI_DEV_ECC_SBE_AGG_REG. FieldDevEccSbeAggReg FieldID = 330 // FieldDevEccDbeAggReg is DCGM_FI_DEV_ECC_DBE_AGG_REG. FieldDevEccDbeAggReg FieldID = 331 // FieldDevEccSbeAggTex is DCGM_FI_DEV_ECC_SBE_AGG_TEX. FieldDevEccSbeAggTex FieldID = 332 // FieldDevEccDbeAggTex is DCGM_FI_DEV_ECC_DBE_AGG_TEX. FieldDevEccDbeAggTex FieldID = 333 // FieldDevEccSbeVolShm is DCGM_FI_DEV_ECC_SBE_VOL_SHM. FieldDevEccSbeVolShm FieldID = 334 // FieldDevEccDbeVolShm is DCGM_FI_DEV_ECC_DBE_VOL_SHM. FieldDevEccDbeVolShm FieldID = 335 // FieldDevEccSbeVolCbu is DCGM_FI_DEV_ECC_SBE_VOL_CBU. FieldDevEccSbeVolCbu FieldID = 336 // FieldDevEccDbeVolCbu is DCGM_FI_DEV_ECC_DBE_VOL_CBU. FieldDevEccDbeVolCbu FieldID = 337 // FieldDevEccSbeAggShm is DCGM_FI_DEV_ECC_SBE_AGG_SHM. FieldDevEccSbeAggShm FieldID = 338 // FieldDevEccDbeAggShm is DCGM_FI_DEV_ECC_DBE_AGG_SHM. FieldDevEccDbeAggShm FieldID = 339 // FieldDevEccSbeAggCbu is DCGM_FI_DEV_ECC_SBE_AGG_CBU. FieldDevEccSbeAggCbu FieldID = 340 // FieldDevEccDbeAggCbu is DCGM_FI_DEV_ECC_DBE_AGG_CBU. FieldDevEccDbeAggCbu FieldID = 341 // FieldDevEccSbeVolSrm is DCGM_FI_DEV_ECC_SBE_VOL_SRM. FieldDevEccSbeVolSrm FieldID = 342 // FieldDevEccDbeVolSrm is DCGM_FI_DEV_ECC_DBE_VOL_SRM. FieldDevEccDbeVolSrm FieldID = 343 // FieldDevEccSbeAggSrm is DCGM_FI_DEV_ECC_SBE_AGG_SRM. FieldDevEccSbeAggSrm FieldID = 344 // FieldDevEccDbeAggSrm is DCGM_FI_DEV_ECC_DBE_AGG_SRM. FieldDevEccDbeAggSrm FieldID = 345 // FieldDevSramExceeded is DCGM_FI_DEV_SRAM_EXCEEDED. FieldDevSramExceeded FieldID = 346 // FieldDevDiagMemoryResult is DCGM_FI_DEV_DIAG_MEMORY_RESULT. FieldDevDiagMemoryResult FieldID = 350 // FieldDevDiagDiagnosticResult is DCGM_FI_DEV_DIAG_DIAGNOSTIC_RESULT. FieldDevDiagDiagnosticResult FieldID = 351 // FieldDevDiagPcieResult is DCGM_FI_DEV_DIAG_PCIE_RESULT. FieldDevDiagPcieResult FieldID = 352 // FieldDevDiagTargetedStressResult is DCGM_FI_DEV_DIAG_TARGETED_STRESS_RESULT. FieldDevDiagTargetedStressResult FieldID = 353 // FieldDevDiagTargetedPowerResult is DCGM_FI_DEV_DIAG_TARGETED_POWER_RESULT. FieldDevDiagTargetedPowerResult FieldID = 354 // FieldDevDiagMemoryBandwidthResult is DCGM_FI_DEV_DIAG_MEMORY_BANDWIDTH_RESULT. FieldDevDiagMemoryBandwidthResult FieldID = 355 // FieldDevDiagMemtestResult is DCGM_FI_DEV_DIAG_MEMTEST_RESULT. FieldDevDiagMemtestResult FieldID = 356 // FieldDevDiagPulseTestResult is DCGM_FI_DEV_DIAG_PULSE_TEST_RESULT. FieldDevDiagPulseTestResult FieldID = 357 // FieldDevDiagEudResult is DCGM_FI_DEV_DIAG_EUD_RESULT. FieldDevDiagEudResult FieldID = 358 // FieldDevDiagCpuEudResult is DCGM_FI_DEV_DIAG_CPU_EUD_RESULT. FieldDevDiagCpuEudResult FieldID = 359 // FieldDevDiagSoftwareResult is DCGM_FI_DEV_DIAG_SOFTWARE_RESULT. FieldDevDiagSoftwareResult FieldID = 360 // FieldDevDiagNvbandwidthResult is DCGM_FI_DEV_DIAG_NVBANDWIDTH_RESULT. FieldDevDiagNvbandwidthResult FieldID = 361 // FieldDevDiagStatus is DCGM_FI_DEV_DIAG_STATUS. FieldDevDiagStatus FieldID = 362 // FieldDevDiagNcclTestsResult is DCGM_FI_DEV_DIAG_NCCL_TESTS_RESULT. FieldDevDiagNcclTestsResult FieldID = 363 // FieldDevDiagCpuSdcResult is DCGM_FI_DEV_DIAG_CPU_SDC_RESULT. FieldDevDiagCpuSdcResult FieldID = 364 // FieldDevBankRemapAvailMax is DCGM_FI_DEV_BANK_REMAP_AVAIL_MAX. FieldDevBankRemapAvailMax FieldID = 385 // FieldDevBankRemapAvailHigh is DCGM_FI_DEV_BANK_REMAP_AVAIL_HIGH. FieldDevBankRemapAvailHigh FieldID = 386 // FieldDevBankRemapAvailPartial is DCGM_FI_DEV_BANK_REMAP_AVAIL_PARTIAL. FieldDevBankRemapAvailPartial FieldID = 387 // FieldDevBankRemapAvailLow is DCGM_FI_DEV_BANK_REMAP_AVAIL_LOW. FieldDevBankRemapAvailLow FieldID = 388 // FieldDevBankRemapAvailNone is DCGM_FI_DEV_BANK_REMAP_AVAIL_NONE. FieldDevBankRemapAvailNone FieldID = 389 // FieldDevPageRetiredSbeTotal is DCGM_FI_DEV_PAGE_RETIRED_SBE_TOTAL. FieldDevPageRetiredSbeTotal FieldID = 390 // FieldDevPageRetiredDbeTotal is DCGM_FI_DEV_PAGE_RETIRED_DBE_TOTAL. FieldDevPageRetiredDbeTotal FieldID = 391 // FieldDevPageRetiredPending is DCGM_FI_DEV_PAGE_RETIRED_PENDING. FieldDevPageRetiredPending FieldID = 392 // FieldDevRowRemapUncorrectableTotal is DCGM_FI_DEV_ROW_REMAP_UNCORRECTABLE_TOTAL. FieldDevRowRemapUncorrectableTotal FieldID = 393 // FieldDevRowRemapCorrectableTotal is DCGM_FI_DEV_ROW_REMAP_CORRECTABLE_TOTAL. FieldDevRowRemapCorrectableTotal FieldID = 394 // FieldDevRowRemapFailed is DCGM_FI_DEV_ROW_REMAP_FAILED. FieldDevRowRemapFailed FieldID = 395 // FieldDevRowRemapPending is DCGM_FI_DEV_ROW_REMAP_PENDING. FieldDevRowRemapPending FieldID = 396 // FieldDevNvlinkCrcFlitErrorL0Total is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L0_TOTAL. FieldDevNvlinkCrcFlitErrorL0Total FieldID = 400 // FieldDevNvlinkCrcFlitErrorL1Total is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L1_TOTAL. FieldDevNvlinkCrcFlitErrorL1Total FieldID = 401 // FieldDevNvlinkCrcFlitErrorL2Total is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L2_TOTAL. FieldDevNvlinkCrcFlitErrorL2Total FieldID = 402 // FieldDevNvlinkCrcFlitErrorL3Total is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L3_TOTAL. FieldDevNvlinkCrcFlitErrorL3Total FieldID = 403 // FieldDevNvlinkCrcFlitErrorL4Total is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L4_TOTAL. FieldDevNvlinkCrcFlitErrorL4Total FieldID = 404 // FieldDevNvlinkCrcFlitErrorL5Total is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L5_TOTAL. FieldDevNvlinkCrcFlitErrorL5Total FieldID = 405 // FieldDevNvlinkCrcFlitErrorTotal is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_TOTAL. FieldDevNvlinkCrcFlitErrorTotal FieldID = 409 // FieldDevNvlinkCrcDataErrorL0Total is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L0_TOTAL. FieldDevNvlinkCrcDataErrorL0Total FieldID = 410 // FieldDevNvlinkCrcDataErrorL1Total is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L1_TOTAL. FieldDevNvlinkCrcDataErrorL1Total FieldID = 411 // FieldDevNvlinkCrcDataErrorL2Total is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L2_TOTAL. FieldDevNvlinkCrcDataErrorL2Total FieldID = 412 // FieldDevNvlinkCrcDataErrorL3Total is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L3_TOTAL. FieldDevNvlinkCrcDataErrorL3Total FieldID = 413 // FieldDevNvlinkCrcDataErrorL4Total is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L4_TOTAL. FieldDevNvlinkCrcDataErrorL4Total FieldID = 414 // FieldDevNvlinkCrcDataErrorL5Total is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L5_TOTAL. FieldDevNvlinkCrcDataErrorL5Total FieldID = 415 // FieldDevNvlinkCrcDataErrorTotal is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_TOTAL. FieldDevNvlinkCrcDataErrorTotal FieldID = 419 // FieldDevNvlinkReplayErrorL0Total is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L0_TOTAL. FieldDevNvlinkReplayErrorL0Total FieldID = 420 // FieldDevNvlinkReplayErrorL1Total is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L1_TOTAL. FieldDevNvlinkReplayErrorL1Total FieldID = 421 // FieldDevNvlinkReplayErrorL2Total is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L2_TOTAL. FieldDevNvlinkReplayErrorL2Total FieldID = 422 // FieldDevNvlinkReplayErrorL3Total is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L3_TOTAL. FieldDevNvlinkReplayErrorL3Total FieldID = 423 // FieldDevNvlinkReplayErrorL4Total is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L4_TOTAL. FieldDevNvlinkReplayErrorL4Total FieldID = 424 // FieldDevNvlinkReplayErrorL5Total is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L5_TOTAL. FieldDevNvlinkReplayErrorL5Total FieldID = 425 // FieldDevNvlinkReplayErrorTotal is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_TOTAL. FieldDevNvlinkReplayErrorTotal FieldID = 429 // FieldDevNvlinkRecoveryErrorL0Total is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L0_TOTAL. FieldDevNvlinkRecoveryErrorL0Total FieldID = 430 // FieldDevNvlinkRecoveryErrorL1Total is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L1_TOTAL. FieldDevNvlinkRecoveryErrorL1Total FieldID = 431 // FieldDevNvlinkRecoveryErrorL2Total is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L2_TOTAL. FieldDevNvlinkRecoveryErrorL2Total FieldID = 432 // FieldDevNvlinkRecoveryErrorL3Total is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L3_TOTAL. FieldDevNvlinkRecoveryErrorL3Total FieldID = 433 // FieldDevNvlinkRecoveryErrorL4Total is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L4_TOTAL. FieldDevNvlinkRecoveryErrorL4Total FieldID = 434 // FieldDevNvlinkRecoveryErrorL5Total is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L5_TOTAL. FieldDevNvlinkRecoveryErrorL5Total FieldID = 435 // FieldDevNvlinkRecoveryErrorTotal is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_TOTAL. FieldDevNvlinkRecoveryErrorTotal FieldID = 439 // FieldDevNvlinkThroughputL0 is DCGM_FI_DEV_NVLINK_THROUGHPUT_L0. FieldDevNvlinkThroughputL0 FieldID = 440 // FieldDevNvlinkThroughputL1 is DCGM_FI_DEV_NVLINK_THROUGHPUT_L1. FieldDevNvlinkThroughputL1 FieldID = 441 // FieldDevNvlinkThroughputL2 is DCGM_FI_DEV_NVLINK_THROUGHPUT_L2. FieldDevNvlinkThroughputL2 FieldID = 442 // FieldDevNvlinkThroughputL3 is DCGM_FI_DEV_NVLINK_THROUGHPUT_L3. FieldDevNvlinkThroughputL3 FieldID = 443 // FieldDevNvlinkThroughputL4 is DCGM_FI_DEV_NVLINK_THROUGHPUT_L4. FieldDevNvlinkThroughputL4 FieldID = 444 // FieldDevNvlinkThroughputL5 is DCGM_FI_DEV_NVLINK_THROUGHPUT_L5. FieldDevNvlinkThroughputL5 FieldID = 445 // FieldDevNvlinkThroughputTotal is DCGM_FI_DEV_NVLINK_THROUGHPUT_TOTAL. FieldDevNvlinkThroughputTotal FieldID = 449 // FieldDevNvlinkError is DCGM_FI_DEV_NVLINK_ERROR. FieldDevNvlinkError FieldID = 450 // FieldDevNvlinkCrcFlitErrorL6Total is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L6_TOTAL. FieldDevNvlinkCrcFlitErrorL6Total FieldID = 451 // FieldDevNvlinkCrcFlitErrorL7Total is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L7_TOTAL. FieldDevNvlinkCrcFlitErrorL7Total FieldID = 452 // FieldDevNvlinkCrcFlitErrorL8Total is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L8_TOTAL. FieldDevNvlinkCrcFlitErrorL8Total FieldID = 453 // FieldDevNvlinkCrcFlitErrorL9Total is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L9_TOTAL. FieldDevNvlinkCrcFlitErrorL9Total FieldID = 454 // FieldDevNvlinkCrcFlitErrorL10Total is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L10_TOTAL. FieldDevNvlinkCrcFlitErrorL10Total FieldID = 455 // FieldDevNvlinkCrcFlitErrorL11Total is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L11_TOTAL. FieldDevNvlinkCrcFlitErrorL11Total FieldID = 456 // FieldDevNvlinkCrcDataErrorL6Total is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L6_TOTAL. FieldDevNvlinkCrcDataErrorL6Total FieldID = 457 // FieldDevNvlinkCrcDataErrorL7Total is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L7_TOTAL. FieldDevNvlinkCrcDataErrorL7Total FieldID = 458 // FieldDevNvlinkCrcDataErrorL8Total is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L8_TOTAL. FieldDevNvlinkCrcDataErrorL8Total FieldID = 459 // FieldDevNvlinkCrcDataErrorL9Total is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L9_TOTAL. FieldDevNvlinkCrcDataErrorL9Total FieldID = 460 // FieldDevNvlinkCrcDataErrorL10Total is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L10_TOTAL. FieldDevNvlinkCrcDataErrorL10Total FieldID = 461 // FieldDevNvlinkCrcDataErrorL11Total is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L11_TOTAL. FieldDevNvlinkCrcDataErrorL11Total FieldID = 462 // FieldDevNvlinkReplayErrorL6Total is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L6_TOTAL. FieldDevNvlinkReplayErrorL6Total FieldID = 463 // FieldDevNvlinkReplayErrorL7Total is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L7_TOTAL. FieldDevNvlinkReplayErrorL7Total FieldID = 464 // FieldDevNvlinkReplayErrorL8Total is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L8_TOTAL. FieldDevNvlinkReplayErrorL8Total FieldID = 465 // FieldDevNvlinkReplayErrorL9Total is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L9_TOTAL. FieldDevNvlinkReplayErrorL9Total FieldID = 466 // FieldDevNvlinkReplayErrorL10Total is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L10_TOTAL. FieldDevNvlinkReplayErrorL10Total FieldID = 467 // FieldDevNvlinkReplayErrorL11Total is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L11_TOTAL. FieldDevNvlinkReplayErrorL11Total FieldID = 468 // FieldDevNvlinkRecoveryErrorL6Total is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L6_TOTAL. FieldDevNvlinkRecoveryErrorL6Total FieldID = 469 // FieldDevNvlinkRecoveryErrorL7Total is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L7_TOTAL. FieldDevNvlinkRecoveryErrorL7Total FieldID = 470 // FieldDevNvlinkRecoveryErrorL8Total is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L8_TOTAL. FieldDevNvlinkRecoveryErrorL8Total FieldID = 471 // FieldDevNvlinkRecoveryErrorL9Total is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L9_TOTAL. FieldDevNvlinkRecoveryErrorL9Total FieldID = 472 // FieldDevNvlinkRecoveryErrorL10Total is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L10_TOTAL. FieldDevNvlinkRecoveryErrorL10Total FieldID = 473 // FieldDevNvlinkRecoveryErrorL11Total is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L11_TOTAL. FieldDevNvlinkRecoveryErrorL11Total FieldID = 474 // FieldDevNvlinkThroughputL6 is DCGM_FI_DEV_NVLINK_THROUGHPUT_L6. FieldDevNvlinkThroughputL6 FieldID = 475 // FieldDevNvlinkThroughputL7 is DCGM_FI_DEV_NVLINK_THROUGHPUT_L7. FieldDevNvlinkThroughputL7 FieldID = 476 // FieldDevNvlinkThroughputL8 is DCGM_FI_DEV_NVLINK_THROUGHPUT_L8. FieldDevNvlinkThroughputL8 FieldID = 477 // FieldDevNvlinkThroughputL9 is DCGM_FI_DEV_NVLINK_THROUGHPUT_L9. FieldDevNvlinkThroughputL9 FieldID = 478 // FieldDevNvlinkThroughputL10 is DCGM_FI_DEV_NVLINK_THROUGHPUT_L10. FieldDevNvlinkThroughputL10 FieldID = 479 // FieldDevNvlinkThroughputL11 is DCGM_FI_DEV_NVLINK_THROUGHPUT_L11. FieldDevNvlinkThroughputL11 FieldID = 480 // FieldDevNvlinkCrcFlitErrorL12Total is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L12_TOTAL. FieldDevNvlinkCrcFlitErrorL12Total FieldID = 406 // FieldDevNvlinkCrcFlitErrorL13Total is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L13_TOTAL. FieldDevNvlinkCrcFlitErrorL13Total FieldID = 407 // FieldDevNvlinkCrcFlitErrorL14Total is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L14_TOTAL. FieldDevNvlinkCrcFlitErrorL14Total FieldID = 408 // FieldDevNvlinkCrcFlitErrorL15Total is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L15_TOTAL. FieldDevNvlinkCrcFlitErrorL15Total FieldID = 481 // FieldDevNvlinkCrcFlitErrorL16Total is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L16_TOTAL. FieldDevNvlinkCrcFlitErrorL16Total FieldID = 482 // FieldDevNvlinkCrcFlitErrorL17Total is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L17_TOTAL. FieldDevNvlinkCrcFlitErrorL17Total FieldID = 483 // FieldDevNvlinkCrcDataErrorL12Total is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L12_TOTAL. FieldDevNvlinkCrcDataErrorL12Total FieldID = 416 // FieldDevNvlinkCrcDataErrorL13Total is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L13_TOTAL. FieldDevNvlinkCrcDataErrorL13Total FieldID = 417 // FieldDevNvlinkCrcDataErrorL14Total is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L14_TOTAL. FieldDevNvlinkCrcDataErrorL14Total FieldID = 418 // FieldDevNvlinkCrcDataErrorL15Total is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L15_TOTAL. FieldDevNvlinkCrcDataErrorL15Total FieldID = 484 // FieldDevNvlinkCrcDataErrorL16Total is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L16_TOTAL. FieldDevNvlinkCrcDataErrorL16Total FieldID = 485 // FieldDevNvlinkCrcDataErrorL17Total is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L17_TOTAL. FieldDevNvlinkCrcDataErrorL17Total FieldID = 486 // FieldDevNvlinkReplayErrorL12Total is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L12_TOTAL. FieldDevNvlinkReplayErrorL12Total FieldID = 426 // FieldDevNvlinkReplayErrorL13Total is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L13_TOTAL. FieldDevNvlinkReplayErrorL13Total FieldID = 427 // FieldDevNvlinkReplayErrorL14Total is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L14_TOTAL. FieldDevNvlinkReplayErrorL14Total FieldID = 428 // FieldDevNvlinkReplayErrorL15Total is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L15_TOTAL. FieldDevNvlinkReplayErrorL15Total FieldID = 487 // FieldDevNvlinkReplayErrorL16Total is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L16_TOTAL. FieldDevNvlinkReplayErrorL16Total FieldID = 488 // FieldDevNvlinkReplayErrorL17Total is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L17_TOTAL. FieldDevNvlinkReplayErrorL17Total FieldID = 489 // FieldDevNvlinkRecoveryErrorL12Total is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L12_TOTAL. FieldDevNvlinkRecoveryErrorL12Total FieldID = 436 // FieldDevNvlinkRecoveryErrorL13Total is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L13_TOTAL. FieldDevNvlinkRecoveryErrorL13Total FieldID = 437 // FieldDevNvlinkRecoveryErrorL14Total is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L14_TOTAL. FieldDevNvlinkRecoveryErrorL14Total FieldID = 438 // FieldDevNvlinkRecoveryErrorL15Total is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L15_TOTAL. FieldDevNvlinkRecoveryErrorL15Total FieldID = 491 // FieldDevNvlinkRecoveryErrorL16Total is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L16_TOTAL. FieldDevNvlinkRecoveryErrorL16Total FieldID = 492 // FieldDevNvlinkRecoveryErrorL17Total is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L17_TOTAL. FieldDevNvlinkRecoveryErrorL17Total FieldID = 493 // FieldDevNvlinkThroughputL12 is DCGM_FI_DEV_NVLINK_THROUGHPUT_L12. FieldDevNvlinkThroughputL12 FieldID = 446 // FieldDevNvlinkThroughputL13 is DCGM_FI_DEV_NVLINK_THROUGHPUT_L13. FieldDevNvlinkThroughputL13 FieldID = 447 // FieldDevNvlinkThroughputL14 is DCGM_FI_DEV_NVLINK_THROUGHPUT_L14. FieldDevNvlinkThroughputL14 FieldID = 448 // FieldDevNvlinkThroughputL15 is DCGM_FI_DEV_NVLINK_THROUGHPUT_L15. FieldDevNvlinkThroughputL15 FieldID = 494 // FieldDevNvlinkThroughputL16 is DCGM_FI_DEV_NVLINK_THROUGHPUT_L16. FieldDevNvlinkThroughputL16 FieldID = 495 // FieldDevNvlinkThroughputL17 is DCGM_FI_DEV_NVLINK_THROUGHPUT_L17. FieldDevNvlinkThroughputL17 FieldID = 496 // FieldDevNvlinkCrcErrorTotal is DCGM_FI_DEV_NVLINK_CRC_ERROR_TOTAL. FieldDevNvlinkCrcErrorTotal FieldID = 497 // FieldDevNvlinkRecoveryTotal is DCGM_FI_DEV_NVLINK_RECOVERY_TOTAL. FieldDevNvlinkRecoveryTotal FieldID = 498 // FieldDevNvlinkReplayTotal is DCGM_FI_DEV_NVLINK_REPLAY_TOTAL. FieldDevNvlinkReplayTotal FieldID = 499 // FieldDevGpuVirtualMode is DCGM_FI_DEV_GPU_VIRTUAL_MODE. FieldDevGpuVirtualMode FieldID = 500 // FieldDevVgpuSupportedInfo is DCGM_FI_DEV_VGPU_SUPPORTED_INFO. FieldDevVgpuSupportedInfo FieldID = 501 // FieldDevVgpuCreatableIds is DCGM_FI_DEV_VGPU_CREATABLE_IDS. FieldDevVgpuCreatableIds FieldID = 502 // FieldDevVgpuInstanceInfo is DCGM_FI_DEV_VGPU_INSTANCE_INFO. FieldDevVgpuInstanceInfo FieldID = 503 // FieldDevVgpuUtilInfo is DCGM_FI_DEV_VGPU_UTIL_INFO. FieldDevVgpuUtilInfo FieldID = 504 // FieldDevVgpuProcessUtilInfo is DCGM_FI_DEV_VGPU_PROCESS_UTIL_INFO. FieldDevVgpuProcessUtilInfo FieldID = 505 // FieldDevEncStats is DCGM_FI_DEV_ENC_STATS. FieldDevEncStats FieldID = 506 // FieldDevFbcStats is DCGM_FI_DEV_FBC_STATS. FieldDevFbcStats FieldID = 507 // FieldDevFbcSessionsInfo is DCGM_FI_DEV_FBC_SESSIONS_INFO. FieldDevFbcSessionsInfo FieldID = 508 // FieldDevVgpuSupportedIds is DCGM_FI_DEV_VGPU_SUPPORTED_IDS. FieldDevVgpuSupportedIds FieldID = 509 // FieldDevVgpuTypeInfo is DCGM_FI_DEV_VGPU_TYPE_INFO. FieldDevVgpuTypeInfo FieldID = 510 // FieldDevVgpuTypeName is DCGM_FI_DEV_VGPU_TYPE_NAME. FieldDevVgpuTypeName FieldID = 511 // FieldDevVgpuTypeClass is DCGM_FI_DEV_VGPU_TYPE_CLASS. FieldDevVgpuTypeClass FieldID = 512 // FieldDevVgpuTypeLicense is DCGM_FI_DEV_VGPU_TYPE_LICENSE. FieldDevVgpuTypeLicense FieldID = 513 // FieldDevVgpuVmId is DCGM_FI_DEV_VGPU_VM_ID. FieldDevVgpuVmId FieldID = 520 // FieldDevVgpuVmName is DCGM_FI_DEV_VGPU_VM_NAME. FieldDevVgpuVmName FieldID = 521 // FieldDevVgpuType is DCGM_FI_DEV_VGPU_TYPE. FieldDevVgpuType FieldID = 522 // FieldDevVgpuUuid is DCGM_FI_DEV_VGPU_UUID. FieldDevVgpuUuid FieldID = 523 // FieldDevVgpuDriverVersion is DCGM_FI_DEV_VGPU_DRIVER_VERSION. FieldDevVgpuDriverVersion FieldID = 524 // FieldDevVgpuMemoryUsage is DCGM_FI_DEV_VGPU_MEMORY_USAGE. FieldDevVgpuMemoryUsage FieldID = 525 // FieldDevVgpuLicenseStatus is DCGM_FI_DEV_VGPU_LICENSE_STATUS. FieldDevVgpuLicenseStatus FieldID = 526 // FieldDevVgpuFrameRateLimit is DCGM_FI_DEV_VGPU_FRAME_RATE_LIMIT. FieldDevVgpuFrameRateLimit FieldID = 527 // FieldDevVgpuEncStats is DCGM_FI_DEV_VGPU_ENC_STATS. FieldDevVgpuEncStats FieldID = 528 // FieldDevVgpuEncSessionsInfo is DCGM_FI_DEV_VGPU_ENC_SESSIONS_INFO. FieldDevVgpuEncSessionsInfo FieldID = 529 // FieldDevVgpuFbcStats is DCGM_FI_DEV_VGPU_FBC_STATS. FieldDevVgpuFbcStats FieldID = 530 // FieldDevVgpuFbcSessionsInfo is DCGM_FI_DEV_VGPU_FBC_SESSIONS_INFO. FieldDevVgpuFbcSessionsInfo FieldID = 531 // FieldDevVgpuInstanceLicenseStatus is DCGM_FI_DEV_VGPU_INSTANCE_LICENSE_STATUS. FieldDevVgpuInstanceLicenseStatus FieldID = 532 // FieldDevVgpuPciId is DCGM_FI_DEV_VGPU_PCI_ID. FieldDevVgpuPciId FieldID = 533 // FieldDevVgpuGpuInstanceId is DCGM_FI_DEV_VGPU_GPU_INSTANCE_ID. FieldDevVgpuGpuInstanceId FieldID = 534 // FieldFirstVgpuFieldId is DCGM_FI_FIRST_VGPU_FIELD_ID. FieldFirstVgpuFieldId FieldID = 520 // FieldLastVgpuFieldId is DCGM_FI_LAST_VGPU_FIELD_ID. FieldLastVgpuFieldId FieldID = 570 // FieldDevPlatformInfinibandGuid is DCGM_FI_DEV_PLATFORM_INFINIBAND_GUID. FieldDevPlatformInfinibandGuid FieldID = 571 // FieldDevPlatformChassisSerialNumber is DCGM_FI_DEV_PLATFORM_CHASSIS_SERIAL_NUMBER. FieldDevPlatformChassisSerialNumber FieldID = 572 // FieldDevPlatformChassisSlotNumber is DCGM_FI_DEV_PLATFORM_CHASSIS_SLOT_NUMBER. FieldDevPlatformChassisSlotNumber FieldID = 573 // FieldDevPlatformTrayIndex is DCGM_FI_DEV_PLATFORM_TRAY_INDEX. FieldDevPlatformTrayIndex FieldID = 574 // FieldDevPlatformHostId is DCGM_FI_DEV_PLATFORM_HOST_ID. FieldDevPlatformHostId FieldID = 575 // FieldDevPlatformPeerType is DCGM_FI_DEV_PLATFORM_PEER_TYPE. FieldDevPlatformPeerType FieldID = 576 // FieldDevPlatformModuleId is DCGM_FI_DEV_PLATFORM_MODULE_ID. FieldDevPlatformModuleId FieldID = 577 // FieldDevNvlinkPprmOperRecovery is DCGM_FI_DEV_NVLINK_PPRM_OPER_RECOVERY. FieldDevNvlinkPprmOperRecovery FieldID = 580 // FieldDevNvlinkPpcntRecoverySinceLastSeconds is DCGM_FI_DEV_NVLINK_PPCNT_RECOVERY_SINCE_LAST_SECONDS. FieldDevNvlinkPpcntRecoverySinceLastSeconds FieldID = 581 // FieldDevNvlinkPpcntRecoveryTimeBetweenLastTwo is DCGM_FI_DEV_NVLINK_PPCNT_RECOVERY_TIME_BETWEEN_LAST_TWO. FieldDevNvlinkPpcntRecoveryTimeBetweenLastTwo FieldID = 582 // FieldDevNvlinkPpcntRecoverySuccessfulTotal is DCGM_FI_DEV_NVLINK_PPCNT_RECOVERY_SUCCESSFUL_TOTAL. FieldDevNvlinkPpcntRecoverySuccessfulTotal FieldID = 583 // FieldDevNvlinkPpcntPhysicalRecoverySuccessfulTotal is DCGM_FI_DEV_NVLINK_PPCNT_PHYSICAL_RECOVERY_SUCCESSFUL_TOTAL. FieldDevNvlinkPpcntPhysicalRecoverySuccessfulTotal FieldID = 584 // FieldDevNvlinkPpcntPhysicalLinkDownTotal is DCGM_FI_DEV_NVLINK_PPCNT_PHYSICAL_LINK_DOWN_TOTAL. FieldDevNvlinkPpcntPhysicalLinkDownTotal FieldID = 585 // FieldDevNvlinkPpcntPlrRxCodeTotal is DCGM_FI_DEV_NVLINK_PPCNT_PLR_RX_CODE_TOTAL. FieldDevNvlinkPpcntPlrRxCodeTotal FieldID = 586 // FieldDevNvlinkPpcntPlrRxCodeErrorTotal is DCGM_FI_DEV_NVLINK_PPCNT_PLR_RX_CODE_ERROR_TOTAL. FieldDevNvlinkPpcntPlrRxCodeErrorTotal FieldID = 587 // FieldDevNvlinkPpcntPlrRxCodeUncorrectableTotal is DCGM_FI_DEV_NVLINK_PPCNT_PLR_RX_CODE_UNCORRECTABLE_TOTAL. FieldDevNvlinkPpcntPlrRxCodeUncorrectableTotal FieldID = 588 // FieldDevNvlinkPpcntPlrTxCodeTotal is DCGM_FI_DEV_NVLINK_PPCNT_PLR_TX_CODE_TOTAL. FieldDevNvlinkPpcntPlrTxCodeTotal FieldID = 589 // FieldDevNvlinkPpcntPlrTxRetryCodeTotal is DCGM_FI_DEV_NVLINK_PPCNT_PLR_TX_RETRY_CODE_TOTAL. FieldDevNvlinkPpcntPlrTxRetryCodeTotal FieldID = 590 // FieldDevNvlinkPpcntPlrTxRetryEventTotal is DCGM_FI_DEV_NVLINK_PPCNT_PLR_TX_RETRY_EVENT_TOTAL. FieldDevNvlinkPpcntPlrTxRetryEventTotal FieldID = 591 // FieldDevNvlinkPpcntPlrSyncEventTotal is DCGM_FI_DEV_NVLINK_PPCNT_PLR_SYNC_EVENT_TOTAL. FieldDevNvlinkPpcntPlrSyncEventTotal FieldID = 592 // FieldInternalFields0Start is DCGM_FI_INTERNAL_FIELDS_0_START. FieldInternalFields0Start FieldID = 600 // FieldInternalFields0End is DCGM_FI_INTERNAL_FIELDS_0_END. FieldInternalFields0End FieldID = 699 // FieldFirstNvswitchFieldId is DCGM_FI_FIRST_NVSWITCH_FIELD_ID. FieldFirstNvswitchFieldId FieldID = 700 // FieldDevNvswitchVoltageMvolt is DCGM_FI_DEV_NVSWITCH_VOLTAGE_MVOLT. FieldDevNvswitchVoltageMvolt FieldID = 701 // FieldDevNvswitchCurrentIddq is DCGM_FI_DEV_NVSWITCH_CURRENT_IDDQ. FieldDevNvswitchCurrentIddq FieldID = 702 // FieldDevNvswitchCurrentIddqRev is DCGM_FI_DEV_NVSWITCH_CURRENT_IDDQ_REV. FieldDevNvswitchCurrentIddqRev FieldID = 703 // FieldDevNvswitchCurrentIddqDvdd is DCGM_FI_DEV_NVSWITCH_CURRENT_IDDQ_DVDD. FieldDevNvswitchCurrentIddqDvdd FieldID = 704 // FieldDevNvswitchPowerVddWatts is DCGM_FI_DEV_NVSWITCH_POWER_VDD_WATTS. FieldDevNvswitchPowerVddWatts FieldID = 705 // FieldDevNvswitchPowerDvddWatts is DCGM_FI_DEV_NVSWITCH_POWER_DVDD_WATTS. FieldDevNvswitchPowerDvddWatts FieldID = 706 // FieldDevNvswitchPowerHvddWatts is DCGM_FI_DEV_NVSWITCH_POWER_HVDD_WATTS. FieldDevNvswitchPowerHvddWatts FieldID = 707 // FieldDevNvswitchLinkThroughputTx is DCGM_FI_DEV_NVSWITCH_LINK_THROUGHPUT_TX. FieldDevNvswitchLinkThroughputTx FieldID = 780 // FieldDevNvswitchLinkThroughputRx is DCGM_FI_DEV_NVSWITCH_LINK_THROUGHPUT_RX. FieldDevNvswitchLinkThroughputRx FieldID = 781 // FieldDevNvswitchLinkFatalErrors is DCGM_FI_DEV_NVSWITCH_LINK_FATAL_ERRORS. FieldDevNvswitchLinkFatalErrors FieldID = 782 // FieldDevNvswitchLinkNonFatalErrors is DCGM_FI_DEV_NVSWITCH_LINK_NON_FATAL_ERRORS. FieldDevNvswitchLinkNonFatalErrors FieldID = 783 // FieldDevNvswitchLinkReplayErrorTotal is DCGM_FI_DEV_NVSWITCH_LINK_REPLAY_ERROR_TOTAL. FieldDevNvswitchLinkReplayErrorTotal FieldID = 784 // FieldDevNvswitchLinkRecoveryErrorTotal is DCGM_FI_DEV_NVSWITCH_LINK_RECOVERY_ERROR_TOTAL. FieldDevNvswitchLinkRecoveryErrorTotal FieldID = 785 // FieldDevNvswitchLinkFlitErrorTotal is DCGM_FI_DEV_NVSWITCH_LINK_FLIT_ERROR_TOTAL. FieldDevNvswitchLinkFlitErrorTotal FieldID = 786 // FieldDevNvswitchLinkCrcErrorTotal is DCGM_FI_DEV_NVSWITCH_LINK_CRC_ERROR_TOTAL. FieldDevNvswitchLinkCrcErrorTotal FieldID = 787 // FieldDevNvswitchLinkEccErrorTotal is DCGM_FI_DEV_NVSWITCH_LINK_ECC_ERROR_TOTAL. FieldDevNvswitchLinkEccErrorTotal FieldID = 788 // FieldDevNvswitchLinkLatencyLowVC0 is DCGM_FI_DEV_NVSWITCH_LINK_LATENCY_LOW_VC0. FieldDevNvswitchLinkLatencyLowVC0 FieldID = 789 // FieldDevNvswitchLinkLatencyLowVC1 is DCGM_FI_DEV_NVSWITCH_LINK_LATENCY_LOW_VC1. FieldDevNvswitchLinkLatencyLowVC1 FieldID = 790 // FieldDevNvswitchLinkLatencyLowVC2 is DCGM_FI_DEV_NVSWITCH_LINK_LATENCY_LOW_VC2. FieldDevNvswitchLinkLatencyLowVC2 FieldID = 791 // FieldDevNvswitchLinkLatencyLowVC3 is DCGM_FI_DEV_NVSWITCH_LINK_LATENCY_LOW_VC3. FieldDevNvswitchLinkLatencyLowVC3 FieldID = 792 // FieldDevNvswitchLinkLatencyMediumVC0 is DCGM_FI_DEV_NVSWITCH_LINK_LATENCY_MEDIUM_VC0. FieldDevNvswitchLinkLatencyMediumVC0 FieldID = 793 // FieldDevNvswitchLinkLatencyMediumVC1 is DCGM_FI_DEV_NVSWITCH_LINK_LATENCY_MEDIUM_VC1. FieldDevNvswitchLinkLatencyMediumVC1 FieldID = 794 // FieldDevNvswitchLinkLatencyMediumVC2 is DCGM_FI_DEV_NVSWITCH_LINK_LATENCY_MEDIUM_VC2. FieldDevNvswitchLinkLatencyMediumVC2 FieldID = 795 // FieldDevNvswitchLinkLatencyMediumVC3 is DCGM_FI_DEV_NVSWITCH_LINK_LATENCY_MEDIUM_VC3. FieldDevNvswitchLinkLatencyMediumVC3 FieldID = 796 // FieldDevNvswitchLinkLatencyHighVC0 is DCGM_FI_DEV_NVSWITCH_LINK_LATENCY_HIGH_VC0. FieldDevNvswitchLinkLatencyHighVC0 FieldID = 797 // FieldDevNvswitchLinkLatencyHighVC1 is DCGM_FI_DEV_NVSWITCH_LINK_LATENCY_HIGH_VC1. FieldDevNvswitchLinkLatencyHighVC1 FieldID = 798 // FieldDevNvswitchLinkLatencyHighVC2 is DCGM_FI_DEV_NVSWITCH_LINK_LATENCY_HIGH_VC2. FieldDevNvswitchLinkLatencyHighVC2 FieldID = 799 // FieldDevNvswitchLinkLatencyHighVC3 is DCGM_FI_DEV_NVSWITCH_LINK_LATENCY_HIGH_VC3. FieldDevNvswitchLinkLatencyHighVC3 FieldID = 800 // FieldDevNvswitchLinkLatencyPanicVC0 is DCGM_FI_DEV_NVSWITCH_LINK_LATENCY_PANIC_VC0. FieldDevNvswitchLinkLatencyPanicVC0 FieldID = 801 // FieldDevNvswitchLinkLatencyPanicVC1 is DCGM_FI_DEV_NVSWITCH_LINK_LATENCY_PANIC_VC1. FieldDevNvswitchLinkLatencyPanicVC1 FieldID = 802 // FieldDevNvswitchLinkLatencyPanicVC2 is DCGM_FI_DEV_NVSWITCH_LINK_LATENCY_PANIC_VC2. FieldDevNvswitchLinkLatencyPanicVC2 FieldID = 803 // FieldDevNvswitchLinkLatencyPanicVC3 is DCGM_FI_DEV_NVSWITCH_LINK_LATENCY_PANIC_VC3. FieldDevNvswitchLinkLatencyPanicVC3 FieldID = 804 // FieldDevNvswitchLinkLatencySampleVC0Total is DCGM_FI_DEV_NVSWITCH_LINK_LATENCY_SAMPLE_VC0_TOTAL. FieldDevNvswitchLinkLatencySampleVC0Total FieldID = 805 // FieldDevNvswitchLinkLatencySampleVC1Total is DCGM_FI_DEV_NVSWITCH_LINK_LATENCY_SAMPLE_VC1_TOTAL. FieldDevNvswitchLinkLatencySampleVC1Total FieldID = 806 // FieldDevNvswitchLinkLatencySampleVC2Total is DCGM_FI_DEV_NVSWITCH_LINK_LATENCY_SAMPLE_VC2_TOTAL. FieldDevNvswitchLinkLatencySampleVC2Total FieldID = 807 // FieldDevNvswitchLinkLatencySampleVC3Total is DCGM_FI_DEV_NVSWITCH_LINK_LATENCY_SAMPLE_VC3_TOTAL. FieldDevNvswitchLinkLatencySampleVC3Total FieldID = 808 // FieldDevNvswitchLinkCrcErrorL0Total is DCGM_FI_DEV_NVSWITCH_LINK_CRC_ERROR_L0_TOTAL. FieldDevNvswitchLinkCrcErrorL0Total FieldID = 809 // FieldDevNvswitchLinkCrcErrorL1Total is DCGM_FI_DEV_NVSWITCH_LINK_CRC_ERROR_L1_TOTAL. FieldDevNvswitchLinkCrcErrorL1Total FieldID = 810 // FieldDevNvswitchLinkCrcErrorL2Total is DCGM_FI_DEV_NVSWITCH_LINK_CRC_ERROR_L2_TOTAL. FieldDevNvswitchLinkCrcErrorL2Total FieldID = 811 // FieldDevNvswitchLinkCrcErrorL3Total is DCGM_FI_DEV_NVSWITCH_LINK_CRC_ERROR_L3_TOTAL. FieldDevNvswitchLinkCrcErrorL3Total FieldID = 812 // FieldDevNvswitchLinkEccErrorL0Total is DCGM_FI_DEV_NVSWITCH_LINK_ECC_ERROR_L0_TOTAL. FieldDevNvswitchLinkEccErrorL0Total FieldID = 813 // FieldDevNvswitchLinkEccErrorL1Total is DCGM_FI_DEV_NVSWITCH_LINK_ECC_ERROR_L1_TOTAL. FieldDevNvswitchLinkEccErrorL1Total FieldID = 814 // FieldDevNvswitchLinkEccErrorL2Total is DCGM_FI_DEV_NVSWITCH_LINK_ECC_ERROR_L2_TOTAL. FieldDevNvswitchLinkEccErrorL2Total FieldID = 815 // FieldDevNvswitchLinkEccErrorL3Total is DCGM_FI_DEV_NVSWITCH_LINK_ECC_ERROR_L3_TOTAL. FieldDevNvswitchLinkEccErrorL3Total FieldID = 816 // FieldDevNvswitchLinkCrcErrorL4Total is DCGM_FI_DEV_NVSWITCH_LINK_CRC_ERROR_L4_TOTAL. FieldDevNvswitchLinkCrcErrorL4Total FieldID = 817 // FieldDevNvswitchLinkCrcErrorL5Total is DCGM_FI_DEV_NVSWITCH_LINK_CRC_ERROR_L5_TOTAL. FieldDevNvswitchLinkCrcErrorL5Total FieldID = 818 // FieldDevNvswitchLinkCrcErrorL6Total is DCGM_FI_DEV_NVSWITCH_LINK_CRC_ERROR_L6_TOTAL. FieldDevNvswitchLinkCrcErrorL6Total FieldID = 819 // FieldDevNvswitchLinkCrcErrorL7Total is DCGM_FI_DEV_NVSWITCH_LINK_CRC_ERROR_L7_TOTAL. FieldDevNvswitchLinkCrcErrorL7Total FieldID = 820 // FieldDevNvswitchLinkEccErrorL4Total is DCGM_FI_DEV_NVSWITCH_LINK_ECC_ERROR_L4_TOTAL. FieldDevNvswitchLinkEccErrorL4Total FieldID = 821 // FieldDevNvswitchLinkEccErrorL5Total is DCGM_FI_DEV_NVSWITCH_LINK_ECC_ERROR_L5_TOTAL. FieldDevNvswitchLinkEccErrorL5Total FieldID = 822 // FieldDevNvswitchLinkEccErrorL6Total is DCGM_FI_DEV_NVSWITCH_LINK_ECC_ERROR_L6_TOTAL. FieldDevNvswitchLinkEccErrorL6Total FieldID = 823 // FieldDevNvswitchLinkEccErrorL7Total is DCGM_FI_DEV_NVSWITCH_LINK_ECC_ERROR_L7_TOTAL. FieldDevNvswitchLinkEccErrorL7Total FieldID = 824 // FieldDevNvlinkTxThroughputL0 is DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L0. FieldDevNvlinkTxThroughputL0 FieldID = 825 // FieldDevNvlinkTxThroughputL1 is DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L1. FieldDevNvlinkTxThroughputL1 FieldID = 826 // FieldDevNvlinkTxThroughputL2 is DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L2. FieldDevNvlinkTxThroughputL2 FieldID = 827 // FieldDevNvlinkTxThroughputL3 is DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L3. FieldDevNvlinkTxThroughputL3 FieldID = 828 // FieldDevNvlinkTxThroughputL4 is DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L4. FieldDevNvlinkTxThroughputL4 FieldID = 829 // FieldDevNvlinkTxThroughputL5 is DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L5. FieldDevNvlinkTxThroughputL5 FieldID = 830 // FieldDevNvlinkTxThroughputL6 is DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L6. FieldDevNvlinkTxThroughputL6 FieldID = 831 // FieldDevNvlinkTxThroughputL7 is DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L7. FieldDevNvlinkTxThroughputL7 FieldID = 832 // FieldDevNvlinkTxThroughputL8 is DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L8. FieldDevNvlinkTxThroughputL8 FieldID = 833 // FieldDevNvlinkTxThroughputL9 is DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L9. FieldDevNvlinkTxThroughputL9 FieldID = 834 // FieldDevNvlinkTxThroughputL10 is DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L10. FieldDevNvlinkTxThroughputL10 FieldID = 835 // FieldDevNvlinkTxThroughputL11 is DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L11. FieldDevNvlinkTxThroughputL11 FieldID = 836 // FieldDevNvlinkTxThroughputL12 is DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L12. FieldDevNvlinkTxThroughputL12 FieldID = 837 // FieldDevNvlinkTxThroughputL13 is DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L13. FieldDevNvlinkTxThroughputL13 FieldID = 838 // FieldDevNvlinkTxThroughputL14 is DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L14. FieldDevNvlinkTxThroughputL14 FieldID = 839 // FieldDevNvlinkTxThroughputL15 is DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L15. FieldDevNvlinkTxThroughputL15 FieldID = 840 // FieldDevNvlinkTxThroughputL16 is DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L16. FieldDevNvlinkTxThroughputL16 FieldID = 841 // FieldDevNvlinkTxThroughputL17 is DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L17. FieldDevNvlinkTxThroughputL17 FieldID = 842 // FieldDevNvlinkTxThroughputTotal is DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_TOTAL. FieldDevNvlinkTxThroughputTotal FieldID = 843 // FieldDevSxidFatalError is DCGM_FI_DEV_SXID_FATAL_ERROR. FieldDevSxidFatalError FieldID = 856 // FieldDevSxidNonFatalError is DCGM_FI_DEV_SXID_NON_FATAL_ERROR. FieldDevSxidNonFatalError FieldID = 857 // FieldDevNvswitchTempCelsius is DCGM_FI_DEV_NVSWITCH_TEMP_CELSIUS. FieldDevNvswitchTempCelsius FieldID = 858 // FieldDevNvswitchTempSlowdownCelsius is DCGM_FI_DEV_NVSWITCH_TEMP_SLOWDOWN_CELSIUS. FieldDevNvswitchTempSlowdownCelsius FieldID = 859 // FieldDevNvswitchTempShutdownCelsius is DCGM_FI_DEV_NVSWITCH_TEMP_SHUTDOWN_CELSIUS. FieldDevNvswitchTempShutdownCelsius FieldID = 860 // FieldDevNvswitchThroughputTx is DCGM_FI_DEV_NVSWITCH_THROUGHPUT_TX. FieldDevNvswitchThroughputTx FieldID = 861 // FieldDevNvswitchThroughputRx is DCGM_FI_DEV_NVSWITCH_THROUGHPUT_RX. FieldDevNvswitchThroughputRx FieldID = 862 // FieldDevNvswitchPhysicalId is DCGM_FI_DEV_NVSWITCH_PHYSICAL_ID. FieldDevNvswitchPhysicalId FieldID = 863 // FieldDevNvswitchResetRequired is DCGM_FI_DEV_NVSWITCH_RESET_REQUIRED. FieldDevNvswitchResetRequired FieldID = 864 // FieldDevNvswitchLinkId is DCGM_FI_DEV_NVSWITCH_LINK_ID. FieldDevNvswitchLinkId FieldID = 865 // FieldDevNvswitchPcieDomain is DCGM_FI_DEV_NVSWITCH_PCIE_DOMAIN. FieldDevNvswitchPcieDomain FieldID = 866 // FieldDevNvswitchPcieBus is DCGM_FI_DEV_NVSWITCH_PCIE_BUS. FieldDevNvswitchPcieBus FieldID = 867 // FieldDevNvswitchPcieDevice is DCGM_FI_DEV_NVSWITCH_PCIE_DEVICE. FieldDevNvswitchPcieDevice FieldID = 868 // FieldDevNvswitchPcieFunction is DCGM_FI_DEV_NVSWITCH_PCIE_FUNCTION. FieldDevNvswitchPcieFunction FieldID = 869 // FieldDevNvswitchLinkStatus is DCGM_FI_DEV_NVSWITCH_LINK_STATUS. FieldDevNvswitchLinkStatus FieldID = 870 // FieldDevNvswitchLinkType is DCGM_FI_DEV_NVSWITCH_LINK_TYPE. FieldDevNvswitchLinkType FieldID = 871 // FieldDevNvswitchLinkRemotePcieDomain is DCGM_FI_DEV_NVSWITCH_LINK_REMOTE_PCIE_DOMAIN. FieldDevNvswitchLinkRemotePcieDomain FieldID = 872 // FieldDevNvswitchLinkRemotePcieBus is DCGM_FI_DEV_NVSWITCH_LINK_REMOTE_PCIE_BUS. FieldDevNvswitchLinkRemotePcieBus FieldID = 873 // FieldDevNvswitchLinkRemotePcieDevice is DCGM_FI_DEV_NVSWITCH_LINK_REMOTE_PCIE_DEVICE. FieldDevNvswitchLinkRemotePcieDevice FieldID = 874 // FieldDevNvswitchLinkRemotePcieFunction is DCGM_FI_DEV_NVSWITCH_LINK_REMOTE_PCIE_FUNCTION. FieldDevNvswitchLinkRemotePcieFunction FieldID = 875 // FieldDevNvswitchLinkRemoteLinkId is DCGM_FI_DEV_NVSWITCH_LINK_REMOTE_LINK_ID. FieldDevNvswitchLinkRemoteLinkId FieldID = 876 // FieldDevNvswitchLinkRemoteLinkSid is DCGM_FI_DEV_NVSWITCH_LINK_REMOTE_LINK_SID. FieldDevNvswitchLinkRemoteLinkSid FieldID = 877 // FieldDevNvswitchUuid is DCGM_FI_DEV_NVSWITCH_UUID. FieldDevNvswitchUuid FieldID = 878 // FieldDevNvlinkRxThroughputL0 is DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L0. FieldDevNvlinkRxThroughputL0 FieldID = 879 // FieldDevNvlinkRxThroughputL1 is DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L1. FieldDevNvlinkRxThroughputL1 FieldID = 880 // FieldDevNvlinkRxThroughputL2 is DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L2. FieldDevNvlinkRxThroughputL2 FieldID = 881 // FieldDevNvlinkRxThroughputL3 is DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L3. FieldDevNvlinkRxThroughputL3 FieldID = 882 // FieldDevNvlinkRxThroughputL4 is DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L4. FieldDevNvlinkRxThroughputL4 FieldID = 883 // FieldDevNvlinkRxThroughputL5 is DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L5. FieldDevNvlinkRxThroughputL5 FieldID = 884 // FieldDevNvlinkRxThroughputL6 is DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L6. FieldDevNvlinkRxThroughputL6 FieldID = 885 // FieldDevNvlinkRxThroughputL7 is DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L7. FieldDevNvlinkRxThroughputL7 FieldID = 886 // FieldDevNvlinkRxThroughputL8 is DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L8. FieldDevNvlinkRxThroughputL8 FieldID = 887 // FieldDevNvlinkRxThroughputL9 is DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L9. FieldDevNvlinkRxThroughputL9 FieldID = 888 // FieldDevNvlinkRxThroughputL10 is DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L10. FieldDevNvlinkRxThroughputL10 FieldID = 889 // FieldDevNvlinkRxThroughputL11 is DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L11. FieldDevNvlinkRxThroughputL11 FieldID = 890 // FieldDevNvlinkRxThroughputL12 is DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L12. FieldDevNvlinkRxThroughputL12 FieldID = 891 // FieldDevNvlinkRxThroughputL13 is DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L13. FieldDevNvlinkRxThroughputL13 FieldID = 892 // FieldDevNvlinkRxThroughputL14 is DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L14. FieldDevNvlinkRxThroughputL14 FieldID = 893 // FieldDevNvlinkRxThroughputL15 is DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L15. FieldDevNvlinkRxThroughputL15 FieldID = 894 // FieldDevNvlinkRxThroughputL16 is DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L16. FieldDevNvlinkRxThroughputL16 FieldID = 895 // FieldDevNvlinkRxThroughputL17 is DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L17. FieldDevNvlinkRxThroughputL17 FieldID = 896 // FieldDevNvlinkRxThroughputTotal is DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_TOTAL. FieldDevNvlinkRxThroughputTotal FieldID = 897 // FieldLastNvswitchFieldId is DCGM_FI_LAST_NVSWITCH_FIELD_ID. FieldLastNvswitchFieldId FieldID = 899 // FieldProfGrEngineUtilRatio is DCGM_FI_PROF_GR_ENGINE_UTIL_RATIO. FieldProfGrEngineUtilRatio FieldID = 1001 // FieldProfSmUtilRatio is DCGM_FI_PROF_SM_UTIL_RATIO. FieldProfSmUtilRatio FieldID = 1002 // FieldProfSmOccupancyRatio is DCGM_FI_PROF_SM_OCCUPANCY_RATIO. FieldProfSmOccupancyRatio FieldID = 1003 // FieldProfTensorUtilRatio is DCGM_FI_PROF_TENSOR_UTIL_RATIO. FieldProfTensorUtilRatio FieldID = 1004 // FieldProfDramUtilRatio is DCGM_FI_PROF_DRAM_UTIL_RATIO. FieldProfDramUtilRatio FieldID = 1005 // FieldProfFP64UtilRatio is DCGM_FI_PROF_FP64_UTIL_RATIO. FieldProfFP64UtilRatio FieldID = 1006 // FieldProfFP32UtilRatio is DCGM_FI_PROF_FP32_UTIL_RATIO. FieldProfFP32UtilRatio FieldID = 1007 // FieldProfFP16UtilRatio is DCGM_FI_PROF_FP16_UTIL_RATIO. FieldProfFP16UtilRatio FieldID = 1008 // FieldProfPcieTxBytes is DCGM_FI_PROF_PCIE_TX_BYTES. FieldProfPcieTxBytes FieldID = 1009 // FieldProfPcieRxBytes is DCGM_FI_PROF_PCIE_RX_BYTES. FieldProfPcieRxBytes FieldID = 1010 // FieldProfNvlinkTxBytes is DCGM_FI_PROF_NVLINK_TX_BYTES. FieldProfNvlinkTxBytes FieldID = 1011 // FieldProfNvlinkRxBytes is DCGM_FI_PROF_NVLINK_RX_BYTES. FieldProfNvlinkRxBytes FieldID = 1012 // FieldProfImmaUtilRatio is DCGM_FI_PROF_IMMA_UTIL_RATIO. FieldProfImmaUtilRatio FieldID = 1013 // FieldProfHmmaUtilRatio is DCGM_FI_PROF_HMMA_UTIL_RATIO. FieldProfHmmaUtilRatio FieldID = 1014 // FieldProfDfmaUtilRatio is DCGM_FI_PROF_DFMA_UTIL_RATIO. FieldProfDfmaUtilRatio FieldID = 1015 // FieldProfIntUtilRatio is DCGM_FI_PROF_INT_UTIL_RATIO. FieldProfIntUtilRatio FieldID = 1016 // FieldProfNvdecUtil0Ratio is DCGM_FI_PROF_NVDEC_UTIL_0_RATIO. FieldProfNvdecUtil0Ratio FieldID = 1017 // FieldProfNvdecUtil1Ratio is DCGM_FI_PROF_NVDEC_UTIL_1_RATIO. FieldProfNvdecUtil1Ratio FieldID = 1018 // FieldProfNvdecUtil2Ratio is DCGM_FI_PROF_NVDEC_UTIL_2_RATIO. FieldProfNvdecUtil2Ratio FieldID = 1019 // FieldProfNvdecUtil3Ratio is DCGM_FI_PROF_NVDEC_UTIL_3_RATIO. FieldProfNvdecUtil3Ratio FieldID = 1020 // FieldProfNvdecUtil4Ratio is DCGM_FI_PROF_NVDEC_UTIL_4_RATIO. FieldProfNvdecUtil4Ratio FieldID = 1021 // FieldProfNvdecUtil5Ratio is DCGM_FI_PROF_NVDEC_UTIL_5_RATIO. FieldProfNvdecUtil5Ratio FieldID = 1022 // FieldProfNvdecUtil6Ratio is DCGM_FI_PROF_NVDEC_UTIL_6_RATIO. FieldProfNvdecUtil6Ratio FieldID = 1023 // FieldProfNvdecUtil7Ratio is DCGM_FI_PROF_NVDEC_UTIL_7_RATIO. FieldProfNvdecUtil7Ratio FieldID = 1024 // FieldProfNvjpgUtil0Ratio is DCGM_FI_PROF_NVJPG_UTIL_0_RATIO. FieldProfNvjpgUtil0Ratio FieldID = 1025 // FieldProfNvjpgUtil1Ratio is DCGM_FI_PROF_NVJPG_UTIL_1_RATIO. FieldProfNvjpgUtil1Ratio FieldID = 1026 // FieldProfNvjpgUtil2Ratio is DCGM_FI_PROF_NVJPG_UTIL_2_RATIO. FieldProfNvjpgUtil2Ratio FieldID = 1027 // FieldProfNvjpgUtil3Ratio is DCGM_FI_PROF_NVJPG_UTIL_3_RATIO. FieldProfNvjpgUtil3Ratio FieldID = 1028 // FieldProfNvjpgUtil4Ratio is DCGM_FI_PROF_NVJPG_UTIL_4_RATIO. FieldProfNvjpgUtil4Ratio FieldID = 1029 // FieldProfNvjpgUtil5Ratio is DCGM_FI_PROF_NVJPG_UTIL_5_RATIO. FieldProfNvjpgUtil5Ratio FieldID = 1030 // FieldProfNvjpgUtil6Ratio is DCGM_FI_PROF_NVJPG_UTIL_6_RATIO. FieldProfNvjpgUtil6Ratio FieldID = 1031 // FieldProfNvjpgUtil7Ratio is DCGM_FI_PROF_NVJPG_UTIL_7_RATIO. FieldProfNvjpgUtil7Ratio FieldID = 1032 // FieldProfNvofaUtil0Ratio is DCGM_FI_PROF_NVOFA_UTIL_0_RATIO. FieldProfNvofaUtil0Ratio FieldID = 1033 // FieldProfNvofaUtil1Ratio is DCGM_FI_PROF_NVOFA_UTIL_1_RATIO. FieldProfNvofaUtil1Ratio FieldID = 1034 // FieldProfC2CTxAllBytes is DCGM_FI_PROF_C2C_TX_ALL_BYTES. FieldProfC2CTxAllBytes FieldID = 1076 // FieldProfC2CTxDataBytes is DCGM_FI_PROF_C2C_TX_DATA_BYTES. FieldProfC2CTxDataBytes FieldID = 1077 // FieldProfC2CRxAllBytes is DCGM_FI_PROF_C2C_RX_ALL_BYTES. FieldProfC2CRxAllBytes FieldID = 1078 // FieldProfC2CRxDataBytes is DCGM_FI_PROF_C2C_RX_DATA_BYTES. FieldProfC2CRxDataBytes FieldID = 1079 // FieldProfHostmemCacheHit is DCGM_FI_PROF_HOSTMEM_CACHE_HIT. FieldProfHostmemCacheHit FieldID = 1080 // FieldProfHostmemCacheMiss is DCGM_FI_PROF_HOSTMEM_CACHE_MISS. FieldProfHostmemCacheMiss FieldID = 1081 // FieldProfPeermemCacheHit is DCGM_FI_PROF_PEERMEM_CACHE_HIT. FieldProfPeermemCacheHit FieldID = 1082 // FieldProfPeermemCacheMiss is DCGM_FI_PROF_PEERMEM_CACHE_MISS. FieldProfPeermemCacheMiss FieldID = 1083 // FieldProfSmCyclesElapsedTotal is DCGM_FI_PROF_SM_CYCLES_ELAPSED_TOTAL. FieldProfSmCyclesElapsedTotal FieldID = 1084 // FieldProfSmCyclesActiveTotal is DCGM_FI_PROF_SM_CYCLES_ACTIVE_TOTAL. FieldProfSmCyclesActiveTotal FieldID = 1085 // FieldProfMmaCyclesActiveTotal is DCGM_FI_PROF_MMA_CYCLES_ACTIVE_TOTAL. FieldProfMmaCyclesActiveTotal FieldID = 1086 // FieldProfDmmaCyclesActiveTotal is DCGM_FI_PROF_DMMA_CYCLES_ACTIVE_TOTAL. FieldProfDmmaCyclesActiveTotal FieldID = 1087 // FieldProfHmmaCyclesActiveTotal is DCGM_FI_PROF_HMMA_CYCLES_ACTIVE_TOTAL. FieldProfHmmaCyclesActiveTotal FieldID = 1088 // FieldProfImmaCyclesActiveTotal is DCGM_FI_PROF_IMMA_CYCLES_ACTIVE_TOTAL. FieldProfImmaCyclesActiveTotal FieldID = 1089 // FieldProfDfmaCyclesActiveTotal is DCGM_FI_PROF_DFMA_CYCLES_ACTIVE_TOTAL. FieldProfDfmaCyclesActiveTotal FieldID = 1090 // FieldProfPcieTxBytesTotal is DCGM_FI_PROF_PCIE_TX_BYTES_TOTAL. FieldProfPcieTxBytesTotal FieldID = 1091 // FieldProfPcieRxBytesTotal is DCGM_FI_PROF_PCIE_RX_BYTES_TOTAL. FieldProfPcieRxBytesTotal FieldID = 1092 // FieldProfIntCyclesActiveTotal is DCGM_FI_PROF_INT_CYCLES_ACTIVE_TOTAL. FieldProfIntCyclesActiveTotal FieldID = 1093 // FieldProfFP64CyclesActiveTotal is DCGM_FI_PROF_FP64_CYCLES_ACTIVE_TOTAL. FieldProfFP64CyclesActiveTotal FieldID = 1094 // FieldProfFP32CyclesActiveTotal is DCGM_FI_PROF_FP32_CYCLES_ACTIVE_TOTAL. FieldProfFP32CyclesActiveTotal FieldID = 1095 // FieldProfFP16CyclesActiveTotal is DCGM_FI_PROF_FP16_CYCLES_ACTIVE_TOTAL. FieldProfFP16CyclesActiveTotal FieldID = 1096 // FieldDevCpuUtilRatio is DCGM_FI_DEV_CPU_UTIL_RATIO. FieldDevCpuUtilRatio FieldID = 1100 // FieldDevCpuUtilUserRatio is DCGM_FI_DEV_CPU_UTIL_USER_RATIO. FieldDevCpuUtilUserRatio FieldID = 1101 // FieldDevCpuUtilNiceRatio is DCGM_FI_DEV_CPU_UTIL_NICE_RATIO. FieldDevCpuUtilNiceRatio FieldID = 1102 // FieldDevCpuUtilSysRatio is DCGM_FI_DEV_CPU_UTIL_SYS_RATIO. FieldDevCpuUtilSysRatio FieldID = 1103 // FieldDevCpuUtilIrqRatio is DCGM_FI_DEV_CPU_UTIL_IRQ_RATIO. FieldDevCpuUtilIrqRatio FieldID = 1104 // FieldDevCpuTempCelsius is DCGM_FI_DEV_CPU_TEMP_CELSIUS. FieldDevCpuTempCelsius FieldID = 1110 // FieldDevCpuTempWarningCelsius is DCGM_FI_DEV_CPU_TEMP_WARNING_CELSIUS. FieldDevCpuTempWarningCelsius FieldID = 1111 // FieldDevCpuTempCriticalCelsius is DCGM_FI_DEV_CPU_TEMP_CRITICAL_CELSIUS. FieldDevCpuTempCriticalCelsius FieldID = 1112 // FieldDevCpuClockCurrent is DCGM_FI_DEV_CPU_CLOCK_CURRENT. FieldDevCpuClockCurrent FieldID = 1120 // FieldDevCpuPowerWatts is DCGM_FI_DEV_CPU_POWER_WATTS. FieldDevCpuPowerWatts FieldID = 1130 // FieldDevCpuPowerLimitWatts is DCGM_FI_DEV_CPU_POWER_LIMIT_WATTS. FieldDevCpuPowerLimitWatts FieldID = 1131 // FieldDevSysioPowerWatts is DCGM_FI_DEV_SYSIO_POWER_WATTS. FieldDevSysioPowerWatts FieldID = 1132 // FieldDevModulePowerWatts is DCGM_FI_DEV_MODULE_POWER_WATTS. FieldDevModulePowerWatts FieldID = 1133 // FieldDevCpuVendor is DCGM_FI_DEV_CPU_VENDOR. FieldDevCpuVendor FieldID = 1140 // FieldDevCpuModel is DCGM_FI_DEV_CPU_MODEL. FieldDevCpuModel FieldID = 1141 // FieldDevNvlinkTxPacketTotal is DCGM_FI_DEV_NVLINK_TX_PACKET_TOTAL. FieldDevNvlinkTxPacketTotal FieldID = 1200 // FieldDevNvlinkTxBytesTotal is DCGM_FI_DEV_NVLINK_TX_BYTES_TOTAL. FieldDevNvlinkTxBytesTotal FieldID = 1201 // FieldDevNvlinkRxPacketTotal is DCGM_FI_DEV_NVLINK_RX_PACKET_TOTAL. FieldDevNvlinkRxPacketTotal FieldID = 1202 // FieldDevNvlinkRxBytesTotal is DCGM_FI_DEV_NVLINK_RX_BYTES_TOTAL. FieldDevNvlinkRxBytesTotal FieldID = 1203 // FieldDevNvlinkRxPacketMalformedTotal is DCGM_FI_DEV_NVLINK_RX_PACKET_MALFORMED_TOTAL. FieldDevNvlinkRxPacketMalformedTotal FieldID = 1204 // FieldDevNvlinkRxPacketDroppedTotal is DCGM_FI_DEV_NVLINK_RX_PACKET_DROPPED_TOTAL. FieldDevNvlinkRxPacketDroppedTotal FieldID = 1205 // FieldDevNvlinkRxErrorTotal is DCGM_FI_DEV_NVLINK_RX_ERROR_TOTAL. FieldDevNvlinkRxErrorTotal FieldID = 1206 // FieldDevNvlinkRxRemoteErrorTotal is DCGM_FI_DEV_NVLINK_RX_REMOTE_ERROR_TOTAL. FieldDevNvlinkRxRemoteErrorTotal FieldID = 1207 // FieldDevNvlinkRxGeneralErrorTotal is DCGM_FI_DEV_NVLINK_RX_GENERAL_ERROR_TOTAL. FieldDevNvlinkRxGeneralErrorTotal FieldID = 1208 // FieldDevNvlinkIntegrityErrorTotal is DCGM_FI_DEV_NVLINK_INTEGRITY_ERROR_TOTAL. FieldDevNvlinkIntegrityErrorTotal FieldID = 1209 // FieldDevNvlinkTxDiscardTotal is DCGM_FI_DEV_NVLINK_TX_DISCARD_TOTAL. FieldDevNvlinkTxDiscardTotal FieldID = 1210 // FieldDevNvlinkRecoverySuccessfulTotal is DCGM_FI_DEV_NVLINK_RECOVERY_SUCCESSFUL_TOTAL. FieldDevNvlinkRecoverySuccessfulTotal FieldID = 1211 // FieldDevNvlinkRecoveryFailedTotal is DCGM_FI_DEV_NVLINK_RECOVERY_FAILED_TOTAL. FieldDevNvlinkRecoveryFailedTotal FieldID = 1212 // FieldDevNvlinkRecoveryEventTotal is DCGM_FI_DEV_NVLINK_RECOVERY_EVENT_TOTAL. FieldDevNvlinkRecoveryEventTotal FieldID = 1213 // FieldDevNvlinkRxSymbolErrorTotal is DCGM_FI_DEV_NVLINK_RX_SYMBOL_ERROR_TOTAL. FieldDevNvlinkRxSymbolErrorTotal FieldID = 1214 // FieldDevNvlinkSymbolBerRaw is DCGM_FI_DEV_NVLINK_SYMBOL_BER_RAW. FieldDevNvlinkSymbolBerRaw FieldID = 1215 // FieldDevNvlinkSymbolBerRatio is DCGM_FI_DEV_NVLINK_SYMBOL_BER_RATIO. FieldDevNvlinkSymbolBerRatio FieldID = 1216 // FieldDevNvlinkEffectiveBerRaw is DCGM_FI_DEV_NVLINK_EFFECTIVE_BER_RAW. FieldDevNvlinkEffectiveBerRaw FieldID = 1217 // FieldDevNvlinkEffectiveBerRatio is DCGM_FI_DEV_NVLINK_EFFECTIVE_BER_RATIO. FieldDevNvlinkEffectiveBerRatio FieldID = 1218 // FieldDevNvlinkEffectiveErrorTotal is DCGM_FI_DEV_NVLINK_EFFECTIVE_ERROR_TOTAL. FieldDevNvlinkEffectiveErrorTotal FieldID = 1219 // FieldDevNvlinkEccErrorTotal is DCGM_FI_DEV_NVLINK_ECC_ERROR_TOTAL. FieldDevNvlinkEccErrorTotal FieldID = 1220 // FieldDevFirstConnectxFieldId is DCGM_FI_DEV_FIRST_CONNECTX_FIELD_ID. FieldDevFirstConnectxFieldId FieldID = 1300 // FieldDevConnectxHealth is DCGM_FI_DEV_CONNECTX_HEALTH. FieldDevConnectxHealth FieldID = 1300 // FieldDevConnectxActivePcieLinkWidth is DCGM_FI_DEV_CONNECTX_ACTIVE_PCIE_LINK_WIDTH. FieldDevConnectxActivePcieLinkWidth FieldID = 1301 // FieldDevConnectxActivePcieLinkSpeed is DCGM_FI_DEV_CONNECTX_ACTIVE_PCIE_LINK_SPEED. FieldDevConnectxActivePcieLinkSpeed FieldID = 1302 // FieldDevConnectxExpectPcieLinkWidth is DCGM_FI_DEV_CONNECTX_EXPECT_PCIE_LINK_WIDTH. FieldDevConnectxExpectPcieLinkWidth FieldID = 1303 // FieldDevConnectxExpectPcieLinkSpeed is DCGM_FI_DEV_CONNECTX_EXPECT_PCIE_LINK_SPEED. FieldDevConnectxExpectPcieLinkSpeed FieldID = 1304 // FieldDevConnectxCorrectableErrorStatus is DCGM_FI_DEV_CONNECTX_CORRECTABLE_ERROR_STATUS. FieldDevConnectxCorrectableErrorStatus FieldID = 1305 // FieldDevConnectxCorrectableErrorMask is DCGM_FI_DEV_CONNECTX_CORRECTABLE_ERROR_MASK. FieldDevConnectxCorrectableErrorMask FieldID = 1306 // FieldDevConnectxUncorrectableErrorStatus is DCGM_FI_DEV_CONNECTX_UNCORRECTABLE_ERROR_STATUS. FieldDevConnectxUncorrectableErrorStatus FieldID = 1307 // FieldDevConnectxUncorrectableErrorMask is DCGM_FI_DEV_CONNECTX_UNCORRECTABLE_ERROR_MASK. FieldDevConnectxUncorrectableErrorMask FieldID = 1308 // FieldDevConnectxUncorrectableErrorSeverity is DCGM_FI_DEV_CONNECTX_UNCORRECTABLE_ERROR_SEVERITY. FieldDevConnectxUncorrectableErrorSeverity FieldID = 1309 // FieldDevConnectxTempCelsius is DCGM_FI_DEV_CONNECTX_TEMP_CELSIUS. FieldDevConnectxTempCelsius FieldID = 1310 // FieldDevLastConnectxFieldId is DCGM_FI_DEV_LAST_CONNECTX_FIELD_ID. FieldDevLastConnectxFieldId FieldID = 1399 // FieldDevC2CLinkErrorTotal is DCGM_FI_DEV_C2C_LINK_ERROR_TOTAL. FieldDevC2CLinkErrorTotal FieldID = 1400 // FieldDevC2CLinkReplayErrorTotal is DCGM_FI_DEV_C2C_LINK_REPLAY_ERROR_TOTAL. FieldDevC2CLinkReplayErrorTotal FieldID = 1401 // FieldDevC2CLinkReplayErrorB2BTotal is DCGM_FI_DEV_C2C_LINK_REPLAY_ERROR_B2B_TOTAL. FieldDevC2CLinkReplayErrorB2BTotal FieldID = 1402 // FieldDevC2CLinkPowerStatus is DCGM_FI_DEV_C2C_LINK_POWER_STATUS. FieldDevC2CLinkPowerStatus FieldID = 1403 // FieldDevNvlinkFecHistory0Total is DCGM_FI_DEV_NVLINK_FEC_HISTORY_0_TOTAL. FieldDevNvlinkFecHistory0Total FieldID = 1404 // FieldDevNvlinkFecHistory1Total is DCGM_FI_DEV_NVLINK_FEC_HISTORY_1_TOTAL. FieldDevNvlinkFecHistory1Total FieldID = 1405 // FieldDevNvlinkFecHistory2Total is DCGM_FI_DEV_NVLINK_FEC_HISTORY_2_TOTAL. FieldDevNvlinkFecHistory2Total FieldID = 1406 // FieldDevNvlinkFecHistory3Total is DCGM_FI_DEV_NVLINK_FEC_HISTORY_3_TOTAL. FieldDevNvlinkFecHistory3Total FieldID = 1407 // FieldDevNvlinkFecHistory4Total is DCGM_FI_DEV_NVLINK_FEC_HISTORY_4_TOTAL. FieldDevNvlinkFecHistory4Total FieldID = 1408 // FieldDevNvlinkFecHistory5Total is DCGM_FI_DEV_NVLINK_FEC_HISTORY_5_TOTAL. FieldDevNvlinkFecHistory5Total FieldID = 1409 // FieldDevNvlinkFecHistory6Total is DCGM_FI_DEV_NVLINK_FEC_HISTORY_6_TOTAL. FieldDevNvlinkFecHistory6Total FieldID = 1410 // FieldDevNvlinkFecHistory7Total is DCGM_FI_DEV_NVLINK_FEC_HISTORY_7_TOTAL. FieldDevNvlinkFecHistory7Total FieldID = 1411 // FieldDevNvlinkFecHistory8Total is DCGM_FI_DEV_NVLINK_FEC_HISTORY_8_TOTAL. FieldDevNvlinkFecHistory8Total FieldID = 1412 // FieldDevNvlinkFecHistory9Total is DCGM_FI_DEV_NVLINK_FEC_HISTORY_9_TOTAL. FieldDevNvlinkFecHistory9Total FieldID = 1413 // FieldDevNvlinkFecHistory10Total is DCGM_FI_DEV_NVLINK_FEC_HISTORY_10_TOTAL. FieldDevNvlinkFecHistory10Total FieldID = 1414 // FieldDevNvlinkFecHistory11Total is DCGM_FI_DEV_NVLINK_FEC_HISTORY_11_TOTAL. FieldDevNvlinkFecHistory11Total FieldID = 1415 // FieldDevNvlinkFecHistory12Total is DCGM_FI_DEV_NVLINK_FEC_HISTORY_12_TOTAL. FieldDevNvlinkFecHistory12Total FieldID = 1416 // FieldDevNvlinkFecHistory13Total is DCGM_FI_DEV_NVLINK_FEC_HISTORY_13_TOTAL. FieldDevNvlinkFecHistory13Total FieldID = 1417 // FieldDevNvlinkFecHistory14Total is DCGM_FI_DEV_NVLINK_FEC_HISTORY_14_TOTAL. FieldDevNvlinkFecHistory14Total FieldID = 1418 // FieldDevNvlinkFecHistory15Total is DCGM_FI_DEV_NVLINK_FEC_HISTORY_15_TOTAL. FieldDevNvlinkFecHistory15Total FieldID = 1419 // FieldDevClocksEventReasonSwPowerCapNs is DCGM_FI_DEV_CLOCKS_EVENT_REASON_SW_POWER_CAP_NS. FieldDevClocksEventReasonSwPowerCapNs FieldID = 1420 // FieldDevClocksEventReasonSyncBoostNs is DCGM_FI_DEV_CLOCKS_EVENT_REASON_SYNC_BOOST_NS. FieldDevClocksEventReasonSyncBoostNs FieldID = 1421 // FieldDevClocksEventReasonSwThermSlowdownNs is DCGM_FI_DEV_CLOCKS_EVENT_REASON_SW_THERM_SLOWDOWN_NS. FieldDevClocksEventReasonSwThermSlowdownNs FieldID = 1422 // FieldDevClocksEventReasonHwThermSlowdownNs is DCGM_FI_DEV_CLOCKS_EVENT_REASON_HW_THERM_SLOWDOWN_NS. FieldDevClocksEventReasonHwThermSlowdownNs FieldID = 1423 // FieldDevClocksEventReasonHwPowerBrakeSlowdownNs is DCGM_FI_DEV_CLOCKS_EVENT_REASON_HW_POWER_BRAKE_SLOWDOWN_NS. FieldDevClocksEventReasonHwPowerBrakeSlowdownNs FieldID = 1424 // FieldDevPwrSmoothingEnabled is DCGM_FI_DEV_PWR_SMOOTHING_ENABLED. FieldDevPwrSmoothingEnabled FieldID = 1425 // FieldDevPwrSmoothingPrivLvl is DCGM_FI_DEV_PWR_SMOOTHING_PRIV_LVL. FieldDevPwrSmoothingPrivLvl FieldID = 1426 // FieldDevPwrSmoothingImmRampDownEnabled is DCGM_FI_DEV_PWR_SMOOTHING_IMM_RAMP_DOWN_ENABLED. FieldDevPwrSmoothingImmRampDownEnabled FieldID = 1427 // FieldDevPwrSmoothingAppliedTmpCeilWatts is DCGM_FI_DEV_PWR_SMOOTHING_APPLIED_TMP_CEIL_WATTS. FieldDevPwrSmoothingAppliedTmpCeilWatts FieldID = 1428 // FieldDevPwrSmoothingAppliedTmpFloorWatts is DCGM_FI_DEV_PWR_SMOOTHING_APPLIED_TMP_FLOOR_WATTS. FieldDevPwrSmoothingAppliedTmpFloorWatts FieldID = 1429 // FieldDevPwrSmoothingMaxPercentTmpFloorSetting is DCGM_FI_DEV_PWR_SMOOTHING_MAX_PERCENT_TMP_FLOOR_SETTING. FieldDevPwrSmoothingMaxPercentTmpFloorSetting FieldID = 1430 // FieldDevPwrSmoothingMinPercentTmpFloorSetting is DCGM_FI_DEV_PWR_SMOOTHING_MIN_PERCENT_TMP_FLOOR_SETTING. FieldDevPwrSmoothingMinPercentTmpFloorSetting FieldID = 1431 // FieldDevPwrSmoothingHwCircuitryPercentLifetimeRemaining is DCGM_FI_DEV_PWR_SMOOTHING_HW_CIRCUITRY_PERCENT_LIFETIME_REMAINING. FieldDevPwrSmoothingHwCircuitryPercentLifetimeRemaining FieldID = 1432 // FieldDevPwrSmoothingMaxPresetProfiles is DCGM_FI_DEV_PWR_SMOOTHING_MAX_PRESET_PROFILES. FieldDevPwrSmoothingMaxPresetProfiles FieldID = 1433 // FieldDevPwrSmoothingProfilePercentTmpFloor is DCGM_FI_DEV_PWR_SMOOTHING_PROFILE_PERCENT_TMP_FLOOR. FieldDevPwrSmoothingProfilePercentTmpFloor FieldID = 1434 // FieldDevPwrSmoothingProfileRampUpRate is DCGM_FI_DEV_PWR_SMOOTHING_PROFILE_RAMP_UP_RATE. FieldDevPwrSmoothingProfileRampUpRate FieldID = 1435 // FieldDevPwrSmoothingProfileRampDownRate is DCGM_FI_DEV_PWR_SMOOTHING_PROFILE_RAMP_DOWN_RATE. FieldDevPwrSmoothingProfileRampDownRate FieldID = 1436 // FieldDevPwrSmoothingProfileRampDownHystVal is DCGM_FI_DEV_PWR_SMOOTHING_PROFILE_RAMP_DOWN_HYST_VAL. FieldDevPwrSmoothingProfileRampDownHystVal FieldID = 1437 // FieldDevPwrSmoothingActivePresetProfile is DCGM_FI_DEV_PWR_SMOOTHING_ACTIVE_PRESET_PROFILE. FieldDevPwrSmoothingActivePresetProfile FieldID = 1438 // FieldDevPwrSmoothingAdminOverridePercentTmpFloor is DCGM_FI_DEV_PWR_SMOOTHING_ADMIN_OVERRIDE_PERCENT_TMP_FLOOR. FieldDevPwrSmoothingAdminOverridePercentTmpFloor FieldID = 1439 // FieldDevPwrSmoothingAdminOverrideRampUpRate is DCGM_FI_DEV_PWR_SMOOTHING_ADMIN_OVERRIDE_RAMP_UP_RATE. FieldDevPwrSmoothingAdminOverrideRampUpRate FieldID = 1440 // FieldDevPwrSmoothingAdminOverrideRampDownRate is DCGM_FI_DEV_PWR_SMOOTHING_ADMIN_OVERRIDE_RAMP_DOWN_RATE. FieldDevPwrSmoothingAdminOverrideRampDownRate FieldID = 1441 // FieldDevPwrSmoothingAdminOverrideRampDownHystVal is DCGM_FI_DEV_PWR_SMOOTHING_ADMIN_OVERRIDE_RAMP_DOWN_HYST_VAL. FieldDevPwrSmoothingAdminOverrideRampDownHystVal FieldID = 1442 // FieldDevPcieCorrectableErrorTotal is DCGM_FI_DEV_PCIE_CORRECTABLE_ERROR_TOTAL. FieldDevPcieCorrectableErrorTotal FieldID = 1501 // FieldImexDomainStatus is DCGM_FI_IMEX_DOMAIN_STATUS. FieldImexDomainStatus FieldID = 1502 // FieldImexDaemonStatus is DCGM_FI_IMEX_DAEMON_STATUS. FieldImexDaemonStatus FieldID = 1503 // FieldDevMemoryUnrepairable is DCGM_FI_DEV_MEMORY_UNREPAIRABLE. FieldDevMemoryUnrepairable FieldID = 1507 // FieldDevNvlinkLinkStatus is DCGM_FI_DEV_NVLINK_LINK_STATUS. FieldDevNvlinkLinkStatus FieldID = 1508 // FieldDevNvlinkPpcntIbpcTxWaitTotal is DCGM_FI_DEV_NVLINK_PPCNT_IBPC_TX_WAIT_TOTAL. FieldDevNvlinkPpcntIbpcTxWaitTotal FieldID = 1509 // FieldDevGpuRecoveryAction is DCGM_FI_DEV_GPU_RECOVERY_ACTION. FieldDevGpuRecoveryAction FieldID = 1523 // FieldDevNvswitchFirmwareVersion is DCGM_FI_DEV_NVSWITCH_FIRMWARE_VERSION. FieldDevNvswitchFirmwareVersion FieldID = 1524 // FieldDevNvlinkCrcFlitErrorPerLinkTotal is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_PER_LINK_TOTAL. FieldDevNvlinkCrcFlitErrorPerLinkTotal FieldID = 1525 // FieldDevNvlinkCrcDataErrorPerLinkTotal is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_PER_LINK_TOTAL. FieldDevNvlinkCrcDataErrorPerLinkTotal FieldID = 1526 // FieldDevNvlinkReplayErrorPerLinkTotal is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_PER_LINK_TOTAL. FieldDevNvlinkReplayErrorPerLinkTotal FieldID = 1527 // FieldDevNvlinkRecoveryErrorPerLinkTotal is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_PER_LINK_TOTAL. FieldDevNvlinkRecoveryErrorPerLinkTotal FieldID = 1528 // FieldDevNvlinkThroughputPerLink is DCGM_FI_DEV_NVLINK_THROUGHPUT_PER_LINK. FieldDevNvlinkThroughputPerLink FieldID = 1529 // FieldDevNvlinkTxThroughputPerLink is DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_PER_LINK. FieldDevNvlinkTxThroughputPerLink FieldID = 1530 // FieldDevNvlinkRxThroughputPerLink is DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_PER_LINK. FieldDevNvlinkRxThroughputPerLink FieldID = 1531 // FieldDevBAR1CapacityBytes is DCGM_FI_DEV_BAR1_CAPACITY_BYTES. FieldDevBAR1CapacityBytes FieldID = 1600 // FieldDevBAR1UsedBytes is DCGM_FI_DEV_BAR1_USED_BYTES. FieldDevBAR1UsedBytes FieldID = 1601 // FieldDevBAR1FreeBytes is DCGM_FI_DEV_BAR1_FREE_BYTES. FieldDevBAR1FreeBytes FieldID = 1602 // FieldDevSmClockHertz is DCGM_FI_DEV_SM_CLOCK_HERTZ. FieldDevSmClockHertz FieldID = 1603 // FieldDevMemoryClockHertz is DCGM_FI_DEV_MEMORY_CLOCK_HERTZ. FieldDevMemoryClockHertz FieldID = 1604 // FieldDevVideoClockHertz is DCGM_FI_DEV_VIDEO_CLOCK_HERTZ. FieldDevVideoClockHertz FieldID = 1605 // FieldDevSmAppClockHertz is DCGM_FI_DEV_SM_APP_CLOCK_HERTZ. FieldDevSmAppClockHertz FieldID = 1606 // FieldDevMemoryAppClockHertz is DCGM_FI_DEV_MEMORY_APP_CLOCK_HERTZ. FieldDevMemoryAppClockHertz FieldID = 1607 // FieldDevSmMaxClockHertz is DCGM_FI_DEV_SM_MAX_CLOCK_HERTZ. FieldDevSmMaxClockHertz FieldID = 1608 // FieldDevMemoryMaxClockHertz is DCGM_FI_DEV_MEMORY_MAX_CLOCK_HERTZ. FieldDevMemoryMaxClockHertz FieldID = 1609 // FieldDevVideoMaxClockHertz is DCGM_FI_DEV_VIDEO_MAX_CLOCK_HERTZ. FieldDevVideoMaxClockHertz FieldID = 1610 // FieldDevGpuEnergyJoulesTotal is DCGM_FI_DEV_GPU_ENERGY_JOULES_TOTAL. FieldDevGpuEnergyJoulesTotal FieldID = 1611 // FieldDevFanSpeedRatio is DCGM_FI_DEV_FAN_SPEED_RATIO. FieldDevFanSpeedRatio FieldID = 1612 // FieldDevGpuUtilRatio is DCGM_FI_DEV_GPU_UTIL_RATIO. FieldDevGpuUtilRatio FieldID = 1613 // FieldDevMemoryUtilRatio is DCGM_FI_DEV_MEMORY_UTIL_RATIO. FieldDevMemoryUtilRatio FieldID = 1614 // FieldDevEncUtilRatio is DCGM_FI_DEV_ENC_UTIL_RATIO. FieldDevEncUtilRatio FieldID = 1615 // FieldDevDecUtilRatio is DCGM_FI_DEV_DEC_UTIL_RATIO. FieldDevDecUtilRatio FieldID = 1616 // FieldDevGpuPowerThrottleSecondsTotal is DCGM_FI_DEV_GPU_POWER_THROTTLE_SECONDS_TOTAL. FieldDevGpuPowerThrottleSecondsTotal FieldID = 1617 // FieldDevGpuThermalThrottleSecondsTotal is DCGM_FI_DEV_GPU_THERMAL_THROTTLE_SECONDS_TOTAL. FieldDevGpuThermalThrottleSecondsTotal FieldID = 1618 // FieldDevGpuSyncBoostThrottleSecondsTotal is DCGM_FI_DEV_GPU_SYNC_BOOST_THROTTLE_SECONDS_TOTAL. FieldDevGpuSyncBoostThrottleSecondsTotal FieldID = 1619 // FieldDevGpuLimitThrottleSecondsTotal is DCGM_FI_DEV_GPU_LIMIT_THROTTLE_SECONDS_TOTAL. FieldDevGpuLimitThrottleSecondsTotal FieldID = 1620 // FieldDevGpuLowUtilThrottleSecondsTotal is DCGM_FI_DEV_GPU_LOW_UTIL_THROTTLE_SECONDS_TOTAL. FieldDevGpuLowUtilThrottleSecondsTotal FieldID = 1621 // FieldDevGpuReliabilityThrottleSecondsTotal is DCGM_FI_DEV_GPU_RELIABILITY_THROTTLE_SECONDS_TOTAL. FieldDevGpuReliabilityThrottleSecondsTotal FieldID = 1622 // FieldDevGpuAppThrottleSecondsTotal is DCGM_FI_DEV_GPU_APP_THROTTLE_SECONDS_TOTAL. FieldDevGpuAppThrottleSecondsTotal FieldID = 1623 // FieldDevGpuBaseThrottleSecondsTotal is DCGM_FI_DEV_GPU_BASE_THROTTLE_SECONDS_TOTAL. FieldDevGpuBaseThrottleSecondsTotal FieldID = 1624 // FieldDevFbCapacityBytes is DCGM_FI_DEV_FB_CAPACITY_BYTES. FieldDevFbCapacityBytes FieldID = 1625 // FieldDevFbFreeBytes is DCGM_FI_DEV_FB_FREE_BYTES. FieldDevFbFreeBytes FieldID = 1626 // FieldDevFbUsedBytes is DCGM_FI_DEV_FB_USED_BYTES. FieldDevFbUsedBytes FieldID = 1627 // FieldDevFbReservedBytes is DCGM_FI_DEV_FB_RESERVED_BYTES. FieldDevFbReservedBytes FieldID = 1628 // FieldDevC2CMaxBandwidthBytesPerSecond is DCGM_FI_DEV_C2C_MAX_BANDWIDTH_BYTES_PER_SECOND. FieldDevC2CMaxBandwidthBytesPerSecond FieldID = 1629 // FieldDevNvlinkThroughputL0BytesPerSecond is DCGM_FI_DEV_NVLINK_THROUGHPUT_L0_BYTES_PER_SECOND. FieldDevNvlinkThroughputL0BytesPerSecond FieldID = 1630 // FieldDevNvlinkThroughputL1BytesPerSecond is DCGM_FI_DEV_NVLINK_THROUGHPUT_L1_BYTES_PER_SECOND. FieldDevNvlinkThroughputL1BytesPerSecond FieldID = 1631 // FieldDevNvlinkThroughputL2BytesPerSecond is DCGM_FI_DEV_NVLINK_THROUGHPUT_L2_BYTES_PER_SECOND. FieldDevNvlinkThroughputL2BytesPerSecond FieldID = 1632 // FieldDevNvlinkThroughputL3BytesPerSecond is DCGM_FI_DEV_NVLINK_THROUGHPUT_L3_BYTES_PER_SECOND. FieldDevNvlinkThroughputL3BytesPerSecond FieldID = 1633 // FieldDevNvlinkThroughputL4BytesPerSecond is DCGM_FI_DEV_NVLINK_THROUGHPUT_L4_BYTES_PER_SECOND. FieldDevNvlinkThroughputL4BytesPerSecond FieldID = 1634 // FieldDevNvlinkThroughputL5BytesPerSecond is DCGM_FI_DEV_NVLINK_THROUGHPUT_L5_BYTES_PER_SECOND. FieldDevNvlinkThroughputL5BytesPerSecond FieldID = 1635 // FieldDevNvlinkThroughputL6BytesPerSecond is DCGM_FI_DEV_NVLINK_THROUGHPUT_L6_BYTES_PER_SECOND. FieldDevNvlinkThroughputL6BytesPerSecond FieldID = 1636 // FieldDevNvlinkThroughputL7BytesPerSecond is DCGM_FI_DEV_NVLINK_THROUGHPUT_L7_BYTES_PER_SECOND. FieldDevNvlinkThroughputL7BytesPerSecond FieldID = 1637 // FieldDevNvlinkThroughputL8BytesPerSecond is DCGM_FI_DEV_NVLINK_THROUGHPUT_L8_BYTES_PER_SECOND. FieldDevNvlinkThroughputL8BytesPerSecond FieldID = 1638 // FieldDevNvlinkThroughputL9BytesPerSecond is DCGM_FI_DEV_NVLINK_THROUGHPUT_L9_BYTES_PER_SECOND. FieldDevNvlinkThroughputL9BytesPerSecond FieldID = 1639 // FieldDevNvlinkThroughputL10BytesPerSecond is DCGM_FI_DEV_NVLINK_THROUGHPUT_L10_BYTES_PER_SECOND. FieldDevNvlinkThroughputL10BytesPerSecond FieldID = 1640 // FieldDevNvlinkThroughputL11BytesPerSecond is DCGM_FI_DEV_NVLINK_THROUGHPUT_L11_BYTES_PER_SECOND. FieldDevNvlinkThroughputL11BytesPerSecond FieldID = 1641 // FieldDevNvlinkThroughputL12BytesPerSecond is DCGM_FI_DEV_NVLINK_THROUGHPUT_L12_BYTES_PER_SECOND. FieldDevNvlinkThroughputL12BytesPerSecond FieldID = 1642 // FieldDevNvlinkThroughputL13BytesPerSecond is DCGM_FI_DEV_NVLINK_THROUGHPUT_L13_BYTES_PER_SECOND. FieldDevNvlinkThroughputL13BytesPerSecond FieldID = 1643 // FieldDevNvlinkThroughputL14BytesPerSecond is DCGM_FI_DEV_NVLINK_THROUGHPUT_L14_BYTES_PER_SECOND. FieldDevNvlinkThroughputL14BytesPerSecond FieldID = 1644 // FieldDevNvlinkThroughputL15BytesPerSecond is DCGM_FI_DEV_NVLINK_THROUGHPUT_L15_BYTES_PER_SECOND. FieldDevNvlinkThroughputL15BytesPerSecond FieldID = 1645 // FieldDevNvlinkThroughputL16BytesPerSecond is DCGM_FI_DEV_NVLINK_THROUGHPUT_L16_BYTES_PER_SECOND. FieldDevNvlinkThroughputL16BytesPerSecond FieldID = 1646 // FieldDevNvlinkThroughputL17BytesPerSecond is DCGM_FI_DEV_NVLINK_THROUGHPUT_L17_BYTES_PER_SECOND. FieldDevNvlinkThroughputL17BytesPerSecond FieldID = 1647 // FieldDevNvlinkThroughputBytesPerSecond is DCGM_FI_DEV_NVLINK_THROUGHPUT_BYTES_PER_SECOND. FieldDevNvlinkThroughputBytesPerSecond FieldID = 1648 // FieldDevVgpuFbUsedBytes is DCGM_FI_DEV_VGPU_FB_USED_BYTES. FieldDevVgpuFbUsedBytes FieldID = 1649 // FieldDevNvlinkPpcntRecoveryLastGapSeconds is DCGM_FI_DEV_NVLINK_PPCNT_RECOVERY_LAST_GAP_SECONDS. FieldDevNvlinkPpcntRecoveryLastGapSeconds FieldID = 1650 // FieldProfNvlinkL0TxBytes is DCGM_FI_PROF_NVLINK_L0_TX_BYTES. FieldProfNvlinkL0TxBytes FieldID = 1040 // FieldProfNvlinkL0RxBytes is DCGM_FI_PROF_NVLINK_L0_RX_BYTES. FieldProfNvlinkL0RxBytes FieldID = 1041 // FieldProfNvlinkL1TxBytes is DCGM_FI_PROF_NVLINK_L1_TX_BYTES. FieldProfNvlinkL1TxBytes FieldID = 1042 // FieldProfNvlinkL1RxBytes is DCGM_FI_PROF_NVLINK_L1_RX_BYTES. FieldProfNvlinkL1RxBytes FieldID = 1043 // FieldProfNvlinkL2TxBytes is DCGM_FI_PROF_NVLINK_L2_TX_BYTES. FieldProfNvlinkL2TxBytes FieldID = 1044 // FieldProfNvlinkL2RxBytes is DCGM_FI_PROF_NVLINK_L2_RX_BYTES. FieldProfNvlinkL2RxBytes FieldID = 1045 // FieldProfNvlinkL3TxBytes is DCGM_FI_PROF_NVLINK_L3_TX_BYTES. FieldProfNvlinkL3TxBytes FieldID = 1046 // FieldProfNvlinkL3RxBytes is DCGM_FI_PROF_NVLINK_L3_RX_BYTES. FieldProfNvlinkL3RxBytes FieldID = 1047 // FieldProfNvlinkL4TxBytes is DCGM_FI_PROF_NVLINK_L4_TX_BYTES. FieldProfNvlinkL4TxBytes FieldID = 1048 // FieldProfNvlinkL4RxBytes is DCGM_FI_PROF_NVLINK_L4_RX_BYTES. FieldProfNvlinkL4RxBytes FieldID = 1049 // FieldProfNvlinkL5TxBytes is DCGM_FI_PROF_NVLINK_L5_TX_BYTES. FieldProfNvlinkL5TxBytes FieldID = 1050 // FieldProfNvlinkL5RxBytes is DCGM_FI_PROF_NVLINK_L5_RX_BYTES. FieldProfNvlinkL5RxBytes FieldID = 1051 // FieldProfNvlinkL6TxBytes is DCGM_FI_PROF_NVLINK_L6_TX_BYTES. FieldProfNvlinkL6TxBytes FieldID = 1052 // FieldProfNvlinkL6RxBytes is DCGM_FI_PROF_NVLINK_L6_RX_BYTES. FieldProfNvlinkL6RxBytes FieldID = 1053 // FieldProfNvlinkL7TxBytes is DCGM_FI_PROF_NVLINK_L7_TX_BYTES. FieldProfNvlinkL7TxBytes FieldID = 1054 // FieldProfNvlinkL7RxBytes is DCGM_FI_PROF_NVLINK_L7_RX_BYTES. FieldProfNvlinkL7RxBytes FieldID = 1055 // FieldProfNvlinkL8TxBytes is DCGM_FI_PROF_NVLINK_L8_TX_BYTES. FieldProfNvlinkL8TxBytes FieldID = 1056 // FieldProfNvlinkL8RxBytes is DCGM_FI_PROF_NVLINK_L8_RX_BYTES. FieldProfNvlinkL8RxBytes FieldID = 1057 // FieldProfNvlinkL9TxBytes is DCGM_FI_PROF_NVLINK_L9_TX_BYTES. FieldProfNvlinkL9TxBytes FieldID = 1058 // FieldProfNvlinkL9RxBytes is DCGM_FI_PROF_NVLINK_L9_RX_BYTES. FieldProfNvlinkL9RxBytes FieldID = 1059 // FieldProfNvlinkL10TxBytes is DCGM_FI_PROF_NVLINK_L10_TX_BYTES. FieldProfNvlinkL10TxBytes FieldID = 1060 // FieldProfNvlinkL10RxBytes is DCGM_FI_PROF_NVLINK_L10_RX_BYTES. FieldProfNvlinkL10RxBytes FieldID = 1061 // FieldProfNvlinkL11TxBytes is DCGM_FI_PROF_NVLINK_L11_TX_BYTES. FieldProfNvlinkL11TxBytes FieldID = 1062 // FieldProfNvlinkL11RxBytes is DCGM_FI_PROF_NVLINK_L11_RX_BYTES. FieldProfNvlinkL11RxBytes FieldID = 1063 // FieldProfNvlinkL12TxBytes is DCGM_FI_PROF_NVLINK_L12_TX_BYTES. FieldProfNvlinkL12TxBytes FieldID = 1064 // FieldProfNvlinkL12RxBytes is DCGM_FI_PROF_NVLINK_L12_RX_BYTES. FieldProfNvlinkL12RxBytes FieldID = 1065 // FieldProfNvlinkL13TxBytes is DCGM_FI_PROF_NVLINK_L13_TX_BYTES. FieldProfNvlinkL13TxBytes FieldID = 1066 // FieldProfNvlinkL13RxBytes is DCGM_FI_PROF_NVLINK_L13_RX_BYTES. FieldProfNvlinkL13RxBytes FieldID = 1067 // FieldProfNvlinkL14TxBytes is DCGM_FI_PROF_NVLINK_L14_TX_BYTES. FieldProfNvlinkL14TxBytes FieldID = 1068 // FieldProfNvlinkL14RxBytes is DCGM_FI_PROF_NVLINK_L14_RX_BYTES. FieldProfNvlinkL14RxBytes FieldID = 1069 // FieldProfNvlinkL15TxBytes is DCGM_FI_PROF_NVLINK_L15_TX_BYTES. FieldProfNvlinkL15TxBytes FieldID = 1070 // FieldProfNvlinkL15RxBytes is DCGM_FI_PROF_NVLINK_L15_RX_BYTES. FieldProfNvlinkL15RxBytes FieldID = 1071 // FieldProfNvlinkL16TxBytes is DCGM_FI_PROF_NVLINK_L16_TX_BYTES. FieldProfNvlinkL16TxBytes FieldID = 1072 // FieldProfNvlinkL16RxBytes is DCGM_FI_PROF_NVLINK_L16_RX_BYTES. FieldProfNvlinkL16RxBytes FieldID = 1073 // FieldProfNvlinkL17TxBytes is DCGM_FI_PROF_NVLINK_L17_TX_BYTES. FieldProfNvlinkL17TxBytes FieldID = 1074 // FieldProfNvlinkL17RxBytes is DCGM_FI_PROF_NVLINK_L17_RX_BYTES. FieldProfNvlinkL17RxBytes FieldID = 1075 // FieldProfNvlinkTxBytesPerLink is DCGM_FI_PROF_NVLINK_TX_BYTES_PER_LINK. FieldProfNvlinkTxBytesPerLink FieldID = 1532 // FieldProfNvlinkRxBytesPerLink is DCGM_FI_PROF_NVLINK_RX_BYTES_PER_LINK. FieldProfNvlinkRxBytesPerLink FieldID = 1533 // FieldDevNvlinkRxBandwidthL0 is DCGM_FI_DEV_NVLINK_RX_BANDWIDTH_L0. // // The header defines it as DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L0. FieldDevNvlinkRxBandwidthL0 FieldID = 879 // FieldDevNvlinkRxBandwidthL1 is DCGM_FI_DEV_NVLINK_RX_BANDWIDTH_L1. // // The header defines it as DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L1. FieldDevNvlinkRxBandwidthL1 FieldID = 880 // FieldDevNvlinkRxBandwidthL2 is DCGM_FI_DEV_NVLINK_RX_BANDWIDTH_L2. // // The header defines it as DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L2. FieldDevNvlinkRxBandwidthL2 FieldID = 881 // FieldDevNvlinkRxBandwidthL3 is DCGM_FI_DEV_NVLINK_RX_BANDWIDTH_L3. // // The header defines it as DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L3. FieldDevNvlinkRxBandwidthL3 FieldID = 882 // FieldDevNvlinkRxBandwidthL4 is DCGM_FI_DEV_NVLINK_RX_BANDWIDTH_L4. // // The header defines it as DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L4. FieldDevNvlinkRxBandwidthL4 FieldID = 883 // FieldDevNvlinkRxBandwidthL5 is DCGM_FI_DEV_NVLINK_RX_BANDWIDTH_L5. // // The header defines it as DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L5. FieldDevNvlinkRxBandwidthL5 FieldID = 884 // FieldDevNvlinkRxBandwidthL6 is DCGM_FI_DEV_NVLINK_RX_BANDWIDTH_L6. // // The header defines it as DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L6. FieldDevNvlinkRxBandwidthL6 FieldID = 885 // FieldDevNvlinkRxBandwidthL7 is DCGM_FI_DEV_NVLINK_RX_BANDWIDTH_L7. // // The header defines it as DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L7. FieldDevNvlinkRxBandwidthL7 FieldID = 886 // FieldDevNvlinkRxBandwidthL8 is DCGM_FI_DEV_NVLINK_RX_BANDWIDTH_L8. // // The header defines it as DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L8. FieldDevNvlinkRxBandwidthL8 FieldID = 887 // FieldDevNvlinkRxBandwidthL9 is DCGM_FI_DEV_NVLINK_RX_BANDWIDTH_L9. // // The header defines it as DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L9. FieldDevNvlinkRxBandwidthL9 FieldID = 888 // FieldDevNvlinkRxBandwidthL10 is DCGM_FI_DEV_NVLINK_RX_BANDWIDTH_L10. // // The header defines it as DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L10. FieldDevNvlinkRxBandwidthL10 FieldID = 889 // FieldDevNvlinkRxBandwidthL11 is DCGM_FI_DEV_NVLINK_RX_BANDWIDTH_L11. // // The header defines it as DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L11. FieldDevNvlinkRxBandwidthL11 FieldID = 890 // FieldDevNvlinkRxBandwidthL12 is DCGM_FI_DEV_NVLINK_RX_BANDWIDTH_L12. // // The header defines it as DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L12. FieldDevNvlinkRxBandwidthL12 FieldID = 891 // FieldDevNvlinkRxBandwidthL13 is DCGM_FI_DEV_NVLINK_RX_BANDWIDTH_L13. // // The header defines it as DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L13. FieldDevNvlinkRxBandwidthL13 FieldID = 892 // FieldDevNvlinkRxBandwidthL14 is DCGM_FI_DEV_NVLINK_RX_BANDWIDTH_L14. // // The header defines it as DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L14. FieldDevNvlinkRxBandwidthL14 FieldID = 893 // FieldDevNvlinkRxBandwidthL15 is DCGM_FI_DEV_NVLINK_RX_BANDWIDTH_L15. // // The header defines it as DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L15. FieldDevNvlinkRxBandwidthL15 FieldID = 894 // FieldDevNvlinkRxBandwidthL16 is DCGM_FI_DEV_NVLINK_RX_BANDWIDTH_L16. // // The header defines it as DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L16. FieldDevNvlinkRxBandwidthL16 FieldID = 895 // FieldDevNvlinkRxBandwidthL17 is DCGM_FI_DEV_NVLINK_RX_BANDWIDTH_L17. // // The header defines it as DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_L17. FieldDevNvlinkRxBandwidthL17 FieldID = 896 // FieldDevNvlinkBandwidthL0 is DCGM_FI_DEV_NVLINK_BANDWIDTH_L0. // // The header defines it as DCGM_FI_DEV_NVLINK_THROUGHPUT_L0. FieldDevNvlinkBandwidthL0 FieldID = 440 // FieldDevNvlinkBandwidthL1 is DCGM_FI_DEV_NVLINK_BANDWIDTH_L1. // // The header defines it as DCGM_FI_DEV_NVLINK_THROUGHPUT_L1. FieldDevNvlinkBandwidthL1 FieldID = 441 // FieldDevNvlinkBandwidthL2 is DCGM_FI_DEV_NVLINK_BANDWIDTH_L2. // // The header defines it as DCGM_FI_DEV_NVLINK_THROUGHPUT_L2. FieldDevNvlinkBandwidthL2 FieldID = 442 // FieldDevNvlinkBandwidthL3 is DCGM_FI_DEV_NVLINK_BANDWIDTH_L3. // // The header defines it as DCGM_FI_DEV_NVLINK_THROUGHPUT_L3. FieldDevNvlinkBandwidthL3 FieldID = 443 // FieldDevNvlinkBandwidthL4 is DCGM_FI_DEV_NVLINK_BANDWIDTH_L4. // // The header defines it as DCGM_FI_DEV_NVLINK_THROUGHPUT_L4. FieldDevNvlinkBandwidthL4 FieldID = 444 // FieldDevNvlinkBandwidthL5 is DCGM_FI_DEV_NVLINK_BANDWIDTH_L5. // // The header defines it as DCGM_FI_DEV_NVLINK_THROUGHPUT_L5. FieldDevNvlinkBandwidthL5 FieldID = 445 // FieldDevNvlinkTxBandwidthTotal is DCGM_FI_DEV_NVLINK_TX_BANDWIDTH_TOTAL. // // The header defines it as DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_TOTAL. FieldDevNvlinkTxBandwidthTotal FieldID = 843 // FieldDevNvlinkRxBandwidthTotal is DCGM_FI_DEV_NVLINK_RX_BANDWIDTH_TOTAL. // // The header defines it as DCGM_FI_DEV_NVLINK_RX_THROUGHPUT_TOTAL. FieldDevNvlinkRxBandwidthTotal FieldID = 897 // FieldDevNvlinkBandwidthTotal is DCGM_FI_DEV_NVLINK_BANDWIDTH_TOTAL. // // The header defines it as DCGM_FI_DEV_NVLINK_THROUGHPUT_TOTAL. FieldDevNvlinkBandwidthTotal FieldID = 449 // FieldDevNvlinkBandwidthL6 is DCGM_FI_DEV_NVLINK_BANDWIDTH_L6. // // The header defines it as DCGM_FI_DEV_NVLINK_THROUGHPUT_L6. FieldDevNvlinkBandwidthL6 FieldID = 475 // FieldDevNvlinkBandwidthL7 is DCGM_FI_DEV_NVLINK_BANDWIDTH_L7. // // The header defines it as DCGM_FI_DEV_NVLINK_THROUGHPUT_L7. FieldDevNvlinkBandwidthL7 FieldID = 476 // FieldDevNvlinkBandwidthL8 is DCGM_FI_DEV_NVLINK_BANDWIDTH_L8. // // The header defines it as DCGM_FI_DEV_NVLINK_THROUGHPUT_L8. FieldDevNvlinkBandwidthL8 FieldID = 477 // FieldDevNvlinkBandwidthL9 is DCGM_FI_DEV_NVLINK_BANDWIDTH_L9. // // The header defines it as DCGM_FI_DEV_NVLINK_THROUGHPUT_L9. FieldDevNvlinkBandwidthL9 FieldID = 478 // FieldDevNvlinkBandwidthL10 is DCGM_FI_DEV_NVLINK_BANDWIDTH_L10. // // The header defines it as DCGM_FI_DEV_NVLINK_THROUGHPUT_L10. FieldDevNvlinkBandwidthL10 FieldID = 479 // FieldDevNvlinkBandwidthL11 is DCGM_FI_DEV_NVLINK_BANDWIDTH_L11. // // The header defines it as DCGM_FI_DEV_NVLINK_THROUGHPUT_L11. FieldDevNvlinkBandwidthL11 FieldID = 480 // FieldDevNvlinkBandwidthL12 is DCGM_FI_DEV_NVLINK_BANDWIDTH_L12. // // The header defines it as DCGM_FI_DEV_NVLINK_THROUGHPUT_L12. FieldDevNvlinkBandwidthL12 FieldID = 446 // FieldDevNvlinkBandwidthL13 is DCGM_FI_DEV_NVLINK_BANDWIDTH_L13. // // The header defines it as DCGM_FI_DEV_NVLINK_THROUGHPUT_L13. FieldDevNvlinkBandwidthL13 FieldID = 447 // FieldDevNvlinkBandwidthL14 is DCGM_FI_DEV_NVLINK_BANDWIDTH_L14. // // The header defines it as DCGM_FI_DEV_NVLINK_THROUGHPUT_L14. FieldDevNvlinkBandwidthL14 FieldID = 448 // FieldDevNvlinkBandwidthL15 is DCGM_FI_DEV_NVLINK_BANDWIDTH_L15. // // The header defines it as DCGM_FI_DEV_NVLINK_THROUGHPUT_L15. FieldDevNvlinkBandwidthL15 FieldID = 494 // FieldDevNvlinkBandwidthL16 is DCGM_FI_DEV_NVLINK_BANDWIDTH_L16. // // The header defines it as DCGM_FI_DEV_NVLINK_THROUGHPUT_L16. FieldDevNvlinkBandwidthL16 FieldID = 495 // FieldDevNvlinkBandwidthL17 is DCGM_FI_DEV_NVLINK_BANDWIDTH_L17. // // The header defines it as DCGM_FI_DEV_NVLINK_THROUGHPUT_L17. FieldDevNvlinkBandwidthL17 FieldID = 496 // FieldDevNvlinkTxBandwidthL0 is DCGM_FI_DEV_NVLINK_TX_BANDWIDTH_L0. // // The header defines it as DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L0. FieldDevNvlinkTxBandwidthL0 FieldID = 825 // FieldDevNvlinkTxBandwidthL1 is DCGM_FI_DEV_NVLINK_TX_BANDWIDTH_L1. // // The header defines it as DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L1. FieldDevNvlinkTxBandwidthL1 FieldID = 826 // FieldDevNvlinkTxBandwidthL2 is DCGM_FI_DEV_NVLINK_TX_BANDWIDTH_L2. // // The header defines it as DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L2. FieldDevNvlinkTxBandwidthL2 FieldID = 827 // FieldDevNvlinkTxBandwidthL3 is DCGM_FI_DEV_NVLINK_TX_BANDWIDTH_L3. // // The header defines it as DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L3. FieldDevNvlinkTxBandwidthL3 FieldID = 828 // FieldDevNvlinkTxBandwidthL4 is DCGM_FI_DEV_NVLINK_TX_BANDWIDTH_L4. // // The header defines it as DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L4. FieldDevNvlinkTxBandwidthL4 FieldID = 829 // FieldDevNvlinkTxBandwidthL5 is DCGM_FI_DEV_NVLINK_TX_BANDWIDTH_L5. // // The header defines it as DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L5. FieldDevNvlinkTxBandwidthL5 FieldID = 830 // FieldDevNvlinkTxBandwidthL6 is DCGM_FI_DEV_NVLINK_TX_BANDWIDTH_L6. // // The header defines it as DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L6. FieldDevNvlinkTxBandwidthL6 FieldID = 831 // FieldDevNvlinkTxBandwidthL7 is DCGM_FI_DEV_NVLINK_TX_BANDWIDTH_L7. // // The header defines it as DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L7. FieldDevNvlinkTxBandwidthL7 FieldID = 832 // FieldDevNvlinkTxBandwidthL8 is DCGM_FI_DEV_NVLINK_TX_BANDWIDTH_L8. // // The header defines it as DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L8. FieldDevNvlinkTxBandwidthL8 FieldID = 833 // FieldDevNvlinkTxBandwidthL9 is DCGM_FI_DEV_NVLINK_TX_BANDWIDTH_L9. // // The header defines it as DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L9. FieldDevNvlinkTxBandwidthL9 FieldID = 834 // FieldDevNvlinkTxBandwidthL10 is DCGM_FI_DEV_NVLINK_TX_BANDWIDTH_L10. // // The header defines it as DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L10. FieldDevNvlinkTxBandwidthL10 FieldID = 835 // FieldDevNvlinkTxBandwidthL11 is DCGM_FI_DEV_NVLINK_TX_BANDWIDTH_L11. // // The header defines it as DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L11. FieldDevNvlinkTxBandwidthL11 FieldID = 836 // FieldDevNvlinkTxBandwidthL12 is DCGM_FI_DEV_NVLINK_TX_BANDWIDTH_L12. // // The header defines it as DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L12. FieldDevNvlinkTxBandwidthL12 FieldID = 837 // FieldDevNvlinkTxBandwidthL13 is DCGM_FI_DEV_NVLINK_TX_BANDWIDTH_L13. // // The header defines it as DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L13. FieldDevNvlinkTxBandwidthL13 FieldID = 838 // FieldDevNvlinkTxBandwidthL14 is DCGM_FI_DEV_NVLINK_TX_BANDWIDTH_L14. // // The header defines it as DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L14. FieldDevNvlinkTxBandwidthL14 FieldID = 839 // FieldDevNvlinkTxBandwidthL15 is DCGM_FI_DEV_NVLINK_TX_BANDWIDTH_L15. // // The header defines it as DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L15. FieldDevNvlinkTxBandwidthL15 FieldID = 840 // FieldDevNvlinkTxBandwidthL16 is DCGM_FI_DEV_NVLINK_TX_BANDWIDTH_L16. // // The header defines it as DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L16. FieldDevNvlinkTxBandwidthL16 FieldID = 841 // FieldDevNvlinkTxBandwidthL17 is DCGM_FI_DEV_NVLINK_TX_BANDWIDTH_L17. // // The header defines it as DCGM_FI_DEV_NVLINK_TX_THROUGHPUT_L17. FieldDevNvlinkTxBandwidthL17 FieldID = 842 // FieldUnknown is DCGM_FI_UNKNOWN. // // The header defines it as DCGM_FI_SYSTEM_FIELD_UNKNOWN. FieldUnknown FieldID = 0 // FieldDriverVersion is DCGM_FI_DRIVER_VERSION. // // The header defines it as DCGM_FI_SYSTEM_DRIVER_VERSION. FieldDriverVersion FieldID = 1 // FieldNvmlVersion is DCGM_FI_NVML_VERSION. // // The header defines it as DCGM_FI_SYSTEM_NVML_VERSION. FieldNvmlVersion FieldID = 2 // FieldProcessName is DCGM_FI_PROCESS_NAME. // // The header defines it as DCGM_FI_SYSTEM_PROCESS_NAME. FieldProcessName FieldID = 3 // FieldDevCount is DCGM_FI_DEV_COUNT. // // The header defines it as DCGM_FI_SYSTEM_GPU_QUANTITY. FieldDevCount FieldID = 4 // FieldBindUnbindEvent is DCGM_FI_BIND_UNBIND_EVENT. // // The header defines it as DCGM_FI_SYSTEM_GPU_BIND_EVENT. FieldBindUnbindEvent FieldID = 6 // FieldDevName is DCGM_FI_DEV_NAME. // // The header defines it as DCGM_FI_DEV_GPU_NAME. FieldDevName FieldID = 50 // FieldDevBrand is DCGM_FI_DEV_BRAND. // // The header defines it as DCGM_FI_DEV_GPU_BRAND. FieldDevBrand FieldID = 51 // FieldDevSerial is DCGM_FI_DEV_SERIAL. // // The header defines it as DCGM_FI_DEV_BOARD_SERIAL. FieldDevSerial FieldID = 53 // FieldDevUuid is DCGM_FI_DEV_UUID. // // The header defines it as DCGM_FI_DEV_GPU_UUID. FieldDevUuid FieldID = 54 // FieldDevMinorNumber is DCGM_FI_DEV_MINOR_NUMBER. // // The header defines it as DCGM_FI_DEV_GPU_MINOR_NUMBER. FieldDevMinorNumber FieldID = 55 // FieldDevOemInforomVer is DCGM_FI_DEV_OEM_INFOROM_VER. // // The header defines it as DCGM_FI_DEV_INFOROM_OEM_VERSION. FieldDevOemInforomVer FieldID = 56 // FieldDevPciBusid is DCGM_FI_DEV_PCI_BUSID. // // The header defines it as DCGM_FI_DEV_PCI_BUS_ID. FieldDevPciBusid FieldID = 57 // FieldGpuTopologyPci is DCGM_FI_GPU_TOPOLOGY_PCI. // // The header defines it as DCGM_FI_SYSTEM_PCI_TOPOLOGY. FieldGpuTopologyPci FieldID = 60 // FieldGpuTopologyNvlink is DCGM_FI_GPU_TOPOLOGY_NVLINK. // // The header defines it as DCGM_FI_SYSTEM_NVLINK_TOPOLOGY. FieldGpuTopologyNvlink FieldID = 61 // FieldGpuTopologyAffinity is DCGM_FI_GPU_TOPOLOGY_AFFINITY. // // The header defines it as DCGM_FI_SYSTEM_GPU_AFFINITY. FieldGpuTopologyAffinity FieldID = 62 // FieldDevCudaComputeCapability is DCGM_FI_DEV_CUDA_COMPUTE_CAPABILITY. // // The header defines it as DCGM_FI_CUDA_GPU_COMPUTE_CAPABILITY. FieldDevCudaComputeCapability FieldID = 63 // FieldDevP2PNvlinkStatus is DCGM_FI_DEV_P2P_NVLINK_STATUS. // // The header defines it as DCGM_FI_DEV_NVLINK_P2P_STATUS. FieldDevP2PNvlinkStatus FieldID = 64 // FieldDevComputeMode is DCGM_FI_DEV_COMPUTE_MODE. // // The header defines it as DCGM_FI_DEV_GPU_COMPUTE_MODE. FieldDevComputeMode FieldID = 65 // FieldDevPersistenceMode is DCGM_FI_DEV_PERSISTENCE_MODE. // // The header defines it as DCGM_FI_DEV_GPU_PERSISTENCE_MODE. FieldDevPersistenceMode FieldID = 66 // FieldDevCudaVisibleDevicesStr is DCGM_FI_DEV_CUDA_VISIBLE_DEVICES_STR. // // The header defines it as DCGM_FI_CUDA_GPU_VISIBLE_DEVICES. FieldDevCudaVisibleDevicesStr FieldID = 68 // FieldDevEccInforomVer is DCGM_FI_DEV_ECC_INFOROM_VER. // // The header defines it as DCGM_FI_DEV_INFOROM_ECC_VERSION. FieldDevEccInforomVer FieldID = 80 // FieldDevPowerInforomVer is DCGM_FI_DEV_POWER_INFOROM_VER. // // The header defines it as DCGM_FI_DEV_INFOROM_POWER_VERSION. FieldDevPowerInforomVer FieldID = 81 // FieldDevInforomImageVer is DCGM_FI_DEV_INFOROM_IMAGE_VER. // // The header defines it as DCGM_FI_DEV_INFOROM_IMAGE_VERSION. FieldDevInforomImageVer FieldID = 82 // FieldDevInforomConfigCheck is DCGM_FI_DEV_INFOROM_CONFIG_CHECK. // // The header defines it as DCGM_FI_DEV_INFOROM_CHECKSUM. FieldDevInforomConfigCheck FieldID = 83 // FieldDevInforomConfigValid is DCGM_FI_DEV_INFOROM_CONFIG_VALID. // // The header defines it as DCGM_FI_DEV_INFOROM_VALID. FieldDevInforomConfigValid FieldID = 84 // FieldDevMemAffinity0 is DCGM_FI_DEV_MEM_AFFINITY_0. // // The header defines it as DCGM_FI_DEV_MEMORY_AFFINITY_0. FieldDevMemAffinity0 FieldID = 86 // FieldDevMemAffinity1 is DCGM_FI_DEV_MEM_AFFINITY_1. // // The header defines it as DCGM_FI_DEV_MEMORY_AFFINITY_1. FieldDevMemAffinity1 FieldID = 87 // FieldDevMemAffinity2 is DCGM_FI_DEV_MEM_AFFINITY_2. // // The header defines it as DCGM_FI_DEV_MEMORY_AFFINITY_2. FieldDevMemAffinity2 FieldID = 88 // FieldDevMemAffinity3 is DCGM_FI_DEV_MEM_AFFINITY_3. // // The header defines it as DCGM_FI_DEV_MEMORY_AFFINITY_3. FieldDevMemAffinity3 FieldID = 89 // FieldSyncBoost is DCGM_FI_SYNC_BOOST. // // The header defines it as DCGM_FI_SYSTEM_GPU_SYNC_BOOST. FieldSyncBoost FieldID = 91 // FieldDevAutoboost is DCGM_FI_DEV_AUTOBOOST. // // The header defines it as DCGM_FI_DEV_CLOCKS_AUTOBOOST_MODE. FieldDevAutoboost FieldID = 120 // FieldDevSupportedClocks is DCGM_FI_DEV_SUPPORTED_CLOCKS. // // The header defines it as DCGM_FI_DEV_CLOCKS_SUPPORTED. FieldDevSupportedClocks FieldID = 130 // FieldDevMemoryTemp is DCGM_FI_DEV_MEMORY_TEMP. // // The header defines it as DCGM_FI_DEV_MEMORY_TEMP_CELSIUS. FieldDevMemoryTemp FieldID = 140 // FieldDevGpuTemp is DCGM_FI_DEV_GPU_TEMP. // // The header defines it as DCGM_FI_DEV_GPU_TEMP_CELSIUS. FieldDevGpuTemp FieldID = 150 // FieldDevMemMaxOpTemp is DCGM_FI_DEV_MEM_MAX_OP_TEMP. // // The header defines it as DCGM_FI_DEV_MEMORY_MAX_OP_TEMP_CELSIUS. FieldDevMemMaxOpTemp FieldID = 151 // FieldDevGpuMaxOpTemp is DCGM_FI_DEV_GPU_MAX_OP_TEMP. // // The header defines it as DCGM_FI_DEV_GPU_MAX_OP_TEMP_CELSIUS. FieldDevGpuMaxOpTemp FieldID = 152 // FieldDevGpuTempLimit is DCGM_FI_DEV_GPU_TEMP_LIMIT. // // The header defines it as DCGM_FI_DEV_GPU_TEMP_MARGIN_CELSIUS. FieldDevGpuTempLimit FieldID = 153 // FieldDevPowerUsage is DCGM_FI_DEV_POWER_USAGE. // // The header defines it as DCGM_FI_DEV_BOARD_POWER_WATTS. FieldDevPowerUsage FieldID = 155 // FieldDevPowerUsageInstant is DCGM_FI_DEV_POWER_USAGE_INSTANT. // // The header defines it as DCGM_FI_DEV_BOARD_POWER_RAW_WATTS. FieldDevPowerUsageInstant FieldID = 157 // FieldDevSlowdownTemp is DCGM_FI_DEV_SLOWDOWN_TEMP. // // The header defines it as DCGM_FI_DEV_GPU_TEMP_SLOWDOWN_CELSIUS. FieldDevSlowdownTemp FieldID = 158 // FieldDevShutdownTemp is DCGM_FI_DEV_SHUTDOWN_TEMP. // // The header defines it as DCGM_FI_DEV_GPU_TEMP_SHUTDOWN_CELSIUS. FieldDevShutdownTemp FieldID = 159 // FieldDevPowerMgmtLimit is DCGM_FI_DEV_POWER_MGMT_LIMIT. // // The header defines it as DCGM_FI_DEV_BOARD_POWER_LIMIT_REQUESTED_WATTS. FieldDevPowerMgmtLimit FieldID = 160 // FieldDevPowerMgmtLimitMin is DCGM_FI_DEV_POWER_MGMT_LIMIT_MIN. // // The header defines it as DCGM_FI_DEV_BOARD_POWER_LIMIT_MIN_WATTS. FieldDevPowerMgmtLimitMin FieldID = 161 // FieldDevPowerMgmtLimitMax is DCGM_FI_DEV_POWER_MGMT_LIMIT_MAX. // // The header defines it as DCGM_FI_DEV_BOARD_POWER_LIMIT_MAX_WATTS. FieldDevPowerMgmtLimitMax FieldID = 162 // FieldDevPowerMgmtLimitDef is DCGM_FI_DEV_POWER_MGMT_LIMIT_DEF. // // The header defines it as DCGM_FI_DEV_BOARD_POWER_LIMIT_DEFAULT_WATTS. FieldDevPowerMgmtLimitDef FieldID = 163 // FieldDevEnforcedPowerLimit is DCGM_FI_DEV_ENFORCED_POWER_LIMIT. // // The header defines it as DCGM_FI_DEV_BOARD_POWER_LIMIT_ENFORCED_WATTS. FieldDevEnforcedPowerLimit FieldID = 164 // FieldDevRequestedPowerProfileMask is DCGM_FI_DEV_REQUESTED_POWER_PROFILE_MASK. // // The header defines it as DCGM_FI_DEV_BOARD_POWER_PROFILE_REQUESTED_MASK. FieldDevRequestedPowerProfileMask FieldID = 165 // FieldDevEnforcedPowerProfileMask is DCGM_FI_DEV_ENFORCED_POWER_PROFILE_MASK. // // The header defines it as DCGM_FI_DEV_BOARD_POWER_PROFILE_ENFORCED_MASK. FieldDevEnforcedPowerProfileMask FieldID = 166 // FieldDevValidPowerProfileMask is DCGM_FI_DEV_VALID_POWER_PROFILE_MASK. // // The header defines it as DCGM_FI_DEV_BOARD_POWER_PROFILE_SUPPORTED_MASK. FieldDevValidPowerProfileMask FieldID = 167 // FieldDevFabricManagerErrorCode is DCGM_FI_DEV_FABRIC_MANAGER_ERROR_CODE. // // The header defines it as DCGM_FI_DEV_FABRIC_MANAGER_ERROR. FieldDevFabricManagerErrorCode FieldID = 171 // FieldDevPstate is DCGM_FI_DEV_PSTATE. // // The header defines it as DCGM_FI_DEV_GPU_PSTATE. FieldDevPstate FieldID = 190 // FieldDevPcieReplayCounter is DCGM_FI_DEV_PCIE_REPLAY_COUNTER. // // The header defines it as DCGM_FI_DEV_PCIE_REPLAY_TOTAL. FieldDevPcieReplayCounter FieldID = 202 // FieldDevAccountingData is DCGM_FI_DEV_ACCOUNTING_DATA. // // The header defines it as DCGM_FI_DEV_PROCESS_ACCOUNTING_STATS. FieldDevAccountingData FieldID = 205 // FieldDevXidErrors is DCGM_FI_DEV_XID_ERRORS. // // The header defines it as DCGM_FI_DEV_XID_ERROR. FieldDevXidErrors FieldID = 230 // FieldDevFbUsedPercent is DCGM_FI_DEV_FB_USED_PERCENT. // // The header defines it as DCGM_FI_DEV_FB_USED_RATIO. FieldDevFbUsedPercent FieldID = 254 // FieldDevC2CLinkCount is DCGM_FI_DEV_C2C_LINK_COUNT. // // The header defines it as DCGM_FI_DEV_C2C_LINK_QUANTITY. FieldDevC2CLinkCount FieldID = 285 // FieldDevEccCurrent is DCGM_FI_DEV_ECC_CURRENT. // // The header defines it as DCGM_FI_DEV_ECC_MODE. FieldDevEccCurrent FieldID = 300 // FieldDevThresholdSrm is DCGM_FI_DEV_THRESHOLD_SRM. // // The header defines it as DCGM_FI_DEV_SRAM_EXCEEDED. FieldDevThresholdSrm FieldID = 346 // FieldDevBanksRemapRowsAvailMax is DCGM_FI_DEV_BANKS_REMAP_ROWS_AVAIL_MAX. // // The header defines it as DCGM_FI_DEV_BANK_REMAP_AVAIL_MAX. FieldDevBanksRemapRowsAvailMax FieldID = 385 // FieldDevBanksRemapRowsAvailHigh is DCGM_FI_DEV_BANKS_REMAP_ROWS_AVAIL_HIGH. // // The header defines it as DCGM_FI_DEV_BANK_REMAP_AVAIL_HIGH. FieldDevBanksRemapRowsAvailHigh FieldID = 386 // FieldDevBanksRemapRowsAvailPartial is DCGM_FI_DEV_BANKS_REMAP_ROWS_AVAIL_PARTIAL. // // The header defines it as DCGM_FI_DEV_BANK_REMAP_AVAIL_PARTIAL. FieldDevBanksRemapRowsAvailPartial FieldID = 387 // FieldDevBanksRemapRowsAvailLow is DCGM_FI_DEV_BANKS_REMAP_ROWS_AVAIL_LOW. // // The header defines it as DCGM_FI_DEV_BANK_REMAP_AVAIL_LOW. FieldDevBanksRemapRowsAvailLow FieldID = 388 // FieldDevBanksRemapRowsAvailNone is DCGM_FI_DEV_BANKS_REMAP_ROWS_AVAIL_NONE. // // The header defines it as DCGM_FI_DEV_BANK_REMAP_AVAIL_NONE. FieldDevBanksRemapRowsAvailNone FieldID = 389 // FieldDevRetiredSbe is DCGM_FI_DEV_RETIRED_SBE. // // The header defines it as DCGM_FI_DEV_PAGE_RETIRED_SBE_TOTAL. FieldDevRetiredSbe FieldID = 390 // FieldDevRetiredDbe is DCGM_FI_DEV_RETIRED_DBE. // // The header defines it as DCGM_FI_DEV_PAGE_RETIRED_DBE_TOTAL. FieldDevRetiredDbe FieldID = 391 // FieldDevRetiredPending is DCGM_FI_DEV_RETIRED_PENDING. // // The header defines it as DCGM_FI_DEV_PAGE_RETIRED_PENDING. FieldDevRetiredPending FieldID = 392 // FieldDevUncorrectableRemappedRows is DCGM_FI_DEV_UNCORRECTABLE_REMAPPED_ROWS. // // The header defines it as DCGM_FI_DEV_ROW_REMAP_UNCORRECTABLE_TOTAL. FieldDevUncorrectableRemappedRows FieldID = 393 // FieldDevCorrectableRemappedRows is DCGM_FI_DEV_CORRECTABLE_REMAPPED_ROWS. // // The header defines it as DCGM_FI_DEV_ROW_REMAP_CORRECTABLE_TOTAL. FieldDevCorrectableRemappedRows FieldID = 394 // FieldDevRowRemapFailure is DCGM_FI_DEV_ROW_REMAP_FAILURE. // // The header defines it as DCGM_FI_DEV_ROW_REMAP_FAILED. FieldDevRowRemapFailure FieldID = 395 // FieldDevNvlinkCrcFlitErrorCountL0 is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L0. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L0_TOTAL. FieldDevNvlinkCrcFlitErrorCountL0 FieldID = 400 // FieldDevNvlinkCrcFlitErrorCountL1 is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L1. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L1_TOTAL. FieldDevNvlinkCrcFlitErrorCountL1 FieldID = 401 // FieldDevNvlinkCrcFlitErrorCountL2 is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L2. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L2_TOTAL. FieldDevNvlinkCrcFlitErrorCountL2 FieldID = 402 // FieldDevNvlinkCrcFlitErrorCountL3 is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L3. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L3_TOTAL. FieldDevNvlinkCrcFlitErrorCountL3 FieldID = 403 // FieldDevNvlinkCrcFlitErrorCountL4 is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L4. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L4_TOTAL. FieldDevNvlinkCrcFlitErrorCountL4 FieldID = 404 // FieldDevNvlinkCrcFlitErrorCountL5 is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L5. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L5_TOTAL. FieldDevNvlinkCrcFlitErrorCountL5 FieldID = 405 // FieldDevNvlinkCrcFlitErrorCountL6 is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L6. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L6_TOTAL. FieldDevNvlinkCrcFlitErrorCountL6 FieldID = 451 // FieldDevNvlinkCrcFlitErrorCountL7 is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L7. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L7_TOTAL. FieldDevNvlinkCrcFlitErrorCountL7 FieldID = 452 // FieldDevNvlinkCrcFlitErrorCountL8 is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L8. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L8_TOTAL. FieldDevNvlinkCrcFlitErrorCountL8 FieldID = 453 // FieldDevNvlinkCrcFlitErrorCountL9 is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L9. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L9_TOTAL. FieldDevNvlinkCrcFlitErrorCountL9 FieldID = 454 // FieldDevNvlinkCrcFlitErrorCountL10 is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L10. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L10_TOTAL. FieldDevNvlinkCrcFlitErrorCountL10 FieldID = 455 // FieldDevNvlinkCrcFlitErrorCountL11 is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L11. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L11_TOTAL. FieldDevNvlinkCrcFlitErrorCountL11 FieldID = 456 // FieldDevNvlinkCrcFlitErrorCountL12 is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L12. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L12_TOTAL. FieldDevNvlinkCrcFlitErrorCountL12 FieldID = 406 // FieldDevNvlinkCrcFlitErrorCountL13 is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L13. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L13_TOTAL. FieldDevNvlinkCrcFlitErrorCountL13 FieldID = 407 // FieldDevNvlinkCrcFlitErrorCountL14 is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L14. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L14_TOTAL. FieldDevNvlinkCrcFlitErrorCountL14 FieldID = 408 // FieldDevNvlinkCrcFlitErrorCountL15 is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L15. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L15_TOTAL. FieldDevNvlinkCrcFlitErrorCountL15 FieldID = 481 // FieldDevNvlinkCrcFlitErrorCountL16 is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L16. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L16_TOTAL. FieldDevNvlinkCrcFlitErrorCountL16 FieldID = 482 // FieldDevNvlinkCrcFlitErrorCountL17 is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_L17. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_L17_TOTAL. FieldDevNvlinkCrcFlitErrorCountL17 FieldID = 483 // FieldDevNvlinkCrcDataErrorCountL0 is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L0. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L0_TOTAL. FieldDevNvlinkCrcDataErrorCountL0 FieldID = 410 // FieldDevNvlinkCrcDataErrorCountL1 is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L1. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L1_TOTAL. FieldDevNvlinkCrcDataErrorCountL1 FieldID = 411 // FieldDevNvlinkCrcDataErrorCountL2 is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L2. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L2_TOTAL. FieldDevNvlinkCrcDataErrorCountL2 FieldID = 412 // FieldDevNvlinkCrcDataErrorCountL3 is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L3. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L3_TOTAL. FieldDevNvlinkCrcDataErrorCountL3 FieldID = 413 // FieldDevNvlinkCrcDataErrorCountL4 is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L4. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L4_TOTAL. FieldDevNvlinkCrcDataErrorCountL4 FieldID = 414 // FieldDevNvlinkCrcDataErrorCountL5 is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L5. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L5_TOTAL. FieldDevNvlinkCrcDataErrorCountL5 FieldID = 415 // FieldDevNvlinkCrcDataErrorCountL6 is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L6. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L6_TOTAL. FieldDevNvlinkCrcDataErrorCountL6 FieldID = 457 // FieldDevNvlinkCrcDataErrorCountL7 is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L7. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L7_TOTAL. FieldDevNvlinkCrcDataErrorCountL7 FieldID = 458 // FieldDevNvlinkCrcDataErrorCountL8 is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L8. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L8_TOTAL. FieldDevNvlinkCrcDataErrorCountL8 FieldID = 459 // FieldDevNvlinkCrcDataErrorCountL9 is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L9. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L9_TOTAL. FieldDevNvlinkCrcDataErrorCountL9 FieldID = 460 // FieldDevNvlinkCrcDataErrorCountL10 is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L10. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L10_TOTAL. FieldDevNvlinkCrcDataErrorCountL10 FieldID = 461 // FieldDevNvlinkCrcDataErrorCountL11 is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L11. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L11_TOTAL. FieldDevNvlinkCrcDataErrorCountL11 FieldID = 462 // FieldDevNvlinkCrcDataErrorCountL12 is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L12. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L12_TOTAL. FieldDevNvlinkCrcDataErrorCountL12 FieldID = 416 // FieldDevNvlinkCrcDataErrorCountL13 is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L13. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L13_TOTAL. FieldDevNvlinkCrcDataErrorCountL13 FieldID = 417 // FieldDevNvlinkCrcDataErrorCountL14 is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L14. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L14_TOTAL. FieldDevNvlinkCrcDataErrorCountL14 FieldID = 418 // FieldDevNvlinkCrcDataErrorCountL15 is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L15. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L15_TOTAL. FieldDevNvlinkCrcDataErrorCountL15 FieldID = 484 // FieldDevNvlinkCrcDataErrorCountL16 is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L16. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L16_TOTAL. FieldDevNvlinkCrcDataErrorCountL16 FieldID = 485 // FieldDevNvlinkCrcDataErrorCountL17 is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_L17. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_L17_TOTAL. FieldDevNvlinkCrcDataErrorCountL17 FieldID = 486 // FieldDevNvlinkReplayErrorCountL0 is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L0. // // The header defines it as DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L0_TOTAL. FieldDevNvlinkReplayErrorCountL0 FieldID = 420 // FieldDevNvlinkReplayErrorCountL1 is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L1. // // The header defines it as DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L1_TOTAL. FieldDevNvlinkReplayErrorCountL1 FieldID = 421 // FieldDevNvlinkReplayErrorCountL2 is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L2. // // The header defines it as DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L2_TOTAL. FieldDevNvlinkReplayErrorCountL2 FieldID = 422 // FieldDevNvlinkReplayErrorCountL3 is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L3. // // The header defines it as DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L3_TOTAL. FieldDevNvlinkReplayErrorCountL3 FieldID = 423 // FieldDevNvlinkReplayErrorCountL4 is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L4. // // The header defines it as DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L4_TOTAL. FieldDevNvlinkReplayErrorCountL4 FieldID = 424 // FieldDevNvlinkReplayErrorCountL5 is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L5. // // The header defines it as DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L5_TOTAL. FieldDevNvlinkReplayErrorCountL5 FieldID = 425 // FieldDevNvlinkReplayErrorCountL6 is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L6. // // The header defines it as DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L6_TOTAL. FieldDevNvlinkReplayErrorCountL6 FieldID = 463 // FieldDevNvlinkReplayErrorCountL7 is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L7. // // The header defines it as DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L7_TOTAL. FieldDevNvlinkReplayErrorCountL7 FieldID = 464 // FieldDevNvlinkReplayErrorCountL8 is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L8. // // The header defines it as DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L8_TOTAL. FieldDevNvlinkReplayErrorCountL8 FieldID = 465 // FieldDevNvlinkReplayErrorCountL9 is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L9. // // The header defines it as DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L9_TOTAL. FieldDevNvlinkReplayErrorCountL9 FieldID = 466 // FieldDevNvlinkReplayErrorCountL10 is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L10. // // The header defines it as DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L10_TOTAL. FieldDevNvlinkReplayErrorCountL10 FieldID = 467 // FieldDevNvlinkReplayErrorCountL11 is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L11. // // The header defines it as DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L11_TOTAL. FieldDevNvlinkReplayErrorCountL11 FieldID = 468 // FieldDevNvlinkReplayErrorCountL12 is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L12. // // The header defines it as DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L12_TOTAL. FieldDevNvlinkReplayErrorCountL12 FieldID = 426 // FieldDevNvlinkReplayErrorCountL13 is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L13. // // The header defines it as DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L13_TOTAL. FieldDevNvlinkReplayErrorCountL13 FieldID = 427 // FieldDevNvlinkReplayErrorCountL14 is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L14. // // The header defines it as DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L14_TOTAL. FieldDevNvlinkReplayErrorCountL14 FieldID = 428 // FieldDevNvlinkReplayErrorCountL15 is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L15. // // The header defines it as DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L15_TOTAL. FieldDevNvlinkReplayErrorCountL15 FieldID = 487 // FieldDevNvlinkReplayErrorCountL16 is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L16. // // The header defines it as DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L16_TOTAL. FieldDevNvlinkReplayErrorCountL16 FieldID = 488 // FieldDevNvlinkReplayErrorCountL17 is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_COUNT_L17. // // The header defines it as DCGM_FI_DEV_NVLINK_REPLAY_ERROR_L17_TOTAL. FieldDevNvlinkReplayErrorCountL17 FieldID = 489 // FieldDevNvlinkRecoveryErrorCountL0 is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L0. // // The header defines it as DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L0_TOTAL. FieldDevNvlinkRecoveryErrorCountL0 FieldID = 430 // FieldDevNvlinkRecoveryErrorCountL1 is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L1. // // The header defines it as DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L1_TOTAL. FieldDevNvlinkRecoveryErrorCountL1 FieldID = 431 // FieldDevNvlinkRecoveryErrorCountL2 is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L2. // // The header defines it as DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L2_TOTAL. FieldDevNvlinkRecoveryErrorCountL2 FieldID = 432 // FieldDevNvlinkRecoveryErrorCountL3 is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L3. // // The header defines it as DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L3_TOTAL. FieldDevNvlinkRecoveryErrorCountL3 FieldID = 433 // FieldDevNvlinkRecoveryErrorCountL4 is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L4. // // The header defines it as DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L4_TOTAL. FieldDevNvlinkRecoveryErrorCountL4 FieldID = 434 // FieldDevNvlinkRecoveryErrorCountL5 is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L5. // // The header defines it as DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L5_TOTAL. FieldDevNvlinkRecoveryErrorCountL5 FieldID = 435 // FieldDevNvlinkRecoveryErrorCountL6 is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L6. // // The header defines it as DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L6_TOTAL. FieldDevNvlinkRecoveryErrorCountL6 FieldID = 469 // FieldDevNvlinkRecoveryErrorCountL7 is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L7. // // The header defines it as DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L7_TOTAL. FieldDevNvlinkRecoveryErrorCountL7 FieldID = 470 // FieldDevNvlinkRecoveryErrorCountL8 is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L8. // // The header defines it as DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L8_TOTAL. FieldDevNvlinkRecoveryErrorCountL8 FieldID = 471 // FieldDevNvlinkRecoveryErrorCountL9 is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L9. // // The header defines it as DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L9_TOTAL. FieldDevNvlinkRecoveryErrorCountL9 FieldID = 472 // FieldDevNvlinkRecoveryErrorCountL10 is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L10. // // The header defines it as DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L10_TOTAL. FieldDevNvlinkRecoveryErrorCountL10 FieldID = 473 // FieldDevNvlinkRecoveryErrorCountL11 is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L11. // // The header defines it as DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L11_TOTAL. FieldDevNvlinkRecoveryErrorCountL11 FieldID = 474 // FieldDevNvlinkRecoveryErrorCountL12 is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L12. // // The header defines it as DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L12_TOTAL. FieldDevNvlinkRecoveryErrorCountL12 FieldID = 436 // FieldDevNvlinkRecoveryErrorCountL13 is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L13. // // The header defines it as DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L13_TOTAL. FieldDevNvlinkRecoveryErrorCountL13 FieldID = 437 // FieldDevNvlinkRecoveryErrorCountL14 is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L14. // // The header defines it as DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L14_TOTAL. FieldDevNvlinkRecoveryErrorCountL14 FieldID = 438 // FieldDevNvlinkRecoveryErrorCountL15 is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L15. // // The header defines it as DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L15_TOTAL. FieldDevNvlinkRecoveryErrorCountL15 FieldID = 491 // FieldDevNvlinkRecoveryErrorCountL16 is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L16. // // The header defines it as DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L16_TOTAL. FieldDevNvlinkRecoveryErrorCountL16 FieldID = 492 // FieldDevNvlinkRecoveryErrorCountL17 is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_L17. // // The header defines it as DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_L17_TOTAL. FieldDevNvlinkRecoveryErrorCountL17 FieldID = 493 // FieldDevNvlinkCrcFlitErrorCountTotal is DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_COUNT_TOTAL. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_FLIT_ERROR_TOTAL. FieldDevNvlinkCrcFlitErrorCountTotal FieldID = 409 // FieldDevNvlinkCrcDataErrorCountTotal is DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_COUNT_TOTAL. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_DATA_ERROR_TOTAL. FieldDevNvlinkCrcDataErrorCountTotal FieldID = 419 // FieldDevNvlinkReplayErrorCountTotal is DCGM_FI_DEV_NVLINK_REPLAY_ERROR_COUNT_TOTAL. // // The header defines it as DCGM_FI_DEV_NVLINK_REPLAY_ERROR_TOTAL. FieldDevNvlinkReplayErrorCountTotal FieldID = 429 // FieldDevNvlinkRecoveryErrorCountTotal is DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_COUNT_TOTAL. // // The header defines it as DCGM_FI_DEV_NVLINK_RECOVERY_ERROR_TOTAL. FieldDevNvlinkRecoveryErrorCountTotal FieldID = 439 // FieldDevGpuNvlinkErrors is DCGM_FI_DEV_GPU_NVLINK_ERRORS. // // The header defines it as DCGM_FI_DEV_NVLINK_ERROR. FieldDevGpuNvlinkErrors FieldID = 450 // FieldDevNvlinkErrorDlCrc is DCGM_FI_DEV_NVLINK_ERROR_DL_CRC. // // The header defines it as DCGM_FI_DEV_NVLINK_CRC_ERROR_TOTAL. FieldDevNvlinkErrorDlCrc FieldID = 497 // FieldDevNvlinkErrorDlRecovery is DCGM_FI_DEV_NVLINK_ERROR_DL_RECOVERY. // // The header defines it as DCGM_FI_DEV_NVLINK_RECOVERY_TOTAL. FieldDevNvlinkErrorDlRecovery FieldID = 498 // FieldDevNvlinkErrorDlReplay is DCGM_FI_DEV_NVLINK_ERROR_DL_REPLAY. // // The header defines it as DCGM_FI_DEV_NVLINK_REPLAY_TOTAL. FieldDevNvlinkErrorDlReplay FieldID = 499 // FieldDevVirtualMode is DCGM_FI_DEV_VIRTUAL_MODE. // // The header defines it as DCGM_FI_DEV_GPU_VIRTUAL_MODE. FieldDevVirtualMode FieldID = 500 // FieldDevSupportedTypeInfo is DCGM_FI_DEV_SUPPORTED_TYPE_INFO. // // The header defines it as DCGM_FI_DEV_VGPU_SUPPORTED_INFO. FieldDevSupportedTypeInfo FieldID = 501 // FieldDevCreatableVgpuTypeIds is DCGM_FI_DEV_CREATABLE_VGPU_TYPE_IDS. // // The header defines it as DCGM_FI_DEV_VGPU_CREATABLE_IDS. FieldDevCreatableVgpuTypeIds FieldID = 502 // FieldDevVgpuInstanceIds is DCGM_FI_DEV_VGPU_INSTANCE_IDS. // // The header defines it as DCGM_FI_DEV_VGPU_INSTANCE_INFO. FieldDevVgpuInstanceIds FieldID = 503 // FieldDevVgpuUtilizations is DCGM_FI_DEV_VGPU_UTILIZATIONS. // // The header defines it as DCGM_FI_DEV_VGPU_UTIL_INFO. FieldDevVgpuUtilizations FieldID = 504 // FieldDevVgpuPerProcessUtilization is DCGM_FI_DEV_VGPU_PER_PROCESS_UTILIZATION. // // The header defines it as DCGM_FI_DEV_VGPU_PROCESS_UTIL_INFO. FieldDevVgpuPerProcessUtilization FieldID = 505 // FieldDevSupportedVgpuTypeIds is DCGM_FI_DEV_SUPPORTED_VGPU_TYPE_IDS. // // The header defines it as DCGM_FI_DEV_VGPU_SUPPORTED_IDS. FieldDevSupportedVgpuTypeIds FieldID = 509 // FieldDevVgpuInstanceLicenseState is DCGM_FI_DEV_VGPU_INSTANCE_LICENSE_STATE. // // The header defines it as DCGM_FI_DEV_VGPU_INSTANCE_LICENSE_STATUS. FieldDevVgpuInstanceLicenseState FieldID = 532 // FieldDevVgpuVmGpuInstanceId is DCGM_FI_DEV_VGPU_VM_GPU_INSTANCE_ID. // // The header defines it as DCGM_FI_DEV_VGPU_GPU_INSTANCE_ID. FieldDevVgpuVmGpuInstanceId FieldID = 534 // FieldDevNvlinkPpcntRecoveryTimeSinceLast is DCGM_FI_DEV_NVLINK_PPCNT_RECOVERY_TIME_SINCE_LAST. // // The header defines it as DCGM_FI_DEV_NVLINK_PPCNT_RECOVERY_SINCE_LAST_SECONDS. FieldDevNvlinkPpcntRecoveryTimeSinceLast FieldID = 581 // FieldDevNvlinkPpcntRecoveryTotalSuccessfulEvents is DCGM_FI_DEV_NVLINK_PPCNT_RECOVERY_TOTAL_SUCCESSFUL_EVENTS. // // The header defines it as DCGM_FI_DEV_NVLINK_PPCNT_RECOVERY_SUCCESSFUL_TOTAL. FieldDevNvlinkPpcntRecoveryTotalSuccessfulEvents FieldID = 583 // FieldDevNvlinkPpcntPhysicalSuccessfulRecoveryEvents is DCGM_FI_DEV_NVLINK_PPCNT_PHYSICAL_SUCCESSFUL_RECOVERY_EVENTS. // // The header defines it as DCGM_FI_DEV_NVLINK_PPCNT_PHYSICAL_RECOVERY_SUCCESSFUL_TOTAL. FieldDevNvlinkPpcntPhysicalSuccessfulRecoveryEvents FieldID = 584 // FieldDevNvlinkPpcntPhysicalLinkDownCounter is DCGM_FI_DEV_NVLINK_PPCNT_PHYSICAL_LINK_DOWN_COUNTER. // // The header defines it as DCGM_FI_DEV_NVLINK_PPCNT_PHYSICAL_LINK_DOWN_TOTAL. FieldDevNvlinkPpcntPhysicalLinkDownCounter FieldID = 585 // FieldDevNvlinkPpcntPlrRcvCodes is DCGM_FI_DEV_NVLINK_PPCNT_PLR_RCV_CODES. // // The header defines it as DCGM_FI_DEV_NVLINK_PPCNT_PLR_RX_CODE_TOTAL. FieldDevNvlinkPpcntPlrRcvCodes FieldID = 586 // FieldDevNvlinkPpcntPlrRcvCodeErr is DCGM_FI_DEV_NVLINK_PPCNT_PLR_RCV_CODE_ERR. // // The header defines it as DCGM_FI_DEV_NVLINK_PPCNT_PLR_RX_CODE_ERROR_TOTAL. FieldDevNvlinkPpcntPlrRcvCodeErr FieldID = 587 // FieldDevNvlinkPpcntPlrRcvUncorrectableCode is DCGM_FI_DEV_NVLINK_PPCNT_PLR_RCV_UNCORRECTABLE_CODE. // // The header defines it as DCGM_FI_DEV_NVLINK_PPCNT_PLR_RX_CODE_UNCORRECTABLE_TOTAL. FieldDevNvlinkPpcntPlrRcvUncorrectableCode FieldID = 588 // FieldDevNvlinkPpcntPlrXmitCodes is DCGM_FI_DEV_NVLINK_PPCNT_PLR_XMIT_CODES. // // The header defines it as DCGM_FI_DEV_NVLINK_PPCNT_PLR_TX_CODE_TOTAL. FieldDevNvlinkPpcntPlrXmitCodes FieldID = 589 // FieldDevNvlinkPpcntPlrXmitRetryCodes is DCGM_FI_DEV_NVLINK_PPCNT_PLR_XMIT_RETRY_CODES. // // The header defines it as DCGM_FI_DEV_NVLINK_PPCNT_PLR_TX_RETRY_CODE_TOTAL. FieldDevNvlinkPpcntPlrXmitRetryCodes FieldID = 590 // FieldDevNvlinkPpcntPlrXmitRetryEvents is DCGM_FI_DEV_NVLINK_PPCNT_PLR_XMIT_RETRY_EVENTS. // // The header defines it as DCGM_FI_DEV_NVLINK_PPCNT_PLR_TX_RETRY_EVENT_TOTAL. FieldDevNvlinkPpcntPlrXmitRetryEvents FieldID = 591 // FieldDevNvlinkPpcntPlrSyncEvents is DCGM_FI_DEV_NVLINK_PPCNT_PLR_SYNC_EVENTS. // // The header defines it as DCGM_FI_DEV_NVLINK_PPCNT_PLR_SYNC_EVENT_TOTAL. FieldDevNvlinkPpcntPlrSyncEvents FieldID = 592 // FieldDevNvswitchPowerVdd is DCGM_FI_DEV_NVSWITCH_POWER_VDD. // // The header defines it as DCGM_FI_DEV_NVSWITCH_POWER_VDD_WATTS. FieldDevNvswitchPowerVdd FieldID = 705 // FieldDevNvswitchPowerDvdd is DCGM_FI_DEV_NVSWITCH_POWER_DVDD. // // The header defines it as DCGM_FI_DEV_NVSWITCH_POWER_DVDD_WATTS. FieldDevNvswitchPowerDvdd FieldID = 706 // FieldDevNvswitchPowerHvdd is DCGM_FI_DEV_NVSWITCH_POWER_HVDD. // // The header defines it as DCGM_FI_DEV_NVSWITCH_POWER_HVDD_WATTS. FieldDevNvswitchPowerHvdd FieldID = 707 // FieldDevNvswitchLinkReplayErrors is DCGM_FI_DEV_NVSWITCH_LINK_REPLAY_ERRORS. // // The header defines it as DCGM_FI_DEV_NVSWITCH_LINK_REPLAY_ERROR_TOTAL. FieldDevNvswitchLinkReplayErrors FieldID = 784 // FieldDevNvswitchLinkRecoveryErrors is DCGM_FI_DEV_NVSWITCH_LINK_RECOVERY_ERRORS. // // The header defines it as DCGM_FI_DEV_NVSWITCH_LINK_RECOVERY_ERROR_TOTAL. FieldDevNvswitchLinkRecoveryErrors FieldID = 785 // FieldDevNvswitchLinkFlitErrors is DCGM_FI_DEV_NVSWITCH_LINK_FLIT_ERRORS. // // The header defines it as DCGM_FI_DEV_NVSWITCH_LINK_FLIT_ERROR_TOTAL. FieldDevNvswitchLinkFlitErrors FieldID = 786 // FieldDevNvswitchLinkCrcErrors is DCGM_FI_DEV_NVSWITCH_LINK_CRC_ERRORS. // // The header defines it as DCGM_FI_DEV_NVSWITCH_LINK_CRC_ERROR_TOTAL. FieldDevNvswitchLinkCrcErrors FieldID = 787 // FieldDevNvswitchLinkEccErrors is DCGM_FI_DEV_NVSWITCH_LINK_ECC_ERRORS. // // The header defines it as DCGM_FI_DEV_NVSWITCH_LINK_ECC_ERROR_TOTAL. FieldDevNvswitchLinkEccErrors FieldID = 788 // FieldDevNvswitchLinkLatencyCountVC0 is DCGM_FI_DEV_NVSWITCH_LINK_LATENCY_COUNT_VC0. // // The header defines it as DCGM_FI_DEV_NVSWITCH_LINK_LATENCY_SAMPLE_VC0_TOTAL. FieldDevNvswitchLinkLatencyCountVC0 FieldID = 805 // FieldDevNvswitchLinkLatencyCountVC1 is DCGM_FI_DEV_NVSWITCH_LINK_LATENCY_COUNT_VC1. // // The header defines it as DCGM_FI_DEV_NVSWITCH_LINK_LATENCY_SAMPLE_VC1_TOTAL. FieldDevNvswitchLinkLatencyCountVC1 FieldID = 806 // FieldDevNvswitchLinkLatencyCountVC2 is DCGM_FI_DEV_NVSWITCH_LINK_LATENCY_COUNT_VC2. // // The header defines it as DCGM_FI_DEV_NVSWITCH_LINK_LATENCY_SAMPLE_VC2_TOTAL. FieldDevNvswitchLinkLatencyCountVC2 FieldID = 807 // FieldDevNvswitchLinkLatencyCountVC3 is DCGM_FI_DEV_NVSWITCH_LINK_LATENCY_COUNT_VC3. // // The header defines it as DCGM_FI_DEV_NVSWITCH_LINK_LATENCY_SAMPLE_VC3_TOTAL. FieldDevNvswitchLinkLatencyCountVC3 FieldID = 808 // FieldDevNvswitchLinkCrcErrorsLane0 is DCGM_FI_DEV_NVSWITCH_LINK_CRC_ERRORS_LANE0. // // The header defines it as DCGM_FI_DEV_NVSWITCH_LINK_CRC_ERROR_L0_TOTAL. FieldDevNvswitchLinkCrcErrorsLane0 FieldID = 809 // FieldDevNvswitchLinkCrcErrorsLane1 is DCGM_FI_DEV_NVSWITCH_LINK_CRC_ERRORS_LANE1. // // The header defines it as DCGM_FI_DEV_NVSWITCH_LINK_CRC_ERROR_L1_TOTAL. FieldDevNvswitchLinkCrcErrorsLane1 FieldID = 810 // FieldDevNvswitchLinkCrcErrorsLane2 is DCGM_FI_DEV_NVSWITCH_LINK_CRC_ERRORS_LANE2. // // The header defines it as DCGM_FI_DEV_NVSWITCH_LINK_CRC_ERROR_L2_TOTAL. FieldDevNvswitchLinkCrcErrorsLane2 FieldID = 811 // FieldDevNvswitchLinkCrcErrorsLane3 is DCGM_FI_DEV_NVSWITCH_LINK_CRC_ERRORS_LANE3. // // The header defines it as DCGM_FI_DEV_NVSWITCH_LINK_CRC_ERROR_L3_TOTAL. FieldDevNvswitchLinkCrcErrorsLane3 FieldID = 812 // FieldDevNvswitchLinkCrcErrorsLane4 is DCGM_FI_DEV_NVSWITCH_LINK_CRC_ERRORS_LANE4. // // The header defines it as DCGM_FI_DEV_NVSWITCH_LINK_CRC_ERROR_L4_TOTAL. FieldDevNvswitchLinkCrcErrorsLane4 FieldID = 817 // FieldDevNvswitchLinkCrcErrorsLane5 is DCGM_FI_DEV_NVSWITCH_LINK_CRC_ERRORS_LANE5. // // The header defines it as DCGM_FI_DEV_NVSWITCH_LINK_CRC_ERROR_L5_TOTAL. FieldDevNvswitchLinkCrcErrorsLane5 FieldID = 818 // FieldDevNvswitchLinkCrcErrorsLane6 is DCGM_FI_DEV_NVSWITCH_LINK_CRC_ERRORS_LANE6. // // The header defines it as DCGM_FI_DEV_NVSWITCH_LINK_CRC_ERROR_L6_TOTAL. FieldDevNvswitchLinkCrcErrorsLane6 FieldID = 819 // FieldDevNvswitchLinkCrcErrorsLane7 is DCGM_FI_DEV_NVSWITCH_LINK_CRC_ERRORS_LANE7. // // The header defines it as DCGM_FI_DEV_NVSWITCH_LINK_CRC_ERROR_L7_TOTAL. FieldDevNvswitchLinkCrcErrorsLane7 FieldID = 820 // FieldDevNvswitchLinkEccErrorsLane0 is DCGM_FI_DEV_NVSWITCH_LINK_ECC_ERRORS_LANE0. // // The header defines it as DCGM_FI_DEV_NVSWITCH_LINK_ECC_ERROR_L0_TOTAL. FieldDevNvswitchLinkEccErrorsLane0 FieldID = 813 // FieldDevNvswitchLinkEccErrorsLane1 is DCGM_FI_DEV_NVSWITCH_LINK_ECC_ERRORS_LANE1. // // The header defines it as DCGM_FI_DEV_NVSWITCH_LINK_ECC_ERROR_L1_TOTAL. FieldDevNvswitchLinkEccErrorsLane1 FieldID = 814 // FieldDevNvswitchLinkEccErrorsLane2 is DCGM_FI_DEV_NVSWITCH_LINK_ECC_ERRORS_LANE2. // // The header defines it as DCGM_FI_DEV_NVSWITCH_LINK_ECC_ERROR_L2_TOTAL. FieldDevNvswitchLinkEccErrorsLane2 FieldID = 815 // FieldDevNvswitchLinkEccErrorsLane3 is DCGM_FI_DEV_NVSWITCH_LINK_ECC_ERRORS_LANE3. // // The header defines it as DCGM_FI_DEV_NVSWITCH_LINK_ECC_ERROR_L3_TOTAL. FieldDevNvswitchLinkEccErrorsLane3 FieldID = 816 // FieldDevNvswitchLinkEccErrorsLane4 is DCGM_FI_DEV_NVSWITCH_LINK_ECC_ERRORS_LANE4. // // The header defines it as DCGM_FI_DEV_NVSWITCH_LINK_ECC_ERROR_L4_TOTAL. FieldDevNvswitchLinkEccErrorsLane4 FieldID = 821 // FieldDevNvswitchLinkEccErrorsLane5 is DCGM_FI_DEV_NVSWITCH_LINK_ECC_ERRORS_LANE5. // // The header defines it as DCGM_FI_DEV_NVSWITCH_LINK_ECC_ERROR_L5_TOTAL. FieldDevNvswitchLinkEccErrorsLane5 FieldID = 822 // FieldDevNvswitchLinkEccErrorsLane6 is DCGM_FI_DEV_NVSWITCH_LINK_ECC_ERRORS_LANE6. // // The header defines it as DCGM_FI_DEV_NVSWITCH_LINK_ECC_ERROR_L6_TOTAL. FieldDevNvswitchLinkEccErrorsLane6 FieldID = 823 // FieldDevNvswitchLinkEccErrorsLane7 is DCGM_FI_DEV_NVSWITCH_LINK_ECC_ERRORS_LANE7. // // The header defines it as DCGM_FI_DEV_NVSWITCH_LINK_ECC_ERROR_L7_TOTAL. FieldDevNvswitchLinkEccErrorsLane7 FieldID = 824 // FieldDevNvswitchTemperatureCurrent is DCGM_FI_DEV_NVSWITCH_TEMPERATURE_CURRENT. // // The header defines it as DCGM_FI_DEV_NVSWITCH_TEMP_CELSIUS. FieldDevNvswitchTemperatureCurrent FieldID = 858 // FieldDevNvswitchTemperatureLimitSlowdown is DCGM_FI_DEV_NVSWITCH_TEMPERATURE_LIMIT_SLOWDOWN. // // The header defines it as DCGM_FI_DEV_NVSWITCH_TEMP_SLOWDOWN_CELSIUS. FieldDevNvswitchTemperatureLimitSlowdown FieldID = 859 // FieldDevNvswitchTemperatureLimitShutdown is DCGM_FI_DEV_NVSWITCH_TEMPERATURE_LIMIT_SHUTDOWN. // // The header defines it as DCGM_FI_DEV_NVSWITCH_TEMP_SHUTDOWN_CELSIUS. FieldDevNvswitchTemperatureLimitShutdown FieldID = 860 // FieldDevNvswitchPhysId is DCGM_FI_DEV_NVSWITCH_PHYS_ID. // // The header defines it as DCGM_FI_DEV_NVSWITCH_PHYSICAL_ID. FieldDevNvswitchPhysId FieldID = 863 // FieldDevNvswitchFatalErrors is DCGM_FI_DEV_NVSWITCH_FATAL_ERRORS. // // The header defines it as DCGM_FI_DEV_SXID_FATAL_ERROR. FieldDevNvswitchFatalErrors FieldID = 856 // FieldDevNvswitchNonFatalErrors is DCGM_FI_DEV_NVSWITCH_NON_FATAL_ERRORS. // // The header defines it as DCGM_FI_DEV_SXID_NON_FATAL_ERROR. FieldDevNvswitchNonFatalErrors FieldID = 857 // FieldDevNvswitchLinkDeviceLinkId is DCGM_FI_DEV_NVSWITCH_LINK_DEVICE_LINK_ID. // // The header defines it as DCGM_FI_DEV_NVSWITCH_LINK_REMOTE_LINK_ID. FieldDevNvswitchLinkDeviceLinkId FieldID = 876 // FieldDevNvswitchLinkDeviceLinkSid is DCGM_FI_DEV_NVSWITCH_LINK_DEVICE_LINK_SID. // // The header defines it as DCGM_FI_DEV_NVSWITCH_LINK_REMOTE_LINK_SID. FieldDevNvswitchLinkDeviceLinkSid FieldID = 877 // FieldDevNvswitchDeviceUuid is DCGM_FI_DEV_NVSWITCH_DEVICE_UUID. // // The header defines it as DCGM_FI_DEV_NVSWITCH_UUID. FieldDevNvswitchDeviceUuid FieldID = 878 // FieldProfGrEngineActive is DCGM_FI_PROF_GR_ENGINE_ACTIVE. // // The header defines it as DCGM_FI_PROF_GR_ENGINE_UTIL_RATIO. FieldProfGrEngineActive FieldID = 1001 // FieldProfSmActive is DCGM_FI_PROF_SM_ACTIVE. // // The header defines it as DCGM_FI_PROF_SM_UTIL_RATIO. FieldProfSmActive FieldID = 1002 // FieldProfSmOccupancy is DCGM_FI_PROF_SM_OCCUPANCY. // // The header defines it as DCGM_FI_PROF_SM_OCCUPANCY_RATIO. FieldProfSmOccupancy FieldID = 1003 // FieldProfPipeTensorActive is DCGM_FI_PROF_PIPE_TENSOR_ACTIVE. // // The header defines it as DCGM_FI_PROF_TENSOR_UTIL_RATIO. FieldProfPipeTensorActive FieldID = 1004 // FieldProfDramActive is DCGM_FI_PROF_DRAM_ACTIVE. // // The header defines it as DCGM_FI_PROF_DRAM_UTIL_RATIO. FieldProfDramActive FieldID = 1005 // FieldProfPipeFP64Active is DCGM_FI_PROF_PIPE_FP64_ACTIVE. // // The header defines it as DCGM_FI_PROF_FP64_UTIL_RATIO. FieldProfPipeFP64Active FieldID = 1006 // FieldProfPipeFP32Active is DCGM_FI_PROF_PIPE_FP32_ACTIVE. // // The header defines it as DCGM_FI_PROF_FP32_UTIL_RATIO. FieldProfPipeFP32Active FieldID = 1007 // FieldProfPipeFP16Active is DCGM_FI_PROF_PIPE_FP16_ACTIVE. // // The header defines it as DCGM_FI_PROF_FP16_UTIL_RATIO. FieldProfPipeFP16Active FieldID = 1008 // FieldProfPipeTensorImmaActive is DCGM_FI_PROF_PIPE_TENSOR_IMMA_ACTIVE. // // The header defines it as DCGM_FI_PROF_IMMA_UTIL_RATIO. FieldProfPipeTensorImmaActive FieldID = 1013 // FieldProfPipeTensorHmmaActive is DCGM_FI_PROF_PIPE_TENSOR_HMMA_ACTIVE. // // The header defines it as DCGM_FI_PROF_HMMA_UTIL_RATIO. FieldProfPipeTensorHmmaActive FieldID = 1014 // FieldProfPipeTensorDfmaActive is DCGM_FI_PROF_PIPE_TENSOR_DFMA_ACTIVE. // // The header defines it as DCGM_FI_PROF_DFMA_UTIL_RATIO. FieldProfPipeTensorDfmaActive FieldID = 1015 // FieldProfPipeIntActive is DCGM_FI_PROF_PIPE_INT_ACTIVE. // // The header defines it as DCGM_FI_PROF_INT_UTIL_RATIO. FieldProfPipeIntActive FieldID = 1016 // FieldProfNvdec0Active is DCGM_FI_PROF_NVDEC0_ACTIVE. // // The header defines it as DCGM_FI_PROF_NVDEC_UTIL_0_RATIO. FieldProfNvdec0Active FieldID = 1017 // FieldProfNvdec1Active is DCGM_FI_PROF_NVDEC1_ACTIVE. // // The header defines it as DCGM_FI_PROF_NVDEC_UTIL_1_RATIO. FieldProfNvdec1Active FieldID = 1018 // FieldProfNvdec2Active is DCGM_FI_PROF_NVDEC2_ACTIVE. // // The header defines it as DCGM_FI_PROF_NVDEC_UTIL_2_RATIO. FieldProfNvdec2Active FieldID = 1019 // FieldProfNvdec3Active is DCGM_FI_PROF_NVDEC3_ACTIVE. // // The header defines it as DCGM_FI_PROF_NVDEC_UTIL_3_RATIO. FieldProfNvdec3Active FieldID = 1020 // FieldProfNvdec4Active is DCGM_FI_PROF_NVDEC4_ACTIVE. // // The header defines it as DCGM_FI_PROF_NVDEC_UTIL_4_RATIO. FieldProfNvdec4Active FieldID = 1021 // FieldProfNvdec5Active is DCGM_FI_PROF_NVDEC5_ACTIVE. // // The header defines it as DCGM_FI_PROF_NVDEC_UTIL_5_RATIO. FieldProfNvdec5Active FieldID = 1022 // FieldProfNvdec6Active is DCGM_FI_PROF_NVDEC6_ACTIVE. // // The header defines it as DCGM_FI_PROF_NVDEC_UTIL_6_RATIO. FieldProfNvdec6Active FieldID = 1023 // FieldProfNvdec7Active is DCGM_FI_PROF_NVDEC7_ACTIVE. // // The header defines it as DCGM_FI_PROF_NVDEC_UTIL_7_RATIO. FieldProfNvdec7Active FieldID = 1024 // FieldProfNvjpg0Active is DCGM_FI_PROF_NVJPG0_ACTIVE. // // The header defines it as DCGM_FI_PROF_NVJPG_UTIL_0_RATIO. FieldProfNvjpg0Active FieldID = 1025 // FieldProfNvjpg1Active is DCGM_FI_PROF_NVJPG1_ACTIVE. // // The header defines it as DCGM_FI_PROF_NVJPG_UTIL_1_RATIO. FieldProfNvjpg1Active FieldID = 1026 // FieldProfNvjpg2Active is DCGM_FI_PROF_NVJPG2_ACTIVE. // // The header defines it as DCGM_FI_PROF_NVJPG_UTIL_2_RATIO. FieldProfNvjpg2Active FieldID = 1027 // FieldProfNvjpg3Active is DCGM_FI_PROF_NVJPG3_ACTIVE. // // The header defines it as DCGM_FI_PROF_NVJPG_UTIL_3_RATIO. FieldProfNvjpg3Active FieldID = 1028 // FieldProfNvjpg4Active is DCGM_FI_PROF_NVJPG4_ACTIVE. // // The header defines it as DCGM_FI_PROF_NVJPG_UTIL_4_RATIO. FieldProfNvjpg4Active FieldID = 1029 // FieldProfNvjpg5Active is DCGM_FI_PROF_NVJPG5_ACTIVE. // // The header defines it as DCGM_FI_PROF_NVJPG_UTIL_5_RATIO. FieldProfNvjpg5Active FieldID = 1030 // FieldProfNvjpg6Active is DCGM_FI_PROF_NVJPG6_ACTIVE. // // The header defines it as DCGM_FI_PROF_NVJPG_UTIL_6_RATIO. FieldProfNvjpg6Active FieldID = 1031 // FieldProfNvjpg7Active is DCGM_FI_PROF_NVJPG7_ACTIVE. // // The header defines it as DCGM_FI_PROF_NVJPG_UTIL_7_RATIO. FieldProfNvjpg7Active FieldID = 1032 // FieldProfNvofa0Active is DCGM_FI_PROF_NVOFA0_ACTIVE. // // The header defines it as DCGM_FI_PROF_NVOFA_UTIL_0_RATIO. FieldProfNvofa0Active FieldID = 1033 // FieldProfNvofa1Active is DCGM_FI_PROF_NVOFA1_ACTIVE. // // The header defines it as DCGM_FI_PROF_NVOFA_UTIL_1_RATIO. FieldProfNvofa1Active FieldID = 1034 // FieldDevCpuUtilTotal is DCGM_FI_DEV_CPU_UTIL_TOTAL. // // The header defines it as DCGM_FI_DEV_CPU_UTIL_RATIO. FieldDevCpuUtilTotal FieldID = 1100 // FieldDevCpuUtilUser is DCGM_FI_DEV_CPU_UTIL_USER. // // The header defines it as DCGM_FI_DEV_CPU_UTIL_USER_RATIO. FieldDevCpuUtilUser FieldID = 1101 // FieldDevCpuUtilNice is DCGM_FI_DEV_CPU_UTIL_NICE. // // The header defines it as DCGM_FI_DEV_CPU_UTIL_NICE_RATIO. FieldDevCpuUtilNice FieldID = 1102 // FieldDevCpuUtilSys is DCGM_FI_DEV_CPU_UTIL_SYS. // // The header defines it as DCGM_FI_DEV_CPU_UTIL_SYS_RATIO. FieldDevCpuUtilSys FieldID = 1103 // FieldDevCpuUtilIrq is DCGM_FI_DEV_CPU_UTIL_IRQ. // // The header defines it as DCGM_FI_DEV_CPU_UTIL_IRQ_RATIO. FieldDevCpuUtilIrq FieldID = 1104 // FieldDevCpuTempCurrent is DCGM_FI_DEV_CPU_TEMP_CURRENT. // // The header defines it as DCGM_FI_DEV_CPU_TEMP_CELSIUS. FieldDevCpuTempCurrent FieldID = 1110 // FieldDevCpuTempWarning is DCGM_FI_DEV_CPU_TEMP_WARNING. // // The header defines it as DCGM_FI_DEV_CPU_TEMP_WARNING_CELSIUS. FieldDevCpuTempWarning FieldID = 1111 // FieldDevCpuTempCritical is DCGM_FI_DEV_CPU_TEMP_CRITICAL. // // The header defines it as DCGM_FI_DEV_CPU_TEMP_CRITICAL_CELSIUS. FieldDevCpuTempCritical FieldID = 1112 // FieldDevCpuPowerUtilCurrent is DCGM_FI_DEV_CPU_POWER_UTIL_CURRENT. // // The header defines it as DCGM_FI_DEV_CPU_POWER_WATTS. FieldDevCpuPowerUtilCurrent FieldID = 1130 // FieldDevCpuPowerLimit is DCGM_FI_DEV_CPU_POWER_LIMIT. // // The header defines it as DCGM_FI_DEV_CPU_POWER_LIMIT_WATTS. FieldDevCpuPowerLimit FieldID = 1131 // FieldDevSysioPowerUtilCurrent is DCGM_FI_DEV_SYSIO_POWER_UTIL_CURRENT. // // The header defines it as DCGM_FI_DEV_SYSIO_POWER_WATTS. FieldDevSysioPowerUtilCurrent FieldID = 1132 // FieldDevModulePowerUtilCurrent is DCGM_FI_DEV_MODULE_POWER_UTIL_CURRENT. // // The header defines it as DCGM_FI_DEV_MODULE_POWER_WATTS. FieldDevModulePowerUtilCurrent FieldID = 1133 // FieldDevNvlinkCountTxPackets is DCGM_FI_DEV_NVLINK_COUNT_TX_PACKETS. // // The header defines it as DCGM_FI_DEV_NVLINK_TX_PACKET_TOTAL. FieldDevNvlinkCountTxPackets FieldID = 1200 // FieldDevNvlinkCountTxBytes is DCGM_FI_DEV_NVLINK_COUNT_TX_BYTES. // // The header defines it as DCGM_FI_DEV_NVLINK_TX_BYTES_TOTAL. FieldDevNvlinkCountTxBytes FieldID = 1201 // FieldDevNvlinkCountRxPackets is DCGM_FI_DEV_NVLINK_COUNT_RX_PACKETS. // // The header defines it as DCGM_FI_DEV_NVLINK_RX_PACKET_TOTAL. FieldDevNvlinkCountRxPackets FieldID = 1202 // FieldDevNvlinkCountRxBytes is DCGM_FI_DEV_NVLINK_COUNT_RX_BYTES. // // The header defines it as DCGM_FI_DEV_NVLINK_RX_BYTES_TOTAL. FieldDevNvlinkCountRxBytes FieldID = 1203 // FieldDevNvlinkCountRxMalformedPacketErrors is DCGM_FI_DEV_NVLINK_COUNT_RX_MALFORMED_PACKET_ERRORS. // // The header defines it as DCGM_FI_DEV_NVLINK_RX_PACKET_MALFORMED_TOTAL. FieldDevNvlinkCountRxMalformedPacketErrors FieldID = 1204 // FieldDevNvlinkCountRxBufferOverrunErrors is DCGM_FI_DEV_NVLINK_COUNT_RX_BUFFER_OVERRUN_ERRORS. // // The header defines it as DCGM_FI_DEV_NVLINK_RX_PACKET_DROPPED_TOTAL. FieldDevNvlinkCountRxBufferOverrunErrors FieldID = 1205 // FieldDevNvlinkCountRxErrors is DCGM_FI_DEV_NVLINK_COUNT_RX_ERRORS. // // The header defines it as DCGM_FI_DEV_NVLINK_RX_ERROR_TOTAL. FieldDevNvlinkCountRxErrors FieldID = 1206 // FieldDevNvlinkCountRxRemoteErrors is DCGM_FI_DEV_NVLINK_COUNT_RX_REMOTE_ERRORS. // // The header defines it as DCGM_FI_DEV_NVLINK_RX_REMOTE_ERROR_TOTAL. FieldDevNvlinkCountRxRemoteErrors FieldID = 1207 // FieldDevNvlinkCountRxGeneralErrors is DCGM_FI_DEV_NVLINK_COUNT_RX_GENERAL_ERRORS. // // The header defines it as DCGM_FI_DEV_NVLINK_RX_GENERAL_ERROR_TOTAL. FieldDevNvlinkCountRxGeneralErrors FieldID = 1208 // FieldDevNvlinkCountLocalLinkIntegrityErrors is DCGM_FI_DEV_NVLINK_COUNT_LOCAL_LINK_INTEGRITY_ERRORS. // // The header defines it as DCGM_FI_DEV_NVLINK_INTEGRITY_ERROR_TOTAL. FieldDevNvlinkCountLocalLinkIntegrityErrors FieldID = 1209 // FieldDevNvlinkCountTxDiscards is DCGM_FI_DEV_NVLINK_COUNT_TX_DISCARDS. // // The header defines it as DCGM_FI_DEV_NVLINK_TX_DISCARD_TOTAL. FieldDevNvlinkCountTxDiscards FieldID = 1210 // FieldDevNvlinkCountLinkRecoverySuccessfulEvents is DCGM_FI_DEV_NVLINK_COUNT_LINK_RECOVERY_SUCCESSFUL_EVENTS. // // The header defines it as DCGM_FI_DEV_NVLINK_RECOVERY_SUCCESSFUL_TOTAL. FieldDevNvlinkCountLinkRecoverySuccessfulEvents FieldID = 1211 // FieldDevNvlinkCountLinkRecoveryFailedEvents is DCGM_FI_DEV_NVLINK_COUNT_LINK_RECOVERY_FAILED_EVENTS. // // The header defines it as DCGM_FI_DEV_NVLINK_RECOVERY_FAILED_TOTAL. FieldDevNvlinkCountLinkRecoveryFailedEvents FieldID = 1212 // FieldDevNvlinkCountLinkRecoveryEvents is DCGM_FI_DEV_NVLINK_COUNT_LINK_RECOVERY_EVENTS. // // The header defines it as DCGM_FI_DEV_NVLINK_RECOVERY_EVENT_TOTAL. FieldDevNvlinkCountLinkRecoveryEvents FieldID = 1213 // FieldDevNvlinkCountRxSymbolErrors is DCGM_FI_DEV_NVLINK_COUNT_RX_SYMBOL_ERRORS. // // The header defines it as DCGM_FI_DEV_NVLINK_RX_SYMBOL_ERROR_TOTAL. FieldDevNvlinkCountRxSymbolErrors FieldID = 1214 // FieldDevNvlinkCountSymbolBer is DCGM_FI_DEV_NVLINK_COUNT_SYMBOL_BER. // // The header defines it as DCGM_FI_DEV_NVLINK_SYMBOL_BER_RAW. FieldDevNvlinkCountSymbolBer FieldID = 1215 // FieldDevNvlinkCountSymbolBerFloat is DCGM_FI_DEV_NVLINK_COUNT_SYMBOL_BER_FLOAT. // // The header defines it as DCGM_FI_DEV_NVLINK_SYMBOL_BER_RATIO. FieldDevNvlinkCountSymbolBerFloat FieldID = 1216 // FieldDevNvlinkCountEffectiveBer is DCGM_FI_DEV_NVLINK_COUNT_EFFECTIVE_BER. // // The header defines it as DCGM_FI_DEV_NVLINK_EFFECTIVE_BER_RAW. FieldDevNvlinkCountEffectiveBer FieldID = 1217 // FieldDevNvlinkCountEffectiveBerFloat is DCGM_FI_DEV_NVLINK_COUNT_EFFECTIVE_BER_FLOAT. // // The header defines it as DCGM_FI_DEV_NVLINK_EFFECTIVE_BER_RATIO. FieldDevNvlinkCountEffectiveBerFloat FieldID = 1218 // FieldDevNvlinkCountEffectiveErrors is DCGM_FI_DEV_NVLINK_COUNT_EFFECTIVE_ERRORS. // // The header defines it as DCGM_FI_DEV_NVLINK_EFFECTIVE_ERROR_TOTAL. FieldDevNvlinkCountEffectiveErrors FieldID = 1219 // FieldDevNvlinkEccDataErrorCountTotal is DCGM_FI_DEV_NVLINK_ECC_DATA_ERROR_COUNT_TOTAL. // // The header defines it as DCGM_FI_DEV_NVLINK_ECC_ERROR_TOTAL. FieldDevNvlinkEccDataErrorCountTotal FieldID = 1220 // FieldDevConnectxCorrectableErrStatus is DCGM_FI_DEV_CONNECTX_CORRECTABLE_ERR_STATUS. // // The header defines it as DCGM_FI_DEV_CONNECTX_CORRECTABLE_ERROR_STATUS. FieldDevConnectxCorrectableErrStatus FieldID = 1305 // FieldDevConnectxCorrectableErrMask is DCGM_FI_DEV_CONNECTX_CORRECTABLE_ERR_MASK. // // The header defines it as DCGM_FI_DEV_CONNECTX_CORRECTABLE_ERROR_MASK. FieldDevConnectxCorrectableErrMask FieldID = 1306 // FieldDevConnectxUncorrectableErrStatus is DCGM_FI_DEV_CONNECTX_UNCORRECTABLE_ERR_STATUS. // // The header defines it as DCGM_FI_DEV_CONNECTX_UNCORRECTABLE_ERROR_STATUS. FieldDevConnectxUncorrectableErrStatus FieldID = 1307 // FieldDevConnectxUncorrectableErrMask is DCGM_FI_DEV_CONNECTX_UNCORRECTABLE_ERR_MASK. // // The header defines it as DCGM_FI_DEV_CONNECTX_UNCORRECTABLE_ERROR_MASK. FieldDevConnectxUncorrectableErrMask FieldID = 1308 // FieldDevConnectxUncorrectableErrSeverity is DCGM_FI_DEV_CONNECTX_UNCORRECTABLE_ERR_SEVERITY. // // The header defines it as DCGM_FI_DEV_CONNECTX_UNCORRECTABLE_ERROR_SEVERITY. FieldDevConnectxUncorrectableErrSeverity FieldID = 1309 // FieldDevConnectxDeviceTemperature is DCGM_FI_DEV_CONNECTX_DEVICE_TEMPERATURE. // // The header defines it as DCGM_FI_DEV_CONNECTX_TEMP_CELSIUS. FieldDevConnectxDeviceTemperature FieldID = 1310 // FieldDevC2CLinkErrorIntr is DCGM_FI_DEV_C2C_LINK_ERROR_INTR. // // The header defines it as DCGM_FI_DEV_C2C_LINK_ERROR_TOTAL. FieldDevC2CLinkErrorIntr FieldID = 1400 // FieldDevC2CLinkErrorReplay is DCGM_FI_DEV_C2C_LINK_ERROR_REPLAY. // // The header defines it as DCGM_FI_DEV_C2C_LINK_REPLAY_ERROR_TOTAL. FieldDevC2CLinkErrorReplay FieldID = 1401 // FieldDevC2CLinkErrorReplayB2B is DCGM_FI_DEV_C2C_LINK_ERROR_REPLAY_B2B. // // The header defines it as DCGM_FI_DEV_C2C_LINK_REPLAY_ERROR_B2B_TOTAL. FieldDevC2CLinkErrorReplayB2B FieldID = 1402 // FieldDevC2CLinkPowerState is DCGM_FI_DEV_C2C_LINK_POWER_STATE. // // The header defines it as DCGM_FI_DEV_C2C_LINK_POWER_STATUS. FieldDevC2CLinkPowerState FieldID = 1403 // FieldDevNvlinkCountFecHistory0 is DCGM_FI_DEV_NVLINK_COUNT_FEC_HISTORY_0. // // The header defines it as DCGM_FI_DEV_NVLINK_FEC_HISTORY_0_TOTAL. FieldDevNvlinkCountFecHistory0 FieldID = 1404 // FieldDevNvlinkCountFecHistory1 is DCGM_FI_DEV_NVLINK_COUNT_FEC_HISTORY_1. // // The header defines it as DCGM_FI_DEV_NVLINK_FEC_HISTORY_1_TOTAL. FieldDevNvlinkCountFecHistory1 FieldID = 1405 // FieldDevNvlinkCountFecHistory2 is DCGM_FI_DEV_NVLINK_COUNT_FEC_HISTORY_2. // // The header defines it as DCGM_FI_DEV_NVLINK_FEC_HISTORY_2_TOTAL. FieldDevNvlinkCountFecHistory2 FieldID = 1406 // FieldDevNvlinkCountFecHistory3 is DCGM_FI_DEV_NVLINK_COUNT_FEC_HISTORY_3. // // The header defines it as DCGM_FI_DEV_NVLINK_FEC_HISTORY_3_TOTAL. FieldDevNvlinkCountFecHistory3 FieldID = 1407 // FieldDevNvlinkCountFecHistory4 is DCGM_FI_DEV_NVLINK_COUNT_FEC_HISTORY_4. // // The header defines it as DCGM_FI_DEV_NVLINK_FEC_HISTORY_4_TOTAL. FieldDevNvlinkCountFecHistory4 FieldID = 1408 // FieldDevNvlinkCountFecHistory5 is DCGM_FI_DEV_NVLINK_COUNT_FEC_HISTORY_5. // // The header defines it as DCGM_FI_DEV_NVLINK_FEC_HISTORY_5_TOTAL. FieldDevNvlinkCountFecHistory5 FieldID = 1409 // FieldDevNvlinkCountFecHistory6 is DCGM_FI_DEV_NVLINK_COUNT_FEC_HISTORY_6. // // The header defines it as DCGM_FI_DEV_NVLINK_FEC_HISTORY_6_TOTAL. FieldDevNvlinkCountFecHistory6 FieldID = 1410 // FieldDevNvlinkCountFecHistory7 is DCGM_FI_DEV_NVLINK_COUNT_FEC_HISTORY_7. // // The header defines it as DCGM_FI_DEV_NVLINK_FEC_HISTORY_7_TOTAL. FieldDevNvlinkCountFecHistory7 FieldID = 1411 // FieldDevNvlinkCountFecHistory8 is DCGM_FI_DEV_NVLINK_COUNT_FEC_HISTORY_8. // // The header defines it as DCGM_FI_DEV_NVLINK_FEC_HISTORY_8_TOTAL. FieldDevNvlinkCountFecHistory8 FieldID = 1412 // FieldDevNvlinkCountFecHistory9 is DCGM_FI_DEV_NVLINK_COUNT_FEC_HISTORY_9. // // The header defines it as DCGM_FI_DEV_NVLINK_FEC_HISTORY_9_TOTAL. FieldDevNvlinkCountFecHistory9 FieldID = 1413 // FieldDevNvlinkCountFecHistory10 is DCGM_FI_DEV_NVLINK_COUNT_FEC_HISTORY_10. // // The header defines it as DCGM_FI_DEV_NVLINK_FEC_HISTORY_10_TOTAL. FieldDevNvlinkCountFecHistory10 FieldID = 1414 // FieldDevNvlinkCountFecHistory11 is DCGM_FI_DEV_NVLINK_COUNT_FEC_HISTORY_11. // // The header defines it as DCGM_FI_DEV_NVLINK_FEC_HISTORY_11_TOTAL. FieldDevNvlinkCountFecHistory11 FieldID = 1415 // FieldDevNvlinkCountFecHistory12 is DCGM_FI_DEV_NVLINK_COUNT_FEC_HISTORY_12. // // The header defines it as DCGM_FI_DEV_NVLINK_FEC_HISTORY_12_TOTAL. FieldDevNvlinkCountFecHistory12 FieldID = 1416 // FieldDevNvlinkCountFecHistory13 is DCGM_FI_DEV_NVLINK_COUNT_FEC_HISTORY_13. // // The header defines it as DCGM_FI_DEV_NVLINK_FEC_HISTORY_13_TOTAL. FieldDevNvlinkCountFecHistory13 FieldID = 1417 // FieldDevNvlinkCountFecHistory14 is DCGM_FI_DEV_NVLINK_COUNT_FEC_HISTORY_14. // // The header defines it as DCGM_FI_DEV_NVLINK_FEC_HISTORY_14_TOTAL. FieldDevNvlinkCountFecHistory14 FieldID = 1418 // FieldDevNvlinkCountFecHistory15 is DCGM_FI_DEV_NVLINK_COUNT_FEC_HISTORY_15. // // The header defines it as DCGM_FI_DEV_NVLINK_FEC_HISTORY_15_TOTAL. FieldDevNvlinkCountFecHistory15 FieldID = 1419 // FieldDevPwrSmoothingAppliedTmpCeil is DCGM_FI_DEV_PWR_SMOOTHING_APPLIED_TMP_CEIL. // // The header defines it as DCGM_FI_DEV_PWR_SMOOTHING_APPLIED_TMP_CEIL_WATTS. FieldDevPwrSmoothingAppliedTmpCeil FieldID = 1428 // FieldDevPwrSmoothingAppliedTmpFloor is DCGM_FI_DEV_PWR_SMOOTHING_APPLIED_TMP_FLOOR. // // The header defines it as DCGM_FI_DEV_PWR_SMOOTHING_APPLIED_TMP_FLOOR_WATTS. FieldDevPwrSmoothingAppliedTmpFloor FieldID = 1429 // FieldDevPwrSmoothingMaxNumPresetProfiles is DCGM_FI_DEV_PWR_SMOOTHING_MAX_NUM_PRESET_PROFILES. // // The header defines it as DCGM_FI_DEV_PWR_SMOOTHING_MAX_PRESET_PROFILES. FieldDevPwrSmoothingMaxNumPresetProfiles FieldID = 1433 // FieldDevPcieCountCorrectableErrors is DCGM_FI_DEV_PCIE_COUNT_CORRECTABLE_ERRORS. // // The header defines it as DCGM_FI_DEV_PCIE_CORRECTABLE_ERROR_TOTAL. FieldDevPcieCountCorrectableErrors FieldID = 1501 // FieldDevMemoryUnrepairableFlag is DCGM_FI_DEV_MEMORY_UNREPAIRABLE_FLAG. // // The header defines it as DCGM_FI_DEV_MEMORY_UNREPAIRABLE. FieldDevMemoryUnrepairableFlag FieldID = 1507 // FieldDevNvlinkGetState is DCGM_FI_DEV_NVLINK_GET_STATE. // // The header defines it as DCGM_FI_DEV_NVLINK_LINK_STATUS. FieldDevNvlinkGetState FieldID = 1508 // FieldDevNvlinkPpcntIbpcPortXmitWait is DCGM_FI_DEV_NVLINK_PPCNT_IBPC_PORT_XMIT_WAIT. // // The header defines it as DCGM_FI_DEV_NVLINK_PPCNT_IBPC_TX_WAIT_TOTAL. FieldDevNvlinkPpcntIbpcPortXmitWait FieldID = 1509 // FieldDevGetGpuRecoveryAction is DCGM_FI_DEV_GET_GPU_RECOVERY_ACTION. // // The header defines it as DCGM_FI_DEV_GPU_RECOVERY_ACTION. FieldDevGetGpuRecoveryAction FieldID = 1523 )
Field ids from the pinned dcgm_fields.h, evaluated by the C compiler.
Some ids have a second name, kept in the header after a rename. Both spellings are generated, both have the same value, and the doc comment on the second says which one it follows.
type FieldMeta ¶
type FieldMeta struct {
FieldId uint16
FieldType byte
Size uint8
Tag [48]byte
Scope int32
NvmlFieldId int32
EntityLevel FieldEntityGroup
ValueFormat FieldOutputFormatP
}
FieldMeta stores meta data for the field.
type FieldMetaP ¶
type FieldMetaP uintptr
FieldMetaP represents dcgm_field_meta_p.
func DcgmFieldGetById ¶
func DcgmFieldGetById(fieldId uint16) (FieldMetaP, error)
DcgmFieldGetById wraps DcgmFieldGetById. The error reports an unavailable library or symbol.
func DcgmFieldGetByTag ¶
func DcgmFieldGetByTag(tag *byte) (FieldMetaP, error)
DcgmFieldGetByTag wraps DcgmFieldGetByTag. The error reports an unavailable library or symbol.
type FieldOutputFormat ¶
FieldOutputFormat represents dcgm_field_output_format_t.
type FieldOutputFormatP ¶
type FieldOutputFormatP struct {
// Data stores the raw bytes of the underlying C type.
Data [1]uint64
}
FieldOutputFormatP is the opaque form of C type dcgm_field_output_format_p, whose definition this generator cannot model.
type FieldPolicyViolation ¶
type FieldPolicyViolation struct {
PolicyId uint64
PolicyName [256]byte
FieldName [256]byte
FieldId uint16
Entity GroupEntityPair
CurrentValue float64
ThresholdValue float64
PolicyOperator PolicyOperator
ChannelMask uint32
Timestamp int64
}
FieldPolicyViolation represents field-based policy violation event.
type FieldSummaryRequest ¶
type FieldSummaryRequest struct {
Version uint32
FieldId uint16
EntityGroupId FieldEntityGroup
EntityId FieldEid
SummaryTypeMask uint32
StartTime uint64
EndTime uint64
Response SummaryResponse
}
FieldSummaryRequest represents dcgmFieldSummaryRequest_v1.
type FieldSummaryRequestV1 ¶
type FieldSummaryRequestV1 = FieldSummaryRequest
FieldSummaryRequestV1 is an alias for FieldSummaryRequest.
type FieldValue ¶
type FieldValue interface {
// ID is the DCGM field this reading is for.
ID() FieldID
// Type is the DCGM_FT_* discriminator selecting the payload arm.
Type() uint16
// Err reports the per-field status. It is nil when DCGM returned the
// field successfully, which does not mean the field carries data: check
// Blank as well.
Err() error
// Time is when the sample was taken, or the zero Time when DCGM
// reported no timestamp.
Time() time.Time
// Blank reports that the field carries no data even though Err is nil.
Blank() bool
}
A FieldValue is one reading. It is the interface the two generated value structures have in common, so a caller can handle Handle.LatestValues and Handle.EntityLatestValues results the same way.
type FieldValueEntityEnumerationF ¶
type FieldValueEntityEnumerationF uintptr
FieldValueEntityEnumerationF represents dcgmFieldValueEntityEnumeration_f.
type FieldValueEnumerationF ¶
type FieldValueEnumerationF uintptr
FieldValueEnumerationF represents dcgmFieldValueEnumeration_f.
type FieldValueV1 ¶
type FieldValueV1 struct {
Version uint32
FieldId uint16
FieldType uint16
Status int32
Ts int64
Value [512]uint64
}
FieldValueV1 is used to represent value for the field to be queried.
func (*FieldValueV1) Blank ¶
func (v *FieldValueV1) Blank() bool
Blank reports that DCGM returned this field successfully but with no data.
This is the case a caller most often gets wrong. DCGM does not report "the GPU does not support this field" through the status; it returns success and writes a sentinel into the value. Reading the value without this check turns "no data" into an enormous reading.
func (*FieldValueV1) Blob ¶
func (v *FieldValueV1) Blob() []byte
Blob returns a copy of the raw payload bytes of a binary-typed field. It returns nil for any other field type.
The copy is deliberate: the payload lives in an array inside v, and handing out a slice of it would alias a structure the caller is likely to reuse for the next sample.
func (*FieldValueV1) Err ¶
func (v *FieldValueV1) Err() error
Err reports the per-field status DCGM returned for this reading.
It is separate from the error the call itself returned: a call can succeed and still report a per-field failure here, and a field whose Err is nil can still be FieldValueV1.Blank.
func (*FieldValueV1) Float64 ¶
func (v *FieldValueV1) Float64() (f float64, ok bool)
Float64 returns the reading of a double-typed field. ok is false when the field is not double-typed or carries no data.
func (*FieldValueV1) ID ¶
func (v *FieldValueV1) ID() FieldID
ID is the DCGM field this reading is for.
func (*FieldValueV1) Int64 ¶
func (v *FieldValueV1) Int64() (n int64, ok bool)
Int64 returns the reading of an integer or timestamp field.
ok is false when the field is not integer-typed or carries no data, so a blank cannot be mistaken for a value.
func (*FieldValueV1) Text ¶
func (v *FieldValueV1) Text() (s string, ok bool)
Text returns the reading of a string-typed field. ok is false when the field is not string-typed or carries no data.
func (*FieldValueV1) Time ¶
func (v *FieldValueV1) Time() time.Time
Time is when the sample was taken. DCGM reports microseconds since the Unix epoch, and reports zero for a field it never sampled; Time returns the zero time.Time for that so a caller cannot mistake it for 1970.
func (*FieldValueV1) Type ¶
func (v *FieldValueV1) Type() uint16
Type is the DCGM_FT_* discriminator selecting which payload accessor is meaningful.
type FieldValueV2 ¶
type FieldValueV2 struct {
Version uint32
EntityGroupId FieldEntityGroup
EntityId FieldEid
FieldId uint16
FieldType uint16
Status int32
Unused uint32
Ts int64
Value [512]uint64
}
FieldValueV2 is used to represent value for the field to be queried.
func (*FieldValueV2) Blank ¶
func (v *FieldValueV2) Blank() bool
Blank reports that DCGM returned this field successfully but with no data. See FieldValueV1.Blank.
func (*FieldValueV2) Blob ¶
func (v *FieldValueV2) Blob() []byte
Blob returns a copy of the raw payload bytes of a binary-typed field, or nil for any other field type.
func (*FieldValueV2) Entity ¶
func (v *FieldValueV2) Entity() GroupEntityPair
Entity is the entity this reading belongs to.
func (*FieldValueV2) Err ¶
func (v *FieldValueV2) Err() error
Err reports the per-field status DCGM returned for this reading. See FieldValueV1.Err.
func (*FieldValueV2) Float64 ¶
func (v *FieldValueV2) Float64() (f float64, ok bool)
Float64 returns the reading of a double-typed field. ok is false when the field is not double-typed or carries no data.
func (*FieldValueV2) ID ¶
func (v *FieldValueV2) ID() FieldID
ID is the DCGM field this reading is for.
func (*FieldValueV2) Int64 ¶
func (v *FieldValueV2) Int64() (n int64, ok bool)
Int64 returns the reading of an integer or timestamp field. ok is false when the field is not integer-typed or carries no data.
func (*FieldValueV2) Text ¶
func (v *FieldValueV2) Text() (s string, ok bool)
Text returns the reading of a string-typed field. ok is false when the field is not string-typed or carries no data.
func (*FieldValueV2) Time ¶
func (v *FieldValueV2) Time() time.Time
Time is when the sample was taken, or the zero time.Time when DCGM reported no timestamp.
func (*FieldValueV2) Type ¶
func (v *FieldValueV2) Type() uint16
Type is the DCGM_FT_* discriminator selecting which payload accessor is meaningful.
type FpRecvPolicyViolation ¶
type FpRecvPolicyViolation uintptr
FpRecvPolicyViolation is the field-policy callback function pointer ABI.
type GpuGrp ¶
type GpuGrp uintptr
GpuGrp represents dcgmGpuGrp_t.
func GroupCreate ¶
GroupCreate is used to create a entity group handle which can store one or more entity Ids as an opaque handle returned.
Instead of executing an operation separately for each entity, the DCGM group enables the user to execute same operation on all the entities present in the group as a single API call. To create the group with all the entities present on the system, the type field should be specified as GroupDefault or GroupAllNvSwitches. To create an empty group, the type field should be specified as GroupEmpty. The empty group can be updated with the desired set of entities using the APIs Handle.GroupAddDevice, Handle.GroupAddEntity, Handle.GroupRemoveDevice, and Handle.GroupRemoveEntity.
- pDcgmHandle: IN: DCGM Handle
- type_: IN: Type of Entity Group to be formed
- groupName: IN: Desired name of the GPU group specified as NULL terminated C string
- pDcgmGrpId: OUT: Reference to group ID
Wraps dcgmGroupCreate.
type GpuInstanceProfileInfo ¶
type GpuInstanceProfileInfo struct {
Version uint32
Id uint32
IsP2pSupported uint32
SliceCount uint32
InstanceCount uint32
MultiprocessorCount uint32
CopyEngineCount uint32
DecoderCount uint32
EncoderCount uint32
JpegCount uint32
OfaCount uint32
MemorySizeMB uint64
}
GpuInstanceProfileInfo represents GPU instance profile information.
type GpuInstanceProfileInfoV1 ¶
type GpuInstanceProfileInfoV1 = GpuInstanceProfileInfo
GpuInstanceProfileInfoV1 is an alias for GpuInstanceProfileInfo.
type GpuInstanceProfiles ¶
type GpuInstanceProfiles struct {
Version uint32
ProfileCount uint32
ProfileInfo GpuInstanceProfileInfo
}
GpuInstanceProfiles represents GPU instance profiles.
type GpuInstanceProfilesV1 ¶
type GpuInstanceProfilesV1 = GpuInstanceProfiles
GpuInstanceProfilesV1 is an alias for GpuInstanceProfiles.
type GpuNVLinkErrorType ¶
type GpuNVLinkErrorType int32
GpuNVLinkErrorType identifies a GPU NVLink error type returned by FieldDevNvlinkError.
const ( GpuNvlinkErrorRecoveryRequired GpuNVLinkErrorType = 1 // NVLink link recovery error occurred GpuNvlinkErrorFatal GpuNVLinkErrorType = 2 // NVLink link fatal error occurred )
func (GpuNVLinkErrorType) String ¶
func (e GpuNVLinkErrorType) String() string
String returns the constant name, or a numeric representation for unknown values.
type GpuTopologyLevel ¶
type GpuTopologyLevel uint64
GpuTopologyLevel represents dcgmGpuTopologyLevel_t.
type GpuTopologyLevelV1 ¶
type GpuTopologyLevelV1 int32
GpuTopologyLevelV1 represents level relationships within a system between two GPUs The enums are spaced to allow for future relationships.
These match the definitions in nvml.h.
const ( TopologyUninitialized GpuTopologyLevelV1 = 0x0 TopologyBoard GpuTopologyLevelV1 = 0x1 // multi-GPU board TopologySingle GpuTopologyLevelV1 = 0x2 // all devices that only need traverse a single PCIe switch TopologyMultiple GpuTopologyLevelV1 = 0x4 // all devices that need not traverse a host bridge TopologyHostbridge GpuTopologyLevelV1 = 0x8 // all devices that are connected to the same host bridge TopologyCpu GpuTopologyLevelV1 = 0x10 // all devices that are connected to the same CPU but possibly multiple host bridges TopologySystem GpuTopologyLevelV1 = 0x20 // all devices in the system TopologyNvlink1 GpuTopologyLevelV1 = 0x0100 // GPUs connected via a single NVLINK link TopologyNvlink2 GpuTopologyLevelV1 = 0x0200 // GPUs connected via two NVLINK links TopologyNvlink3 GpuTopologyLevelV1 = 0x0400 // GPUs connected via three NVLINK links TopologyNvlink4 GpuTopologyLevelV1 = 0x0800 // GPUs connected via four NVLINK links TopologyNvlink5 GpuTopologyLevelV1 = 0x1000 // GPUs connected via five NVLINK links TopologyNvlink6 GpuTopologyLevelV1 = 0x2000 // GPUs connected via six NVLINK links TopologyNvlink7 GpuTopologyLevelV1 = 0x4000 // GPUs connected via seven NVLINK links TopologyNvlink8 GpuTopologyLevelV1 = 0x8000 // GPUs connected via eight NVLINK links TopologyNvlink9 GpuTopologyLevelV1 = 0x10000 // GPUs connected via nine NVLINK links TopologyNvlink10 GpuTopologyLevelV1 = 0x20000 // GPUs connected via ten NVLINK links TopologyNvlink11 GpuTopologyLevelV1 = 0x40000 // GPUs connected via eleven NVLINK links TopologyNvlink12 GpuTopologyLevelV1 = 0x80000 // GPUs connected via twelve NVLINK links TopologyNvlink13 GpuTopologyLevelV1 = 0x100000 // GPUs connected via thirteen NVLINK links TopologyNvlink14 GpuTopologyLevelV1 = 0x200000 // GPUs connected via fourteen NVLINK links TopologyNvlink15 GpuTopologyLevelV1 = 0x400000 // GPUs connected via fifteen NVLINK links TopologyNvlink16 GpuTopologyLevelV1 = 0x800000 // GPUs connected via sixteen NVLINK links TopologyNvlink17 GpuTopologyLevelV1 = 0x1000000 // GPUs connected via seventeen NVLINK links TopologyNvlink18 GpuTopologyLevelV1 = 0x2000000 // GPUs connected via eighteen NVLINK links )
func (GpuTopologyLevelV1) String ¶
func (e GpuTopologyLevelV1) String() string
String returns the constant name, or a numeric representation for unknown values.
type GpuUsageInfo ¶
type GpuUsageInfo struct {
GpuId uint32
EnergyConsumed int64
PowerUsage StatSummaryFp64
PcieRxBandwidth StatSummaryInt64
PcieTxBandwidth StatSummaryInt64
PcieReplays int64
StartTime int64
EndTime int64
SmUtilization StatSummaryInt32
MemoryUtilization StatSummaryInt32
EccSingleBit uint32
EccDoubleBit uint32
MemoryClock StatSummaryInt32
SmClock StatSummaryInt32
NumXidCriticalErrors int32
XidCriticalErrorsTs [10]int64
NumComputePids int32
ComputePidInfo [16]ProcessUtilInfo
NumGraphicsPids int32
GraphicsPidInfo [16]ProcessUtilInfo
MaxGpuMemoryUsed int64
PowerViolationTime int64
ThermalViolationTime int64
ReliabilityViolationTime int64
BoardLimitViolationTime int64
LowUtilizationTime int64
SyncBoostTime int64
OverallHealth HealthWatchResults
IncidentCount uint32
Systems [10][2]uint32
}
GpuUsageInfo represents info corresponding to the job on a GPU.
type GpuVirtualizationMode ¶
type GpuVirtualizationMode int32
GpuVirtualizationMode represents GPU virtualization mode types for FieldDevGpuVirtualMode.
const ( GpuVirtualizationModeNone GpuVirtualizationMode = 0 // Represents Bare Metal GPU GpuVirtualizationModePassthrough GpuVirtualizationMode = 1 // Device is associated with GPU-Passthrough GpuVirtualizationModeVgpu GpuVirtualizationMode = 2 // Device is associated with vGPU inside virtual machine. GpuVirtualizationModeHostVgpu GpuVirtualizationMode = 3 // Device is associated with VGX hypervisor in vGPU mode GpuVirtualizationModeHostVsga GpuVirtualizationMode = 4 // Device is associated with VGX hypervisor in vSGA mode )
func (GpuVirtualizationMode) String ¶
func (e GpuVirtualizationMode) String() string
String returns the constant name, or a numeric representation for unknown values.
type GroupEntityPair ¶
type GroupEntityPair struct {
EntityGroupId FieldEntityGroup
EntityId FieldEid
}
GroupEntityPair represents a entityGroupId + entityId pair to uniquely identify a given entityId inside a group of entities.
Added in DCGM 1.5.0.
type GroupInfo ¶
type GroupInfo struct {
Version uint32
Count uint32
GroupName [256]byte
EntityList [1024]GroupEntityPair
}
GroupInfo stores information for DCGM group.
Added in DCGM 1.5.0.
type GroupInfoV2 ¶
type GroupInfoV2 struct {
Version uint32
Count uint32
GroupName [256]byte
EntityList [64]GroupEntityPair
}
GroupInfoV2 stores information for DCGM group.
Added in DCGM 1.5.0.
type GroupTopology ¶
type GroupTopology struct {
Version uint32
GroupCpuAffinityMask [8]uint
NumaOptimalFlag uint32
SlowestPath GpuTopologyLevel
}
GroupTopology represents group topology information with 64-bit topology path.
type GroupTopologyV1 ¶
type GroupTopologyV1 struct {
Version uint32
GroupCpuAffinityMask [8]uint
NumaOptimalFlag uint32
SlowestPath GpuTopologyLevelV1
}
GroupTopologyV1 represents group topology information.
type GroupTopologyV2 ¶
type GroupTopologyV2 = GroupTopology
GroupTopologyV2 is an alias for GroupTopology.
type GroupType ¶
type GroupType int32
GroupType is a type of GPU groups.
const ( GroupDefault GroupType = 0 // All the GPUs on the node are added to the group GroupEmpty GroupType = 1 // Creates an empty group GroupDefaultNvswitches GroupType = 2 // All NvSwitches of the node are added to the group GroupDefaultInstances GroupType = 3 // All GPU instances of the node are added to the group GroupDefaultComputeInstances GroupType = 4 // All compute instances of the node are added to the group GroupDefaultEverything GroupType = 5 // All entities are added to this default group )
type Handle ¶
type Handle uintptr
Handle is an opaque handle for dcgmHandle_t.
func ConnectV2 ¶
func ConnectV2(ipAddress *byte, connectParams *ConnectV2Params) (Handle, error)
ConnectV2 is used to connect to a stand-alone host engine process.
Remote host engines are started by running the nv-hostengine command.
- ipAddress: IN: Valid IP address for the remote host engine to connect to. If ipAddress is specified as x.x.x.x it will attempt to connect to the default port specified by HePortNumber. If ipAddress is specified as x.x.x.x:yyyy it will attempt to connect to the port specified by yyyy
- connectParams: IN: Additional connection parameters. See ConnectV2Params for details
- pDcgmHandle: OUT: DCGM Handle of the remote host engine
Wraps dcgmConnect_v2.
func ConnectV3 ¶
func ConnectV3(connectionString *byte, connectParams *ConnectV3Params) (Handle, error)
ConnectV3 is used to connect to a stand-alone host engine process.
Remote host engines are started by running the nv-hostengine command.
- connectionString: IN: Valid connection string for the remote host engine to connect to. Use the following format: - tcp://x.x.x.x:yyyy (TCP/IP address) - tcp://x.x.x.x (TCP/IP address with default port HePortNumber) - unix:///path/to/socket (Unix Domain socket) - vsock://cid:port (VMware vSock) - vsock://cid (VMware vSock with default port HePortNumber)
- connectParams: IN: Additional connection parameters. See ConnectV3Params for details
- pDcgmHandle: OUT: DCGM Handle of the remote host engine
Wraps dcgmConnect_v3.
func (Handle) ActionValidate ¶
func (h Handle) ActionValidate(drd *RunDiagV10, response *DiagResponse) error
ActionValidate Inform the action manager to perform a manual validation of a group of GPUs on the system
- drd: IN: Contains the group id, test names, test parameters, struct version, and the validation that should be performed. Look at Handle.GroupCreate for details on creating the group. Alternatively, pass in the group id as GroupAllGPUs to perform operation on all the GPUs
- response: OUT: Result of the validation process. Refer to DiagResponse for details. Note: It's a caller's responsibility to make sure the response is zero-initialized, except for the version field
Wraps dcgmActionValidate_v2.
func (Handle) AllDevices ¶
AllDevices is used to get identifiers corresponding to all the devices on the system.
The identifier represents DCGM GPU Id corresponding to each GPU on the system and is immutable during the lifespan of the engine. The list should be queried again if the engine is restarted. The GPUs returned from this function include gpuIds of GPUs that are not supported by DCGM. To only get gpuIds of GPUs that are supported by DCGM, use Handle.AllSupportedDevices.
- gpuIdList: OUT: Array reference to fill GPU Ids present on the system
- count: OUT: Number of GPUs returned in gpuIdList
Wraps dcgmGetAllDevices.
func (Handle) AllSupportedDevices ¶
AllSupportedDevices is used to get identifiers corresponding to all the DCGM-supported devices on the system.
The identifier represents DCGM GPU Id corresponding to each GPU on the system and is immutable during the lifespan of the engine. The list should be queried again if the engine is restarted. The GPUs returned from this function ONLY includes gpuIds of GPUs that are supported by DCGM. To get gpuIds of all GPUs in the system, use Handle.AllDevices.
- gpuIdList: OUT: Array reference to fill GPU Ids present on the system
- count: OUT: Number of GPUs returned in gpuIdList
Wraps dcgmGetAllSupportedDevices.
func (Handle) AttachDriver ¶
AttachDriver attaches the driver to the DCGM.
This API attaches NVML to DCGM. It does nothing if the driver is already attached. Use this to update the driver without restarting DCGM. Handle.DetachDriver
Wraps dcgmAttachDriver.
func (Handle) CheckHealth ¶
func (h Handle) CheckHealth(group GpuGrp) (HealthWatchResults, []IncidentInfo, error)
CheckHealth reports the health of the entities in group, as watched by the health systems the host engine has enabled for it (see Handle.HealthGet). It returns the overall result and one incident per problem found; a healthy group has no incidents.
CheckHealth reads the watches; it does not create them. A group with no health systems watched reports pass.
func (Handle) ConfigEnforce ¶
func (h Handle) ConfigEnforce(groupId GpuGrp, statusHandle StatusHandle) error
ConfigEnforce is used to enforce previously set configuration for all the GPUs present in the group.
This API provides a mechanism to the users to manually enforce the configuration at any point of time. The configuration can only be enforced if it's already configured using the API Handle.ConfigSet.
If any of the properties can't be enforced for any of the GPUs in the group then the API returns an error. The status handle statusHandle should be further evaluated to access error attributes for the failed operations. Please refer to status management APIs at DCGMAPI_ST to access the error attributes.
- groupId: IN: Group ID representing collection of one or more GPUs. Look at Handle.GroupCreate for details on creating the group. Alternatively, pass in the group id as GroupAllGPUs to perform operation on all the GPUs
- statusHandle: IN/OUT: Resulting error status for multiple operations. Pass it as NULL if the detailed error information is not needed. Look at NewStatusHandle for details on creating status handle
Wraps dcgmConfigEnforce.
func (Handle) ConfigGet ¶
func (h Handle) ConfigGet(groupId GpuGrp, type_ ConfigType, deviceConfigList []Config, statusHandle StatusHandle) error
ConfigGet is used to get configuration for all the GPUs present in the group.
This API can get the most recent target or desired configuration set by Handle.ConfigSet. Set type as ConfigTargetState to get target configuration. The target configuration properties are maintained by DCGM and are automatically enforced after a GPU reset or reinitialization is completed.
The method can also be used to get the actual configuration state for the GPUs in the group. Set type as ConfigCurrentState to get the actually configuration state. Ideally, the actual configuration state will be exact same as the target configuration state.
If any of the property in the target configuration is unknown then the property value in the output is populated as one of Int32Blank, Int64Blank, DCGM_FP64_BLANK or DCGM_STR_BLANK based on the data type of the property.
If any of the property in the current configuration state is not supported then the property value in the output is populated as one of Int32NotSupported, Int64NotSupported, DCGM_FP64_NOT_SUPPORTED or DCGM_STR_NOT_SUPPORTED based on the data type of the property.
If any of the properties can't be fetched for any of the GPUs in the group then the API returns an error. The status handle statusHandle should be further evaluated to access error attributes for the failed operations. Please refer to status management APIs at DCGMAPI_ST to access the error attributes.
- groupId: IN: Group ID representing collection of one or more GPUs. Look at Handle.GroupCreate for details on creating the group
- type_: IN: Type of configuration values to be fetched
- deviceConfigList: OUT: Pointer to memory to hold requested configuration corresponding to all the GPUs in the group (groupId). The size of the memory must be greater than or equal to hold output information for the number of GPUs present in the group (groupId)
- statusHandle: IN/OUT: Resulting error status for multiple operations. Pass it as NULL if the detailed error information is not needed. Look at NewStatusHandle for details on creating status handle
Wraps dcgmConfigGet.
func (Handle) ConfigSet ¶
func (h Handle) ConfigSet(groupId GpuGrp, pDeviceConfig *Config, statusHandle StatusHandle) error
ConfigSet is used to set configuration for the group of one or more GPUs identified by groupId.
The configuration settings specified in pDeviceConfig are applied to all the GPUs in the group. Since DCGM group is a logical grouping of GPUs, the configuration settings stays intact for the individual GPUs even after the group is destroyed.
If the user wishes to ignore the configuration of one or more properties in the input pDeviceConfig then the property should be specified as one of Int32Blank, Int64Blank, DCGM_FP64_BLANK or DCGM_STR_BLANK based on the data type of the property to be ignored.
If any of the properties fail to be configured for any of the GPUs in the group then the API returns an error. The status handle statusHandle should be further evaluated to access error attributes for the failed operations. Please refer to status management APIs at DCGMAPI_ST to access the error attributes.
To find out valid supported clock values that can be passed to Handle.ConfigSet, look at the device attributes of a GPU in the group using the API Handle.DeviceAttributes.
- groupId: IN: Group ID representing collection of one or more GPUs. Look at Handle.GroupCreate for details on creating the group
- pDeviceConfig: IN: Pointer to memory to hold desired configuration to be applied for all the GPU in the group represented by groupId. The caller must populate the version field of pDeviceConfig
- statusHandle: IN/OUT: Resulting error status for multiple operations. Pass it as NULL if the detailed error information is not needed. Look at NewStatusHandle for details on creating status handle
Wraps dcgmConfigSet.
func (Handle) ConfigSetWorkloadPowerProfile ¶
func (h Handle) ConfigSetWorkloadPowerProfile(workloadPowerProfile *WorkloadPowerProfile) error
ConfigSetWorkloadPowerProfile is used to set, clear, or overwrite the workload power profile for all the GPUs present in a group.
This API will return an error if the operation fails for any of the GPUs in the group.
- workloadPowerProfile: IN: Workload power profile describing the target group, requested mask, and action
Wraps dcgmConfigSetWorkloadPowerProfile.
func (Handle) CpuHierarchyV2 ¶
func (h Handle) CpuHierarchyV2(cpuHierarchy *CpuHierarchy) error
CpuHierarchyV2 List supported CPUs and their cores present on the system
This and other CPU APIs only support datacenter NVIDIA CPUs.
- cpuHierarchy: OUT: Structure where the CPUs and their associated cores will be enumerated
Wraps dcgmGetCpuHierarchy_v2.
func (Handle) DetachDriver ¶
DetachDriver detaches the driver from the DCGM.
This API detaches NVML from DCGM. It does nothing if the driver is already detached. Use this to update the driver without restarting DCGM. Handle.AttachDriver
Wraps dcgmDetachDriver.
func (Handle) DeviceAttributes ¶
func (h Handle) DeviceAttributes(gpuId uint32, pDcgmAttr *DeviceAttributes) error
DeviceAttributes gets device attributes corresponding to the gpuId.
If operation is not successful for any of the requested fields then the field is populated with one of DCGM_BLANK_VALUES defined in dcgm_structs.h.
- gpuId: IN: GPU Id corresponding to which the attributes should be fetched
- pDcgmAttr: IN/OUT: Device attributes corresponding to gpuId. pDcgmAttr->version should be set to dcgmDeviceAttributes_version before this call
Wraps dcgmGetDeviceAttributes.
func (Handle) DeviceTopology ¶
func (h Handle) DeviceTopology(gpuId uint32, pDcgmDeviceTopology *DeviceTopology) error
DeviceTopology gets device topology corresponding to the gpuId.
- gpuId: IN: GPU Id corresponding to which topology information should be fetched
- pDcgmDeviceTopology: IN/OUT: Topology information corresponding to gpuId. pDcgmDeviceTopology->version must be set to dcgmDeviceTopology_version or dcgmDeviceTopology_version1 before this call
Wraps dcgmGetDeviceTopology.
func (Handle) DeviceWorkloadPowerProfileInfo ¶
func (h Handle) DeviceWorkloadPowerProfileInfo(gpuId uint32, profilesInfo *WorkloadPowerProfileProfilesInfo, profilesStatus *DeviceWorkloadPowerProfilesStatus) error
DeviceWorkloadPowerProfileInfo gets device workload power profile information and status.
- gpuId: IN: GPU Id corresponding to which the information should be fetched
- profilesInfo: OUT: Information about each of the supported workload power profiles available on this device
- profilesStatus: OUT: Currently active, requested, and enforced workload power profiles on this device
Wraps dcgmGetDeviceWorkloadPowerProfileInfo.
func (Handle) Devices ¶
Devices returns the GPU ids the host engine knows about, whether or not DCGM supports them.
The buffer is sized from MaxNumDevices, the bound DCGM writes up to. The returned slice is freshly allocated and belongs to the caller.
func (Handle) DiagSendHeartbeat ¶
DiagSendHeartbeat sends a diagnostic heartbeat to the DCGM.
When RunFlagsEnableHeartbeat is used, the DCGM host engine will check the heartbeat from the DCGM client during the diagnostic. If the heartbeat is not received within the timeout period (10 minutes), the diagnostic will be terminated. This API should be called periodically during the diagnostic if RunFlagsEnableHeartbeat is used.
Wraps dcgmDiagSendHeartbeat.
func (Handle) Disconnect ¶
Disconnect is used to disconnect from a stand-alone host engine process.
Wraps dcgmDisconnect.
func (Handle) EntitiesGetLatestValues ¶
func (h Handle) EntitiesGetLatestValues(entities *GroupEntityPair, entityCount uint32, fields *uint16, fieldCount uint32, flags uint32, values *FieldValueV2) error
EntitiesGetLatestValues requests the latest cached or live field value for a list of fields for a group of entities
Note: The returned entities are not guaranteed to be in any order. Reordering can occur internally in order to optimize calls to the NVIDIA driver.
- entities: IN: List of entities to get values for
- entityCount: IN: Number of entries in entities[]
- fields: IN: Field IDs to return data for. See the definitions in dcgm_fields.h that start with DCGM_FI_
- fieldCount: IN: Number of field IDs in fields[] array
- flags: IN: Optional flags that affect how this request is processed. Pass FvFlagLiveData here to retrieve a live driver value rather than a cached value. See that flag's documentation for caveats
- values: OUT: Latest field values for the fields requested. This must be able to hold entityCount * fieldCount field value records
Wraps dcgmEntitiesGetLatestValues.
func (Handle) EntityGetLatestValues ¶
func (h Handle) EntityGetLatestValues(entityGroup FieldEntityGroup, entityId int32, fields *uint16, count uint32, values *FieldValueV1) error
EntityGetLatestValues requests latest cached field value for a group of fields for a specific entity
- entityGroup: IN: entity_group_t (e.g. switch)
- entityId: IN: entity ID representing the rntity for which the fields are being requested
- fields: IN: Field IDs to return data for. See the definitions in dcgm_fields.h that start with DCGM_FI_
- count: IN: Number of field IDs in fields[] array
- values: OUT: Latest field values for the fields in fields[]
Wraps dcgmEntityGetLatestValues.
func (Handle) EntityGroupEntities ¶
func (h Handle) EntityGroupEntities(entityGroup FieldEntityGroup, entities *FieldEid, numEntities *int32, flags uint32) error
EntityGroupEntities gets the list of entities that exist for a given entity group.
This API can be used in place of Handle.AllDevices.
- entityGroup: IN: Entity group to list entities of
- entities: OUT: Array of entities for entityGroup
- numEntities: IN/OUT: Upon calling, this should be the number of entities that entityList[] can hold. Upon return, this will contain the number of entities actually saved to entityList
- flags: IN: Flags to modify the behavior of this request. See DCGM_GEGE_FLAG_* #defines in dcgm_structs.h
Wraps dcgmGetEntityGroupEntities.
func (Handle) EntityLatestValues ¶
func (h Handle) EntityLatestValues(entities []GroupEntityPair, fields []FieldID, flags uint32) ([]FieldValueV2, error)
EntityLatestValues reads the most recent sample of each field for each of several entities, which may be GPUs, GPU instances, compute instances, NvSwitches or links.
The result has one reading per entity-field pair, in entity-major order, and each keeps its own status and timestamp. entities and fields are read during the call and not retained.
func (Handle) FieldGroupCreate ¶
func (h Handle) FieldGroupCreate(numFieldIds int32, fieldIds *uint16, fieldGroupName *byte) (FieldGrp, error)
FieldGroupCreate is used to create a group of fields and return the handle
- numFieldIds: IN: Number of field IDs that are being provided in fieldIds[]. Must be between 1 and MaxFieldIDsPerFieldGroup
- fieldIds: IN: Field IDs to be added to the newly-created field group
- fieldGroupName: IN: Unique name for this group of fields. This must not be the same as any existing field groups
- dcgmFieldGroupId: OUT: Handle to the newly-created field group
Wraps dcgmFieldGroupCreate.
func (Handle) FieldGroupDestroy ¶
FieldGroupDestroy is used to remove a field group that was created with Handle.FieldGroupCreate
- dcgmFieldGroupId: IN: Field group to remove
Wraps dcgmFieldGroupDestroy.
func (Handle) FieldGroupGetAll ¶
func (h Handle) FieldGroupGetAll(allGroupInfo *AllFieldGroup) error
FieldGroupGetAll is used to get information about all field groups in the system.
- allGroupInfo: IN/OUT: Info about all of the field groups that exist. .version should be set to dcgmAllFieldGroup_version before this call
Wraps dcgmFieldGroupGetAll.
func (Handle) FieldGroupGetInfo ¶
func (h Handle) FieldGroupGetInfo(fieldGroupInfo *FieldGroupInfo) error
FieldGroupGetInfo is used to get information about a field group that was created with Handle.FieldGroupCreate.
- fieldGroupInfo: IN/OUT: Info about all of the field groups that exist. .version should be set to dcgmFieldGroupInfo_version before this call .fieldGroupId should contain the fieldGroupId you are interested in querying information for
Wraps dcgmFieldGroupGetInfo.
func (Handle) FieldSummary ¶
func (h Handle) FieldSummary(request *FieldSummaryRequest) error
FieldSummary gets a summary of the values for a field id over a period of time.
- request: IN/OUT: a pointer to the struct detailing the request and containing the response
Wraps dcgmGetFieldSummary.
func (Handle) GpuChipArchitecture ¶
func (h Handle) GpuChipArchitecture(gpuId uint32) (ChipArchitecture, error)
GpuChipArchitecture gets simplified GPU chip architecture enumeration.
- gpuId: IN: DCGM GPU Id
- chipArchitecture: OUT: GPU chip architecture enumeration value
Wraps dcgmGetGpuChipArchitecture.
func (Handle) GpuInstanceHierarchy ¶
func (h Handle) GpuInstanceHierarchy(hierarchy *MigHierarchyV2) error
GpuInstanceHierarchy gets the hierarchy of GPUs, GPU Instances, and Compute Instances.
- hierarchy: OUT: Hierarchy of GPUs, GPU Instances, and Compute Instances
Wraps dcgmGetGpuInstanceHierarchy.
func (Handle) GpuStatus ¶
func (h Handle) GpuStatus(gpuId uint32) (EntityStatus, error)
GpuStatus gets the status of a GPU
- gpuId: in GPU ID to query status for
- status: out The GPU status
Wraps dcgmGetGpuStatus.
func (Handle) GroupAddDevice ¶
GroupAddDevice is used to add specified GPU Id to the group represented by groupId.
- groupId: IN: Group Id to which device should be added
- gpuId: IN: DCGM GPU Id
Wraps dcgmGroupAddDevice.
func (Handle) GroupAddEntity ¶
func (h Handle) GroupAddEntity(groupId GpuGrp, entityGroupId FieldEntityGroup, entityId FieldEid) error
GroupAddEntity is used to add specified entity to the group represented by groupId.
- groupId: IN: Group Id to which device should be added
- entityGroupId: IN: Entity group that entityId belongs to
- entityId: IN: DCGM entityId
Wraps dcgmGroupAddEntity.
func (Handle) GroupCreate ¶
GroupCreate is used to create a entity group handle which can store one or more entity Ids as an opaque handle returned.
Instead of executing an operation separately for each entity, the DCGM group enables the user to execute same operation on all the entities present in the group as a single API call. To create the group with all the entities present on the system, the type field should be specified as GroupDefault or GroupAllNvSwitches. To create an empty group, the type field should be specified as GroupEmpty. The empty group can be updated with the desired set of entities using the APIs Handle.GroupAddDevice, Handle.GroupAddEntity, Handle.GroupRemoveDevice, and Handle.GroupRemoveEntity.
- type_: IN: Type of Entity Group to be formed
- groupName: IN: Desired name of the GPU group specified as NULL terminated C string
- pDcgmGrpId: OUT: Reference to group ID
Wraps dcgmGroupCreate.
func (Handle) GroupDestroy ¶
GroupDestroy is used to destroy a group represented by groupId.
Since DCGM group is a logical grouping of entities, the properties applied on the group stay intact for the individual entities even after the group is destroyed.
- groupId: IN: Group ID
Wraps dcgmGroupDestroy.
func (Handle) GroupEntities ¶
func (h Handle) GroupEntities(groupID GpuGrp) ([]GroupEntityPair, error)
GroupEntities returns the entities in a group.
It stamps the version field GroupInfo requires before the call. A caller that uses the generated Handle.GroupGetInfo directly must stamp it: DCGM rejects an unstamped structure with ErrVerMismatch, which reads at run time like a broken install rather than a missing assignment.
func (Handle) GroupGetAllIds ¶
GroupGetAllIds is used to get the Ids of all groups of entities.
The information returned is a list of group ids in groupIdList as well as a count of how many ids there are in count. Please allocate enough memory for groupIdList. Memory of size MAX_NUM_GROUPS should be allocated for groupIdList.
- groupIdList: OUT: List of Group Ids
- count: OUT: The number of Group ids in the list
Wraps dcgmGroupGetAllIds.
func (Handle) GroupGetInfo ¶
GroupGetInfo is used to get information corresponding to the group represented by groupId.
The information returned in pDcgmGroupInfo consists of group name, and the list of entities present in the group.
- groupId: IN: Group ID for which information to be fetched
- pDcgmGroupInfo: OUT: Group Information
Wraps dcgmGroupGetInfo.
func (Handle) GroupRemoveDevice ¶
GroupRemoveDevice is used to remove specified GPU Id from the group represented by groupId.
- groupId: IN: Group ID from which device should be removed
- gpuId: IN: DCGM GPU Id
Wraps dcgmGroupRemoveDevice.
func (Handle) GroupRemoveEntity ¶
func (h Handle) GroupRemoveEntity(groupId GpuGrp, entityGroupId FieldEntityGroup, entityId FieldEid) error
GroupRemoveEntity is used to remove specified entity from the group represented by groupId.
- groupId: IN: Group ID from which device should be removed
- entityGroupId: IN: Entity group that entityId belongs to
- entityId: IN: DCGM entityId
Wraps dcgmGroupRemoveEntity.
func (Handle) GroupTopology ¶
func (h Handle) GroupTopology(groupId GpuGrp, pDcgmGroupTopology *GroupTopology) error
GroupTopology gets group topology corresponding to the groupId.
- groupId: IN: GroupId corresponding to which topology information should be fetched
- pDcgmGroupTopology: IN/OUT: Topology information corresponding to groupId. pDcgmgroupTopology->version must be set to dcgmGroupTopology_version or dcgmGroupTopology_version1
Wraps dcgmGetGroupTopology.
func (Handle) Groups ¶
Groups returns the ids of every entity group on the host engine, including groups other processes created. Destroying one this process did not create would take it away from its owner; see Session for the ownership rule.
func (Handle) HealthCheck ¶
func (h Handle) HealthCheck(groupId GpuGrp, results *HealthResponse) error
HealthCheck checks the configured watches for any errors/failures/warnings that have occurred since the last time this check was invoked.
On the first call, stateful information about all of the enabled watches within a group is created but no error results are provided. On subsequent calls, any error information will be returned.
- groupId: IN: Group ID representing a collection of one or more entities. Refer to Handle.GroupCreate for details on creating a group
- results: OUT: A reference to the HealthResponse structure to populate. results->version must be set to dcgmHealthResponse_version
Wraps dcgmHealthCheck.
func (Handle) HealthGet ¶
func (h Handle) HealthGet(groupId GpuGrp, systems *HealthSystems) error
HealthGet retrieves the current state of the DCGM health check system
- groupId: IN: Group ID representing collection of one or more entities. Look at Handle.GroupCreate for details on creating the group. Alternatively, pass in the group id as GroupAllGPUs to perform operation on all the GPUs or GroupAllNvSwitches to perform operation on all the NvSwitches
- systems: OUT: An integer representing the enabled systems for the given group Refer to HealthSystems for details
Wraps dcgmHealthGet.
func (Handle) HealthSet ¶
func (h Handle) HealthSet(params *HealthSetParamsV2) error
HealthSet enables the DCGM health check system for the given systems defined in HealthSystems
Since DCGM 2.0 ¶
Wraps dcgmHealthSet_v2.
func (Handle) HostengineEnvironmentVariableInfo ¶
func (h Handle) HostengineEnvironmentVariableInfo(pEnvVarInfo *EnvVarInfo) error
HostengineEnvironmentVariableInfo is used to retrieve the value of an environment variable from the hostengine.
Note: only CUDA_VISIBLE_DEVICES env is supported
- pEnvVarInfo: IN/OUT: Pointer to a EnvVarInfo structure. - envVarName must be set to the name of the environment variable to query (input). - envVarValue will be filled with the value of the environment variable (output)
Wraps dcgmHostengineEnvironmentVariableInfo.
func (Handle) HostengineIsHealthy ¶
func (h Handle) HostengineIsHealthy(heHealth *HostengineHealth) error
HostengineIsHealthy is used to return whether or not the host engine considers itself healthy
- heHealth: out struct describing the health of the hostengine. if heHealth.hostengineHealth is 0, then the hostengine is healthy. Non-zero indicates not healthy with error codes determining the cause
Wraps dcgmHostengineIsHealthy.
func (Handle) HostengineSetLoggingSeverity ¶
func (h Handle) HostengineSetLoggingSeverity(logging *SettingsSetLoggingSeverity) error
HostengineSetLoggingSeverity is used to set the logging severity on HostEngine for the specified logger
- logging: IN: SettingsSetLoggingSeverity struct containing the target logger and severity
Wraps dcgmHostengineSetLoggingSeverity.
func (Handle) HostengineVersionInfo ¶
func (h Handle) HostengineVersionInfo(pVersionInfo *VersionInfoStruct) error
HostengineVersionInfo is used to return information about the build environment of the hostengine.
- pVersionInfo: OUT: Build environment information
Wraps dcgmHostengineVersionInfo.
func (Handle) IntrospectGetHostengineCpuUtilization ¶
func (h Handle) IntrospectGetHostengineCpuUtilization(cpuUtil *IntrospectCpuUtil, waitIfNoData int32) error
IntrospectGetHostengineCpuUtilization retrieves the CPU utilization of the DCGM hostengine process.
- cpuUtil: IN/OUT: see IntrospectCpuUtil. cpuUtil->version must be set to dcgmIntrospectCpuUtil_version prior to this call
- waitIfNoData: IN: if no metadata is gathered wait till this occurs (!0) or return ErrNoData (0)
Wraps dcgmIntrospectGetHostengineCpuUtilization.
func (Handle) IntrospectGetHostengineMemoryUsage ¶
func (h Handle) IntrospectGetHostengineMemoryUsage(memoryInfo *IntrospectMemory, waitIfNoData int32) error
IntrospectGetHostengineMemoryUsage retrieves the total amount of memory that the hostengine process is currently using.
This measurement represents both the resident set size (what is currently in RAM) and the swapped memory that belongs to the process.
- memoryInfo: IN/OUT: see IntrospectMemory. memoryInfo->version must be set to dcgmIntrospectMemory_version prior to this call
- waitIfNoData: IN: if no metadata is gathered wait till this occurs (!0) or return ErrNoData (0)
Wraps dcgmIntrospectGetHostengineMemoryUsage.
func (Handle) JobGetStats ¶
JobGetStats gets stats for the job identified by DCGM generated job id.
The stats can be retrieved at any point when the job is in process. If you want to reuse this jobId, call Handle.JobRemove after this call.
- jobId: IN: User provided string to represent the job
- pJobInfo: IN/OUT: Structure to return information about the job. .version should be set to dcgmJobInfo_version before this call
Wraps dcgmJobGetStats.
func (Handle) JobRemove ¶
JobRemove tells DCGM to stop tracking the job given by jobId.
After this call, you will no longer be able to call Handle.JobGetStats on this jobId. However, you will be able to reuse jobId after this call.
- jobId: IN: User provided string to represent the job
Wraps dcgmJobRemove.
func (Handle) JobRemoveAll ¶
JobRemoveAll tells DCGM to stop tracking all jobs.
After this call, you will no longer be able to call Handle.JobGetStats any jobs until you call Handle.JobStartStats again. You will be able to reuse any previously-used jobIds after this call.
Wraps dcgmJobRemoveAll.
func (Handle) JobStartStats ¶
JobStartStats is used by the client to notify DCGM about the job to be started.
Should be invoked as part of job prologue
- groupId: IN: Group ID representing collection of one or more GPUs. Look at Handle.GroupCreate for details on creating the group. Alternatively, pass in the group id as GroupAllGPUs to perform operation on all the GPUs
- jobId: IN: User provided string to represent the job
Wraps dcgmJobStartStats.
func (Handle) JobStopStats ¶
JobStopStats is used by the clients to notify DCGM to stop collecting stats for the job represented by job id.
Should be invoked as part of job epilogue. The job Id remains available to view the stats at any point but cannot be used to start a new job. You must call Handle.WatchJobFields before this call to enable watching of job
- jobId: IN: User provided string to represent the job
Wraps dcgmJobStopStats.
func (Handle) LatestValues ¶
func (h Handle) LatestValues(gpuID uint32, fields []FieldID) ([]FieldValueV1, error)
LatestValues reads the most recent sample of each field for one GPU.
The fields must already be watched; see Session.Watch. A field that is watched but has not been sampled comes back with a nil Err and Blank true, which is why the result keeps FieldValue rather than bare numbers.
fields is read during the call and not retained. The returned slice is freshly allocated and belongs to the caller.
func (Handle) LatestValuesForFields ¶
func (h Handle) LatestValuesForFields(gpuId int32, fields *uint16, count uint32, values *FieldValueV1) error
LatestValuesForFields requests latest cached field value for a GPU
- gpuId: IN: Gpu ID representing the GPU for which the fields are being requested
- fields: IN: Field IDs to return data for. See the definitions in dcgm_fields.h that start with DCGM_FI_
- count: IN: Number of field IDs in fields[] array
- values: OUT: Latest field values for the fields in fields[]
Wraps dcgmGetLatestValuesForFields.
func (Handle) ModuleDenylist ¶
ModuleDenylist adds a module to the denylist.
This module will be prevented from being loaded if it hasn't been loaded already. Modules are lazy-loaded as they are used by DCGM APIs, so it's important to call this API soon after the host engine has been started. You can also pass --denylist-modules to the nv-hostengine binary to make sure modules get add to the denylist immediately after the host engine starts up.
- moduleId: IN: ID of the module to denylist. Use Handle.ModuleGetStatuses to get a list of valid module IDs
Wraps dcgmModuleDenylist.
func (Handle) ModuleGetStatuses ¶
func (h Handle) ModuleGetStatuses(moduleStatuses *ModuleGetStatusesStruct) error
ModuleGetStatuses gets the status of all of the DCGM modules.
- moduleStatuses: OUT: Module statuses. .version should be set to dcgmModuleStatuses_version upon calling
Wraps dcgmModuleGetStatuses.
func (Handle) NvLinkLinkStatus ¶
func (h Handle) NvLinkLinkStatus(linkStatus *NvLinkStatus) error
NvLinkLinkStatus gets the NvLink link status for every NvLink in this system.
This includes the NvLinks of both GPUs and NvSwitches. Note that only NvSwitches and GPUs that are visible to the current environment will be returned in this structure.
- linkStatus: OUT: Structure in which to store NvLink link statuses. .version should be set to dcgmNvLinkStatus_version before calling this
Wraps dcgmGetNvLinkLinkStatus.
func (Handle) NvLinkP2PStatus ¶
func (h Handle) NvLinkP2PStatus(linkStatus *NvLinkP2PStatus) error
NvLinkP2PStatus gets the NvLink P2P status for every GPU NvLink in this system.
Only GPUs that are visible to the current environment will be returned in this structure.
- linkStatus: OUT: Structure in which to store NvLink P2P statuses. .version should be set to dcgmNvLinkP2PStatus_version1 before calling this
Wraps dcgmGetNvLinkP2PStatus.
func (Handle) PidInfo ¶
PidInfo gets information about all GPUs while the provided pid was running
In order for this request to work, you must first call Handle.WatchPidFields to make sure that DCGM is watching the appropriate field IDs that will be populated in pidInfo
- groupId: IN: Group ID representing collection of one or more GPUs. Look at Handle.GroupCreate for details on creating the group. Alternatively, pass in the group id as GroupAllGPUs to perform operation on all the GPUs
- pidInfo: IN/OUT: Structure to return information about pid in. pidInfo->pid must be set to the pid in question. pidInfo->version should be set to dcgmPidInfo_version
Wraps dcgmGetPidInfo.
func (Handle) PolicyCreate ¶
func (h Handle) PolicyCreate(fieldId uint16, name *byte, threshold float64, policyOperator PolicyOperator, entities *GroupEntityPair, entityCount uint32, channelMask uint32, enabled uint32, rateLimitSec uint32, policyId *uint64) error
PolicyCreate creates a field-based policy that monitors a DCGM field against a threshold.
This call blocks until the policy module responds. The module assigns policyId and persists the policy when watch setup succeeds.
- fieldId: IN: DCGM field ID to monitor
- name: IN: NUL-terminated policy display name
- threshold: IN: Comparison threshold
- policyOperator: IN: Comparison operator (see PolicyOperator)
- entities: IN: GPU entities to monitor; may be NULL when entityCount is 0
- entityCount: IN: Number of valid entries in entities
- channelMask: IN: Bitmask of notification channels (see PolicyChannel)
- enabled: IN: Non-zero to create the policy enabled; zero to create disabled
- rateLimitSec: IN: Minimum seconds between notifications
- policyId: OUT: Module-assigned policy identifier on success
Wraps dcgmPolicyCreate.
func (Handle) PolicyDelete ¶
PolicyDelete Delete one field-based policy or all field-based policies.
This call blocks until the policy module responds.
- fieldId: IN: Field ID of the policy to delete when deleteAll is 0
- policyId: IN: Policy identifier to delete when deleteAll is 0
- deleteAll: IN: Non-zero to delete all field-based policies; zero to delete one policy
Wraps dcgmPolicyDelete.
func (Handle) PolicyDisable ¶
PolicyDisable disables a field-based policy.
This call blocks until the policy module responds and field watches are refreshed.
- fieldId: IN: Field ID of the policy to disable
- policyId: IN: Policy identifier to disable
Wraps dcgmPolicyDisable.
func (Handle) PolicyEnable ¶
PolicyEnable enables a field-based policy.
This call blocks until the policy module responds and field watches are refreshed.
- fieldId: IN: Field ID of the policy to enable
- policyId: IN: Policy identifier to enable
Wraps dcgmPolicyEnable.
func (Handle) PolicyGet
deprecated
func (h Handle) PolicyGet(groupId GpuGrp, count int32, policy *Policy, statusHandle StatusHandle) error
PolicyGet gets the current violation policy inside the policy manager.
Given a groupId, a number of policy structures are retrieved.
- groupId: IN: Group ID representing collection of one or more GPUs. Look at Handle.GroupCreate for details on creating the group. Alternatively, pass in the group id as GroupAllGPUs to perform operation on all the GPUs
- count: IN: The size of the policy array. This is the maximum number of policies that will be retrieved and ultimately should correspond to the number of GPUs specified in the group
- policy: OUT: A reference to Policy that will used as storage for the current policies applied to each GPU in the group
- statusHandle: IN/OUT: Resulting status for the operation. Pass it as NULL if the detailed error information for the operation is not needed. Refer to NewStatusHandle for details on creating a status handle
Wraps dcgmPolicyGet.
Deprecated: Use Handle.PolicyGetOne instead. For field-policy state, use Handle.PolicyGetOne or Handle.PolicyGetAll.
func (Handle) PolicyGetAll ¶
func (h Handle) PolicyGetAll(policies *PolicyInfo, count *uint32) error
PolicyGetAll gets all registered field-based policies.
This call blocks until the policy module responds. On ErrInsufficientSize, policies contains up to count entries and count is updated to the total available.
- policies: OUT: Array of policy records; may be NULL when count is 0
- count: IN/OUT: On input, capacity of policies. On output, total policies available
Wraps dcgmPolicyGetAll.
func (Handle) PolicyGetOne ¶
func (h Handle) PolicyGetOne(fieldId uint16, policyId uint64, policy *PolicyInfo) error
PolicyGetOne gets one field-based policy by fieldId and policyId.
This call blocks until the policy module responds.
- fieldId: IN: Field ID of the policy to retrieve
- policyId: IN: Policy identifier to retrieve
- policy: IN/OUT: Caller buffer; version must be dcgmPolicyInfo_version. Populated on success
Wraps dcgmPolicyGetOne.
func (Handle) PolicyGetViolations ¶
func (h Handle) PolicyGetViolations(sinceTimestamp int64, violations *FieldPolicyViolation, count *uint32) error
PolicyGetViolations reads recent field-based policy violations.
- sinceTimestamp: IN: Return violations at or after this timestamp (usec since 1970); 0 for all recent
- violations: OUT: Caller-allocated array of PolicyViolation
- count: IN/OUT: On input, capacity of violations; on output, total violations available
Wraps dcgmPolicyGetViolations.
func (Handle) PolicyImport ¶
PolicyImport imports field-based policies from a YAML file.
This call blocks until the policy module responds and field watches are refreshed.
- path: IN: NUL-terminated path to the YAML policy file
Wraps dcgmPolicyImport.
func (Handle) PolicyModify ¶
func (h Handle) PolicyModify(policy *PolicyInfo) error
PolicyModify modifies an existing field-based policy identified by policyId and fieldId.
This call blocks until the policy module responds. Runtime fields such as violationCount are preserved by the module.
- policy: IN: Policy configuration to apply; version must be dcgmPolicyInfo_version
Wraps dcgmPolicyModify.
func (Handle) PolicyRegisterV2
deprecated
func (h Handle) PolicyRegisterV2(groupId GpuGrp, condition PolicyCondition, callback FpRecvUpdates, userData uint64) error
PolicyRegisterV2 registers a function to be called when a specific policy condition (see PolicyCondition) has been violated.
This callback(s) will be called automatically when in OperationModeAuto mode and only after Handle.PolicyTrigger when in OperationModeManual mode. All callbacks are made within a separate thread.
- groupId: IN: Group ID representing collection of one or more GPUs. Look at Handle.GroupCreate for details on creating the group. Alternatively, pass in the group id as GroupAllGPUs to perform operation on all the GPUs
- condition: IN: The set of conditions specified as an OR'd list (see PolicyCondition) for which to register a callback function
- callback: IN: A reference to a function that should be called should a violation occur. This function will be called prior to any actions specified by the policy are taken (see FpRecvUpdates)
- userData: IN: User data pointer to pass to the userData field of callback
Wraps dcgmPolicyRegister_v2.
Deprecated: Deprecated by NVIDIA. This group-policy callback API is being retired. Use the field-policy API: create a policy with Handle.PolicyCreate and register a callback with dcgmPolicyRegister_v3.
func (Handle) PolicySet
deprecated
func (h Handle) PolicySet(groupId GpuGrp, policy *Policy, statusHandle StatusHandle) error
PolicySet sets the current violation policy inside the policy manager.
Given the conditions within the Policy structure, if a violation has occurred, subsequent action(s) may be performed to either report or contain the failure.
- groupId: IN: Group ID representing collection of one or more GPUs. Look at Handle.GroupCreate for details on creating the group. Alternatively, pass in the group id as GroupAllGPUs to perform operation on all the GPUs
- policy: IN: A reference to Policy that will be applied to all GPUs in the group
- statusHandle: IN/OUT: Resulting status for the operation. Pass it as NULL if the detailed error information is not needed. Refer to NewStatusHandle for details on creating a status handle
Wraps dcgmPolicySet.
Deprecated: Deprecated by NVIDIA. For threshold monitoring, use the field-policy APIs beginning with Handle.PolicyCreate.
func (Handle) PolicyTrigger
deprecated
PolicyTrigger Inform the policy manager loop to perform an iteration and trigger the callbacks of any registered functions.
Callback functions will be called from a separate thread as the calling function.
Wraps dcgmPolicyTrigger.
Deprecated: Deprecated by NVIDIA. Use field-policy callbacks, which evaluate Cache Manager updates automatically. Note: The GPU monitoring and management agent must call this method periodically if the operation mode is set to manual mode (OperationModeManual) during initialization (Init).
func (Handle) PolicyUnregister
deprecated
func (h Handle) PolicyUnregister(groupId GpuGrp, condition PolicyCondition) error
PolicyUnregister unregisters a function to be called for a specific policy condition (see PolicyCondition).
This function will unregister all callbacks for a given condition and handle.
- groupId: IN: Group ID representing collection of one or more GPUs. Look at Handle.GroupCreate for details on creating the group. Alternatively, pass in the group id as GroupAllGPUs to perform operation on all the GPUs
- condition: IN: The set of conditions specified as an OR'd list (see PolicyCondition) for which to unregister a callback function
Wraps dcgmPolicyUnregister.
Deprecated: Use Handle.PolicyUnregister instead. This group-policy callback API is being retired. Use Handle.PolicyUnregister to unregister a field-policy callback registered with dcgmPolicyRegister_v3.
func (Handle) ProfGetSupportedMetricGroups ¶
func (h Handle) ProfGetSupportedMetricGroups(metricGroups *ProfGetMetricGroups) error
ProfGetSupportedMetricGroups gets all of the profiling metric groups for a given GPU group.
The behavior of this API differs depending on the GPU architecture:
**Ampere and Older GPUs (Profiling Module):** Profiling metrics are watched in groups of fields that are all watched together. For instance, if you want to watch DCGM_FI_PROF_GR_ENGINE_ACTIVITY, this might also be in the same group as DCGM_FI_PROF_SM_EFFICIENCY. Watching this group would result in DCGM storing values for both of these metrics.
Some groups cannot be watched concurrently as others as they utilize the same hardware resource. For instance, you may not be able to watch DCGM_FI_PROF_TENSOR_OP_UTIL at the same time as DCGM_FI_PROF_GR_ENGINE_ACTIVITY on your hardware. At the same time, you may be able to watch DCGM_FI_PROF_TENSOR_OP_UTIL at the same time as DCGM_FI_PROF_NVLINK_TX_DATA.
Metrics that can be watched concurrently will have different .majorId fields in their dcgmProfMetricGroupInfo_t
**Hopper and Newer GPUs (GPM (GPU Performance Monitoring) Module):** GPM metrics are obtained from NVML's GPM APIs that capture all performance metrics data together. The metrics are still organized into groups for convenience and API consistency with older architectures. These groups do not have the same concurrency restrictions as on older architectures. On these platforms, all GPM metric and profiling groups can be watched concurrently without hardware resource conflicts.
See Handle.GroupCreate for details on creating a GPU group See Handle.WatchFields to actually watch the underlying profiling fields
- metricGroups: IN/OUT: Metric groups supported for metricGroups->groupId. metricGroups->version should be set to dcgmProfGetMetricGroups_version upon calling
Wraps dcgmProfGetSupportedMetricGroups.
func (Handle) ProfPause ¶
ProfPause Pause profiling activities in DCGM.
This should be used when you are monitoring profiling fields from DCGM but want to be able to still run developer tools like nvprof, nsight systems, and nsight compute. Profiling fields start with DCGM_PROF_ and are in the field ID range 1001-1012. Call this API before you launch one of those tools and Handle.ProfResume after the tool has completed.
DCGM will save BLANK values while profiling is paused.
Calling this while profiling activities are already paused is fine and will be treated as a no-op.
Wraps dcgmProfPause.
func (Handle) ProfResume ¶
ProfResume resumes profiling activities in DCGM that were previously paused with Handle.ProfPause.
Call this API after you have completed running other NVIDIA developer tools to reenable DCGM profiling metrics.
DCGM will save BLANK values while profiling is paused.
Calling this while profiling activities have already been resumed is fine and will be treated as a no-op.
Wraps dcgmProfResume.
func (Handle) RunDiagnostic ¶
func (h Handle) RunDiagnostic(groupId GpuGrp, diagLevel DiagnosticLevel, diagResponse *DiagResponse) error
RunDiagnostic Run a diagnostic on a group of GPUs
- groupId: IN: Group ID representing collection of one or more GPUs. Look at Handle.GroupCreate for details on creating the group. Alternatively, pass in the group id as GroupAllGPUs to perform operation on all the GPUs
- diagLevel: IN: Diagnostic level to run
- diagResponse: IN/OUT: Result of running the DCGM diagnostic. .version should be set to dcgmDiagResponse_version before this call
Wraps dcgmRunDiagnostic.
func (Handle) RunMnDiagnostic ¶
func (h Handle) RunMnDiagnostic(drmnd *RunMnDiagV2, response *MnDiagResponseV2) error
RunMnDiagnostic Run a multi-node diagnostic test
- drmnd: IN: Multi-node diagnostic parameters. See RunMnDiagV2
- response: OUT: Result of running the multi-node diagnostic. See MnDiagResponseV2
Wraps dcgmRunMnDiagnostic.
func (Handle) SelectGpusByTopology ¶
func (h Handle) SelectGpusByTopology(inputGpuIds uint64, numGpus uint32, outputGpuIds *uint64, hintFlags uint64) error
SelectGpusByTopology gets the best group of gpus from the specified bitmask according to topological proximity: cpuAffinity, NUMA node, and NVLink.
- inputGpuIds: IN: a bitmask of which GPUs DCGM should consider. If some of the GPUs on the system are already in use, they shouldn't be included in the bitmask. 0 means that all of the GPUs in the system should be considered
- numGpus: IN: the number of GPUs that are desired from inputGpuIds. If this number is greater than the number of healthy GPUs in inputGpuIds, then less than numGpus gpus will be specified in outputGpuIds
- outputGpuIds: OUT: a bitmask of numGpus or fewer GPUs from inputGpuIds that represent the best placement available from inputGpuIds
- hintFlags: IN: a bitmask of DCGM_TOPO_HINT_F_ #defines of hints that should be taken into account when assigning outputGpuIds
Wraps dcgmSelectGpusByTopology.
func (Handle) StopDiagnostic ¶
StopDiagnostic stops a diagnostic if there is one currently running.
Wraps dcgmStopDiagnostic.
func (Handle) StopEmbedded ¶
StopEmbedded stops the embedded host engine within this process that was started with StartEmbedded
Wraps dcgmStopEmbedded.
func (Handle) StopMnDiagnostic ¶
StopMnDiagnostic stops a multi-node diagnostic if there is one currently running.
Wraps dcgmStopMnDiagnostic.
func (Handle) SupportedDevices ¶
SupportedDevices returns the GPU ids DCGM supports on this host. It is a subset of Handle.Devices; a GPU DCGM does not support has no field data.
func (Handle) UnwatchFields ¶
UnwatchFields requests that DCGM stop recording updates for a given field collection.
- groupId: IN: Group ID representing collection of one or more entities. Look at Handle.GroupCreate for details on creating the group. Alternatively, pass in the group id as GroupAllGPUs to perform operation on all the GPUs or GroupAllNvSwitches to to perform the operation on all NvSwitches
- fieldGroupId: IN: Fields to unwatch
Wraps dcgmUnwatchFields.
func (Handle) UpdateAllFields ¶
UpdateAllFields is used to tell the DCGM module to update all the fields being watched.
Note: If the if the operation mode was set to manual mode (OperationModeManual) during initialization (Init), this method must be caused periodically to allow field value watches the opportunity to gather samples.
- waitForUpdate: IN: Whether or not to wait for the update loop to complete before returning to the caller 1=wait. 0=do not wait
Wraps dcgmUpdateAllFields.
func (Handle) WatchFields ¶
func (h Handle) WatchFields(groupId GpuGrp, fieldGroupId FieldGrp, updateFreq int64, maxKeepAge float64, maxKeepSamples int32) error
WatchFields requests that DCGM start recording updates for a given field collection.
Note that the first update of the field will not occur until the next field update cycle. To force a field update cycle, call Handle.UpdateAllFields(1).
- groupId: IN: Group ID representing collection of one or more entities. Look at Handle.GroupCreate for details on creating the group. Alternatively, pass in the group id as GroupAllGPUs to perform operation on all the GPUs or GroupAllNvSwitches to to perform the operation on all NvSwitches
- fieldGroupId: IN: Fields to watch
- updateFreq: IN: How often to update this field in usec
- maxKeepAge: IN: How long to keep data for this field in seconds
- maxKeepSamples: IN: Maximum number of samples to keep. 0=no limit
Wraps dcgmWatchFields.
func (Handle) WatchJobFields ¶
func (h Handle) WatchJobFields(groupId GpuGrp, updateFreq int64, maxKeepAge float64, maxKeepSamples int32) error
WatchJobFields requests that DCGM start recording stats for fields that are queried with Handle.JobGetStats
Note that the first update of the field will not occur until the next field update cycle. To force a field update cycle, call Handle.UpdateAllFields(1).
- groupId: IN: Group ID representing collection of one or more GPUs. Look at Handle.GroupCreate for details on creating the group. Alternatively, pass in the group id as GroupAllGPUs to perform operation on all the GPUs
- updateFreq: IN: How often to update this field in usec
- maxKeepAge: IN: How long to keep data for this field in seconds
- maxKeepSamples: IN: Maximum number of samples to keep. 0=no limit
Wraps dcgmWatchJobFields.
func (Handle) WatchPidFields ¶
func (h Handle) WatchPidFields(groupId GpuGrp, updateFreq int64, maxKeepAge float64, maxKeepSamples int32) error
WatchPidFields requests that DCGM start recording stats for fields that can be queried with Handle.PidInfo.
Note that the first update of the field will not occur until the next field update cycle. To force a field update cycle, call Handle.UpdateAllFields(1).
- groupId: IN: Group ID representing collection of one or more GPUs. Look at Handle.GroupCreate for details on creating the group. Alternatively, pass in the group id as GroupAllGPUs to perform operation on all the GPUs
- updateFreq: IN: How often to update this field in usec
- maxKeepAge: IN: How long to keep data for this field in seconds
- maxKeepSamples: IN: Maximum number of samples to keep. 0=no limit
Wraps dcgmWatchPidFields.
type HealthResponse ¶
type HealthResponse struct {
Version uint32
OverallHealth HealthWatchResults
IncidentCount uint32
Incidents [1024]IncidentInfo
}
HealthResponse represents health response structure version 4 - Simply list the incidents instead of reporting by entity.
Since DCGM 2.0.
type HealthResponseV5 ¶
type HealthResponseV5 = HealthResponse
HealthResponseV5 is an alias for HealthResponse.
type HealthSetParamsV2 ¶
type HealthSetParamsV2 struct {
Version uint32
GroupId GpuGrp
Systems HealthSystems
UpdateInterval int64
MaxKeepAge float64
}
HealthSetParamsV2 is a structure used to set health watches via the Handle.HealthSet API.
type HealthSystems ¶
type HealthSystems uint32
HealthSystems represents systems structure used to enable or disable health watch systems.
const ( HealthWatchPcie HealthSystems = 0x1 // PCIe system watches (must have 1m of data before query) HealthWatchNvlink HealthSystems = 0x2 // NVLINK system watches HealthWatchPmu HealthSystems = 0x4 // Power management unit watches HealthWatchMcu HealthSystems = 0x8 // Micro-controller unit watches HealthWatchMem HealthSystems = 0x10 // Memory watches HealthWatchSm HealthSystems = 0x20 // Streaming multiprocessor watches HealthWatchInforom HealthSystems = 0x40 // Inforom watches HealthWatchThermal HealthSystems = 0x80 // Temperature watches (must have 1m of data before query) HealthWatchPower HealthSystems = 0x100 // Power watches (must have 1m of data before query) HealthWatchDriver HealthSystems = 0x200 // Driver-related watches HealthWatchNvswitchNonfatal HealthSystems = 0x400 // Non-fatal errors in NvSwitch HealthWatchNvswitchFatal HealthSystems = 0x800 // Fatal errors in NvSwitch HealthWatchConnectx HealthSystems = 0x1000 // ConnectX device health HealthWatchImex HealthSystems = 0x2000 // IMEX daemon and domain health HealthWatchAll HealthSystems = 0xFFFFFFFF // All watches enabled )
func (HealthSystems) String ¶
func (e HealthSystems) String() string
String returns the constant name, or a numeric representation for unknown values.
type HealthWatchResults ¶
type HealthWatchResults int32
HealthWatchResults represents health Watch test results.
const ( HealthResultPass HealthWatchResults = 0 // All results within this system are reporting normal HealthResultWarn HealthWatchResults = 10 // A warning has been issued, refer to the response for more information HealthResultFail HealthWatchResults = 20 // A failure has been issued, refer to the response for more information )
func (HealthWatchResults) String ¶
func (e HealthWatchResults) String() string
String returns the constant name, or a numeric representation for unknown values.
type HostengineHealth ¶
HostengineHealth represents typedef for HostengineHealth.
type HostengineHealthV1 ¶
type HostengineHealthV1 = HostengineHealth
HostengineHealthV1 is an alias for HostengineHealth.
type IncidentInfo ¶
type IncidentInfo struct {
System HealthSystems
Health HealthWatchResults
Error DiagErrorDetail
EntityInfo GroupEntityPair
}
IncidentInfo represents dcgmIncidentInfo_t.
type IntrospectCpuUtil ¶
IntrospectCpuUtil represents DCGM CPU Utilization information.
Multiply values by 100 to get them in %.
type IntrospectCpuUtilV1 ¶
type IntrospectCpuUtilV1 = IntrospectCpuUtil
IntrospectCpuUtilV1 is an alias for IntrospectCpuUtil.
type IntrospectMemory ¶
IntrospectMemory represents DCGM Memory usage information.
type IntrospectMemoryV1 ¶
type IntrospectMemoryV1 = IntrospectMemory
IntrospectMemoryV1 is an alias for IntrospectMemory.
type JobID ¶
type JobID [64]byte
A JobID names a job whose statistics the host engine records, as the NUL-terminated char[64] that the dcgmJob* functions read.
type JobInfo ¶
type JobInfo struct {
Version uint32
NumGpus int32
Summary GpuUsageInfo
Gpus [32]GpuUsageInfo
}
JobInfo represents to store job statistics The following fields are not applicable in the summary info: - pcieRxBandwidth (Min/Max) - pcieTxBandwidth (Min/Max) - smUtilization (Min/Max) - memoryUtilization (Min/Max) - memoryClock (Min/Max) - smClock (Min/Max) - processSamples. The average value in the above fields (in the summary) is the average of the averages of respective fields from all GPUs.
type LibraryAttempt ¶
LibraryAttempt records one failed attempt to open the shared library.
type LibraryConflictError ¶
type LibraryConflictError struct {
Loaded string
Requested string
// Implicit reports that the loaded library was opened lazily and no
// successful Load has since acknowledged it. A
// caller that sees this called some
// other function first, and that call took the default search list.
Implicit bool
}
LibraryConflictError reports a Load call naming a different library than the one already loaded. Only one library is loaded per process.
func (*LibraryConflictError) Error ¶
func (e *LibraryConflictError) Error() string
Error reports the conflicting library paths, and whether the library that is already loaded got there without a Load call.
type LibraryError ¶
type LibraryError struct {
Library string
Env string
Path string
Attempts []LibraryAttempt
Hint string
}
LibraryError reports that libdcgm could not be opened. Attempts lists every name tried in order. Path is set when an explicit path, from Load or DCGM_LIB_PATH, was requested and failed. Hint reports pkg-config discovery results and query failures, when discovery ran.
func (*LibraryError) Error ¶
func (e *LibraryError) Error() string
Error describes the library load attempts and their errors.
func (*LibraryError) Unwrap ¶
func (e *LibraryError) Unwrap() []error
Unwrap returns the error from each attempt.
type Link ¶
type Link struct {
// Data stores the raw bytes of the underlying C type.
Data [4]byte
}
Link is the packed form of dcgm_link_t, whose members sit at offsets no Go struct gives its fields. Its methods reach each member at the position the C compiler measured.
func (*Link) SetSwitchId ¶
SetSwitchId sets the switchId member of dcgm_link_t.
func (*Link) SetType ¶
func (l *Link) SetType(v FieldEntityGroup)
SetType sets the type member of dcgm_link_t.
func (*Link) Type ¶
func (l *Link) Type() FieldEntityGroup
Type returns the type member of dcgm_link_t, in bits 0 through 7.
type LoggingSeverity ¶
type LoggingSeverity int32
LoggingSeverity represents DCGM Logging Severities.
These match up with plog severities defined in Severity.h Each level includes all of the levels above it. For instance, level 4 includes 3,2, and 1 as well.
const ( DcgmLoggingSeverityUnspecified LoggingSeverity = -1 // !< Don't care/inherit from the environment DcgmLoggingSeverityNone LoggingSeverity = 0 // !< No logging DcgmLoggingSeverityFatal LoggingSeverity = 1 // !< Fatal Errors DcgmLoggingSeverityError LoggingSeverity = 2 // !< Errors DcgmLoggingSeverityWarning LoggingSeverity = 3 // !< Warnings DcgmLoggingSeverityInfo LoggingSeverity = 4 // !< Informative DcgmLoggingSeverityDebug LoggingSeverity = 5 // !< Debug information (will generate large logs) DcgmLoggingSeverityVerbose LoggingSeverity = 6 // !< Verbose debugging information )
func (LoggingSeverity) String ¶
func (e LoggingSeverity) String() string
String returns the constant name, or a numeric representation for unknown values.
type MigEntityInfo ¶
type MigEntityInfo struct {
GpuUuid [128]byte
NvmlGpuIndex uint32
NvmlInstanceId uint32
NvmlComputeInstanceId uint32
NvmlMigProfileId uint32
NvmlProfileSlices uint32
}
MigEntityInfo provides additional information about location of MIG entities.
type MigHierarchyInfo ¶
type MigHierarchyInfo struct {
Entity GroupEntityPair
Parent GroupEntityPair
SliceProfile MigProfile
}
MigHierarchyInfo represents a pair of entity pairings to uniquely identify an entity and its place in the hierarchy.
type MigHierarchyInfoV2 ¶
type MigHierarchyInfoV2 struct {
Entity GroupEntityPair
Parent GroupEntityPair
Info MigEntityInfo
}
MigHierarchyInfoV2 represents dcgmMigHierarchyInfo_v2.
type MigHierarchyV2 ¶
type MigHierarchyV2 struct {
Version uint32
Count uint32
EntityList [448]MigHierarchyInfoV2
}
MigHierarchyV2 represents dcgmMigHierarchy_v2.
type MigProfile ¶
type MigProfile int32
MigProfile is an enum for the different kinds of MIG profiles.
const ( DcgmMigProfileNone MigProfile = 0 // !< No profile (for GPUs) DcgmMigProfileGpuInstanceSlice1 MigProfile = 1 // !< GPU instance slice 1 DcgmMigProfileGpuInstanceSlice2 MigProfile = 2 // !< GPU instance slice 2 DcgmMigProfileGpuInstanceSlice3 MigProfile = 3 // !< GPU instance slice 3 DcgmMigProfileGpuInstanceSlice4 MigProfile = 4 // !< GPU instance slice 4 DcgmMigProfileGpuInstanceSlice7 MigProfile = 5 // !< GPU instance slice 7 DcgmMigProfileGpuInstanceSlice8 MigProfile = 6 // !< GPU instance slice 8 DcgmMigProfileGpuInstanceSlice6 MigProfile = 7 // !< GPU instance slice 6 DcgmMigProfileGpuInstanceSlice1Rev1 MigProfile = 8 // !< GPU instance slice 1 revision 1 DcgmMigProfileGpuInstanceSlice2Rev1 MigProfile = 9 // !< GPU instance slice 2 revision 1 DcgmMigProfileGpuInstanceSlice1Rev2 MigProfile = 10 // !< GPU instance slice 1 revision 2 DcgmMigProfileGpuInstanceSlice1GFX MigProfile = 11 // !< GPU instance slice 1 GFX DcgmMigProfileGpuInstanceSlice2GFX MigProfile = 12 // !< GPU instance slice 2 GFX DcgmMigProfileGpuInstanceSlice4GFX MigProfile = 13 // !< GPU instance slice 4 GFX DcgmMigProfileComputeInstanceSlice1 MigProfile = 30 // !< compute instance slice 1 DcgmMigProfileComputeInstanceSlice2 MigProfile = 31 // !< compute instance slice 2 DcgmMigProfileComputeInstanceSlice3 MigProfile = 32 // !< compute instance slice 3 DcgmMigProfileComputeInstanceSlice4 MigProfile = 33 // !< compute instance slice 4 DcgmMigProfileComputeInstanceSlice7 MigProfile = 34 // !< compute instance slice 7 DcgmMigProfileComputeInstanceSlice8 MigProfile = 35 // !< compute instance slice 8 DcgmMigProfileComputeInstanceSlice6 MigProfile = 36 // !< compute instance slice 6 DcgmMigProfileComputeInstanceSlice1Rev1 MigProfile = 37 // !< compute instance slice 1 revision 1 )
func (MigProfile) String ¶
func (e MigProfile) String() string
String returns the constant name, or a numeric representation for unknown values.
type MnDiagEntity ¶
type MnDiagEntity struct {
Entity GroupEntityPair
HostId uint32
SerialNum [256]byte
SkuDeviceId [5]byte
UnusedPad1 [3]byte
}
MnDiagEntity represents dcgmMnDiagEntity_v1.
type MnDiagEntityResult ¶
type MnDiagEntityResult struct {
Entity GroupEntityPair
Result DiagResult
HostId uint32
TestId uint32
}
MnDiagEntityResult represents dcgmMnDiagEntityResult_v1.
type MnDiagEntityResultV1 ¶
type MnDiagEntityResultV1 = MnDiagEntityResult
MnDiagEntityResultV1 is an alias for MnDiagEntityResult.
type MnDiagEntityV1 ¶
type MnDiagEntityV1 = MnDiagEntity
MnDiagEntityV1 is an alias for MnDiagEntity.
type MnDiagError ¶
type MnDiagError struct {
Entity GroupEntityPair
HostId uint32
TestId uint32
Code uint32
Category uint32
Severity uint32
Msg [512]byte
}
MnDiagError represents dcgmMnDiagError_v1.
type MnDiagHosts ¶
type MnDiagHosts struct {
Hostname [256]byte
DcgmVersion [12]byte
DriverVersion [256]byte
NumEntities uint32
EntityIndices [16]uint32
}
MnDiagHosts represents dcgmMnDiagHosts_v1.
type MnDiagInfo ¶
type MnDiagInfo struct {
Entity GroupEntityPair
HostId uint32
TestId uint32
Msg [512]byte
}
MnDiagInfo represents dcgmMnDiagInfo_v1.
type MnDiagResponseV1 ¶
type MnDiagResponseV1 struct {
Version uint32
NumHosts uint8
NumTests uint8
NumErrors uint16
NumInfos uint16
NumEntities uint16
NumResults uint16
UnusedPad1 [2]byte
Hosts [72]MnDiagHosts
Tests [4]MnDiagTestRunV1
Entities [1152]MnDiagEntity
Errors [32]MnDiagError
Info [128]MnDiagInfo
Results [4608]MnDiagEntityResult
}
MnDiagResponseV1 represents dcgmMnDiagResponse_v1.
type MnDiagResponseV2 ¶
type MnDiagResponseV2 struct {
Version uint32
NumHosts uint16
NumTests uint8
UnusedPad1 byte
NumErrors uint16
NumInfos uint16
NumEntities uint16
NumResults uint16
Hosts [576]MnDiagHosts
Tests [4]MnDiagTestRunV2
Entities [9216]MnDiagEntity
Errors [32]MnDiagError
Info [128]MnDiagInfo
Results [36864]MnDiagEntityResult
}
MnDiagResponseV2 represents dcgmMnDiagResponse_v2.
type MnDiagTestAuxData ¶
MnDiagTestAuxData represents dcgmMnDiagTestAuxData_v1.
type MnDiagTestAuxDataV1 ¶
type MnDiagTestAuxDataV1 = MnDiagTestAuxData
MnDiagTestAuxDataV1 is an alias for MnDiagTestAuxData.
type MnDiagTestRunV1 ¶
type MnDiagTestRunV1 struct {
Name [32]byte
PluginName [32]byte
Result DiagResult
NumErrors uint8
NumInfo uint8
CategoryIndex uint8
Unused1 uint8
NumResults uint16
Unused2 [2]uint8
ErrorIndices [32]uint8
InfoIndices [128]uint8
ResultIndices [1152]uint16
Unused3 [4]uint8
AuxData MnDiagTestAuxData
}
MnDiagTestRunV1 represents dcgmMnDiagTestRun_v1.
type MnDiagTestRunV2 ¶
type MnDiagTestRunV2 struct {
Name [32]byte
PluginName [32]byte
Result DiagResult
NumErrors uint8
NumInfo uint8
CategoryIndex uint8
Unused1 uint8
NumResults uint16
Unused2 [2]uint8
ErrorIndices [32]uint8
InfoIndices [128]uint8
ResultIndices [9216]uint16
AuxData MnDiagTestAuxData
}
MnDiagTestRunV2 represents dcgmMnDiagTestRun_v2.
type ModuleGetStatusesModule ¶
type ModuleGetStatusesModule struct {
Id ModuleId
Status ModuleStatus
}
ModuleGetStatusesModule represents status of all of the modules of the host engine.
type ModuleGetStatusesStruct ¶
type ModuleGetStatusesStruct struct {
Version uint32
NumStatuses uint32
Statuses [16]ModuleGetStatusesModule
}
ModuleGetStatusesStruct represents dcgmModuleGetStatuses_v1.
type ModuleGetStatusesStructV1 ¶
type ModuleGetStatusesStructV1 = ModuleGetStatusesStruct
ModuleGetStatusesStructV1 is an alias for ModuleGetStatusesStruct.
type ModuleId ¶
type ModuleId int32
ModuleId represents module IDs.
const ( DcgmModuleIdCore ModuleId = 0 // Core DCGM - always loaded DcgmModuleIdNvSwitch ModuleId = 1 // NvSwitch Module DcgmModuleIdVGPU ModuleId = 2 // VGPU Module DcgmModuleIdIntrospect ModuleId = 3 // Introspection Module DcgmModuleIdHealth ModuleId = 4 // Health Module DcgmModuleIdPolicy ModuleId = 5 // Policy Module DcgmModuleIdConfig ModuleId = 6 // Config Module DcgmModuleIdDiag ModuleId = 7 // GPU Diagnostic Module DcgmModuleIdProfiling ModuleId = 8 // Profiling Module DcgmModuleIdSysmon ModuleId = 9 // System Monitoring Module DcgmModuleIdMnDiag ModuleId = 10 // Multi-Node Diagnostic Module DcgmModuleIdCount ModuleId = 11 // Always last. 1 greater than largest value above )
type ModuleStatus ¶
type ModuleStatus int32
ModuleStatus represents module Status.
Modules are lazy loaded, so they will be in status DcgmModuleStatusNotLoaded until they are used. One modules are used, they will move to another status.
const ( DcgmModuleStatusNotLoaded ModuleStatus = 0 // Module has not been loaded yet DcgmModuleStatusDenylisted ModuleStatus = 1 // Module is on the denylist; can't be loaded DcgmModuleStatusFailed ModuleStatus = 2 // Loading the module failed DcgmModuleStatusLoaded ModuleStatus = 3 // Module has been loaded DcgmModuleStatusUnloaded ModuleStatus = 4 // Module has been unloaded, happens during shutdown DcgmModuleStatusPaused ModuleStatus = 5 // < Module has been paused. This is a temporary state that will move to DcgmModuleStatusLoaded once the module is resumed. This status implies that the module is loaded. DcgmModuleStatusReloadable ModuleStatus = 6 // Module is reloadable. Implies it's loaded. )
func (ModuleStatus) String ¶
func (e ModuleStatus) String() string
String returns the constant name, or a numeric representation for unknown values.
type ModulesReloadable ¶
ModulesReloadable describes the Mark Modules Reloadable request.
type ModulesReloadableV1 ¶
type ModulesReloadableV1 = ModulesReloadable
ModulesReloadableV1 is an alias for ModulesReloadable.
type NvLinkGpuLinkP2PStatusV1 ¶
type NvLinkGpuLinkP2PStatusV1 struct {
EntityId FieldEid
LinkStatus [32]NvLinkGpuP2PStatus
}
NvLinkGpuLinkP2PStatusV1 represents P2P status of one of the NvLinks in a given system.
type NvLinkGpuLinkStatusV1 ¶
type NvLinkGpuLinkStatusV1 struct {
EntityId FieldEid
LinkState [6]NvLinkLinkState
}
NvLinkGpuLinkStatusV1 represents state of NvLink links for a GPU.
type NvLinkGpuLinkStatusV2 ¶
type NvLinkGpuLinkStatusV2 struct {
EntityId FieldEid
LinkState [12]NvLinkLinkState
}
NvLinkGpuLinkStatusV2 represents dcgmNvLinkGpuLinkStatus_v2.
type NvLinkGpuLinkStatusV3 ¶
type NvLinkGpuLinkStatusV3 struct {
EntityId FieldEid
LinkState [18]NvLinkLinkState
}
NvLinkGpuLinkStatusV3 represents dcgmNvLinkGpuLinkStatus_v3.
type NvLinkGpuLinkStatusV4 ¶
type NvLinkGpuLinkStatusV4 struct {
EntityId FieldEid
LinkState [36]NvLinkLinkState
}
NvLinkGpuLinkStatusV4 represents dcgmNvLinkGpuLinkStatus_v4.
type NvLinkGpuP2PStatus ¶
type NvLinkGpuP2PStatus int32
NvLinkGpuP2PStatus represents nvlink P2P link status.
This mirrors nvmlGpuP2PStatus_enum.
const ( DcgmNvLinkP2pStatusOK NvLinkGpuP2PStatus = 0 // O.K. DcgmNvLinkP2pStatusChipsetNotSupported NvLinkGpuP2PStatus = 1 // Chipset not supported DcgmNvLinkP2pStatusGpuNotSupported NvLinkGpuP2PStatus = 2 // GPU not supported DcgmNvLinkP2pStatusTopologyNotSupported NvLinkGpuP2PStatus = 3 // Topology not supported DcgmNvLinkP2pStatusDisabledByRegKey NvLinkGpuP2PStatus = 4 // Disabled by RegKey DcgmNvLinkP2pStatusNotSupported NvLinkGpuP2PStatus = 5 // Not supported DcgmNvLinkP2pStatusUnknown NvLinkGpuP2PStatus = 6 // Unknown )
func (NvLinkGpuP2PStatus) String ¶
func (e NvLinkGpuP2PStatus) String() string
String returns the constant name, or a numeric representation for unknown values.
type NvLinkLinkState ¶
type NvLinkLinkState int32
NvLinkLinkState represents NvLink link states.
const ( DcgmNvLinkLinkStateNotSupported NvLinkLinkState = 0 // NvLink is unsupported by this GPU (Default for GPUs) DcgmNvLinkLinkStateDisabled NvLinkLinkState = 1 // NvLink is supported for this link but this link is disabled DcgmNvLinkLinkStateDown NvLinkLinkState = 2 // This NvLink link is down (inactive) DcgmNvLinkLinkStateUp NvLinkLinkState = 3 // This NvLink link is up (active) )
func (NvLinkLinkState) String ¶
func (e NvLinkLinkState) String() string
String returns the constant name, or a numeric representation for unknown values.
type NvLinkNvSwitchLinkStatus ¶
type NvLinkNvSwitchLinkStatus struct {
EntityId FieldEid
LinkState [256]NvLinkLinkState
}
NvLinkNvSwitchLinkStatus represents state of NvLink links for a NvSwitch.
type NvLinkP2PStatus ¶
type NvLinkP2PStatus struct {
Version uint32
NumGpus uint32
Gpus [32]NvLinkGpuLinkP2PStatusV1
}
NvLinkP2PStatus represents P2P status of all of the NvLinks in a given system.
numGPUs should be 0 if it is desired to query all GPUs, or the number of gpus entries that have entityId members specifying the GPUs to query. In the former case the entityId members are filled in on exist.
type NvLinkP2PStatusV1 ¶
type NvLinkP2PStatusV1 = NvLinkP2PStatus
NvLinkP2PStatusV1 is an alias for NvLinkP2PStatus.
type NvLinkStatus ¶
type NvLinkStatus struct {
Version uint32
NumGpus uint32
Gpus [32]NvLinkGpuLinkStatusV4
NumNvSwitches uint32
NvSwitches [12]NvLinkNvSwitchLinkStatus
}
NvLinkStatus represents status of all of the NvLinks in a given system.
type NvLinkStatusV4 ¶
type NvLinkStatusV4 struct {
Version uint32
NumGpus uint32
Gpus [32]NvLinkGpuLinkStatusV3
NumNvSwitches uint32
NvSwitches [12]NvLinkNvSwitchLinkStatus
}
NvLinkStatusV4 represents status of all of the NvLinks in a given system.
type NvLinkStatusV5 ¶
type NvLinkStatusV5 = NvLinkStatus
NvLinkStatusV5 is an alias for NvLinkStatus.
type OperationMode ¶
type OperationMode int32
OperationMode represents operation mode for DCGM.
DCGM can run in auto-mode where it runs additional threads in the background to collect any metrics of interest and auto manages any operations needed for policy management. DCGM can also operate in manual-mode where it's execution is controlled by the user. In this mode, the user has to periodically call APIs such as Handle.PolicyTrigger and Handle.UpdateAllFields which tells DCGM to wake up and perform data collection and operations needed for policy management.
const ( OperationModeAuto OperationMode = 1 OperationModeManual OperationMode = 2 )
func (OperationMode) String ¶
func (e OperationMode) String() string
String returns the constant name, or a numeric representation for unknown values.
type Order ¶
type Order int32
Order represents when more than one value is returned from a query, which order should it be returned in?.
type PerGpuTestIndices ¶
type PerGpuTestIndices int32
PerGpuTestIndices represents diagnostic per gpu tests - fixed indices for dcgmDiagResponsePerGpu_t.results[].
const ( MemoryIndex PerGpuTestIndices = 0 // Memory test index DiagnosticIndex PerGpuTestIndices = 1 // Diagnostic test index PciIndex PerGpuTestIndices = 2 // PCIe test index SmStressIndex PerGpuTestIndices = 3 // SM Stress test index TargetedStressIndex PerGpuTestIndices = 4 // Targeted Stress test index TargetedPowerIndex PerGpuTestIndices = 5 // Targeted Power test index MemoryBandwidthIndex PerGpuTestIndices = 6 // Memory bandwidth test index MemtestIndex PerGpuTestIndices = 7 // Memtest test index PulseTestIndex PerGpuTestIndices = 8 // Pulse test index EudTestIndex PerGpuTestIndices = 9 // EUD test index NvbandwidthIndex PerGpuTestIndices = 10 // NVBandwidth index NcclTestsIndex PerGpuTestIndices = 11 // Nccl-tests index RistTestIndex PerGpuTestIndices = 12 // RIST (Runtime In-System Test) index Unused4TestIndex PerGpuTestIndices = 13 Unused5TestIndex PerGpuTestIndices = 14 SoftwareIndex PerGpuTestIndices = 15 // Software test index ContextCreateIndex PerGpuTestIndices = 16 // Context create test index UnknownIndex PerGpuTestIndices = 17 // Unknown test )
func (PerGpuTestIndices) String ¶
func (e PerGpuTestIndices) String() string
String returns the constant name, or a numeric representation for unknown values.
type PidInfo ¶
type PidInfo struct {
Version uint32
Pid uint32
Unused uint32
NumGpus int32
Summary PidSingleInfo
Gpus [32]PidSingleInfo
}
PidInfo represents to store process statistics.
type PidSingleInfo ¶
type PidSingleInfo struct {
GpuId uint32
EnergyConsumed int64
PcieRxBandwidth StatSummaryInt64
PcieTxBandwidth StatSummaryInt64
PcieReplays int64
StartTime int64
EndTime int64
ProcessUtilization ProcessUtilInfo
SmUtilization StatSummaryInt32
MemoryUtilization StatSummaryInt32
EccSingleBit uint32
EccDoubleBit uint32
MemoryClock StatSummaryInt32
SmClock StatSummaryInt32
NumXidCriticalErrors int32
XidCriticalErrorsTs [10]int64
NumOtherComputePids int32
OtherComputePids [16]uint32
NumOtherGraphicsPids int32
OtherGraphicsPids [16]uint32
MaxGpuMemoryUsed int64
PowerViolationTime int64
ThermalViolationTime int64
ReliabilityViolationTime int64
BoardLimitViolationTime int64
LowUtilizationTime int64
SyncBoostTime int64
OverallHealth HealthWatchResults
IncidentCount uint32
Systems [10][2]uint32
}
PidSingleInfo represents info corresponding to single PID.
type Policy
deprecated
type Policy struct {
Version uint32
Condition PolicyCondition
Mode PolicyMode
Isolation PolicyIsolation
Action PolicyAction
Validation PolicyValidation
Response PolicyFailureResp
Parms [7]PolicyConditionParams
}
Policy represents the structure that specifies a policy to be enforced for a GPU.
Deprecated: Use PolicySpec instead.
func ReadPolicies ¶
ReadPolicies reads count v1 policy slots without setting or triggering policy. Count must be between 1 and MaxNumDevices. The native API supplies no output count, so the returned extent is requested, not a measured group population. The caller owns the group, connection and optional native status handle.
Example ¶
_, err := ReadPolicies(0, 0, 0, 0) fmt.Println(err != nil)
Output: true
Example ¶
package main
import (
"fmt"
"github.com/tmc/lib/nvidia/dcgm"
)
func main() {
_, err := dcgm.ReadPolicies(0, 0, 0, 0)
fmt.Println(err)
}
Output: dcgm: invalid policy array extent
type PolicyAction
deprecated
type PolicyAction int32
PolicyAction is an enumeration for policy actions.
Deprecated: Deprecated by NVIDIA. No field-policy equivalent is currently available.
const ( PolicyActionNone PolicyAction = 0 // no action PolicyActionGpureset PolicyAction = 1 // Deprecated - perform a GPU reset on violation )
func (PolicyAction) String ¶
func (e PolicyAction) String() string
String returns the constant name, or a numeric representation for unknown values.
type PolicyCallbackResponse
deprecated
type PolicyCallbackResponse struct {
Version uint32
Condition PolicyCondition
Val [2]uint64
GpuId uint32
}
PolicyCallbackResponse represents the structure that is given to the callback function.
Deprecated: Use PolicyViolation instead.
type PolicyCallbackResponseV1 ¶
type PolicyCallbackResponseV1 struct {
Version uint32
Condition PolicyCondition
Val [2]uint64
}
PolicyCallbackResponseV1 is the distinct, 24-byte legacy response layout. It has no GpuId field. Val retains the original 16-byte native union.
type PolicyCallbackResponseV2 ¶
type PolicyCallbackResponseV2 = PolicyCallbackResponse
PolicyCallbackResponseV2 is an alias for PolicyCallbackResponse.
type PolicyCallbackV1 ¶
type PolicyCallbackV1 uintptr
PolicyCallbackV1 is int (*)(void *), the legacy begin/finish callback ABI. The argument points to a PolicyCallbackResponseV1 during the callback only. Callers must retain callback trampolines for all possible late invocations.
type PolicyChannel ¶
type PolicyChannel int32
PolicyChannel represents notification channels for field-based policy violations.
const ( PolicyChannelConsole PolicyChannel = 0x1 // Output to console (stdout) PolicyChannelFile PolicyChannel = 0x2 // Output to log file (JSON format) PolicyChannelCallback PolicyChannel = 0x4 // Programmatic callback for application integration )
func (PolicyChannel) String ¶
func (e PolicyChannel) String() string
String returns the constant name, or a numeric representation for unknown values.
type PolicyCondition
deprecated
type PolicyCondition int32
PolicyCondition represents bitmask enumeration for policy conditions.
When used as part of Policy these have corresponding parameters to allow them to be switched on/off or set specific violation thresholds.
Deprecated: Deprecated by NVIDIA. Use field-policy field IDs and comparison operators instead.
const ( PolicyCondDbe PolicyCondition = 0x1 // Double bit errors -- boolean in [PolicyConditionParams] PolicyCondPci PolicyCondition = 0x2 // PCI events/errors -- boolean in [PolicyConditionParams] PolicyCondMaxPagesRetired PolicyCondition = 0x4 // Maximum number of retired pages -- number PolicyCondThermal PolicyCondition = 0x8 // Thermal violation -- number required in [PolicyConditionParams] PolicyCondPower PolicyCondition = 0x10 // Power violation -- number required in [PolicyConditionParams] PolicyCondNvlink PolicyCondition = 0x20 // NVLINK errors -- boolean in [PolicyConditionParams] PolicyCondXid PolicyCondition = 0x40 // XID errors -- number required in [PolicyConditionParams] )
func (PolicyCondition) String ¶
func (e PolicyCondition) String() string
String returns the constant name, or a numeric representation for unknown values.
type PolicyConditionDbe ¶
PolicyConditionDbe represents the ECC DBE return structure.
type PolicyConditionIdx
deprecated
type PolicyConditionIdx int32
PolicyConditionIdx is an enumeration for policy conditions.
When used as part of Policy these have corresponding parameters to allow them to be switched on/off or set specific violation thresholds.
Deprecated: Deprecated by NVIDIA. Use field-policy field IDs and comparison operators instead.
const ( PolicyCondIdxDbe PolicyConditionIdx = 0 // Double bit errors -- boolean in [PolicyConditionParams] PolicyCondIdxPci PolicyConditionIdx = 1 // PCI events/errors -- boolean in [PolicyConditionParams] PolicyCondIdxMaxPagesRetired PolicyConditionIdx = 2 // Maximum number of retired pages -- number PolicyCondIdxThermal PolicyConditionIdx = 3 // Thermal violation -- number required in [PolicyConditionParams] PolicyCondIdxPower PolicyConditionIdx = 4 // Power violation -- number required in [PolicyConditionParams] PolicyCondIdxNvlink PolicyConditionIdx = 5 // NVLINK errors -- boolean in [PolicyConditionParams] PolicyCondIdxXid PolicyConditionIdx = 6 // XID errors -- number required in [PolicyConditionParams] )
func (PolicyConditionIdx) String ¶
func (e PolicyConditionIdx) String() string
String returns the constant name, or a numeric representation for unknown values.
type PolicyConditionMpr ¶
PolicyConditionMpr represents the maximum pending retired pages limit return structure.
type PolicyConditionNvlink ¶
PolicyConditionNvlink represents the nvlink policy violations return structure.
type PolicyConditionParams
deprecated
PolicyConditionParams is a structure for policy condition parameters.
This structure contains a tag that represents the type of the value being passed as well as a "val" which is a union of the possible value types. For example, to pass a true boolean: tag = BOOL, val.boolean = 1.
Deprecated: Use PolicySpec instead.
func PolicyBool ¶
func PolicyBool(value bool) PolicyConditionParams
PolicyBool creates a boolean condition parameter using the pinned BOOL tag.
Example ¶
package main
import (
"fmt"
"github.com/tmc/lib/nvidia/dcgm"
)
func main() {
p := dcgm.PolicyBool(true)
fmt.Println(p.Tag, p.Val[0])
}
Output: 0 1
func PolicyNumber ¶
func PolicyNumber(value uint64) PolicyConditionParams
PolicyNumber creates an unsigned threshold using the pinned LLONG tag.
Example ¶
package main
import (
"fmt"
"github.com/tmc/lib/nvidia/dcgm"
)
func main() {
p := dcgm.PolicyNumber(80)
fmt.Println(p.Tag, p.Val[0])
}
Output: 1 80
type PolicyConditionPci ¶
PolicyConditionPci represents the PCI replay error return structure.
type PolicyConditionPower ¶
PolicyConditionPower represents the power policy violations return structure.
type PolicyConditionThermal ¶
PolicyConditionThermal represents the thermal policy violations return structure.
type PolicyConditionXID ¶
PolicyConditionXID represents the xid policy violations return structure.
type PolicyFailureResp
deprecated
type PolicyFailureResp int32
PolicyFailureResp is an enumeration for policy failure responses.
Deprecated: Deprecated by NVIDIA. No field-policy equivalent is currently available.
const (
PolicyFailureNone PolicyFailureResp = 0 // on failure of validation perform no action
)
func (PolicyFailureResp) String ¶
func (e PolicyFailureResp) String() string
String returns the constant name, or a numeric representation for unknown values.
type PolicyInfo ¶
type PolicyInfo struct {
Version uint32
PolicyId uint64
FieldId uint16
Name [256]byte
CurrentValue float64
Threshold float64
PolicyOperator PolicyOperator
Entities [32]GroupEntityPair
EntityCount uint32
ChannelMask uint32
State PolicyState
RateLimitSec uint32
CreatedAt int64
ViolationCount uint32
LastTriggeredTimestamp int64
}
PolicyInfo represents field-based policy readback state returned by the policy module.
type PolicyIsolation
deprecated
type PolicyIsolation int32
PolicyIsolation is an enumeration for policy isolation modes.
Deprecated: Deprecated by NVIDIA. No field-policy equivalent is currently available.
const (
PolicyIsolationNone PolicyIsolation = 0 // no isolation of GPUs on error
)
func (PolicyIsolation) String ¶
func (e PolicyIsolation) String() string
String returns the constant name, or a numeric representation for unknown values.
type PolicyMode
deprecated
type PolicyMode int32
PolicyMode is an enumeration for policy modes.
Deprecated: Deprecated by NVIDIA. Use field-policy state and Cache Manager-driven evaluation instead.
const ( PolicyModeAutomated PolicyMode = 0 // automatic mode PolicyModeManual PolicyMode = 1 // manual mode )
func (PolicyMode) String ¶
func (e PolicyMode) String() string
String returns the constant name, or a numeric representation for unknown values.
type PolicyNotifications ¶
type PolicyNotifications struct {
// contains filtered or unexported fields
}
PolicyNotifications owns one v2 policy registration. Close must succeed before its connection, group, host engine or library is closed. The zero value is not usable. The library is not unloaded by Close.
func NewPolicyNotifications ¶
func NewPolicyNotifications(handle Handle, group GpuGrp, condition PolicyCondition, capacity int) (*PolicyNotifications, error)
NewPolicyNotifications registers a v2 callback without setting policy or triggering collection. Capacity must be between 1 and 4096. At most 64 subscriptions can be active in a process. Overlapping conditions on the same handle and group are refused because DCGM unregisters by condition, not token. Raw registrations must not overlap a subscription owned by this helper. The caller must supply an independently owned private Session group. On a native registration error, a non-nil subscription is returned with the error: registration may have had side effects, so its owner must explicitly Close it successfully before releasing the group or connection.
Example ¶
package main
import (
"fmt"
"github.com/tmc/lib/nvidia/dcgm"
)
func main() {
_, err := dcgm.NewPolicyNotifications(0, 0, dcgm.PolicyCondDbe, 1)
fmt.Println(err)
}
Output: dcgm: invalid policy notification configuration
Example ¶
_, err := NewPolicyNotifications(0, 0, 0, 0) fmt.Println(err != nil)
Output: true
func (*PolicyNotifications) Close ¶
func (s *PolicyNotifications) Close() error
Close unregisters the conditions and retires this subscription. An unregister error leaves it active so the caller can retry. Successful unregister does not prove native callback quiescence: the permanent trampoline ignores retired tokens, and an already-running callback is synchronized with channel close.
Example ¶
package main
import (
"fmt"
"github.com/tmc/lib/nvidia/dcgm"
)
func main() {
var notifications dcgm.PolicyNotifications
fmt.Println(notifications.Close())
}
Output: dcgm: invalid policy notifications
Example ¶
var subscription *PolicyNotifications fmt.Println(subscription.Close() != nil)
Output: true
func (*PolicyNotifications) Dropped ¶
func (s *PolicyNotifications) Dropped() uint64
Dropped reports callbacks discarded because the queue was full, a concurrent callback or Close owned the queue, or the response was nil or unknown-layout. Late callbacks for retired tokens are ignored.
Example ¶
package main
import (
"fmt"
"github.com/tmc/lib/nvidia/dcgm"
)
func main() {
var notifications dcgm.PolicyNotifications
fmt.Println(notifications.Dropped())
}
Output: 0
Example ¶
var subscription *PolicyNotifications fmt.Println(subscription.Dropped())
Output: 0
func (*PolicyNotifications) Notifications ¶
func (s *PolicyNotifications) Notifications() <-chan PolicyCallbackResponse
Notifications returns copied callback responses. Close closes the channel; queued responses remain available. Unknown response versions are dropped.
Example ¶
package main
import (
"fmt"
"github.com/tmc/lib/nvidia/dcgm"
)
func main() {
var notifications dcgm.PolicyNotifications
fmt.Println(notifications.Notifications() == nil)
}
Output: true
Example ¶
var subscription *PolicyNotifications fmt.Println(subscription.Notifications() == nil)
Output: true
type PolicyOperator ¶
type PolicyOperator int32
PolicyOperator represents comparison operators for field-based policies.
const ( PolicyOpGt PolicyOperator = 0 // Greater than (>) PolicyOpGe PolicyOperator = 1 // Greater than or equal (>=) PolicyOpLt PolicyOperator = 2 // Less than (<) PolicyOpLe PolicyOperator = 3 // Less than or equal (<=) PolicyOpEq PolicyOperator = 4 // Equal (==) PolicyOpNe PolicyOperator = 5 // Not equal (!=) PolicyOpChanged PolicyOperator = 6 // Value changed from previous PolicyOpCount PolicyOperator = 7 // Sentinel value - keep as last entry )
func (PolicyOperator) String ¶
func (e PolicyOperator) String() string
String returns the constant name, or a numeric representation for unknown values.
type PolicySpec ¶
type PolicySpec struct {
Version uint32
FieldId uint16
Name [256]byte
Threshold float64
PolicyOperator PolicyOperator
Entities [32]GroupEntityPair
EntityCount uint32
ChannelMask uint32
State PolicyState
RateLimitSec uint32
}
PolicySpec represents field-based policy configuration accepted from callers.
type PolicyState ¶
type PolicyState int32
PolicyState represents Enabled/disabled state for field-based policies.
const ( PolicyStateDisabled PolicyState = 0 // Policy is disabled and will not trigger notifications PolicyStateEnabled PolicyState = 1 // Policy is active and will trigger notifications on violation )
func (PolicyState) String ¶
func (e PolicyState) String() string
String returns the constant name, or a numeric representation for unknown values.
type PolicyValidation
deprecated
type PolicyValidation int32
PolicyValidation is an enumeration for policy validation actions.
Deprecated: Deprecated by NVIDIA. Used by the legacy group-policy interface and the deprecated Handle.ActionValidate.
const ( PolicyValidNone PolicyValidation = 0 // no validation after an action is performed PolicyValidSvShort PolicyValidation = 1 // run a short System Validation on the system after failure PolicyValidSvMed PolicyValidation = 2 // run a medium System Validation test after failure PolicyValidSvLong PolicyValidation = 3 // run a extensive System Validation test after failure PolicyValidSvXlong PolicyValidation = 4 // run a more extensive System Validation test after failure )
func (PolicyValidation) String ¶
func (e PolicyValidation) String() string
String returns the constant name, or a numeric representation for unknown values.
type PolicyViolation ¶
type PolicyViolation struct {
Version uint32
NotifyOnEccDbe uint32
NotifyOnPciEvent uint32
NotifyOnMaxRetiredPages uint32
}
PolicyViolation represents the structure that contains specific policy information.
type PolicyViolationNotify
deprecated
PolicyViolationNotify fills when a user queries for policy violations.
Deprecated: Use PolicyViolation instead.
type PolicyViolationV1 ¶
type PolicyViolationV1 = PolicyViolation
PolicyViolationV1 is an alias for PolicyViolation.
type PowerProfileType ¶
type PowerProfileType int32
PowerProfileType represents dcgmPowerProfileType_t.
const ( PowerProfileMaxP PowerProfileType = 0 // 0 - MaxP workload power profile PowerProfileMaxQ PowerProfileType = 1 // 1 - MaxQ workload power profile PowerProfileCompute PowerProfileType = 2 // 2 - Compute workload power profile PowerProfileMemoryBound PowerProfileType = 3 // 3 - Memory Bound workload power profile PowerProfileNetwork PowerProfileType = 4 // 4 - Network workload power profile PowerProfileBalanced PowerProfileType = 5 // 5 - Balanced workload power profile PowerProfileLlmInference PowerProfileType = 6 // 6 - LLM Inference workload power profile PowerProfileLlmTraining PowerProfileType = 7 // 7 - LLM Training workload power profile PowerProfileRbm PowerProfileType = 8 // 8 - RBM workload power profile PowerProfileDcpcie PowerProfileType = 9 // 9 - DCPCIE workload power profile PowerProfileHmmaSparse PowerProfileType = 10 // 10 - HMMA Sparse workload power profile PowerProfileHmmaDense PowerProfileType = 11 // 11 - HMMA Dense workload power profile PowerProfileSyncBalanced PowerProfileType = 12 // 12 - Sync Balanced workload power profile PowerProfileHpc PowerProfileType = 13 // 13 - HPC workload power profile PowerProfileMig PowerProfileType = 14 // 14 - MIG workload power profile )
func (PowerProfileType) String ¶
func (e PowerProfileType) String() string
String returns the constant name, or a numeric representation for unknown values.
type ProcessUtilInfo ¶
ProcessUtilInfo represents per process utilization rates.
type ProcessUtilSample ¶
ProcessUtilSample represents internal structure used to get the PID and the corresponding utilization rate.
type ProfGetMetricGroups ¶
type ProfGetMetricGroups struct {
Version uint32
Unused uint32
GpuId uint32
NumMetricGroups uint32
MetricGroups [10]ProfMetricGroupInfoV2
}
ProfGetMetricGroups represents dcgmProfGetMetricGroups_v3.
type ProfGetMetricGroupsV3 ¶
type ProfGetMetricGroupsV3 = ProfGetMetricGroups
ProfGetMetricGroupsV3 is an alias for ProfGetMetricGroups.
type ProfMetricGroupInfoV2 ¶
type ProfMetricGroupInfoV2 struct {
MajorId uint16
MinorId uint16
NumFieldIds uint32
FieldIds [64]uint16
}
ProfMetricGroupInfoV2 returns all of the profiling metric groups that are available for the given groupId.
type Result ¶
type Result int32
Result represents a dcgm API error code (dcgmReturn_t).
When the library is loaded, Result.Error returns rich messages from ErrorString. When the library is not loaded, it falls back to the numeric error code and Go-defined name.
const ( Success Result = 0 // Success ErrBadParam Result = -1 // A bad parameter was passed to a function ErrGenericError Result = -3 // A generic, unspecified error ErrMemory Result = -4 // An out of memory error occurred ErrNotConfigured Result = -5 // Setting not configured ErrNotSupported Result = -6 // Feature not supported ErrInitError Result = -7 // DCGM Init error ErrNVMLError Result = -8 // When NVML returns error ErrPending Result = -9 // Object is in pending state of something else ErrUninitialized Result = -10 // Object is in undefined state ErrTimeout Result = -11 // Requested operation timed out ErrVerMismatch Result = -12 // Version mismatch between received and understood API ErrUnknownField Result = -13 // Unknown field id ErrNoData Result = -14 // No data is available ErrStaleData Result = -15 // Data is considered stale ErrNotWatched Result = -16 // The given field id is not being updated by the cache manager ErrNoPermission Result = -17 // Do not have permission to perform the desired action ErrGPUIsLost Result = -18 // GPU is no longer reachable ErrResetRequired Result = -19 // GPU requires a reset ErrFunctionNotFound Result = -20 // The function that was requested was not found (bindings only error) ErrConnectionNotValid Result = -21 // The connection to the host engine is not valid any longer ErrGPUNotSupported Result = -22 // This GPU is not supported by DCGM ErrGroupIncompatible Result = -23 // The GPUs of the provided group are not compatible with each other for the ErrMaxLimit Result = -24 // Max limit reached for the object ErrLibraryNotFound Result = -25 // DCGM library could not be found ErrDuplicateKey Result = -26 // Duplicate key passed to a function ErrGPUInSyncBoostGroup Result = -27 // GPU is already a part of a sync boost group ErrGPUNotInSyncBoostGroup Result = -28 // GPU is not a part of a sync boost group ErrRequiresRoot Result = -29 // This operation cannot be performed when the host engine is running as non-root ErrNVVSError Result = -30 // DCGM GPU Diagnostic was successfully executed, but reported an error. ErrInsufficientSize Result = -31 // An input argument is not large enough ErrFieldUnsupportedByAPI Result = -32 // The given field ID is not supported by the API being called ErrModuleNotLoaded Result = -33 // This request is serviced by a module of DCGM that is not currently loaded ErrInUse Result = -34 // The requested operation could not be completed because the affected ErrGroupIsEmpty Result = -35 // This group is empty and the requested operation is not valid on an empty group ErrProfilingNotSupported Result = -36 // Profiling is not supported for this group of GPUs or GPU. ErrProfilingLibraryError Result = -37 // The third-party Profiling module returned an unrecoverable error. ErrProfilingMultiPass Result = -38 // The requested profiling metrics cannot be collected in a single pass ErrDiagAlreadyRunning Result = -39 // A diag instance is already running, cannot run a new diag until ErrDiagBadJSON Result = -40 // The DCGM GPU Diagnostic returned JSON that cannot be parsed ErrDiagBadLaunch Result = -41 // Error while launching the DCGM GPU Diagnostic ErrDiagUnused Result = -42 // Unused ErrDiagThresholdExceeded Result = -43 // A field value met or exceeded the error threshold. ErrInsufficientDriverVersion Result = -44 // The installed driver version is insufficient for this API ErrInstanceNotFound Result = -45 // The specified GPU instance does not exist ErrComputeInstanceNotFound Result = -46 // The specified GPU compute instance does not exist ErrChildNotKilled Result = -47 // Couldn't kill a child process within the retries ErrThirdPartyLibraryError Result = -48 // Detected an error in a 3rd-party library ErrInsufficientResources Result = -49 // Not enough resources available ErrPluginException Result = -50 // Exception thrown from a diagnostic plugin ErrNVVSIsolateError Result = -51 // The diagnostic returned an error that indicates the need for isolation ErrNVVSBinaryNotFound Result = -52 // The NVVS binary was not found in the specified location ErrNVVSKilled Result = -53 // The NVVS process was killed by a signal ErrPaused Result = -54 // The hostengine and all modules are paused ErrAlreadyInitialized Result = -55 // The object is already initialized ErrNVMLNotLoaded Result = -56 // Cannot perform operation because NVML isn't loaded ErrNVMLDriverTimeout Result = -57 // Cannot perform operation because an NVML driver timeout error was detected ErrNVVSNoAvailableTest Result = -58 // The NVVS returns no available tests (NVVS_ST_TEST_NOT_FOUND) ErrMnDiagConnectionNotAvailable Result = -59 // No connection is currently authorized for mndiag ErrRemoteSSHConnectionFailed Result = -61 // An SSH connection to a remote hostengine failed ErrChildSpawnFailed Result = -62 // A child process could not be spawned ErrFileIOError Result = -63 // A file operation failed ErrChildSignalReceived Result = -64 // A child process received a signal ErrCallerAlreadyStopped Result = -65 // The caller is already stopped ErrDiagStopped Result = -66 // The DCGM Diagnostic was stopped ErrGPUsDetached Result = -67 // GPUs are detached )
dcgm error codes from dcgm_agent.h.
type RunDiagV7
deprecated
type RunDiagV7 struct {
Version uint32
Flags uint32
DebugLevel uint32
GroupId GpuGrp
Validate PolicyValidation
TestNames [20][50]byte
TestParms [100][100]byte
FakeGpuList [50]byte
GpuList [50]byte
DebugLogFile [128]byte
StatsPath [128]byte
ConfigFileContents [10000]byte
ClocksEventMask [50]byte
PluginPath [128]byte
CurrentIteration uint32
TotalIterations uint32
TimeoutSeconds uint32
UnusedBuf [128]byte
FailCheckInterval uint32
}
RunDiagV7 represents run diagnostic structure v7.
Deprecated: Use RunDiagV10 instead.
type RunDiagV8
deprecated
type RunDiagV8 struct {
Version uint32
Flags uint32
DebugLevel uint32
GroupId GpuGrp
Validate PolicyValidation
TestNames [20][50]byte
TestParms [100][1050]byte
FakeGpuList [50]byte
GpuList [50]byte
DebugLogFile [128]byte
StatsPath [128]byte
ConfigFileContents [10000]byte
ClocksEventMask [50]byte
PluginPath [128]byte
CurrentIteration uint32
TotalIterations uint32
TimeoutSeconds uint32
UnusedBuf [128]byte
FailCheckInterval uint32
ExpectedNumEntities [50]byte
}
RunDiagV8 represents run diagnostic structure v8.
Deprecated: Use RunDiagV10 instead.
type RunDiagV9
deprecated
type RunDiagV9 struct {
Version uint32
Flags uint32
DebugLevel uint32
GroupId GpuGrp
Validate PolicyValidation
TestNames [20][50]byte
TestParms [100][1050]byte
FakeGpuList [50]byte
DebugLogFile [128]byte
StatsPath [128]byte
ConfigFileContents [10000]byte
ClocksEventMask [50]byte
PluginPath [128]byte
CurrentIteration uint32
TotalIterations uint32
TimeoutSeconds uint32
UnusedBuf [128]byte
FailCheckInterval uint32
ExpectedNumEntities [50]byte
EntityIds [2048]byte
WatchFrequency uint32
}
RunDiagV9 represents run diagnostic structure v9.
Deprecated: Use RunDiagV10 instead.
type RunDiagV10 ¶
type RunDiagV10 struct {
Version uint32
Flags uint32
DebugLevel uint32
GroupId GpuGrp
Validate PolicyValidation
TestNames [20][50]byte
TestParms [100][1050]byte
FakeGpuList [50]byte
DebugLogFile [128]byte
StatsPath [128]byte
ConfigFileContents [10000]byte
ClocksEventMask [50]byte
PluginPath [128]byte
CurrentIteration uint32
TotalIterations uint32
TimeoutSeconds uint32
UnusedBuf [128]byte
FailCheckInterval uint32
ExpectedNumEntities [50]byte
EntityIds [2048]byte
WatchFrequency uint32
IgnoreErrorCodes [512]byte
}
RunDiagV10 represents run diagnostic structure v10 Since DCGM 4.0.
type RunMnDiagV1 ¶
type RunMnDiagV1 struct {
Version uint32
HostList [72][256]byte
TestName [256]byte
TestParms [100][1050]byte
}
RunMnDiagV1 represents multi-node diagnostic parameters structure v1.
type RunMnDiagV2 ¶
type RunMnDiagV2 struct {
Version uint32
HostList [576][256]byte
TestName [256]byte
TestParms [100][1050]byte
}
RunMnDiagV2 represents multi-node diagnostic parameters structure v2 Expanded hostList to support up to MndiagMaxNumHosts hosts.
type RunningProcess ¶
RunningProcess represents running process information for a compute or graphics process.
type RunningProcessV1 ¶
type RunningProcessV1 = RunningProcess
RunningProcessV1 is an alias for RunningProcess.
type Session ¶
type Session struct {
// Handle is the host-engine handle. It stays valid until Close.
Handle Handle
// contains filtered or unexported fields
}
A Session is a host-engine connection together with the objects this process created through it.
Ownership is the whole point of the type:
- Objects a Session created -- groups from Session.NewGroup, field groups from Session.NewFieldGroup, watches from Session.Watch -- are owned by it, and Session.Close removes them.
- Objects it merely found, through Handle.Groups or the pseudo-groups such as GroupAllGPUs, are not owned, and Close does not touch them.
- A host engine reached with Connect is not owned. Close disconnects from it and never stops it. Only a Session from StartEmbedded owns a host engine, and only that Session stops one.
Session.Handle is exported so the whole generated API remains reachable. Anything created through that handle directly is the caller's to remove; the Session does not know about it.
A Session is safe for concurrent use. The library calls it makes are the library's own to serialize.
func Connect ¶
func Connect(address string, opts ConnectOptions) (*Session, error)
Connect attaches to a host engine this process did not start, at address -- a TCP/IP address, or a Unix socket path when opts.UnixSocket is set.
Init must have been called first.
The returned Session does not own the host engine. Session.Close disconnects from it and leaves it running, because something else started it and something else is monitoring through it.
Example ¶
ExampleConnect attaches to a host engine that is already running, which is the usual arrangement: nv-hostengine runs as a service and several clients read from it at once.
The Session returned does not own that host engine. Close disconnects and leaves it running, because stopping it would stop everyone else's monitoring.
package main
import (
"fmt"
"time"
"github.com/tmc/lib/nvidia/dcgm"
)
func main() {
if err := dcgm.Init(); err != nil {
fmt.Println("DCGM unavailable:", err)
return
}
defer dcgm.Shutdown()
s, err := dcgm.Connect("127.0.0.1:5555", dcgm.ConnectOptions{Timeout: 5 * time.Second})
if err != nil {
fmt.Println("connect:", err)
return
}
defer s.Close()
fmt.Println("owns the host engine:", s.OwnsHostEngine())
// Groups found this way belong to whoever created them. Destroying one
// would take it from its owner, so this only reads.
groups, err := s.Handle.Groups()
if err != nil {
fmt.Println("groups:", err)
return
}
for _, g := range groups {
entities, err := s.Handle.GroupEntities(g)
if err != nil {
fmt.Printf("group %d: %v\n", g, err)
continue
}
fmt.Printf("group %d has %d entities, owned by this session: %v\n", g, len(entities), s.Owns(g))
}
}
Output:
func ConnectURL ¶
func ConnectURL(url string, opts ConnectOptions) (*Session, error)
ConnectURL is like Connect but takes a connection string naming the transport, which is how a vsock host engine is reached:
tcp://192.0.2.1:5555 tcp://192.0.2.1 (DCGM's default port) unix:///run/nvidia-hostengine.sock vsock://3:5555 vsock://3 (DCGM's default port)
The scheme says what opts.UnixSocket would, so setting it is an error.
func StartEmbedded ¶
func StartEmbedded(mode OperationMode) (*Session, error)
StartEmbedded starts a host engine inside this process and returns a Session that owns it.
Init must have been called first; DCGM requires it before any other entry point and this package does not call it implicitly, because Shutdown is process-wide and a package that started the library would have to guess when to stop it.
The embedded engine runs in this process, so it disappears when the process does. In OperationModeAuto a background thread samples watched fields; in OperationModeManual nothing is sampled until Handle.UpdateAllFields is called, which is the mode to use when samples must line up with something the program is doing.
Session.Close stops the engine. Nothing else should: an embedded engine is this process's, and stopping it from elsewhere would strand this Session's handle.
func (*Session) AddEntity ¶
func (s *Session) AddEntity(groupID GpuGrp, entityGroup FieldEntityGroup, entityID FieldEid) error
AddEntity adds one entity to a group. It is here rather than left to the generated method only so a caller building an owned group does not have to mix the two APIs; it does not change ownership.
func (*Session) Close ¶
Close removes what this Session created and releases the host engine.
The order is the reverse of creation: watches, then field groups, then groups, then the connection. Nothing else is touched. In particular:
- A group or field group obtained from anywhere but Session.NewGroup or Session.NewFieldGroup is left alone, because another process may be using it.
- A host engine reached with Connect is disconnected from, never stopped.
- Shutdown is not called. It is process-wide, and another Session may still be open.
Close reports the first error and continues, so one failing teardown step does not strand the rest. It is idempotent: a second call returns nil.
func (*Session) NewFieldGroup ¶
NewFieldGroup creates a field group holding the given field ids and records it as this Session's, so Session.Close destroys it.
The field ids are the FieldID constants generated from dcgm_fields.h. fields is read during the call and not retained.
func (*Session) NewGroup ¶
NewGroup creates an entity group and records it as this Session's, so Session.Close destroys it.
The name must be unique on the host engine; DCGM rejects a duplicate. Use GroupEmpty and Session.AddEntity to choose the members, or one of the GroupDefault types to have DCGM populate the group.
func (*Session) Owns ¶
Owns reports whether this Session created the given group and would destroy it on Close. It is here so a caller holding a group id from elsewhere can tell whether removing it is its own responsibility.
func (*Session) OwnsFieldGroup ¶
OwnsFieldGroup reports whether this Session created the given field group.
func (*Session) OwnsHostEngine ¶
OwnsHostEngine reports whether this Session started the host engine and will stop it on Close. It is false for every Session from Connect.
func (*Session) Watch ¶
func (s *Session) Watch(groupID GpuGrp, fieldGroup FieldGrp, updateFreq, maxKeepAge time.Duration, maxKeepSamples int32) error
Watch tells the host engine to sample fieldGroup's fields for groupID's entities, and records the watch as this Session's so Session.Close removes it.
updateFreq is how often the engine samples. maxKeepAge is how long samples are retained; maxKeepSamples caps how many are, and zero means unlimited. A watch is host-engine state that outlives this process unless it is removed, which is why it is recorded rather than left to the caller to remember.
Watching does not produce a sample. In OperationModeManual nothing is sampled until Handle.UpdateAllFields; in OperationModeAuto the first sample arrives no sooner than updateFreq, so a read immediately after Watch returns blank values rather than an error.
type SettingsSetLoggingSeverity ¶
type SettingsSetLoggingSeverity struct {
Version uint32
TargetLogger int32
TargetSeverity LoggingSeverity
}
SettingsSetLoggingSeverity represents version 2 of SettingsSetLoggingSeverity.
type SettingsSetLoggingSeverityV1 ¶
type SettingsSetLoggingSeverityV1 struct {
TargetLogger int32
TargetSeverity LoggingSeverity
}
SettingsSetLoggingSeverityV1 represents version 1 of SettingsSetLoggingSeverity.
type SettingsSetLoggingSeverityV2 ¶
type SettingsSetLoggingSeverityV2 = SettingsSetLoggingSeverity
SettingsSetLoggingSeverityV2 is an alias for SettingsSetLoggingSeverity.
type SoftwareTest ¶
type SoftwareTest int32
SoftwareTest represents dcgmSoftwareTest_t.
const ( SwtestDenylist SoftwareTest = 0 // test for presence of drivers on the denylist (e.g. nouveau) SwtestNvmlLibrary SoftwareTest = 1 // test for presence (and version) of NVML lib SwtestCudaMainLibrary SoftwareTest = 2 // test for presence (and version) of CUDA lib SwtestCudaRuntimeLibrary SoftwareTest = 3 // test for presence (and version) of CUDA RT lib SwtestPermissions SoftwareTest = 4 // test for character device permissions SwtestPersistenceMode SoftwareTest = 5 // test for persistence mode enabled SwtestEnvironment SoftwareTest = 6 // test for CUDA environment vars that may slow tests SwtestPageRetirement SoftwareTest = 7 // test for pending frame buffer page retirement SwtestGraphicsProcesses SoftwareTest = 8 // test for graphics processes running SwtestInforom SoftwareTest = 9 // test for inforom corruption SwtestFabricManager SoftwareTest = 10 // test for running Fabric Manager )
func (SoftwareTest) String ¶
func (e SoftwareTest) String() string
String returns the constant name, or a numeric representation for unknown values.
type StartEmbeddedV2Params ¶
type StartEmbeddedV2Params struct {
Version uint32
OpMode OperationMode
DcgmHandle Handle
LogFile uintptr
Severity LoggingSeverity
DenyListCount uint32
ServiceAccount uintptr
DenyList [16]uint32
}
StartEmbeddedV2Params represents options for StartEmbeddedV2Params.
Added in DCGM 4.3, expanded the size of denyList from ModuleIdCountV1 to ModuleIdCountV2
type StartEmbeddedV2ParamsV1 ¶
type StartEmbeddedV2ParamsV1 struct {
Version uint32
OpMode OperationMode
DcgmHandle Handle
LogFile uintptr
Severity LoggingSeverity
DenyListCount uint32
DenyList [10]uint32
}
StartEmbeddedV2ParamsV1 represents options for StartEmbeddedV2.
Added in DCGM 2.0.0.
Note: size of denyList is changed from DcgmModuleIdCount to a fixed value of DCGM_MODULE_IDS_COUNT_V1.
type StartEmbeddedV2ParamsV2 ¶
type StartEmbeddedV2ParamsV2 struct {
Version uint32
OpMode OperationMode
DcgmHandle Handle
LogFile uintptr
Severity LoggingSeverity
DenyListCount uint32
ServiceAccount uintptr
DenyList [10]uint32
}
StartEmbeddedV2ParamsV2 represents options for StartEmbeddedV2ParamsV2.
Added in DCGM 2.4.0, renamed members in 3.0.0.
Note: size of denyList is changed from DcgmModuleIdCount to a fixed value of DCGM_MODULE_IDS_COUNT_V1.
type StartEmbeddedV2ParamsV3 ¶
type StartEmbeddedV2ParamsV3 = StartEmbeddedV2Params
StartEmbeddedV2ParamsV3 is an alias for StartEmbeddedV2Params.
type StatSummaryFp64 ¶
StatSummaryFp64 represents summary of time series data in double-precision format.
Each value will either be set or be a BLANK value. Check for blank with the DCGM_FP64_IS_BLANK() macro. dcgmvalue.h for the actual values of BLANK values.
type StatSummaryInt32 ¶
StatSummaryInt32 represents same as StatSummaryInt64, but with 32-bit integer values.
type StatSummaryInt64 ¶
StatSummaryInt64 represents summary of time series data in int64 format.
Each value will either be set or be a BLANK value. Check for blank with the DCGM_INT64_IS_BLANK() macro. dcgmvalue.h for the actual values of BLANK values.
type StatusHandle ¶
type StatusHandle uintptr
StatusHandle is an opaque handle for dcgmStatus_t.
func NewStatusHandle ¶
func NewStatusHandle() (StatusHandle, error)
NewStatusHandle creates reference to DCGM status handler which can be used to get the statuses for multiple operations on one or more devices.
The multiple statuses are useful when the operations are performed at group level. The status handle provides a mechanism to access error attributes for the failed operations.
The number of errors stored behind the opaque handle can be accessed using the the API StatusHandle.Count. The errors are accessed from the opaque handle statusHandle using the API StatusHandle.PopError. The user can invoke StatusHandle.PopError for the number of errors or until all the errors are fetched.
When the status handle is not required any further then it should be deleted using the API StatusHandle.Close.
- statusHandle: OUT: Reference to handle for list of statuses
Wraps dcgmStatusCreate.
func StatusCreate ¶
func StatusCreate() (StatusHandle, error)
StatusCreate creates reference to DCGM status handler which can be used to get the statuses for multiple operations on one or more devices.
The multiple statuses are useful when the operations are performed at group level. The status handle provides a mechanism to access error attributes for the failed operations.
The number of errors stored behind the opaque handle can be accessed using the the API StatusHandle.Count. The errors are accessed from the opaque handle statusHandle using the API StatusHandle.PopError. The user can invoke StatusHandle.PopError for the number of errors or until all the errors are fetched.
When the status handle is not required any further then it should be deleted using the API StatusHandle.Close.
- statusHandle: OUT: Reference to handle for list of statuses
Wraps dcgmStatusCreate.
func (StatusHandle) Clear ¶
func (s StatusHandle) Clear() error
Clear is used to clear all the errors in the status handle created by the API NewStatusHandle.
After one set of operation, the statusHandle can be cleared and reused for the next set of operation.
Wraps dcgmStatusClear.
func (*StatusHandle) Close ¶
func (s *StatusHandle) Close() error
Close is used to destroy status handle created using NewStatusHandle.
If s is zero, Close returns nil. Otherwise Close sets s to zero when the call succeeds and leaves it unchanged when it fails. Only s is zeroed: a copy of it still refers to the released object.
Wraps dcgmStatusDestroy.
func (StatusHandle) Count ¶
func (s StatusHandle) Count() (uint32, error)
Count is used to get count of error entries stored inside the opaque handle statusHandle.
- count: OUT: Number of error entries present in the list of statuses
Wraps dcgmStatusGetCount.
func (StatusHandle) PopError ¶
func (s StatusHandle) PopError(pDcgmErrorInfo *ErrorInfo) error
PopError is used to iterate through the list of errors maintained behind statusHandle.
The method pops the first error from the list of DCGM statuses. In order to iterate through all the errors, the user can invoke this API for the number of errors or until all the errors are fetched.
- pDcgmErrorInfo: OUT: First error from the list of statuses
Wraps dcgmStatusPopError.
type SummaryResponse ¶
SummaryResponse is part of dcgmFieldSummaryRequest, so it uses dcgmFieldSummaryRequest's version.
type SymbolError ¶
SymbolError reports that a symbol is not callable.
Err distinguishes the two ways that happens. A nil Err means the loaded library does not export the symbol, which is what an installation older than the symbol looks like. A non-nil Err means the library does export it and the binding itself failed; the library is not at fault.
func (*SymbolError) Error ¶
func (e *SymbolError) Error() string
Error reports the uncallable library symbol and, when the symbol was present but could not be bound, why.
func (*SymbolError) Unwrap ¶
func (e *SymbolError) Unwrap() error
Unwrap returns the reason the symbol could not be bound, or nil when the loaded library does not export it.
type TopoSchedHint ¶
TopoSchedHint represents @}.
type TopoSchedHintV1 ¶
type TopoSchedHintV1 = TopoSchedHint
TopoSchedHintV1 is an alias for TopoSchedHint.
type VersionInfoStruct ¶
VersionInfoStruct describes the DCGM build environment ver 2.0.
type VersionInfoStructV2 ¶
type VersionInfoStructV2 = VersionInfoStruct
VersionInfoStructV2 is an alias for VersionInfoStruct.
type WorkloadPowerProfile ¶
type WorkloadPowerProfile struct {
Version uint32
GroupId GpuGrp
Action WorkloadProfileAction
ProfileMask [8]uint32
}
WorkloadPowerProfile represents dcgmWorkloadPowerProfile_v1.
type WorkloadPowerProfileInfo ¶
type WorkloadPowerProfileInfo struct {
Version uint32
ProfileId PowerProfileType
Priority uint32
ConflictingMask [8]uint32
}
WorkloadPowerProfileInfo represents information about the specified power profile.
type WorkloadPowerProfileInfoV1 ¶
type WorkloadPowerProfileInfoV1 = WorkloadPowerProfileInfo
WorkloadPowerProfileInfoV1 is an alias for WorkloadPowerProfileInfo.
type WorkloadPowerProfileProfilesInfo ¶
type WorkloadPowerProfileProfilesInfo struct {
Version uint32
WorkloadPowerProfile [255]WorkloadPowerProfileInfo
ProfileCount uint32
}
WorkloadPowerProfileProfilesInfo represents information about the supported power profiles.
type WorkloadPowerProfileProfilesInfoV1 ¶
type WorkloadPowerProfileProfilesInfoV1 = WorkloadPowerProfileProfilesInfo
WorkloadPowerProfileProfilesInfoV1 is an alias for WorkloadPowerProfileProfilesInfo.
type WorkloadPowerProfileV1 ¶
type WorkloadPowerProfileV1 = WorkloadPowerProfile
WorkloadPowerProfileV1 is an alias for WorkloadPowerProfile.
type WorkloadProfileAction ¶
type WorkloadProfileAction int32
WorkloadProfileAction represents dcgmWorkloadProfileAction_t.
const ( WorkloadProfileActionSet WorkloadProfileAction = 0 WorkloadProfileActionSetAndOverwrite WorkloadProfileAction = 1 WorkloadProfileActionClear WorkloadProfileAction = 2 )
func (WorkloadProfileAction) String ¶
func (e WorkloadProfileAction) String() string
String returns the constant name, or a numeric representation for unknown values.
Source Files
¶
- constants.gen.go
- doc.go
- enums.gen.go
- error_codes.gen.go
- field_policy_v3.gen.go
- fields.gen.go
- funcs.gen.go
- handle.gen.go
- handles.gen.go
- health.go
- init.gen.go
- job.go
- limits.gen.go
- loader_unix.gen.go
- policy.go
- policy_legacy.gen.go
- policy_notification_bindings.go
- policy_notifications.go
- policy_read.go
- provenance.gen.go
- result.gen.go
- session.go
- status_handle.gen.go
- structs.gen.go
- types.gen.go
- values.go
- versions.gen.go