XcalableMP Programming Model and Language
45
Fig. 33 Example of multi-dimensional shadow (2)
XcalableMP Fortran
!$xmp nodes p[3]
!$xmp template t[9]
!$xmp distribute t[block] onto p
real :: a(9,9)
5 !$xmp align a( * ,i) with t(i)
!$xmp shadow a(0,1)
:
!$xmp reflect (a)
For the array a, 0 is specified as the shadow width in non-distributed dimensions.
Précédent

- 53/265

Suivant