Documentation ¶
Index ¶
- Constants
- Variables
- func DeleteEventSet(es EventSet)
- func GetCudaDriverVersion() (*uint, *uint, error)
- func GetDeviceCount() (uint, error)
- func GetDriverVersion() (string, error)
- func Init() error
- func RegisterEvent(es EventSet, event int) error
- func RegisterEventForDevice(es EventSet, event int, uuid string) error
- func Shutdown() error
- type Accounting
- type ClockInfo
- type CudaComputeCapabilityInfo
- type Device
- func (d *Device) GetAllRunningProcesses() ([]ProcessInfo, error)
- func (d *Device) GetComputeRunningProcesses() ([]uint, []uint64, error)
- func (d *Device) GetDeviceMode() (mode *DeviceMode, err error)
- func (d *Device) GetGraphicsRunningProcesses() ([]uint, []uint64, error)
- func (d *Device) Status() (status *DeviceStatus, err error)
- type DeviceMemory
- type DeviceMode
- type DeviceStatus
- type Display
- type ECCErrorsInfo
- type Event
- type EventSet
- type MemoryInfo
- type ModeState
- type P2PLink
- type P2PLinkType
- type PCIInfo
- type PCIStatusInfo
- type PCIThroughputInfo
- type PerfState
- type ProcessInfo
- type ProcessType
- type ThrottleReason
- type UtilizationInfo
Constants ¶
View Source
const ( PerfStateMax = 0 PerfStateMin = 15 PerfStateUnknown = 32 )
View Source
const (
XidCriticalError = C.nvmlEventTypeXidCriticalError
)
Variables ¶
Functions ¶
func DeleteEventSet ¶
func DeleteEventSet(es EventSet)
func GetCudaDriverVersion ¶
func GetDeviceCount ¶
func GetDriverVersion ¶
func RegisterEvent ¶
func RegisterEventForDevice ¶
Types ¶
type Accounting ¶
type Device ¶
type Device struct { UUID string Path string Model *string Power *uint Memory *uint64 CPUAffinity *uint PCI PCIInfo Clocks ClockInfo Topology []P2PLink CudaComputeCapability CudaComputeCapabilityInfo // contains filtered or unexported fields }
func NewDeviceLite ¶
func (*Device) GetAllRunningProcesses ¶
func (d *Device) GetAllRunningProcesses() ([]ProcessInfo, error)
func (*Device) GetComputeRunningProcesses ¶
func (*Device) GetDeviceMode ¶
func (d *Device) GetDeviceMode() (mode *DeviceMode, err error)
func (*Device) GetGraphicsRunningProcesses ¶
func (*Device) Status ¶
func (d *Device) Status() (status *DeviceStatus, err error)
type DeviceMemory ¶
type DeviceMode ¶
type DeviceMode struct { DisplayInfo Display Persistence ModeState AccountingInfo Accounting }
type DeviceStatus ¶
type DeviceStatus struct { Power *uint Temperature *uint Utilization UtilizationInfo Memory MemoryInfo Clocks ClockInfo PCI PCIStatusInfo Processes []ProcessInfo Throttle ThrottleReason Performance PerfState }
type ECCErrorsInfo ¶
type EventSet ¶
type EventSet struct {
// contains filtered or unexported fields
}
func NewEventSet ¶
func NewEventSet() EventSet
type MemoryInfo ¶
type MemoryInfo struct { Global DeviceMemory 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 SingleNVLINKLink TwoNVLINKLinks ThreeNVLINKLinks FourNVLINKLinks FiveNVLINKLinks SixNVLINKLinks )
func GetNVLink ¶
func GetNVLink(dev1, dev2 *Device) (link P2PLinkType, err error)
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 ¶
type ProcessInfo struct { PID uint Name string MemoryUsed uint64 Type ProcessType }
type ProcessType ¶
type ProcessType uint
const ( Compute ProcessType = iota Graphics ComputeAndGraphics )
func (ProcessType) String ¶
func (t ProcessType) String() string
type ThrottleReason ¶
type ThrottleReason uint
const ( ThrottleReasonGpuIdle ThrottleReason = iota ThrottleReasonApplicationsClocksSetting ThrottleReasonSwPowerCap ThrottleReasonHwSlowdown ThrottleReasonSyncBoost ThrottleReasonSwThermalSlowdown ThrottleReasonHwThermalSlowdown ThrottleReasonHwPowerBrakeSlowdown ThrottleReasonDisplayClockSetting ThrottleReasonNone ThrottleReasonUnknown )
func (ThrottleReason) String ¶
func (r ThrottleReason) String() string
Click to show internal directories.
Click to hide internal directories.