Created
February 21, 2021 15:23
-
-
Save allanbatista/e1967b0408c83e8c3ce7a20f7ddd001e to your computer and use it in GitHub Desktop.
Install Cuda and CuDNN
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
#!/usr/bin/env bash | |
CUDA_VERSION=11.1.0 | |
CUDA_NAME=cuda_11.1.0_455.23.05_linux.run | |
wget https://developer.download.nvidia.com/compute/cuda/${CUDA_VERSION}/local_installers/${CUDA_NAME} && \ | |
chmod +x $CUDA_NAME && \ | |
sudo ./$CUDA_NAME --toolkit --silent --override && \ | |
echo 'echo "# cuda path" >> ~/.bashrc' && \ | |
echo 'export CUDA_PATH=/usr/local/cuda/lib64 >> ~/.bashrc' && \ | |
echo 'export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${CUDA_PATH}" >> ~/.bashrc' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment