next up previous contents
Next: Solution Up: Alignment using Templates Previous: Solution

 

Local Index Sets

For the following distributions, which processors own what elements,

  1.      REAL A(10), B(10,10), C(25)
    !HPF$ PROCESSORS P(7)
    !HPF$ TEMPLATE T(51)
    !HPF$ ALIGN A(:) WITH T(1::5)
    !HPF$ ALIGN B(:,*) WITH T(20::3)
    !HPF$ ALIGN C(:) WITH T(:)
    !HPF$ ALIGN C(:) WITH T(:)
    !HPF$ DISTRIBUTE T(CYCLIC(2)) ONTO P
  2.      REAL A(100)
    !HPF$ PROCESSORS P(10,10)
    !HPF$ TEMPLATE T(100,100)
    !HPF$ ALIGN A(:) WITH T(:,*)
    !HPF$ DISTRIBUTE T(BLOCK,BLOCK) ONTO P
  3.      REAL A(100), B(100)
    !HPF$ PROCESSORS P(10)
    !HPF$ TEMPLATE T(100,100)
    !HPF$ ALIGN A(:) WITH T(:,*)
    !HPF$ DISTRIBUTE T(*,BLOCK) ONTO P




next up previous contents
Next: Solution Up: Alignment using Templates Previous: Solution

Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 14:10:26 GMT 1996