Skip to content

Instantly share code, notes, and snippets.

@farhanhubble
Created January 1, 2022 08:44
Show Gist options
  • Save farhanhubble/db59441af61ea0c6c534873afd6f6767 to your computer and use it in GitHub Desktop.
Save farhanhubble/db59441af61ea0c6c534873afd6f6767 to your computer and use it in GitHub Desktop.
Install CUDA on Fedora 35
  1. Install the correct drivers from within the system (Software): 495.46 as of Jan 1,2022. Compatible Devices
  2. Reboot
  3. Check the latest CUDA version available here
  4. Install an appropriate version of CUDA using the instructions here.
    • The CUDA installer has bundled Nvidia drivers. Deselect these drivers if the driver version installed earlier is higher.
  5. The installer will recommend adding certain directories to the PATH and LD_LIBRARY_PATH. Edit the ~/.bashrc to add the paths.
  6. Run source ~/.bashrc to pull the changes in the currect terminal.
  7. Reboot [Optional].
  8. Go to the samples directory (Will be inside a folder named something like NVIDIA_CUDA-11.5_Samples that is inside the home folder, by default)
  9. Test CUDA installation by compiling and running the deviceQuery binary as described here. (Don't trigger make at the top level)
  10. If deviceQuery returns an error 999, run the binary with sudo as described here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment