nvidia

package
v0.0.0-...-343224e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Devices

type Devices struct {
	// contains filtered or unexported fields
}

Devices represents GPUs

func NewDecoder

func NewDecoder() *Devices

NewDecoder creates and initializes a Device as Decoder

func (*Devices) Decode

func (d *Devices) Decode() error

Decode makes Device satisfy the mox.Decoder interface

func (Devices) GetGPU

func (d Devices) GetGPU(pciid string) *GPU

GetGPU returns the GPU which has given pci-id

type ECCCounter

type ECCCounter struct {
	DeviceMemory int
	RegisterFile int
	L1Cache      int
	L2Cache      int
	Total        int
}

ECCCounter represents ECC error counters

type ECCError

type ECCError struct {
	SingleBit ECCCounter
	DoubleBit ECCCounter
}

ECCError represents ecc error counters single bit errors are corrected double bit errors are uncorrectable

type GPU

type GPU struct {
	// contains filtered or unexported fields
}

GPU represents the GPU appears in nvidia-smi log

func (*GPU) UnmarshalXML

func (g *GPU) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

UnmarshalXML imprements xml.Unmarshaler interface

type SmiLog

type SmiLog struct {
	XMLName       xml.Name `xml:"nvidia_smi_log"`
	DriverVersion string   `xml:"driver_version"`
	GPUs          []*GPU   `xml:"gpu"`
}

SmiLog represents nvidia-smi log format

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL