nvgputypes

package
v0.0.0-...-73e59ce Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GpuInfo

type GpuInfo struct {
	ID       string         `json:"UUID"`
	Model    string         `json:"Model"`
	Path     string         `json:"Path"`
	Memory   MemoryInfo     `json:"Memory"`
	PCI      PciInfo        `json:"PCI"`
	Topology []TopologyInfo `json:"Topology"`
	Found    bool           `json:"-"`
	Index    int            `json:"-"`
	InUse    bool           `json:"-"`
	TopoDone bool           `json:"-"`
	Name     string         `json:"-"`
}

type GpusInfo

type GpusInfo struct {
	Version VersionInfo `json:"Version"`
	Gpus    []GpuInfo   `json:"Devices"`
}

func GetDevices

func GetDevices() (*GpusInfo, error)

type MemoryInfo

type MemoryInfo struct {
	Global int64 `json:"Global"`
}

type PciInfo

type PciInfo struct {
	BusID     string `json:"BusID"`
	Bandwidth int64  `json:"Bandwidth"`
}

type TopologyInfo

type TopologyInfo struct {
	BusID string `json:"BusID"`
	Link  int32  `json:"Link"`
}

type VersionInfo

type VersionInfo struct {
	Driver string `json:"Driver"`
	CUDA   string `json:"CUDA"`
}

Jump to

Keyboard shortcuts

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