zoukankan      html  css  js  c++  java
  • 【环境搭建与软件安装】nvidia驱动安装事宜

    https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html

    https://docs.nvidia.com/cuda/archive/9.2/cuda-installation-guide-linux/index.html

    Table 1. CUDA Toolkit and Compatible Driver Versions
    CUDA ToolkitLinux x86_64 Driver VersionWindows x86_64 Driver Version
    CUDA 10.1.105 >= 418.39 >= 418.96
    CUDA 10.0.130 >= 410.48 >= 411.31
    CUDA 9.2 (9.2.148 Update 1) >= 396.37 >= 398.26
    CUDA 9.2 (9.2.88) >= 396.26 >= 397.44
    CUDA 9.1 (9.1.85) >= 390.46 >= 391.29
    CUDA 9.0 (9.0.76) >= 384.81 >= 385.54
    CUDA 8.0 (8.0.61 GA2) >= 375.26 >= 376.51
    CUDA 8.0 (8.0.44) >= 367.48 >= 369.30
    CUDA 7.5 (7.5.16) >= 352.31 >= 353.66
    CUDA 7.0 (7.0.28) >= 346.46 >= 347.62
    ~$ nvidia-smi
    NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

    查看驱动信息

    ~$ dpkg -l | grep nvidia 
    ii  nvidia-modprobe     384.103-0ubuntu1     amd64     Load the NVIDIA kernel driver and create device files

    看到左上角直接是cuda9.2,点击1.7GB的下载,下载的文件名字是cuda_9.2.88_396.26_linux.run,其中396.26是指你的驱动版本必须要比这个低,但也不能太低。安装其他版本也一样。

    problem:

    /var/log/nvidia-installer.log

    nvidia-installer log file '/var/log/nvidia-installer.log'
    creation time: Wed Mar 13 16:39:16 2019
    installer version: 396.18
    
    PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
    
    nvidia-installer command line:
        ./nvidia-installer
        --no-x-check
        --no-nouveau-check
        --no-opengl-files
    
    Unable to load: nvidia-installer ncurses v6 user interface
    
    Using: nvidia-installer ncurses user interface
    -> Detected 4 CPUs online; setting concurrency level to 4.
    -> Installing NVIDIA driver version 396.18.
    -> Running distribution scripts
       executing: '/usr/lib/nvidia/pre-install'...
    -> done.
    -> The distribution-provided pre-install script failed!  Are you sure you want to continue? (Answer: Abort installation)
    ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' for details.  You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.

     answer

    I wouldn't disregard it. Ubuntu's driver packages don't interact well with the .run installer. I'd recommend either finding an Ubuntu package with the driver version you need, or uninstalling all of the Ubuntu NVIDIA driver packages before installing the .run package. 

    试试使用deb安装8.0版本;

    https://developer.nvidia.com/cuda-80-ga2-download-archive;

    Installation Instructions:
    
        `sudo dpkg -i cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb`
        `sudo apt-get update`
        `sudo apt-get install cuda`

     最后尝试了网上几乎所有方法,还是没有成功,没办法只能重装系统,然后就可以查询到nvidia-smi的结果。

    可能最开始装系统的时候有问题吧。

    参考

    1. https://blog.csdn.net/jiangyanting2011/article/details/78873113;

    2. https://blog.csdn.net/huanghenghua/article/details/83309134;

    3. http://www.cnblogs.com/djiankuo/p/7722063.html;

    4. https://blog.csdn.net/u014561933/article/details/79958017;

    5. https://devtalk.nvidia.com/default/topic/948395/cuda-setup-and-installation/device-node-verification-issues/;

    6. https://blog.csdn.net/EliminatedAcmer/article/details/80528980;

    7. https://devtalk.nvidia.com/default/topic/970641/linux/the-distribution-provided-pre-install-script-failed-are-you-sure-you-want-to-continue-/;

    8. https://docs.nvidia.com/cuda/archive/;

    9. https://docs.nvidia.com/cuda/cuda-installation-guide-linux/#runfile;

    10. https://devtalk.nvidia.com/default/topic/1031213/linux/problem-installing-nvidia-390-42-driver-on-ubuntu-16-04/;

  • 相关阅读:
    Redis的四种模式,单机、主从、哨兵、集群
    .NET 跨域问题
    C# 利用正则表达式获取富文本框中所有图片路劲
    ActiveMQ入门实例(.NET)
    ActiveMQ的使用以及应用场景
    关于消息队列的使用方法(RocketMQ)
    Redis系列 需要注意事项
    .NET:在线悲观锁、在线乐观锁、离线悲观锁、离线乐观锁代码示例
    C# 简单介绍Redis使用
    API Get跟Post 的区别?
  • 原文地址:https://www.cnblogs.com/happyamyhope/p/10521073.html
Copyright © 2011-2022 走看看