# DynamicalSystems.jl and CUDA.jl

**URL:** <https://discourse.julialang.org/t/dynamicalsystems-jl-and-cuda-jl/105111>\
**Category:** Modelling & Simulations\
**Created:** [October 18, 2023, 10:31am UTC](https://discourse.julialang.org/t/dynamicalsystems-jl-and-cuda-jl/105111 "2023-10-18T10:31:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergey\_Novak](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sergey_novak/32/37716_2.png) [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Post date:** [October 18, 2023, 10:31am UTC](https://discourse.julialang.org/t/dynamicalsystems-jl-and-cuda-jl/105111/1 "2023-10-18T10:31:13Z")

</div>

Hello!  
Can i use CUDAj.jl and DynamicalSystems.jl together?  
I calculate map of spectrum Lyapunov exponents with inheritance of initial conditions. I manage to parallelize calculations using `Threads.@threads` for loop. But it takes quite a long time.  
I wanted to try to calculate the initial conditions for each point on the map with paralleling by `Threads.@threads`. Then run the calculation of the Lyapunov exponents spectrum for each point on the GPU.

My second question  
Can I get a message that an instability has been detected in the form of some code when I use the `trajectory`? When I began to calculate the initial conditions for each point on the map, the message about unstability appeared, but I don’t quite understand how to track at what parameter values this happened.

Thank you for helps!
