ivan-pi / periodic-lbm

A personal collection of research codes for LBM in periodic domains
Apache License 2.0
9 stars 1 forks source link

Flux update with OpenMP #9

Open ivan-pi opened 1 year ago

ivan-pi commented 1 year ago

See issue described in https://fortran-lang.discourse.group/t/fixing-an-openmp-race-condition/3102 and https://fortran-lang.discourse.group/t/graph-coloring/3116

A similar problem is described by PoP CoE: https://co-design.pop-coe.eu/patterns/indirect-reductions-atomic-large-data-structure.html

A best practice described to solve the problem is explicit dependencies: https://co-design.pop-coe.eu/best-practices/multideps-indirect-reductions-large-data-structure.html

See also:

ivan-pi commented 1 year ago

More presentations addressing explicit dependency graphs: