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 ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.