This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install Cuda 10.1 and Cudnn 7.6.5 on Ubuntu 18.04 | |
## Start clean | |
sudo apt purge nvidia* | |
sudo apt remove nvidia-* | |
sudo rm /etc/apt/sources.list.d/cuda* | |
sudo apt autoremove && apt autoclean | |
sudo rm -rf /usr/local/cuda* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 1- Download the script: wget https://gist.githubusercontent.com/maky-hnou/bbb936857a67a614e9fba0dbe2c87233/raw/889b2cf637a6c1af8dc886a996276e7878ed4187/install_cuda10.1_ubuntu18.04.sh | |
# 2- sudo chmod +x install_cuda10.1_ubuntu18.04.sh | |
# 3- sudo ./install_cuda10.1_ubuntu18.04.sh | |
# 4- Restart your computer. | |
if [[ $EUID -ne 0 ]];then echo "Please run as root";exit 1;fi | |
if [ ! -n "$BASH" ];then echo Please run this script $0 with bash;exit 1;fi |
