Installing CUDA

I’m trying to re-install CUDA package after first initial install failed (sorry to say, but I aborted first install by Cntrl+C while it was doing someing, not sure what). But now nothing I do helps. I reinstalled julia, (including removal of .julia folder), but still having the same issue below. Please help

Warning: Recursion during initialization of CUDA.jl
└ @ CUDA ~/.julia/packages/CUDA/dZvbp/src/initialization.jl:41
┌ Error: Could not initialize CUDA
│   exception =
│    CUDA error (code 999, CUDA_ERROR_UNKNOWN)
│    Stacktrace:
│     [1] throw_api_error(::CUDA.cudaError_enum) at /home/asyrov/.julia/packages/CUDA/dZvbp/lib/cudadrv/error.jl:103
│     [2] __configure__(::Bool) at /home/asyrov/.julia/packages/CUDA/dZvbp/src/initialization.jl:94
│     [3] (::CUDA.var"#609#610"{Bool})() at /home/asyrov/.julia/packages/CUDA/dZvbp/src/initialization.jl:29
│     [4] lock(::CUDA.var"#609#610"{Bool}, ::ReentrantLock) at ./lock.jl:161
│     [5] _functional(::Bool) at /home/asyrov/.julia/packages/CUDA/dZvbp/src/initialization.jl:26
│     [6] functional(::Bool) at /home/asyrov/.julia/packages/CUDA/dZvbp/src/initialization.jl:19
│     [7] macro expansion at /home/asyrov/.julia/packages/CUDA/dZvbp/src/initialization.jl:50 [inlined]
│     [8] toolkit_release() at /home/asyrov/.julia/packages/CUDA/dZvbp/deps/bindeps.jl:32
│     [9] top-level scope at /home/asyrov/.julia/packages/CUDA/dZvbp/test/runtests.jl:114
│     [10] include(::String) at ./client.jl:457
│     [11] top-level scope at none:6
└ @ CUDA ~/.julia/packages/CUDA/dZvbp/src/initialization.jl:97
ERROR: LoadError: AssertionError: CUDA.jl did not successfully initialize, and is not usable.
Stacktrace:
 [1] macro expansion at /home/asyrov/.julia/packages/CUDA/dZvbp/src/initialization.jl:50 [inlined]
 [2] toolkit_release() at /home/asyrov/.julia/packages/CUDA/dZvbp/deps/bindeps.jl:32
 [3] top-level scope at /home/asyrov/.julia/packages/CUDA/dZvbp/test/runtests.jl:114
 [4] include(::String) at ./client.jl:457
 [5] top-level scope at none:6
in expression starting at /home/asyrov/.julia/packages/CUDA/dZvbp/test/runtests.jl:114
ERROR: Package CUDA errored during testing

I just ran into a similar issue. Code was running fine a few days ago, not sure what changed…

Problem with your system. Error 999 is out of our hands; if you’re on linux you can try checking dmesg or rebooting. This often happens when upgrading the NVIDIA driver without rebooting.

1 Like

With new nvidia driver CUDA is back working. Thanks a lot!

I also had the bad joke… Under Ubuntu 22.04 (May 2023), I installed the 530 driver, rebooted and everything went back to normal.