issue: nvidia-smi command not found Ubuntu 16.04html
https://askubuntu.com/questions/902636/nvidia-smi-command-not-found-ubuntu-16-04git
reason: The solution that worked for me was to disable secure boot when rebooting after installing the NVIDIA drivers.github
原文地址:https://blog.csdn.net/stories_untold/article/details/78521925,轉載主要方便隨時查閱,若有版權要求,請及時聯繫。ubuntu
Right way to set nvidia driver:spa
. 刪除以前安裝的nvidia驅動,運行 :.net
- sudo apt-get purge nvidia-*
2. 添加第三方驅動源,運行htm
- sudo add-apt-repository ppa:graphics-drivers/ppa
3.更新軟件源:blog
4.安裝:ip
- sudo apt-get install nvidia-375
- sudo apt-get update
- sudo apt-get upgrade
可能還會報如下的錯誤:get
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
這個時候,能夠重啓一下,本人也是重啓後全部正常的,具體緣由不知。
成功輸出爲:
- whsyxt@whsyxt:~$ nvidia-smi
- Thu Oct 19 17:40:57 2017
- +-----------------------------------------------------------------------------+
- | NVIDIA-SMI 375.82 Driver Version: 375.82 |
- |-------------------------------+----------------------+----------------------+
- | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
- | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
- |===============================+======================+======================|
- | 0 GeForce GTX 1070 Off | 0000:01:00.0 On | N/A |
- | 47% 35C P8 11W / 160W | 277MiB / 8110MiB | 0% Default |
- +-------------------------------+----------------------+----------------------+
-
- +-----------------------------------------------------------------------------+
- | Processes: GPU Memory |
- | GPU PID Type Process name Usage |
- |=============================================================================|
- | 0 950 G /usr/lib/xorg/Xorg 149MiB |
- | 0 1771 G compiz 125MiB |
- +-----------------------------------------------------------------------------+
參考文獻
[1].ubuntu怎麼安裝nvidia 375驅動.https://zhidao.baidu.com/question/1115001642352097179.html
[2].There is wrong about running the command nvidia-smi.https://github.com/jcjohnson/neural-style/issues/335
https://askubuntu.com/questions/927199/nvidia-smi-has-failed-because-it-couldnt-communicate-with-the-nvidia-driver-ma
[3].NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.