Skip to main content

Module gpu_stats

Module gpu_stats 

Source
Expand description

Per-device GPU VRAM, utilization, and temperature heartbeat logging.

On GPU builds (cuda or tensorrt feature), this module initialises an NVML handle at startup and emits one structured INFO log event per CUDA device on each heartbeat tick. On CPU builds the module compiles to a zero-cost stub so the rest of the codebase can call it unconditionally without any #[cfg] noise at the call site.

Modulesยง

inner ๐Ÿ”’