Can prescribe alignment and distribution,
For example,
SUBROUTINE Subby(A,B,RES) IMPLICIT NONE REAL, DIMENSION(:,:), INTENT(IN) :: A, B REAL, DIMENSION(:,:), INTENT(OUT) :: RES !HPF$ PROCESSORS, DIMENSION(2,2) :: P !HPF$ TEMPLATE, DIMENSION(4,6) :: T !HPF$ ALIGN (:,:) WITH T(:,:) :: A, B, RES !HPF$ DISTRIBUTE (BLOCK,BLOCK) ONTO P :: T ... END SUBROUTINE Subby
In the subroutine Subby, the three dummy arguments A, B and RES will be mapped as specified in the HPF directives. If the actual arguments are not mapped like this at the call site then remapping will occur.
If an interface is to be given then the mapping directives which apply to the dummy arguments should be included.
Return to corresponding overview page