ml-energy / zeus

Deep Learning Energy Measurement and Optimization
https://ml.energy/zeus
Apache License 2.0
180 stars 24 forks source link

Add warning for too short window in `ZeusMonitor` #32

Open jaywonchung opened 7 months ago

jaywonchung commented 7 months ago

When the energy measurement window for ZeusMonitor is too short (less than the update interval of the NVML energy counter), energy will be measured as 0. That's why we have the option to approximate energy consumption with power consumption, but the user may not notice that. So, it would be nice for the Measurement object or ZeusMonitor to raise a warnings.warn to tell the user that they may want to turn on that option when any energy measurement is 0.