Documentation ¶
Index ¶
- Variables
- func GetDeviceCount() (uint, error)
- func GetDriverVersion() (string, error)
- func Init() error
- func Shutdown() error
- type ClockInfo
- type Device
- type DeviceStatus
- type ECCErrorsInfo
- type MemoryInfo
- type P2PLink
- type P2PLinkType
- type PCIInfo
- type PCIStatusInfo
- type PCIThroughputInfo
- type ProcessInfo
- type UtilizationInfo
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetDeviceCount ¶
func GetDriverVersion ¶
Types ¶
type Device ¶
type Device struct { UUID string Path string Model *string Power *uint CPUAffinity *uint PCI PCIInfo Clocks ClockInfo Topology []P2PLink // contains filtered or unexported fields }
func NewDeviceLite ¶
func (*Device) Status ¶
func (d *Device) Status() (status *DeviceStatus, err error)
type DeviceStatus ¶
type DeviceStatus struct { Power *uint Temperature *uint Utilization UtilizationInfo Memory MemoryInfo Clocks ClockInfo PCI PCIStatusInfo Processes []ProcessInfo }
type ECCErrorsInfo ¶
type MemoryInfo ¶
type MemoryInfo struct { GlobalUsed *uint64 ECCErrors ECCErrorsInfo }
type P2PLink ¶
type P2PLink struct { BusID string Link P2PLinkType }
type P2PLinkType ¶
type P2PLinkType uint
const ( P2PLinkUnknown P2PLinkType = iota P2PLinkCrossCPU P2PLinkSameCPU P2PLinkHostBridge P2PLinkMultiSwitch P2PLinkSingleSwitch P2PLinkSameBoard )
func GetP2PLink ¶
func GetP2PLink(dev1, dev2 *Device) (link P2PLinkType, err error)
func (P2PLinkType) String ¶
func (t P2PLinkType) String() string
type PCIStatusInfo ¶
type PCIStatusInfo struct { BAR1Used *uint64 Throughput PCIThroughputInfo }
type PCIThroughputInfo ¶
type ProcessInfo ¶
Click to show internal directories.
Click to hide internal directories.