Basic HTML version of Foils prepared 16 Sept 1995

Foil 11 Template in HPF

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


1 A template is an abstract space of indexed positions (an "array of nothings")
2 In CMFortran terminology, Template is set of Virtual Processors -- one per data point
3 A template is declared by the TEMPLATE directive that specifies:
  • name of the template
  • the rank (i.e., number of dimensions)
  • the extent in each dimension
4 Examples:
  • CHPF$ TEMPLATE T(1000)
  • !HPF$ TEMPLATE FRED(N, 2*N)
  • *HPF$ TEMPLATE, DIMENSION(5,100,50) :: MINE, YOURS

in Table To:


© on Tue Oct 7 1997