Skip to content

Instantly share code, notes, and snippets.

View EmilPi's full-sized avatar

EmilPi

  • Vilnius, Lithuania
View GitHub Profile
@EmilPi
EmilPi / download_cuda_and_cudnn.sh
Last active February 19, 2024 18:58
Download all cuda and cudnn versions to a chosen folder and create symlinks in /usr/local (or any other path)
#!/bin/bash
# inspired by and used https://gist.github.com/mikaelhg/cae5b7938aa3dfdf3d06a40739f2f3f4 as a base
LIB_PATH=/usr/local
STORAGE_PATH=/media/user/path/to/big/drive
BASE_DOWNLOAD_HREF=https://developer.download.nvidia.com/compute
# Exit on first error (not always, but most of cases)
set -euxo pipefail