nvtop安装
Ubuntu>=19.04
sudo apt install nvtop
Ubuntu<=18.04
安装依赖
sudo apt install libncurses5-dev libncursesw5-dev
下载nvtop源码
git clone https://github.com/Syllo/nvtop.git
编译安装
mkdir build && cd build
cmake ..
note:如果报错
If it errors with "Could NOT find NVML (missing: NVML_INCLUDE_DIRS)" try the following command instead, otherwise skip to the build with make.
解决方案:
cmake .. -DNVML_RETRIEVE_HEADER_ONLINE=True
make
sudo make install