Ubuntu 20.04 nvtop 编译安装
生活随笔
收集整理的這篇文章主要介紹了
Ubuntu 20.04 nvtop 编译安装
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
Ubuntu 20.04 nvtop 編譯安裝
- nvidia-smi
- 安裝nvtop
- 編譯安裝nvtop
nvidia-smi
# nvidia-smi +-----------------------------------------------------------------------------+ | NVIDIA-SMI 460.56 Driver Version: 460.56 CUDA Version: 11.2 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |===============================+======================+======================| | 0 GeForce RTX 3090 Off | 00000000:45:00.0 Off | N/A | | 30% 24C P8 5W / 350W | 2MiB / 24268MiB | 0% Default | | | | N/A | +-------------------------------+----------------------+----------------------++-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| | No running processes found | +-----------------------------------------------------------------------------+安裝nvtop
# apt install -y nvtop Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies:linux-image-generic : Depends: linux-image-5.4.0-72-generic but it is not going to be installedlinux-modules-extra-5.4.0-72-generic : Depends: linux-image-5.4.0-72-generic but it is not going to be installed orlinux-image-unsigned-5.4.0-72-generic but it is not going to be installednvtop : Depends: libnvidia-compute-418 but it is not going to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).編譯安裝nvtop
apt install cmake libncurses5-dev libncursesw5-dev git -y git clone https://github.com/Syllo/nvtop.git mkdir -p nvtop/build && cd nvtop/build cmake .. make install # sudo make install Scanning dependencies of target nvtop [ 12%] Building C object src/CMakeFiles/nvtop.dir/nvtop.c.o [ 25%] Building C object src/CMakeFiles/nvtop.dir/interface.c.o [ 37%] Building C object src/CMakeFiles/nvtop.dir/interface_layout_selection.c.o [ 50%] Building C object src/CMakeFiles/nvtop.dir/get_process_info_linux.c.o [ 62%] Building C object src/CMakeFiles/nvtop.dir/extract_gpuinfo.c.o [ 75%] Building C object src/CMakeFiles/nvtop.dir/time.c.o [ 87%] Building C object src/CMakeFiles/nvtop.dir/plot.c.o [100%] Linking C executable nvtop [100%] Built target nvtop Install the project... -- Install configuration: "Release" -- Installing: /usr/local/share/man/man1/nvtop.1 -- Installing: /usr/local/bin/nvtop -- Set runtime path of "/usr/local/bin/nvtop" to "/usr/local/lib"參考:
總結(jié)
以上是生活随笔為你收集整理的Ubuntu 20.04 nvtop 编译安装的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 微软游戏开发工具XNA 2.0[转自驱动
- 下一篇: 最近想读的书想做的事