Skip to content

energy_nvidia

diapason.telemetry.energy_nvidia

NVIDIA energy monitor — hardware counters (Volta+) with polling fallback.

NvidiaEnergyMonitor

Bases: EnergyMonitor

NVIDIA energy monitor using pynvml.

Primary mode (Volta+): Reads nvmlDeviceGetTotalEnergyConsumption() start/end hardware counters (millijoules). Delta / 1000 = joules.

Fallback mode (pre-Volta): Trapezoidal integration of nvmlDeviceGetPowerUsage() — same algorithm as legacy GpuMonitor.

A lightweight polling thread still runs in both modes for utilization, memory, and temperature metrics (no hw counter for those).