58
H. Murai et al.
Fig. 44 bcast construct (1)
Fig. 45 bcast construct (2)
num = xmpc_node_num() + 1;
#pragma xmp bcast (num) from p[3]
XcalableMP Fortran
!$xmp nodes p(4)
:
num = xmp_node_num()
!$xmp bcast (num) from p(4)
In the example below, only the last three of four nodes are included by the
executing node set of the bcast construct (Fig. 46).
XcalableMP C
#pragma xmp nodes p[4]
:
sum = xmpc_node_num() + 1;
#pragma xmp bcast (num) from p[3] on p[1:3]
Précédent

- 66/265

Suivant