Documentation ¶
Index ¶
- func Active() bool
- func EngineClock(busNumber int) int
- func FanPercent(busNumber int) float64
- func MemoryClock(busNumber int) int
- func Name(busNumber int) string
- func Release()
- func Temperature(busNumber int) float64
- type Device
- func (gpu *Device) BusID() int
- func (gpu *Device) EngineClock() int
- func (gpu *Device) Error(cerror C.nvmlReturn_t) error
- func (gpu *Device) FanPercent() float64
- func (gpu *Device) Index() (uint, error)
- func (gpu *Device) InforomImageVersion() (string, error)
- func (gpu *Device) MemoryClock() int
- func (gpu *Device) Name() (string, error)
- func (gpu *Device) Temperature() float64
- func (gpu *Device) UUID() (string, error)
- func (gpu *Device) VbiosVersion() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
Device structure
func (*Device) EngineClock ¶
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 ¶
FanPercent returns the current fan speed of the device, on devices that have fans.
func (*Device) InforomImageVersion ¶
InforomImageVersion returns the global inforom image version
func (*Device) MemoryClock ¶
MemoryClock returns the current engine clock
func (*Device) Temperature ¶
Temperature returns the current temperature of the card in degrees Celsius
func (*Device) VbiosVersion ¶
VbiosVersion returns the VBIOS version of the device
Click to show internal directories.
Click to hide internal directories.