Are there any parallel or GPU versions of ode15s or ode45?

32 visualizaciones (últimos 30 días)
Fiona Reid
Fiona Reid el 24 de Mzo. de 2014
Comentada: Rob Hudson el 19 de Jul. de 2021
Dear Matlab Users,
I have a Matlab code which uses ode15s to solve an ODE of the form f(t,y)y' = m(t,y) where f depends on both y and t and the mass function, m, depends on y only. As we increase the problem size the solver simply takes too long (many days) to complete.
Does a parallel (or GPU) version of ode15s or ode45 exist? and if so could someone point me to the appropriate documentation etc?
We only run the ODE solver once and thus using parfor or similar as has been suggested to other users won't help us unfortunately. We'd just like to reduce the computation time of the solver such that we can run larger problem sizes.
Many thanks for any advice or suggestions.
Fiona
  1 comentario
Rob Hudson
Rob Hudson el 19 de Jul. de 2021
Hi Fiona,
I realize that answering this seven years late is not likely to help you very much, but I thought I'd put an answer here to help anyone who might have stumbled across this question. The algorithms used by ode45 and ode15s are inherently serial – each time they evaluate f(t,y), they pass parameters to it that rely on the previous evaluation of f(t,y). This means that they cannot be parallelized. MATLAB does not currently support any parallel ODE solvers.
Rob.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Ordinary Differential Equations en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by