From a9aacbeb6d91ee124a43cba320c778d0770caf5f Mon Sep 17 00:00:00 2001 From: sthope Date: Mon, 6 Dec 2021 21:51:11 +0100 Subject: [PATCH] Add 'install_cuba.sh' --- install_cuba.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 install_cuba.sh diff --git a/install_cuba.sh b/install_cuba.sh new file mode 100644 index 0000000..d705578 --- /dev/null +++ b/install_cuba.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin +sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600 +wget https://developer.download.nvidia.com/compute/cuda/11.5.1/local_installers/cuda-repo-ubuntu2004-11-5-local_11.5.1-495.29.05-1_amd64.deb +sudo dpkg -i cuda-repo-ubuntu2004-11-5-local_11.5.1-495.29.05-1_amd64.deb +sudo apt-key add /var/cuda-repo-ubuntu2004-11-5-local/7fa2af80.pub +sudo apt-get update +sudo apt-get -y install cuda \ No newline at end of file