HPF example generally needing communication
SUBROUTINE ADD_VEC(A, B, C)
REAL A(:), B(:), C(:)
!HPF$ INHERIT A, B, C
FORALL (I = 1:SIZE(A)) A(I) = B(I) + C(I)
In general arrays A, B, C have different mapping.
May copy B, C to temporaries with same mapping as A.
Back to first slide
View graphic version