Created
March 11, 2019 17:40
-
-
Save kastnerkyle/7e5a0a0b2c2444fd3dbfd713e5f708e6 to your computer and use it in GitHub Desktop.
This file contains 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
sudo add-apt-repository ppa:graphics-drivers -y | |
sudo apt-get update | |
sudo apt-get install nvidia-driver-418 nvidia-utils-418 nvidia-settings -y | |
wget -N https://developer.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda_10.1.105_418.39_linux.run | |
wget -N http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/libcudnn7_7.5.0.56-1+cuda10.1_amd64.deb | |
sudo ./cuda_10.1.105_418.39_linux.run --override --silent --toolkit --no-opengl-libs | |
sudo dpkg -i libcudnn7_7.5.0.56-1+cuda10.1_amd64.deb | |
sudo apt-get install libcupti-dev -y | |
sudo tee /usr/share/X11/xorg.conf.d/10-intel.conf<<EOL | |
Section "Device" | |
Identifier "Intel GPU" | |
Driver "modesetting" | |
BusID "PCI:0:2:0" | |
EndSection | |
EOL | |
sudo mkdir -p /usr/share/X11/xorg.conf.disabled/ | |
sudo mv /usr/share/X11/xorg.conf.d/10-nvidia.conf /usr/share/X11/xorg.conf.disabled/ | |
echo "restart to complete CUDA installation" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment