↗️Upgrade CUDA to v12.2

This guide helps you upgrade your Q Blocks GPU instance CUDA version to 12.2.

CUDA 12 requires Nvidia Driver 535 or higher.

Please confirm that by running command nvidia-smi in your Q Blocks instance.

Uninstall any existing CUDA

sudo apt-get --purge remove -y '*cublas*' 'cuda*' 'nsight*' 
sudo apt-get --purge remove -y '*nvidia*' 
sudo rm -rf /usr/local/cuda*
sudo apt -y autoremove

Install CUDA v12.2

wget https://developer.download.nvidia.com/compute/cuda/12.2.2/local_installers/cuda_12.2.2_535.104.05_linux.run
chmod +x cuda_12.2.2_535.104.05_linux.run
sudo ./cuda_12.2.2_535.104.05_linux.run --toolkit --silent

Set CUDA path

echo 'export PATH=/usr/local/cuda-$CUDAVERSION/bin:$PATH' >> ~/.bashrc
echo 'export LD_LIBRARY_PATH=/usr/local/cuda-$CUDAVERSION/lib64:$LD_LIBRARY_PATH' >> ~/.bashrc
source ~/.bashrc
sudo ldconfig

Confirm if CUDA is visible

# Confirm if cuda is visible:
nvcc -V

Last updated