gandalfcode / gandalf

GANDALF (Graphical Astrophysics code for N-body Dynamics And Lagrangian Fluids)
GNU General Public License v2.0
44 stars 12 forks source link

Optimise OpenMP parallel loop number of threads #139

Open dhubber opened 7 years ago

dhubber commented 7 years ago

Optimise the number of parallel threads in an OpenMP loop depending on the number of active elements (e.g. particles, cells). Ideally will ensure a minimum number of particles/cells per active thread so as to reduce the OpenMP overheads.

giovanni-rosotti commented 7 years ago

See discussion in #137