Versions in this module Expand all Collapse all v1 v1.0.1 Mar 3, 2017 Changes in this version + var ErrCPUAffinity = errors.New("failed to retrieve CPU affinity") + var ErrUnsupportedGPU = errors.New("unsupported GPU device") + var ErrUnsupportedP2PLink = errors.New("unsupported P2P link type") + func GetDeviceCount() (uint, error) + func GetDriverVersion() (string, error) + func Init() error + func Shutdown() error + type ClockInfo struct + Cores *uint + Memory *uint + type Device struct + CPUAffinity *uint + Clocks ClockInfo + Model *string + PCI PCIInfo + Path string + Power *uint + Topology []P2PLink + UUID string + func NewDevice(idx uint) (device *Device, err error) + func NewDeviceLite(idx uint) (device *Device, err error) + func (d *Device) Status() (status *DeviceStatus, err error) + type DeviceStatus struct + Clocks ClockInfo + Memory MemoryInfo + PCI PCIStatusInfo + Power *uint + Processes []ProcessInfo + Temperature *uint + Utilization UtilizationInfo + type ECCErrorsInfo struct + Global *uint64 + L1Cache *uint64 + L2Cache *uint64 + type MemoryInfo struct + ECCErrors ECCErrorsInfo + GlobalUsed *uint64 + type P2PLink struct + BusID string + Link P2PLinkType + type P2PLinkType uint + const P2PLinkCrossCPU + const P2PLinkHostBridge + const P2PLinkMultiSwitch + const P2PLinkSameBoard + const P2PLinkSameCPU + const P2PLinkSingleSwitch + const P2PLinkUnknown + func GetP2PLink(dev1, dev2 *Device) (link P2PLinkType, err error) + func (t P2PLinkType) String() string + type PCIInfo struct + BAR1 *uint64 + Bandwidth *uint + BusID string + type PCIStatusInfo struct + BAR1Used *uint64 + Throughput PCIThroughputInfo + type PCIThroughputInfo struct + RX *uint + TX *uint + type ProcessInfo struct + MemoryUsed uint64 + Name string + PID uint + type UtilizationInfo struct + Decoder *uint + Encoder *uint + GPU *uint + Memory *uint