Setup Ubuntu Cuda for Obaabooga

Hussain Wali
May 29, 2023

Go to this link and download the cuda toolkit:

This is my target platform config:

You will see these lines below the platfor configs:

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pinsudo mv cuda-ubuntu2204.pin/etc/apt/preferences.d/cuda-repository-pin-600

wget https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda-repo-ubuntu2204-11-8-local_11.8.0-520.61.05-1_amd64.deb

sudo dpkg -i cuda-repo-ubuntu2204-11-8-local_11.8.0-520.61.05-1_amd64.deb

sudo cp /var/cuda-repo-ubuntu2204-11-8-local/cuda-*-keyring.gpg /usr/share/keyrings/

sudo apt-get update

don’t run the last line instead run this:
sudo apt-get cuda-toolkit-11-8

This link is helpful in getting things fixed:
https://docs.heavy.ai/v/v6.1.1/installation-and-configuration/installation/installing-on-ubuntu/centos-yum-gpu-os

--

--

Hussain Wali

Software Engineer by profession. Data Scientist by heart. MS Data Science at National University of Science and Technology Islamabad.