[ HPF Home | Versions | Compilers | Projects | Publications | Applications | Benchmarks | Events | Contact ] |
Next: Example 2
Up: EXECUTE-ON-HOME and LOCAL-ACCESS Previous: EXECUTE-ON-HOME and LOCAL-ACCESS
REAL A(N), B(N), C(N)
!HPF ALIGN WITH T:: A, B, C
!HPF
INDEPENDENT, EXECUTE (I) ON_HOME T(2*I), LOCAL_ACCESS A, B, C
DO I = 1, N/2
! we know that P(2*I-1) and P(2*I) is a permutation
! of 2*I-1 and 2*I
A(P(2*I - 1)) = B(2*I - 1) + C(2*I - 1)
A(P(2*I)) = B(2*I) + C(2*I)
END DO
©2000-2006 Rice University | [ Contact Us | HiPerSoft | Computer Science ] |