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)
     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.

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

Return to corresponding overview page gif


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

©University of Liverpool, 1997
Wed May 28 20:20:27 BST 1997
Not for commercial use.