A basic command line tool to monitor GPU usage.
To install gpu-top, run the following command:
pip install --user git+https://github.com/hghcomphys/gpu-top.gitThis will install required dependencies and add gtop command to your user-specific PATH (~/.local/bin).
You can then run gtop directly.
To uninstall, use the following command:
pip uninstall gpu-topgtopDefault device index is 0, but this can be changed via --device-index or simply -d flag.
Text mode (no plot) can be enabled via --text-mode or -t flag:
gtop -tUsing --generate-config or -g flag will automatically generate a default configuration file at:
gtop -g
Generating default configuration '~/.gputoprc'.Once this file exists, you can edit it to customize how gtop behaves or displays system metrics.
For example, to switch from the default timeline plot to a bar plot, update dashboard_plot_bar to true.
After saving, gtop graphs will appear as bar plots instead of time-based line plots.
Note: If you remove ~/.gputoprc, gtop will automatically fall back to the default configuration.
This project is licensed under the MIT License - see the LICENSE file for details.
