zoukankan      html  css  js  c++  java
  • nvidia-smi command not found Ubuntu 16.04

    issue:     nvidia-smi command not found Ubuntu 16.04

    https://askubuntu.com/questions/902636/nvidia-smi-command-not-found-ubuntu-16-04

    reason:  The solution that worked for me was to disable secure boot when rebooting after installing the NVIDIA drivers.

    原文地址:https://blog.csdn.net/stories_untold/article/details/78521925,转载主要方便随时查阅,如有版权要求,请及时联系。

    Right way to set nvidia driver:

    . 删除之前安装的nvidia驱动,运行 :

    1. sudo apt-get purge nvidia-*  


    2. 添加第三方驱动源,运行

    1. sudo add-apt-repository ppa:graphics-drivers/ppa  


    3.更新软件源:

    1. sudo apt-get update  


    4.安装:

    1. sudo apt-get install nvidia-375  
    2. sudo apt-get update   
    3. sudo apt-get upgrade  


    可能还会报以下的错误:

    NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

    这个时候,可以重启一下,本人也是重启后所有正常的,具体原因不知。

    成功输出为:

    1. whsyxt@whsyxt:~$ nvidia-smi  
    2. Thu Oct 19 17:40:57 2017         
    3. +-----------------------------------------------------------------------------+  
    4. | NVIDIA-SMI 375.82                 Driver Version: 375.82                    |  
    5. |-------------------------------+----------------------+----------------------+  
    6. | GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |  
    7. | Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |  
    8. |===============================+======================+======================|  
    9. |   0  GeForce GTX 1070    Off  | 0000:01:00.0      On |                  N/A |  
    10. | 47%   35C    P8    11W / 160W |    277MiB /  8110MiB |      0%      Default |  
    11. +-------------------------------+----------------------+----------------------+  
    12.                                                                                  
    13. +-----------------------------------------------------------------------------+  
    14. | Processes:                                                       GPU Memory |  
    15. |  GPU       PID  Type  Process name                               Usage      |  
    16. |=============================================================================|  
    17. |    0       950    G   /usr/lib/xorg/Xorg                             149MiB |  
    18. |    0      1771    G   compiz                                         125MiB |  
    19. +-----------------------------------------------------------------------------+  



    参考文献


    [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.

  • 相关阅读:
    VS2010/MFC编程入门之三十八(状态栏的使用详解)
    VS2010/MFC编程入门之三十七(工具栏:工具栏的创建、停靠与使用)
    VS2010/MFC编程入门之三十六(工具栏:工具栏资源及CToolBar类)
    VS2010/MFC编程入门之三十五(菜单:菜单及CMenu类的使用)
    VS2010/MFC编程入门之三十四(菜单:VS2010菜单资源详解)
    VS2010/MFC编程入门之三十三(常用控件:标签控件Tab Control 下)
    走进JDK(十二)------TreeMap
    深入理解java虚拟机(二)-----垃圾回收
    深入理解java虚拟机(一)-----java内存区域以及内存溢出异常
    走进JDK(十一)------LinkedHashMap
  • 原文地址:https://www.cnblogs.com/qiuheng/p/9143302.html
Copyright © 2011-2022 走看看