Skip to content

Instantly share code, notes, and snippets.

@allanbatista
Created February 21, 2021 15:23
Show Gist options
  • Save allanbatista/e1967b0408c83e8c3ce7a20f7ddd001e to your computer and use it in GitHub Desktop.
Save allanbatista/e1967b0408c83e8c3ce7a20f7ddd001e to your computer and use it in GitHub Desktop.
Install Cuda and CuDNN
#!/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