common

package
v1.10.26-lts Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GPU

type GPU struct {
	Index           uint   `json:"index"`
	ProductName     string `json:"productName"`
	PersistenceMode string `json:"persistenceMode"`
	BusID           string `json:"busID"`
	DisplayActive   string `json:"displayActive"`
	ECC             string `json:"ecc"`
	FanSpeed        string `json:"fanSpeed"`

	Temperature      string    `json:"temperature"`
	PerformanceState string    `json:"performanceState"`
	PowerDraw        string    `json:"powerDraw"`
	MaxPowerLimit    string    `json:"maxPowerLimit"`
	MemUsed          string    `json:"memUsed"`
	MemTotal         string    `json:"memTotal"`
	GPUUtil          string    `json:"gpuUtil"`
	ComputeMode      string    `json:"computeMode"`
	MigMode          string    `json:"migMode"`
	Processes        []Process `json:"processes"`
}

type GpuInfo

type GpuInfo struct {
	CudaVersion   string `json:"cudaVersion"`
	DriverVersion string `json:"driverVersion"`
	Type          string `json:"type"`

	GPUs []GPU `json:"gpu"`
}

type Process

type Process struct {
	Pid         string `json:"pid"`
	Type        string `json:"type"`
	ProcessName string `json:"processName"`
	UsedMemory  string `json:"usedMemory"`
}

Jump to

Keyboard shortcuts

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