SciCompMod / memilio

Modular spatio-temporal models for epidemic and pandemic simulations
https://scicompmod.github.io/memilio/
Apache License 2.0
54 stars 16 forks source link

Parallelization of Simulation #126

Open dabele opened 2 years ago

dabele commented 2 years ago

Parallelization of Simulation with OpenMP or MPI

Possiblilties:

Maybe not threadsafe:

mknaranja commented 2 years ago

I think in a first approach, we could do an OpenMPI parallelization of the advance nodes function in

https://github.com/DLR-SC/memilio/blob/main/cpp/memilio/mobility/graph_simulation.h

which should probably be parallelizable without any synchronization.

For edges, a certain syncing will be necessary but this can also be parallelized by OpenMP in a first step.