Basic HTML version of Foils prepared 17 Sept 1996

Foil 35 General Alignments 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


HPF allows for more general alignments such as:
  • REAL, DIMENSION(5,8) :: A,B
!HPF$ TEMPLATE T(12,12)
!HPF$ ALIGN A(:,J) WITH T(:,J+1)
!HPF$ ALIGN B(I,J) WITH T(I+4,J+4)
Useful for simple numerical shifts as in example but not useful
in general case of arbitary
index values allowed by
ALIGN syntax



© on Tue Oct 7 1997