Basic HTML version of Foils prepared 17 Sept 1996

Foil 46 Advanced Mapping Directives -- ReDistribution and ReAlign

From New CPS615HPF and Fortran90 Discussion Sept 17 96 Basic Simulation Track for Computational Science CPS615 -- Fall Semester 96. by Geoffrey C. Fox, Tom Haupt


1 This example illustrates remapping from one to two dimensional decomposition for A and changing B from alignment with columns to alignment with rows
  • REAL, DIMENSION(64,64) :: A
  • REAL, DIMENSION(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