Linux安装Nvidia 驱动

Introduction

记录一下从linux的源里安装驱动的命令。

不需要再自己下载run包,关X等。

命令

sudo apt install nvidia-cuda-dev nvidia-cuda-toolkit

一般会自动安装最新的二进制driver比如nvidia-384,如果没有自动安装(debian可能会出现这个问题),自己手动安装ndivia-driver or 最新的nvidia-XXX即可。

重启

需要重启。

运行nvidia-smi查看驱动的安装情况:

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 384.90                 Driver Version: 384.90                    |
|-------------------------------+----------------------+----------------------+
| 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 108...  Off  | 00000000:01:00.0  On |                  N/A |
| 22%   42C    P8    10W / 250W |     63MiB / 11164MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1127      G   /usr/lib/xorg/Xorg                            60MiB |
+-----------------------------------------------------------------------------+

运行dpkg -l |grep nvidia*查看包的安装情况:

ii  nvidia-384                                 384.90-0ubuntu0.16.04.2                      amd64        NVIDIA binary driver - version 384.90
ii  nvidia-384-dev                             384.90-0ubuntu0.16.04.2                      amd64        NVIDIA binary Xorg driver development files
ii  nvidia-cuda-dev                            7.5.18-0ubuntu1                              amd64        NVIDIA CUDA development files
ii  nvidia-cuda-doc                            7.5.18-0ubuntu1                              all          NVIDIA CUDA and OpenCL documentation
ii  nvidia-cuda-gdb                            7.5.18-0ubuntu1                              amd64        NVIDIA CUDA Debugger (GDB)
ii  nvidia-cuda-toolkit                        7.5.18-0ubuntu1                              amd64        NVIDIA CUDA development toolkit
ii  nvidia-opencl-dev:amd64                    7.5.18-0ubuntu1                              amd64        NVIDIA OpenCL development files
ii  nvidia-opencl-icd-384                      384.90-0ubuntu0.16.04.2                      amd64        NVIDIA OpenCL ICD
ii  nvidia-prime                               0.8.2                                        amd64        Tools to enable NVIDIA's Prime
ii  nvidia-profiler                            7.5.18-0ubuntu1                              amd64        NVIDIA Profiler for CUDA and OpenCL
ii  nvidia-settings                            361.42-0ubuntu1                              amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-visual-profiler                     7.5.18-0ubuntu1                              amd64        NVIDIA Visual Profiler for CUDA and OpenCL

文章版权归 FindHao 所有丨本站默认采用CC-BY-NC-SA 4.0协议进行授权|
转载必须包含本声明,并以超链接形式注明作者 FindHao 和本文原始地址:
https://www.findhao.net/easycoding/2186

你可能喜欢:(相似内容推荐和广告都使用了谷歌的推荐系统,需要对本站取消广告屏蔽才能显示。感谢点击↓广告支持博主~)

Find

新浪微博(FindSpace博客)QQ群:不安分的Coder(375670127) 不安分的Coder

发表评论

电子邮件地址不会被公开。 必填项已用*标注

*