next up previous contents
Next: Practical Example of Alignment Up: Data 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_inline45025 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_wrap45053

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: Data Distribution Previous: Strided Alignment Example

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