next up previous contents
Next: Visualisation Up: Data Distribution Previous: Alternative Template Syntax

Another Template Example

Recall an earlier example,

    PROGRAM Warty
     IMPLICIT NONE
     REAL, DIMENSION(4) :: C 
     REAL, DIMENSION(8) :: D 
     REAL, DIMENSION(2) :: E
!HPF$ TEMPLATE, DIMENSION(8) :: T
!HPF$ ALIGN D(:) WITH T(:)
!HPF$ ALIGN C(:) WITH T(::2)
!HPF$ ALIGN E(:) WITH T(::4)
!HPF$ DISTRIBUTE (BLOCK) :: T
      C = 1; D = 2
      E = D(::4) + C(::2)
    END PROGRAM Warty

this time the directives use an intermediate template.

For more information, click here gif


next up previous contents
Next: Visualisation Up: Data Distribution Previous: Alternative Template Syntax

Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 18:56:08 GMT 1996
Not for commercial use.