Open carstenbauer opened 8 months ago
This is also somewhat related to #73 (and the PR https://github.com/JuliaFolds2/OhMyThreads.jl/pull/93) because OMP has implicit barriers at the end of single/critical regions (IIRC) with an opt-out option nowait
.
In the spirit of OpenMP's
#pragma omp barrier
andMPI.Barrier()
it would be nice to have a barrier for shared-memory parallelism in Julia. Taka has worked on this it seems (https://github.com/JuliaConcurrent/SyncBarriers.jl). Does this still work? Can we / do we want to integrate some of it into OhMyThreads.jl?