Go web service which return json data with info about GPU usage
- nvidia-smi
- rocm-smi
git clone https://github.com/ZanMax/gpu-stats.gitcd gpu-statsgo build ../gpu-stats- gpu-stats.html
- edit gpustats.service
- copy gpustats.service to /etc/systemd/system/
Replace /path/to/your/binary with the full path to your compiled binary.
Set User and Group to appropriate values.
sudo systemctl daemon-reloadsudo systemctl start gpustats.serviceenable your service to start on boot:
sudo systemctl enable gpustats.service- Nvidia ( nvidia-smi )
- AMD ( rocm-smi )
