Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save henricavalcante/9079d671ee7c7c42f15e7038355d4dcd to your computer and use it in GitHub Desktop.
Save henricavalcante/9079d671ee7c7c42f15e7038355d4dcd to your computer and use it in GitHub Desktop.
Install cuda 12.4 on ubuntu 24.4 for containers
wget https://developer.download.nvidia.com/compute/cuda/12.4.0/local_installers/cuda_12.4.0_550.54.14_linux.run
sudo sh cuda_12.4.0_550.54.14_linux.run
echo 'export PATH=/usr/local/cuda-12.4/bin:$PATH' >> ~/.bashrc
echo 'export LD_LIBRARY_PATH=/usr/local/cuda-12.4/lib64:$LD_LIBRARY_PATH' >> ~/.bashrc
source ~/.bashrc
sudo apt install -y nvidia-container-toolkit
sudo systemctl restart docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment