Go web service which return json data with info about GPU usage
- nvidia-smi
- rocm-smi
git clone https://github.com/ZanMax/gpu-stats.git
cd gpu-stats
go 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-reload
sudo systemctl start gpustats.service
enable your service to start on boot:
sudo systemctl enable gpustats.service
- Nvidia ( nvidia-smi )
- AMD ( rocm-smi )