CUDA.jl only supports NVIDIA drivers for CUDA 11.x or 12.x (yours is for CUDA 13.0.0)

Hi, all. I have upgraded the CUDA several times, but still got:

julia> using CUDA 
┌ Error: This version of CUDA.jl only supports NVIDIA drivers for CUDA 11.x or 12.x (yours is for CUDA 13.0.0) 
└ @ CUDA ~/.julia/packages/CUDA/ja0IX/src/initialization.jl:70

Which CUDA.jl version do you have (maybe another package is holding it back). CUDA.jl latest tests and runs on 13.x

my [052768ef] CUDA.jl is v5.8.2, and

nvcc --version
nvidia-smi
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Mon_Apr__3_17:16:06_PDT_2023
Cuda compilation tools, release 12.1, V12.1.105
Build cuda_12.1.r12.1/compiler.32688072_0
Thu Jun 25 23:16:09 2026       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 580.159.03             Driver Version: 580.159.03     CUDA Version: 13.0     |
+-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 4080 ...    Off |   00000000:01:00.0  On |                  N/A |
|  0%   35C    P8             20W /  320W |     633MiB /  16376MiB |      4%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A            3637      G   /usr/lib/xorg/Xorg                      188MiB |
|    0   N/A  N/A            3825      G   /usr/bin/gnome-shell                    104MiB |
|    0   N/A  N/A            5057      G   .../8521/usr/lib/firefox/firefox        255MiB |
+-----------------------------------------------------------------------------------------+

and here is full error

┌ Warning: Module CUDA with build ID ffffffff-ffff-ffff-0000-207c9d1142e3 is missing from the cache.
│ This may mean CUDA [052768ef-5323-5732-b1bb-66c8b64840ba] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:2011
┌ Error: Error during loading of extension AtomixCUDAExt of Atomix, use `Base.retry_load_extensions()` to retry.
│   exception =
│    1-element ExceptionStack:
│    Declaring __precompile__(false) is not allowed in files that are being precompiled.
│    Stacktrace:
│      [1] _require(pkg::Base.PkgId, env::Nothing)
│        @ Base ./loading.jl:2062
│      [2] __require_prelocked(uuidkey::Base.PkgId, env::Nothing)
│        @ Base ./loading.jl:1875
│      [3] #invoke_in_world#3
│        @ ./essentials.jl:926 [inlined]
│      [4] invoke_in_world
│        @ ./essentials.jl:923 [inlined]
│      [5] _require_prelocked
│        @ ./loading.jl:1866 [inlined]
│      [6] _require_prelocked
│        @ ./loading.jl:1865 [inlined]
│      [7] run_extension_callbacks(extid::Base.ExtensionId)
│        @ Base ./loading.jl:1358
│      [8] run_extension_callbacks(pkgid::Base.PkgId)
│        @ Base ./loading.jl:1393
│      [9] run_package_callbacks(modkey::Base.PkgId)
...
┌ Error: This version of CUDA.jl only supports NVIDIA drivers for CUDA 11.x or 12.x (yours is for CUDA 13.0.0)
└ @ CUDA /home/cyan/.julia/packages/CUDA/ja0IX/src/initialization.jl:70
┌ Error: This version of CUDA.jl only supports NVIDIA drivers for CUDA 11.x or 12.x (yours is for CUDA 13.0.0)
└ @ CUDA ~/.julia/packages/CUDA/ja0IX/src/initialization.jl:70

Your CUDA.jl version is somewhat old. CUDA’s latest release is 6.2. So something else in your environment is keeping it in an older version