Next: Independent Loops - Conditions
Up: Data Parallel Execution
Previous: MIMD Example
The INDEPENDENT directive:
- can be applied to DO loops and FORALL
assignments.
- asserts that no iteration affects any other iteration either
directly or indirectly.
For DO-loops INDEPENDENT means the iterations or assignments
can be performed in any order:
!HPF$ INDEPENDENT
DO i = 1,n
x(i) = i**2
END DO
For FORALL statements INDEPENDENT means the whole RHS does
not have to be evaluated before assignment to the LHS can begin,
!HPF$ INDEPENDENT
FORALL (i = 1:n) x(i) = i**2
For more information, click here
Next: Independent Loops - Conditions
Up: Data Parallel Execution
Previous: MIMD Example
©University of Liverpool, 1997
Wed May 28 23:37:18 BST 1997Not for commercial use.