nvtop安装步骤——Ubuntu下实时查看NVIDIA显卡状态

Ubuntu19.04下安装nvtop十分简单,之前的版本稍微复杂点

1.Ubuntu19.04下nvtop的安装

sudo apt install nvtop

2.Ubuntu18.04及之前版本nvtop的安装

安装之前确保你已经安装了NVIDIA驱动

  • 安装CMake, ncurses and git
sudo apt install cmake libncurses5-dev libncursesw5-dev git
  • 安装nvtop(指令一步步执行下来即可)
	git clone https://github.com/Syllo/nvtop.git
	mkdir -p nvtop/build && cd nvtop/build
	cmake ..
#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
	make install # You may need sufficient permission for that (root)

启动nvtop:在terminal直接输入nvtop即可

参考链接:nvtop官方github链接

参考链接:NVTOP Build

你可能感兴趣的:(小白进阶过程)