Documentation
¶
Overview ¶
Package agent handles the agent's SSH server and system stats collection.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GPUManager ¶
type GPUManager struct {
GpuDataMap map[string]*system.GPUData
// contains filtered or unexported fields
}
GPUManager manages data collection for GPUs (either Nvidia or AMD)
func NewGPUManager ¶
func NewGPUManager() (*GPUManager, error)
NewGPUManager creates and initializes a new GPUManager
func (*GPUManager) GetCurrentData ¶
func (gm *GPUManager) GetCurrentData() map[string]system.GPUData
sums and resets the current GPU utilization data since the last update
type RocmSmiJson ¶
type RocmSmiJson struct {
ID string `json:"GUID"`
Name string `json:"Card series"`
Temperature string `json:"Temperature (Sensor edge) (C)"`
MemoryUsed string `json:"VRAM Total Used Memory (B)"`
MemoryTotal string `json:"VRAM Total Memory (B)"`
Usage string `json:"GPU use (%)"`
PowerPackage string `json:"Average Graphics Package Power (W)"`
PowerSocket string `json:"Current Socket Graphics Package Power (W)"`
}
RocmSmiJson represents the JSON structure of rocm-smi output
Click to show internal directories.
Click to hide internal directories.