Install NVIDIA CUDA Toolkit 12.6.3 on Fedora 41/40/39

Опубликовано: 28 Март 2026
на канале: if-not-true-then-false.com
3,952
29

This is guide, howto install NVIDIA CUDA Toolkit 12.6 Update 3 (12.6.3) on Fedora 41/40/39. I assume here that you have installed NVIDIA drivers successfully using Fedora NVIDIA Drivers Install Guide (   • Install NVIDIA Drivers on Fedora 40 + Enab...  ). You will currently need NVIDIA 560.xx or 565.xx drivers. Also Fedora 41/40 users needs GCC 13 (   • Howto Build GCC 13 on Fedora 41/40 using G...  ). As always remember backup important files before doing anything!

Check full guide with current NVIDIA CUDA 12.6 Update 3 (12.6.3) install command line commands from here:
https://www.if-not-true-then-false.co...

If you want support me, you can buy me a coffee. Thank you!
https://buymeacoffee.com/inttf

⭐️ Table of contents ⭐️
00:00 Install NVIDIA CUDA on Fedora 41/40/39
00:59 Build and install GCC 13
01:34 Install NVIDIA 565.xx
02:00 Download latest NVIDIA CUDA run installer
01:54 Make NVIDIA CUDA installer executable
03:14 Change root user
03:27 Fully update your Fedora
03:43 Install needed dependencies
04:02 Run NVIDIA CUDA installer
04:25 Accept NVIDIA CUDA license agreement
04:36 Select NVIDIA CUDA components
04:54 Install NVIDIA CUDA
04:59 Check NVIDIA CUDA installation summary
05:24 Clone CUDA Samples from NVIDIA Git repo
05:55 Create /etc/profile.d/cuda.sh script to add CUDA to PATH
06:24 Then log out and log in to update PATH, LD_LIBRARY_PATH, HOST_COMPILER
07:00 Verify PATH and LD_LIBRARY_PATH, HOST_COMPILER
07:43 Test your NVIDIA CUDA installation, compile and run deviceQuery
08:31 Test NVIDIA CUDA compute mode using nbody -benchmark