Skip to content

Commit

Permalink
Fix ZeusMonitor integration example
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywonchung committed Nov 10, 2023
1 parent 4f207de commit bcfa4d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zeus/monitor/energy.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ class ZeusMonitor:
result = monitor.end_window("entire_training")
# Print the measurement result.
time_consumed, energy_consumed = prof_result.time, prof_result.energy
print(f"Training took {time_consumed} seconds.")
for gpu_idx, gpu_energy in zip(gpu_indices, energy_consumed):
print(f"Training took {result.time} seconds.")
print(f"Training consumed {result.total_energy} Joules.")
for gpu_idx, gpu_energy in result.energy.items():
print(f"GPU {gpu_idx} consumed {gpu_energy} Joules.")
```
Expand Down

0 comments on commit bcfa4d2

Please sign in to comment.