Documentation ¶
Index ¶
- Constants
- func DeviceCount() (int, error)
- func DeviceFanSpeed(dh DeviceHandle) (uint, error)
- func DeviceName(dh DeviceHandle) (string, error)
- func DeviceTemperature(dh DeviceHandle) (uint, error)
- func ErrorString(r Result) string
- func Init() error
- func NewResult(r C.nvmlReturn_t) error
- func Shutdown() error
- type ClockType
- type ComputeMode
- type DeviceHandle
- type DriverModel
- type ECCBitType
- type ECCCounterType
- type Feature
- type InformObject
- type MemoryInformation
- type PCIInformation
- type PState
- type Result
Constants ¶
View Source
const STRING_BUFFER_SIZE = 100
Variables ¶
This section is empty.
Functions ¶
func DeviceCount ¶
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 NewResult ¶
func NewResult(r C.nvmlReturn_t) error
Types ¶
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 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)
Click to show internal directories.
Click to hide internal directories.