next up previous contents
Next: Array Arguments Example 1 Up: Procedures Previous: Explicit Intent

 

Passing Array Sections

Without using INHERIT, this is very complex. Consider

     REAL, DIMENSION(4,6) :: A, B
     REAL, DIMENSION(2,3) :: Res
!HPF$ PROCESSORS, DIMENSION(2,2) :: P
!HPF$ ALIGN B(:,:)   WITH A(:,:)
!HPF$ ALIGN Res(:,:) WITH A(::2,::2)
!HPF$ DISTRIBUTE (BLOCK,BLOCK) ONTO P :: A, B, Res
      ...
      CALL Zubbie(A(1:2,1::2),B(3:4,2::2),Res)

For descriptive distributions what should interface look like?

For more information, click here gif


next up previous contents
Next: Array Arguments Example 1 Up: Procedures Previous: Explicit Intent

©University of Liverpool, 1997
Wed May 28 23:37:18 BST 1997
Not for commercial use.