Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Install CUDA 10 on Ubuntu 18.04
# WARNING: These steps seem to not work anymore!
# Purge existign CUDA first
sudo apt --purge remove "cublas*" "cuda*"
sudo apt --purge remove "nvidia*"
# Install CUDA Toolkit 10
sudo apt-key adv --fetch-keys && sudo apt update
sudo dpkg -i cuda-repo-ubuntu1804_10.0.130-1_amd64.deb
sudo apt update
sudo apt install -y cuda
# Install CuDNN 7 and NCCL 2
sudo dpkg -i nvidia-machine-learning-repo-ubuntu1804_1.0.0-1_amd64.deb
sudo apt update
sudo apt install -y libcudnn7 libcudnn7-dev libnccl2 libc-ares-dev
sudo apt autoremove
sudo apt upgrade
# Link libraries to standard locations
sudo mkdir -p /usr/local/cuda-10.0/nccl/lib
sudo ln -s /usr/lib/x86_64-linux-gnu/ /usr/local/cuda/nccl/lib/
sudo ln -s /usr/lib/x86_64-linux-gnu/ /usr/local/cuda-10.0/lib64/
echo 'If everything worked fine, reboot now.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment