summaryrefslogtreecommitdiff
path: root/cuda_install_111.sh
diff options
context:
space:
mode:
authorTim Dettmers <tim.dettmers@gmail.com>2022-07-25 19:30:37 -0700
committerTim Dettmers <tim.dettmers@gmail.com>2022-07-25 19:30:37 -0700
commit9268dc9d887a3d54cd1f008dcb628aaa5b5bd90a (patch)
treec557a57a63e627e6694bb383d0f7c8ade5f9071a /cuda_install_111.sh
parent1e88edd8c096bde5202dd61411d3c8d7eda56645 (diff)
Some progress on build script; added multi-cuda install script.
Diffstat (limited to 'cuda_install_111.sh')
-rw-r--r--cuda_install_111.sh38
1 files changed, 0 insertions, 38 deletions
diff --git a/cuda_install_111.sh b/cuda_install_111.sh
deleted file mode 100644
index 476ab59..0000000
--- a/cuda_install_111.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-FILE115=:cuda_11.5.1_495.29.05_linux.run
-FILE111=:cuda_11.1.1_455.32.00_linux.run
-URL115=:https://developer.download.nvidia.com/compute/cuda/11.5.1/local_installers/cuda_11.5.1_495.29.05_linux.run
-URL111=:https://developer.download.nvidia.com/compute/cuda/11.1.1/local_installers/cuda_11.1.1_455.32.00_linux.run
-
-
-CUDA_VERSION=$1
-
-if [[ -n "$CUDA_VERSION" ]]; then
- if [[ "$CUDA_VERSION" -eq "111" ]]; then
- FILE=cuda_11.1.1_455.32.00_linux.run
- URL=https://developer.download.nvidia.com/compute/cuda/11.1.1/local_installers/cuda_11.1.1_455.32.00_linux.run
- FOLDER=cuda-11.1
- elif [[ "$CUDA_VERSION" -eq "115" ]]; then
- FILE=cuda_11.5.1_495.29.05_linux.run
- URL=https://developer.download.nvidia.com/compute/cuda/11.5.1/local_installers/cuda_11.5.1_495.29.05_linux.run
- FOLDER=cuda-11.5
- else
- echo "argument error: No cuda version passed as input. Choose among: {111, 115}"
- fi
-else
- echo "argument error: No cuda version passed as input. Choose among: {111, 115}"
-fi
-
-if [[ -n "$CUDA_VERSION" ]]; then
- echo $URL
- echo $FILE
- wget $URL
- bash $FILE --no-drm --no-man-page --override --installpath=~/local --librarypath=~/local/lib --toolkitpath=~/local/$FOLDER/ --toolkit --silent
- echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/local/$FOLDER/lib64/" >> ~/.bashrc
- echo "export PATH=$PATH:~/local/$FOLDER/bin/" >> ~/.bashrc
- source ~/.bashrc
-else
- echo ""
-fi
-
-
-