Barrier Synchronization
Barrier Synchronization
BARRIER directive
Threads wait until all threads reach this point
Implicit barrier at the end of each parallel region
C$OMP PARALLEL
……
C$OMP BARRIER
……
C$OMP END PARALLEL
#pragma omp parallel
{
……
#pragma omp barrier
……
}
Previous slide
Next slide
Back to first slide
View graphic version