Nvidia: cuda install di ubuntu

From OnnoWiki
Jump to navigation Jump to search

sumber: https://askubuntu.com/questions/799184/how-can-i-install-cuda-on-ubuntu-16-04

Delete driver yang lama

sudo apt-get purge nvidia-cuda*
sudo apt-get purge nvidia-*

Download dari

https://developer.nvidia.com/cuda-downloads
wget https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64-deb
cd ~/Downloads
sudo dpkg -i cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb
sudo apt update
sudo apt install cuda
sudo apt install nvidia-cuda-toolkit

Cek instalasi

nvcc --version
nvidia-smi

Referensi