深度学习入门教程-ubuntu18.04安装NVIDIA Driver
深度学习入门教程-安装NVIDIA Driver
说明:
- 介绍如何安装NViDIA显卡驱动
- 本文测试显卡是GeForce GTX 1080Ti
确认驱动版本:
- 访问网站https://www.nvidia.com/Download/index.aspx?lang=en-us
- 根据不同显卡确认驱动版本,目前最新版本是430
PPA源安装驱动:
- 安装PPA
$ sudo add-apt-repository ppa:graphics-drivers/ppa
$ sudo apt-get update
- 检测适合的版本
ubuntu-drivers devices
- 显示如下:
ubuntu@AiDLHost:~$ ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001B06sv00001458sd0000374Cbc03sc00i00
vendor : NVIDIA Corporation
model : GP102 [GeForce GTX 1080 Ti]
driver : nvidia-driver-410 - third-party free
driver : nvidia-driver-396 - third-party free
driver : nvidia-driver-418 - third-party free
driver : nvidia-driver-415 - third-party free
driver : nvidia-driver-390 - distro non-free
driver : nvidia-driver-430 - third-party free recommended
driver : xserver-xorg-video-nouveau - distro free builtin
- 查看适合的驱动版本
- 安装驱动
sudo apt install nvidia-driver-418
- 重启电脑
- 检查
$ nvidia-smi
- 结果如下:
ubuntu@AiDLHost:~$ nvidia-smi
Fri May 17 20:20:07 2019
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 418.56 Driver Version: 418.56 CUDA Version: 10.1 |
|-------------------------------+----------------------+----------------------+
| 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 |
| 0% 38C P8 11W / 250W | 176MiB / 11175MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 945 G /usr/lib/xorg/Xorg 84MiB |
| 0 1083 G /usr/bin/gnome-shell 89MiB |
+-----------------------------------------------------------------------------+
获取最新文章: 扫一扫右上角的二维码加入“创客智造”公众号