Basic HTML version of Foils prepared 16 Sept 1995

Foil 25 Advanced Mapping Directives -- ReDistribution and ReAlign

From HPFtutorial CPS615 Basic Simulation Track for Computational Science -- Fall Semester 95. by Geoffrey C. Fox(Tomasz Haupt)


1 This example illustrates remapping from one to two dimensional decomposition
  • REAL, ARRAY(64,64) :: A
  • REAL, ARRAY(64) :: B
2 !HPF$ PROCESSORS P(64)
3 !HPF$ PROCESSORS Q(8,8)
4 !HPF$ DYNAMIC :: A,B
5 !HPF$ ALIGN B(:) WITH A(:,*)
6 !HPF$ DISTRIBUTE A(*,BLOCK)ONTO P
  • ...
7 !HPF$ REALIGN B(:) WITH A(*,:)
  • ...
8 !HPF$ REDISTRIBUTE A(CYCLIC,CYCLIC) ONTO Q
  • ...

in Table To:


© on Tue Oct 7 1997