CUDA.jl not loading in julia 1.12.0

Hi,
I’ve just upgraded from 1.11.7 to 1.12.0 and went though the packages installation from scratch. I installed CUDA.jl from pkg.add() and it did install fine. I then restarted the machine to make sure all is clear, and when opened julia 1.12.0 and issued the ‘using CUDA’ command, it just sits there doing nothing, essentially forever (20+ minutes waiting and still nothing). I changed nothing else but julia in my ubuntu machine, and everything was working fine before, prior to the upgrade…
Any clues here?
Best,
Ferran.

Can you share the output of:

using Pkg
Pkg.status()

?

sure

julia> Pkg.status()
Status ~/.julia/environments/v1.12/Project.toml
[052768ef] CUDA v5.9.0
[944b1d66] CodecZlib v0.7.8
[7a1cc6ca] FFTW v1.10.0
[59287772] Formatting v0.4.3
[7073ff75] IJulia v1.30.6
[bac558e1] OrderedCollections v1.8.1
[d330b81b] PyPlot v2.11.6

1 Like

Uh… no apparent solution, right? I wonder if anybody else here has tried that and can report on her/his experience with the upgrade and CUDA.
In the meantime I don’t know what to do… revert to the previous julia version?

I can’t reproduce this on a Windows 11 machine, the first using CUDA was indeed quite slow (on the order of a couple of minutes) but things work fine.

Then this may be OS-dependent. The only way I’ve managed to make it work on my ubuntu mate machine is to invoke julia with the command

julia --compiled-modules=no

then it takes a while to load -but it does load, contrarily to what happened before…

Just tried in Ubuntu WSL2 and it’s much speedier there:

julia> @time using CUDA
 17.013851 seconds (12.21 M allocations: 715.201 MiB, 1.71% gc time, 83.69% compilation time: 98% of which was recompilation)