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

Argument Remapping

Should not remap across a procedure boundary unless absolutely essential. The implied communications can be very time consuming. Consider,

      INTEGER, DIMENSION(512,512) :: ia, ib
!HPF$ DISTRIBUTE (BLOCK,BLOCK) :: ia, ib
       DO icnt = 1, 10
        CALL ReMapSub(ia,ib)
       END DO
      END 
      SUBROUTINE ReMapSub(iarg1, iarg2)
      INTEGER, DIMENSION(512,512):: iarg1, iarg2
!HPF directive goes here 
       iarg2 = 2*iarg1
      END SUBROUTINE ReMapSub

With NA Software Compiler, if iarg1 and iarg2 are distributed as,

For more information, click here gif


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

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