Skip to content

Instantly share code, notes, and snippets.

@meisa233
Created December 6, 2023 09:06
Show Gist options
  • Save meisa233/29b57c4243f8c55d1e04c71555e43376 to your computer and use it in GitHub Desktop.
Save meisa233/29b57c4243f8c55d1e04c71555e43376 to your computer and use it in GitHub Desktop.
Install CUDA and Uninstall CUDA
  1. Uninstall cuda
run cuda-uninstaller in /usr/local/cuda/bin using root user
  1. Install Cuda Download runfile from cuda official website.
    sudo sh cuda_xxx.run.
    Note that don't select nvidia driver!
  2. Configuration add these lines to the end of ~/.bashrc
export PATH=$PATH:/usr/local/cuda/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/cuda/lib64
export PATH=$PATH:/home/wlbtest/.local/bin

After that

source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment