【问题标题】:nvidia-smi returns error on ubuntu 16.04 kernal 4.10.xnvidia-smi 在 ubuntu 16.04 内核 4.10.x 上返回错误
【发布时间】:2018-03-12 00:22:38
【问题描述】:

尝试在内核 4.10 的 ubuntu 16.04 上安装 cuda 驱动程序 8.0 和工具包 375,但一直收到此错误。 nvidia驱动和cuda工具包应该如何安装?

> 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

【问题讨论】:

  • 你没有在这里问过问题。另外,这对Stack Overflow 来说实际上是什么主题?

标签: cuda nvidia


【解决方案1】:

原来工具包 375 不能很好地与 ubuntu 内核 4.10 一起使用。 (见here)。所以要走的路是从apt-get安装驱动,从nvidia网站的运行文件安装工具包。

# 1. install nvidia driver from package manager
$ sudo apt install nvidia-375

# 2. install cuda toolkit from nvidia website
# IMPORTANT: no need to install driver here, since it's already installed in the previous step.
$ wget https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda_8.0.61_375.26_linux-run
$ chmod +x cuda_8.0.61_375.26_linux-run
$ mkdir installers
$ sudo ./cuda_8.0.61_375.26_linux-run -extract=`pwd`/installers
$ cd installers
$ sudo ./NVIDIA-Linux-x86_64-375.26.run

有用链接:https://www.pyimagesearch.com/2017/09/27/setting-up-ubuntu-16-04-cuda-gpu-for-deep-learning-with-python/

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-06-25
    • 2022-07-04
    • 2016-10-14
    • 2020-11-29
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多