nvtop安装

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
posted @ 2022-03-22 18:24  nanmi  阅读(480)  评论(0编辑  收藏  举报