Basic HTML version of Foils prepared 17 Sept 1996

Foil 38 Distribution Directive in HPF

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


Syntax:
!HPF$ DISTRIBUTE distributee (dist-format)
[ONTO dist-target]
Allowed forms of dist-format:
  • * -- Implies no distribution in this index
  • BLOCK -- Critical to minimize communication
  • CYCLIC -- Critical for load balancing
  • BLOCK(int-expr) -- Not Obviously useful!
  • CYCLIC(int-expr) -- Very useful
Examples:
  • CHPF$ DISTRIBUTE TEMP(BLOCK,CYCLIC)
  • !HPF$ DISTRIBUTE FRED(BLOCK(10)) ONTO P
  • *HPF$ DISTRIBUTE (BLOCK,*) :: MYTEMPLATE



© on Tue Oct 7 1997