Skip to content

Commit

Permalink
[Fix] Assign EmptyCPUs on permission error (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
wbjin authored Nov 27, 2024
1 parent 0539e7e commit 2c7c5a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zeus/monitor/energy.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ def __init__(
"for more information or disable CPU measurement by passing cpu_indices=[] to "
"ZeusMonitor"
) from err
self.cpus = EmptyCPUs()

# Resolve GPU indices. If the user did not specify `gpu_indices`, use all available GPUs.
self.gpu_indices = (
Expand Down

0 comments on commit 2c7c5a7

Please sign in to comment.