Replies: 2 comments 5 replies
-
Hi! I remember some discussions on the old forum about |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to solve an initial value problem (IVP) many times, for different parameters (x0 is constant). Now, I do this by the
map
function, see the example code below (CasADi version 3.5.5). I've two questionsopenmp
should use more threads? I can't find any documentation about this. I can specify e.g. F2.map(N, "thread", 4) and then use 4 threads, but if I use F2.map(N, "openmp", "thread", 4) does not work. If I specify F2.map(N, "openmp") it does not seem that any parallell computing is done. Basically - how do I pass extra info to the map construct?CVODES
? In Casadis documentation for cvodes it mentions that "CVODES can be used both on serial and parallel computers. The main difference is in the NVECTOR module of vector kernels. The desired version is obtained when compiling the example files by linking the appropriate library of NVECTOR kernels. In the parallel versions,communication between processors is done with MPI, with OpenMP, or with Pthreads." I cannot find out how to evaluate IVPs in parallel without making a map construct though.`if name == "main":
import numpy as np
import casadi as ca
`
Beta Was this translation helpful? Give feedback.
All reactions