Master Section
Only the master thread executes the section
Rest of the team skip the section and continue execution from the end of the master
No barrier at the end of master section
C$OMP PARALLEL
C$OMP MASTER
print*, Hello
C$OMP END MASTER
C$OMP END PARALLEL
#pragma omp parallel {
#pragma omp master
printf(Hello\n);
}
Previous slide
Next slide
Back to first slide
View graphic version