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

©University of Liverpool, 1997
Wed May 28 23:37:18 BST 1997
Not for commercial use.