next up previous contents
Next: Descriptive Distribution Up: HPF and Procedures Previous: Procedures and Mapping

 

Prescriptive Distribution

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.


next up previous contents
Next: Descriptive Distribution Up: HPF and Procedures Previous: Procedures and Mapping

Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 15:03:35 GMT 1996
Not for commercial use.