Last active
December 10, 2022 04:12
-
-
Save jungaretti/d19410cb8216aea94ce570f5bc310217 to your computer and use it in GitHub Desktop.
Install CUDA and cuDNN libraries from Nvidia on Debian-based Linux distros
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
KEYRING_PACKAGE="cuda-keyring_1.0-1_all.deb" && \ | |
UBUNTU_VERSION="$(lsb_release -sr | sed 's/\.//g')" && \ | |
KEYRING_REPO="https://developer.download.nvidia.com/compute/cuda/repos/ubuntu$UBUNTU_VERSION/x86_64" && \ | |
KEYRING_PACKAGE_URL="$KEYRING_REPO/$KEYRING_PACKAGE" && \ | |
KEYRING_PACKAGE_PATH="$(mktemp -d)" && \ | |
KEYRING_PACKAGE_FILE="$KEYRING_PACKAGE_PATH/$KEYRING_PACKAGE" && \ | |
wget -O "$KEYRING_PACKAGE_FILE" "$KEYRING_PACKAGE_URL" && \ | |
sudo apt-get install -yq "$KEYRING_PACKAGE_FILE" && \ | |
sudo apt-get update -yq && \ | |
sudo apt-get install -yq cuda-libraries-11-7 libcudnn8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment