Is there an implicit barrier at the end of a #pragma omp parallel?
c++, openmp
Solution
Yes, "There is an implicit barrier at the end of the `parallel` construct."
OpenMP Standard 4.5, 1.3 Execution Model, page 15.
Problem
Will the main thread wait for all the team spawned at the beginning of the parallel region to finish before running what comes after the parallel region ?