# Installing CUDA

**URL:** <https://discourse.julialang.org/t/installing-cuda/49224>\
**Category:** General Usage\
**Tags:** package, cuda\
**Created:** [October 29, 2020, 6:50am UTC](https://discourse.julialang.org/t/installing-cuda/49224 "2020-10-29T06:50:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![asyrov](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/asyrov/32/13578_2.png) [@asyrov](https://discourse.julialang.org/u/asyrov)\
**Post date:** [October 29, 2020, 6:50am UTC](https://discourse.julialang.org/t/installing-cuda/49224/1 "2020-10-29T06:50:35Z")

</div>

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

```julia
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

```

---

<div class="post-metadata">

**Author:** ![andevellicus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/andevellicus/32/15097_2.png) [@andevellicus](https://discourse.julialang.org/u/andevellicus)\
**Post date:** [October 30, 2020, 3:39am UTC](https://discourse.julialang.org/t/installing-cuda/49224/2 "2020-10-30T03:39:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![maleadt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maleadt/32/10097_2.png) [@maleadt](https://discourse.julialang.org/u/maleadt)\
**Post date:** [October 30, 2020, 7:12am UTC](https://discourse.julialang.org/t/installing-cuda/49224/3 "2020-10-30T07:12:37Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![asyrov](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/asyrov/32/13578_2.png) [@asyrov](https://discourse.julialang.org/u/asyrov)\
**Post date:** [November 1, 2020, 12:36am UTC](https://discourse.julialang.org/t/installing-cuda/49224/4 "2020-11-01T00:36:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![aquarelleX332](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aquarellex332/32/21048_2.png) [@aquarelleX332](https://discourse.julialang.org/u/aquarelleX332)\
**Post date:** [May 31, 2023, 12:27pm UTC](https://discourse.julialang.org/t/installing-cuda/49224/5 "2023-05-31T12:27:33Z")

</div>

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