green_ai_bench.power_tracker
source module green_ai_bench.power_tracker
Classes
Functions
-
process_zeus_data — Process Zeus measurement data.
-
process_pyjoules_data — Process PyJoules measurement data.
source class PowerTracker(power_tracker_library='codecarbon', save_to_api=False, output_dir='data/raw', output_file='power_emissions.csv', tracking_mode='machine')
source method PowerTracker.init_tracker()
Raises
-
ValueError
source method PowerTracker.init_codecarbon()
source method PowerTracker.init_pyjoules()
source method PowerTracker.init_zeus()
source method PowerTracker.start()
Raises
-
ValueError
source method PowerTracker.stop()
Raises
-
ValueError
source process_zeus_data(zeus_data)
Process Zeus measurement data.
Components
- energy: Total energy consumed (J)
- time: Total time duration (s)
source process_pyjoules_data(pyjoules_data)
Process PyJoules measurement data.
Components
- package_0: Complete CPU package (includes everything)
- core_0: CPU cores only
- uncore_0: Uncore components (cache, memory controller)
- nvidia_gpu_0: NVIDIA GPU (if present)
source ampere_to_kWh(ampere, duration=1, volts=5.6, verbose=False)