next up previous contents
Next: Reverse Strided Alignment Example Up: Data Distribution Previous: Visualisation of Transposed Alignment

Strided Alignment Example

Align each element of D with every second element of E:

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

This says: tex2html_wrap_inline45025 i, elements D(i) and E(i*2-1) are aligned. For example, D(3) and E(5). Alignment could also be written:

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

tex2html_wrap45045

This alignment is suitable for,

 D = D + E(::2) ! All local

For more information, click here gif


next up previous contents
Next: Reverse Strided Alignment Example Up: Data Distribution Previous: Visualisation of Transposed Alignment

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