# After update, CUDA.jl not working

**URL:** <https://discourse.julialang.org/t/after-update-cuda-jl-not-working/59318>\
**Category:** General Usage\
**Created:** [April 15, 2021, 8:57am UTC](https://discourse.julialang.org/t/after-update-cuda-jl-not-working/59318 "2021-04-15T08:57:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ferran\_Mazzanti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ferran_mazzanti/32/7458_2.png) [@Ferran\_Mazzanti](https://discourse.julialang.org/u/Ferran_Mazzanti)\
**Post date:** [April 15, 2021, 8:57am UTC](https://discourse.julialang.org/t/after-update-cuda-jl-not-working/59318/1 "2021-04-15T08:57:58Z")

</div>

Hi,

yesterday I read the message about the new CUDA package. Today I just did an update (julia 1.6.0 on ubuntu mate 20.04) and the CUDA package did upgrade. After that

julia\> using CUDA

julia\> CUDA.zeros(10)  
┌ Error: Error during initialization of CUDA.jl  
│ exception =  
│ CUDA error: forward compatibility was attempted on non supported HW (code 804, ERROR\_COMPAT\_NOT\_SUPPORTED\_ON\_DEVICE)  
│ Stacktrace:  
│ [1] throw\_api\_error(res::CUDA.cudaError\_enum)  
│ @ CUDA ~/.julia/packages/CUDA/MpASK/lib/cudadrv/error.jl:88  
│ [2] **runtime\_init** ()  
│ @ CUDA ~/.julia/packages/CUDA/MpASK/src/initialization.jl:105  
│ [3] macro expansion  
│ @ ~/.julia/packages/CUDA/MpASK/src/initialization.jl:31 [inlined]  
│ [4] macro expansion  
│ @ ./lock.jl:209 [inlined]  
│ [5] \_functional(show\_reason::Bool)  
│ @ CUDA ~/.julia/packages/CUDA/MpASK/src/initialization.jl:27  
│ [6] functional(show\_reason::Bool)  
│ @ CUDA ~/.julia/packages/CUDA/MpASK/src/initialization.jl:19  
│ [7] libcuda()  
│ @ CUDA ~/.julia/packages/CUDA/MpASK/src/initialization.jl:51  
│ [8] macro expansion  
│ @ ~/.julia/packages/CUDA/MpASK/lib/cudadrv/libcuda.jl:29 [inlined]  
│ [9] macro expansion  
│ @ ~/.julia/packages/CUDA/MpASK/lib/cudadrv/error.jl:94 [inlined]  
│ [10] cuDeviceGet  
│ @ ~/.julia/packages/CUDA/MpASK/lib/utils/call.jl:26 [inlined]  
│ [11] CuDevice  
│ @ ~/.julia/packages/CUDA/MpASK/lib/cudadrv/devices.jl:25 [inlined]  
│ [12] CUDA.TaskLocalState()  
│ @ CUDA ~/.julia/packages/CUDA/MpASK/src/state.jl:50  
│ [13] task\_local\_state!()  
│ @ CUDA ~/.julia/packages/CUDA/MpASK/src/state.jl:73  
│ [14] stream  
│ @ ~/.julia/packages/CUDA/MpASK/src/state.jl:419 [inlined]  
│ [15] alloc  
│ @ ~/.julia/packages/CUDA/MpASK/src/pool.jl:278 [inlined]  
│ [16] CuArray{Float32, 1}(#unused#::UndefInitializer, dims::Tuple{Int64})  
│ @ CUDA ~/.julia/packages/CUDA/MpASK/src/array.jl:20  
│ [17] CuArray  
│ @ ~/.julia/packages/CUDA/MpASK/src/array.jl:101 [inlined]  
│ [18] CuArray  
│ @ ~/.julia/packages/CUDA/MpASK/src/array.jl:102 [inlined]  
│ [19] zeros  
│ @ ~/.julia/packages/CUDA/MpASK/src/array.jl:376 [inlined]  
│ [20] zeros(dims::Int64)  
│ @ CUDA ~/.julia/packages/CUDA/MpASK/src/array.jl:378  
│ [21] top-level scope  
│ @ REPL[3]:1  
│ [22] top-level scope  
│ @ ~/.julia/packages/CUDA/MpASK/src/initialization.jl:81  
│ [23] eval  
│ @ ./boot.jl:360 [inlined]  
│ [24] eval\_user\_input(ast::Any, backend::REPL.REPLBackend)  
│ @ REPL /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:139  
│ [25] repl\_backend\_loop(backend::REPL.REPLBackend)  
│ @ REPL /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:200  
│ [26] start\_repl\_backend(backend::REPL.REPLBackend, consumer::Any)  
│ @ REPL /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:185  
│ [27] run\_repl(repl::REPL.AbstractREPL, consumer::Any; backend\_on\_current\_task::Bool)  
│ @ REPL /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:317  
│ [28] run\_repl(repl::REPL.AbstractREPL, consumer::Any)  
│ @ REPL /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:305  
│ [29] (::Base.var"#874#876"{Bool, Bool, Bool})(REPL::Module)  
│ @ Base ./client.jl:387  
│ [30] #invokelatest#2  
│ @ ./essentials.jl:708 [inlined]  
│ [31] invokelatest  
│ @ ./essentials.jl:706 [inlined]  
│ [32] run\_main\_repl(interactive::Bool, quiet::Bool, banner::Bool, history\_file::Bool, color\_set::Bool)  
│ @ Base ./client.jl:372  
│ [33] exec\_options(opts::Base.JLOptions)  
│ @ Base ./client.jl:302  
│ [34] \_start()  
│ @ Base ./client.jl:485  
└ @ CUDA ~/.julia/packages/CUDA/MpASK/src/initialization.jl:34  
ERROR: CUDA.jl did not successfully initialize, and is not usable.  
If you did not see any other error message, try again in a new session  
with the JULIA\_DEBUG environment variable set to ‘CUDA’  
etc…

Needless to say. it was perfectly working until the second before the update, nothing changed in my system. In fact I ran a julia code using CUDA and did the update after the run finished.

What can I do from here? And since I need to do calculations in my computer, can I revert to the previous CUDA version in the meantime? How?

Thanks a lot,

Ferran.
