Skip to content

Instantly share code, notes, and snippets.

View bedilbek's full-sized avatar
🎯
Focusing

Bedilbek Khamidov bedilbek

🎯
Focusing
View GitHub Profile
@bedilbek
bedilbek / cuda_changer.sh
Created October 22, 2022 11:09
Cuda Changer Bash script
#!/bin/bash
set -e
INSTALL_DIR="/usr/local"
TARGET_VERSION=${1}
default_info () {
echo "The following cuda installations have been found (in '${INSTALL_DIR}'):"
available_cudas=$(ls -a "${INSTALL_DIR}" | grep "cuda-" | sed 's/cuda-//')