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)


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



© on Tue Oct 7 1997