nvidia

package
v0.0.0-...-0b3a1f1 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Init initializes the nvidia package.

func Shutdown

func Shutdown()

Shutdown shuts down the nvidia package.

Types

type Device

type Device struct {
	UUID           string
	Model          *string
	TotalMemory    *uint64
	UsedMemory     *uint64
	FreeMemory     *uint64
	GPUUtilization *uint
}

Device holds nvidia gpu inforation and metrics

func GetDevices

func GetDevices() ([]*Device, error)

GetDevices gets the nvidia devices

func (Device) String

func (d Device) String() string

String returns the String represenation for a Device

Jump to

Keyboard shortcuts

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