next up previous contents
Next: Processors Problem Up: HPF and Procedures Previous: Collapsing Dimensions

Scalar Arguments

This slide demonstrates what happens if a single array item is used as an actual argument. Consider,

    REAL, DIMENSION(100,100)    :: A, B
    REAL                        :: z
!HPF$ DISTRIBUTE (BLOCK,BLOCK)  :: A, B
    INTERFACE
     SUBROUTINE Schmubbie(r,t,X)
      REAL, INTENT(OUT)         :: r
      REAL, INTENT(IN)          :: t
      REAL, INTENT(IN)          :: X(:,:)
!HPF$ DISTRIBUTE *(BLOCK,BLOCK) :: X
     END SUBROUTINE Schmubbie
    END INTERFACE
     ...
    CALL Schmubbie(A(1,1),z,B)

r will be replicated, t already is.

For more information, click here gif

Now try this question gif


next up previous contents
Next: Processors Problem Up: HPF and Procedures Previous: Collapsing Dimensions

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