Nvtop stands for NVidia TOP, a (h)top like task monitor for NVIDIA GPUs. It can handle multiple GPUs and print information about them in a htop familiar way.
Because a picture is worth a thousand words:
NVTOP has a builtin setup utility that provides a way to specialize the interface to your needs.
F2 and select the options that are the best for you.
You can save the preferences set in the setup window by pressing
The preferences will be loaded the next time you run
NVTOP comes with a manpage!
For quick command line arguments help
nvtop -h nvtop --help
The NVML library does not support some of the queries for GPUs coming before the Kepler microarchitecture. Anything starting at GeForce 600, GeForce 800M and successor should work fine. For more information about supported GPUs please take a look at the NVML documentation.
Two libraries are required in order for NVTOP to display GPU information:
sudo apt install nvtop
sudo apt install cmake libncurses5-dev libncursesw5-dev git
sudo dnf install cmake ncurses-devel git
sudo zypper install cmake ncurses-devel git
sudo pacman -S nvtop
sudo layman -a guru && sudo emerge -av nvtop
NVIDIA drivers (same as above)
git clone https://github.com/Syllo/nvtop.git docker build --tag nvtop . docker run --interactive --tty --rm --runtime=nvidia --gpus all --pid=host nvtop
git clone https://github.com/Syllo/nvtop.git mkdir -p nvtop/build && cd nvtop/build cmake .. make # Install globally on the system sudo make install # Alternatively, install without privileges at a location of your choosing # make DESTDIR="/your/install/path" install
If you use conda as environment manager and encounter an error while building nvtop, try
conda deactivate before invoking
The build system supports multiple build type (e.g. -DCMAKE_BUILD_TYPE=RelWithDebInfo):
$TERM) by setting the field
puttyin the menu
Connection > Data > Terminal Details.
Nvtop is licensed under the GPLV3 license or any later version. You will find a copy of the license inside the COPYING file of the repository or at the gnu website <www.gnu.org/licenses/>.