nvml

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2017 License: GPL-3.0, BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const STRING_BUFFER_SIZE = 100

Variables

This section is empty.

Functions

func DeviceCount

func DeviceCount() (int, error)

func DeviceFanSpeed

func DeviceFanSpeed(dh DeviceHandle) (uint, error)

func DeviceName

func DeviceName(dh DeviceHandle) (string, error)

func DeviceTemperature

func DeviceTemperature(dh DeviceHandle) (uint, error)

func ErrorString

func ErrorString(r Result) string

func Init

func Init() error

func NewResult

func NewResult(r C.nvmlReturn_t) error

func Shutdown

func Shutdown() error

Types

type ClockType

type ClockType uint

type ComputeMode

type ComputeMode C.nvmlComputeMode_t

func DeviceComputeMode

func DeviceComputeMode(dh DeviceHandle) (ComputeMode, error)

type DeviceHandle

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

func DeviceGetHandleByIndex

func DeviceGetHandleByIndex(idx int) (DeviceHandle, error)

type DriverModel

type DriverModel uint

type ECCBitType

type ECCBitType uint

type ECCCounterType

type ECCCounterType uint

type Feature

type Feature uint

type InformObject

type InformObject uint

type MemoryInformation

type MemoryInformation struct {
	Used  uint64 `json:"used"`
	Free  uint64 `json:"free"`
	Total uint64 `json:"total"`
}

func DeviceMemoryInformation

func DeviceMemoryInformation(dh DeviceHandle) (MemoryInformation, error)

type PCIInformation

type PCIInformation struct {
	BusId       string `json:"bus_id"`
	Domain      uint   `json:"domain"`
	Bus         uint   `json:"bus"`
	Device      uint   `json:"device"`
	DeviceId    uint   `json:"device_id"`
	SubSystemId uint   `json:"subsystem_id"`
}

func DevicePCIInformation

func DevicePCIInformation(dh DeviceHandle) (PCIInformation, error)

type PState

type PState C.nvmlPstates_t

func DevicePerformanceState

func DevicePerformanceState(dh DeviceHandle) (PState, error)

type Result

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

func (Result) Error

func (r Result) Error() string

func (Result) String

func (r Result) String() string

func (Result) SuccessQ

func (r Result) SuccessQ() bool

Jump to

Keyboard shortcuts

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