nvml

package
v0.0.0-...-9b2c719 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Active

func Active() bool

Active nvml lib

func EngineClock

func EngineClock(busNumber int) int

EngineClock for specific device

func FanPercent

func FanPercent(busNumber int) float64

FanPercent for specific device

func MemoryClock

func MemoryClock(busNumber int) int

MemoryClock for specific device

func Name

func Name(busNumber int) string

Name for specific device

func Release

func Release()

Release nvml

func Temperature

func Temperature(busNumber int) float64

Temperature for specific device

Types

type Device

type Device struct {
	// contains filtered or unexported fields
}

Device structure

func (*Device) BusID

func (gpu *Device) BusID() int

BusID for device

func (*Device) EngineClock

func (gpu *Device) EngineClock() int

EngineClock returns the current engine clock

func (*Device) Error

func (gpu *Device) Error(cerror C.nvmlReturn_t) error

Return a proper golang error of representation of the nvmlReturn_t error

func (*Device) FanPercent

func (gpu *Device) FanPercent() float64

FanPercent returns the current fan speed of the device, on devices that have fans.

func (*Device) Index

func (gpu *Device) Index() (uint, error)

Index by device

func (*Device) InforomImageVersion

func (gpu *Device) InforomImageVersion() (string, error)

InforomImageVersion returns the global inforom image version

func (*Device) MemoryClock

func (gpu *Device) MemoryClock() int

MemoryClock returns the current engine clock

func (*Device) Name

func (gpu *Device) Name() (string, error)

Name Return the product name of the device, e.g. "Tesla K40m"

func (*Device) Temperature

func (gpu *Device) Temperature() float64

Temperature returns the current temperature of the card in degrees Celsius

func (*Device) UUID

func (gpu *Device) UUID() (string, error)

UUID Return the UUID of the device

func (*Device) VbiosVersion

func (gpu *Device) VbiosVersion() (string, error)

VbiosVersion returns the VBIOS version of the device

Jump to

Keyboard shortcuts

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