nvidia

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FBMemoryUsage

type FBMemoryUsage struct {
	XMLName  xml.Name `xml:"fb_memory_usage"`
	Total    string   `xml:"total"`
	Reserved string   `xml:"reserved"`
	Used     string   `xml:"used"`
	Free     string   `xml:"free"`
}

type GPU

type GPU struct {
	XMLName             xml.Name      `xml:"gpu"`
	ID                  string        `xml:"id,attr"`
	ProductName         string        `xml:"product_name"`
	ProductBrand        string        `xml:"product_brand"`
	ProductArchitecture string        `xml:"product_architecture"`
	MemoryUsage         FBMemoryUsage `xml:"fb_memory_usage"`
	Utilization         Utilization   `xml:"utilization"`
}

type SMILog

type SMILog struct {
	XMLName xml.Name `xml:"nvidia_smi_log"`
	GPUs    []GPU    `xml:"gpu"`
}

func GetSMILog

func GetSMILog() (*SMILog, error)

type Utilization

type Utilization struct {
	XMLName     xml.Name `xml:"utilization"`
	GPUUtil     string   `xml:"gpu_util"`
	MemoryUtil  string   `xml:"memort_util"`
	EncoderUtil string   `xml:"encoder_util"`
	DecoderUtil string   `xml:"decoder_util"`
}

Jump to

Keyboard shortcuts

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