proc

package
v1.14.5 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GPUInfoModel       = GPUInfoField("Model")
	GPUInfoGPUUUID     = GPUInfoField("GPU UUID")
	GPUInfoBusLocation = GPUInfoField("Bus Location")
	GPUInfoDeviceMinor = GPUInfoField("Device Minor")
)

The following constants define the fields of interest from the GPU information file

Variables

This section is empty.

Functions

func GetInformationFilePaths

func GetInformationFilePaths(root string) ([]string, error)

GetInformationFilePaths returns the list of information files associated with NVIDIA GPUs.

Types

type GPUInfo

type GPUInfo map[GPUInfoField]string

GPUInfo stores the information for a GPU as determined from its associated information file

func ParseGPUInformationFile

func ParseGPUInformationFile(path string) (GPUInfo, error)

ParseGPUInformationFile parses the specified GPU information file and constructs a GPUInfo structure

type GPUInfoField

type GPUInfoField string

GPUInfoField represents the field name for information specified in a GPU's information file

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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