下载链接:https://github.com/Syllo/nvtop/tree/3.1.0
centos7.9 系统中编译安装:
1、安装依赖:
yum install -y ncurses-devel libudev-devel systemd-devel libdrm-devel
2、安装cmake,cmake≥3.18
#download cmake
wget https://github.com/Kitware/CMake/releases/download/v3.29.7/cmake-3.29.7.tar.gz
#install cmake
tar xf cmake-3.29.7.tar.gz
cd cmake-3.29.7
./configure --prefix=/home/apps/cmake-3.29.7
gmake
make install
#add env PATH
export PATH=/home/apps/cmake-3.29.7/bin:$PATH
3、安装nvtop
wget https://codeload.github.com/Syllo/nvtop/zip/refs/tags/3.1.0
mv 3.1.0 nvtop-3.1.0.zip
unzip nvtop-3.1.0.zip
cd nvtop-3.1.0
mkdir build
cd build
cmake .. -DNVIDIA_SUPPORT=ON -DAMDGPU_SUPPORT=ON -DINTEL_SUPPORT=ON
make
cp src/nvtop /usr/bin