# CUDA.jl on Jupyter / ubuntu 24

**URL:** <https://discourse.julialang.org/t/cuda-jl-on-jupyter-ubuntu-24/130246>\
**Category:** General Usage\
**Created:** [June 26, 2025, 5:02pm UTC](https://discourse.julialang.org/t/cuda-jl-on-jupyter-ubuntu-24/130246 "2025-06-26T17:02:25Z")\
**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:** [June 26, 2025, 5:02pm UTC](https://discourse.julialang.org/t/cuda-jl-on-jupyter-ubuntu-24/130246/1 "2025-06-26T17:02:25Z")

</div>

Hi,  
I’m running the latest julia + CUDA (I update regularly) on two ubuntu 24.04.2 different machines. I use to develop my codes in jupyter (also latest) and in recent weeks I’m experimenting random crashes when doing CUDA operations, things I did not see before with previous versions. Run it once, works, run again, crashes, …seems a crash event. And running the same code on the REPL directly does not crash.  
BTW I run that on both a RTX4060 and a RTX5060Ti, with the same result (as I said, two different computers)  
An easy example would be the following

```julia
using CUDA

kind = Float64
Nr = 1025
δr = sqrt(2π/Nr)
r = [δr*(n-Nr/2) for n in 0:Nr-1]
rc = CuArray(kind.(r))

Fr_Ex(z) = complex(1.f0/(1.f0+z^2)^2);
fr_Ex_c = Fr_Ex.(rc);

```

which is just a minimal part of a much larger code.

Now the question is: am I the only one experimenting these problems recently?  
And if the problem is with Jupyter, what editors do you use that allow you to develop  
using cells as jupyter?

Thanks a lot.
