next up previous contents
Next: Practical Example of Alignment Up: Alignment and Distribution Previous: Strided Alignment Example

 

Reverse Strided Alignment Example

Can reverse an array before alignment:

    REAL, DIMENSION(5)  :: D
    REAL, DIMENSION(10) :: E
!HPF$ ALIGN D(:) WITH E(UBOUND(E)::-2)

This says: tex2html_wrap_inline28767 i, elements E(2+UBOUND(E)-i*2) and D(i) are local, for example, D(1) and E(10). Alignment could also be written:

!HPF$ ALIGN D(i) WITH E(2+UBOUND(E)-i*2)

tex2html_wrap28795

This alignment is suitable for,

 D = D + E(10:1:-2) ! All local

For more information, click here gif


next up previous contents
Next: Practical Example of Alignment Up: Alignment and Distribution Previous: Strided Alignment Example

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