15. barrier constructΒΆ
Execute barrier synchronization.
- XMP/C program
#pragma xmp barrier
- XMP/Fortran program
!$xmp barrier
You can set the barrier range by using the on clause. In the below example, barrier synchronization occurs only in the first two nodes of p.
- XMP/C program
#pragma xmp barrier on p[0:2]
- XMP/Fortran program
!$xmp barrier on p(1:2)