next up previous contents
Next: Independent Loops - Conditions Up: Data Parallel Execution Previous: MIMD Example

The INDEPENDENT Directive

The INDEPENDENT directive:

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 gif


next up previous contents
Next: Independent Loops - Conditions Up: Data Parallel Execution Previous: MIMD Example

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