Skip to content

Go web service which return json data with info about GPU usage

License

Notifications You must be signed in to change notification settings

ZanMax/gpu-stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPU stats

Go web service which return json data with info about GPU usage

GPU stats

Necessary software

For Nvidia GPUs:

  • nvidia-smi

For AMD GPUs:

  • rocm-smi

Installation

git clone https://github.com/ZanMax/gpu-stats.git

Build

cd gpu-stats
go build .

Usage

Server

./gpu-stats

Web client

  • gpu-stats.html

Run as a service

  • 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

Support

  • Nvidia ( nvidia-smi )
  • AMD ( rocm-smi )

About

Go web service which return json data with info about GPU usage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published