Skip to content

Commit

Permalink
Add powermetrics guide for apple silicon
Browse files Browse the repository at this point in the history
  • Loading branch information
PedramBakh committed Sep 13, 2024
1 parent e140d96 commit 5fb10e0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,12 @@ This ensures that for Slurm we only fetch GPU devices associated with the curren
If this fails we measure all available GPUs.

- NVML cannot find processes for containers spawned without `--pid=host`. This affects the `device_by_pid` parameter and means that it will never find any active processes for GPUs in affected containers.

## Running **carbontracker** on Apple Silicon

- **carbontracker** is compatible with Apple Silicon on MacOS using `powermetrics` to get power consumption data.
- `powermetrics` requires root access to run. This can be done by adding `your_username ALL=(ALL) NOPASSWD: /usr/bin/powermetrics` to `/etc/sudoers` (replace `your_username` with your actual username):
```
echo "your_username ALL=(ALL) NOPASSWD: /usr/bin/powermetrics" | sudo tee -a /etc/sudoers
```
- Alternatively, one can run **carbontracker** with root privileges.

0 comments on commit 5fb10e0

Please sign in to comment.