next up previous contents
Next: Visualisation Up: Alignment and 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: Alignment and Distribution Previous: Alternative Template Syntax

©University of Liverpool, 1997
Wed May 28 23:37:18 BST 1997
Not for commercial use.