XcalableMP Programming Model and Language
65
Fig. 51 sync all
In the above example, the left image puts data to the right image and both nodes
invoke sync all. When both nodes return from it, the execution continues to the
following statements (Fig. 51).
5.5.2 Sync Images
XcalableMP C
void xmp_sync_images(int num, int * image-set, int * status)
XcalableMP Fortran
sync images (image-set)
Each image in the specified image set waits until all one-sided communication
issued is complete, and performs barrier synchronization among the images.
XcalableMP C
int image_set[3] = {0,1,2};
xmp_sync_images(3, image_set, NULL);
XcalableMP Fortran
integer :: image_set(3) = (/ 1, 2, 3/)
sync images (image_set)
65
Fig. 51 sync all
In the above example, the left image puts data to the right image and both nodes
invoke sync all. When both nodes return from it, the execution continues to the
following statements (Fig. 51).
5.5.2 Sync Images
XcalableMP C
void xmp_sync_images(int num, int * image-set, int * status)
XcalableMP Fortran
sync images (image-set)
Each image in the specified image set waits until all one-sided communication
issued is complete, and performs barrier synchronization among the images.
XcalableMP C
int image_set[3] = {0,1,2};
xmp_sync_images(3, image_set, NULL);
XcalableMP Fortran
integer :: image_set(3) = (/ 1, 2, 3/)
sync images (image_set)
