Ubuntu
Ubuntu 18.04 LTS 그래픽드라이버, cuda, cuDNN RTX 2060 super
리틀피그
2020. 6. 24. 14:37
반응형
그래픽카드 드라이버 설치
APT 설치
$ sudo add-apt-repository ppa:graphics-drivers/ppa
$ sudo apt update
$ sudo apt-get install nvidia-driver-440
$ sudo reboot
자동설치
$ sudo add-apt-repository ppa:graphics-drivers/ppa
$ sudo apt update
$ sudo ubuntu-drivers autoinstall
$ sudo reboot
cuda10.0설치
sudo apt-get install cuda-10-0
cuDNN Archive
https://developer.nvidia.com/rdp/cudnn-archive
cuDNN 7.4.2설치
다운받고 압축풀고
cd Download
sudo cp cuda/include/cudnn.h /usr/local/cuda/include
sudo cp cuda/lib64/libcudnn* /usr/local/cuda/lib64/
sudo chmod a+r /usr/local/cuda/include/cudnn.h
sudo chmod a+r /usr/local/cuda/lib64/libcudnn*
sudo apt-get install libcupti-dev
gedit ~/.bashrc
export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
source ~/.bashrc
설치확인
#그래픽카드 드라이버 확인
sudo nvidia-smi
#cuda 확인
nvcc -V
-끝-
출처: https://soundprovider.tistory.com/entry/Ubuntu-1804-GPU-개발환경-세팅-1?category=1126937 [Sound Provider]
반응형