next up previous contents
Next: Mapping Function Results Up: HPF and Procedures Previous: Interfaces

Aligning to Dummy Arguments

Can align locals to dummies,

    SUBROUTINE Soobie(A,B,Res)
     USE Global_Mapping_Info
     IMPLICIT NONE 
     REAL, DIMENSION(:,:), INTENT(IN)         :: A, B
     REAL, DIMENSION(:,:), INTENT(OUT)        :: Res
     REAL, DIMENSION(SIZE(A,1),SIZE(A,2))     :: C
     REAL, DIMENSION(SIZE(A,1)/2,SIZE(A,2)/2) :: D
!HPF$ PROCESSORS, DIMENSION(2,2)              :: P
!HPF$ ALIGN (:,:) WITH A (:,:)                :: C
!HPF$ ALIGN (:,J) WITH A(J*2-1,::2)           :: D
!HPF$ DISTRIBUTE (BLOCK,BLOCK) ONTO P :: A, B, Res
      ...
    END SUBROUTINE Soobie

Could also use descriptive distributions, more efficient, less flexible.

For more information, click here gif

Now try this question gif

Now try this question gif

Now try this question gif

Now try this question gif

Now try this question gif

Now try this question gif

Now try this question gif


next up previous contents
Next: Mapping Function Results Up: HPF and Procedures Previous: Interfaces

Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 18:56:08 GMT 1996
Not for commercial use.