Skip to main content

Module gpu_monitor

Module gpu_monitor 

Source
Expand description

Background GPU VRAM monitor.

Spawns a Tokio task that polls nvidia-smi every few seconds and stores the result in lock-free atomics so the TUI render loop can read it cheaply.

Structs§

GLOBAL_GPU_STATE
Global access to GPU vitals for tool investigation (Zero-Shot Trends).
GpuMetrics
GpuState
Shared GPU state — read by the TUI/Agent, written by the background poller.
HistoryPoint

Functions§

spawn_gpu_monitor
Spawn the background polling task. Returns the shared state handle.