본문 바로가기

Artificial Intelligence/Natural Language Processing

Ubuntu 16.04 Server 에서 NVIDIA Driver 설치

Ubuntu 16.04 Server 에서 NVIDIA Driver 설치



# cat /proc/driver/nvidia/version


cat: /proc/driver/nvidia/version: No such file or directory


 # lspci -k

01:00.1 Audio device: NVIDIA Corporation Device 10f0 (rev a1)

Subsystem: Gigabyte Technology Co., Ltd Device 377e

Kernel driver in use: snd_hda_intel

Kernel modules: snd_hda_intel




 

# apt-get update && apt-get install -y dialog language-pack-en


# export LANGUAGE=en_US

# export LANG=en_US.UTF-8

# export LC_ALL=en_US.UTF-8


# update-locale



그 다음 아래의 내용을 /etc/default/locale 추가

$ sudo vi /etc/default/locale


LANG="en_US.UTF-8"

LANGUAGE="en_US"

LC_ALL="en_US.UTF-8"


$ sudo add-apt-repository ppa:graphics-drivers/ppa

$ sudo apt update



우분투 16.04


$ sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub

$ sudo sh -c 'echo "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 /" >> /etc/apt/sources.list.d/cuda.list'

$ sudo sh -c 'echo "deb http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 /" >> etc/apt/sources.list.d/cuda.list'

$ sudo apt-get update





 

# apt-cache search nvidia

..

nvidia-304 - NVIDIA legacy binary driver - version 304.135

nvidia-304-updates - Transitional package for nvidia-304

nvidia-304-updates-dev - Transitional package for nvidia-304-dev

nvidia-340 - NVIDIA binary driver - version 340.104

nvidia-361 - Transitional package for nvidia-367

nvidia-361-dev - Transitional package for nvidia-367-dev

nvidia-367 - Transitional package for nvidia-375

nvidia-367-dev - Transitional package for nvidia-375-dev

nvidia-375 - Transitional package for nvidia-384

nvidia-375-dev - Transitional package for nvidia-384-dev

nvidia-384 - NVIDIA binary driver - version 384.111

nvidia-384-dev - NVIDIA binary Xorg driver development files

..



$ sudo mkdir /usr/lib/nvidia

$ sudo apt-get install nvidia-390


$ sudo apt-get install dkms nvidia-modprobe




 

$ nvidia-smi

Wed Jan 30 18:02:54 2019       

+-----------------------------------------------------------------------------+

| NVIDIA-SMI 390.30                 Driver Version: 390.30                                                   |

|-------------------------------+----------------------+----------------------+

| 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 1080    Off  | 00000000:01:00.0 Off |                  N/A                           |

|  0%   36C    P5    20W / 250W |      0MiB /  8117MiB |      2%      Default                          |

+-------------------------------+----------------------+----------------------+

                                                                               

+-----------------------------------------------------------------------------+

| Processes:                                                       GPU Memory                                |

|  GPU       PID   Type   Process name                             Usage                                 |

|=============================================================================|

|  No running processes found                                                                                 |

+-----------------------------------------------------------------------------+




반응형
LIST