Implementation of FORALL and INDEPENDENT (2)
Dependence analysis can further limit synchronization
- FORALL: If RHS and LHS do not access the same element, no synchronization is needed
Data need only be moved at synchronization points
- FORALL: Before each RHS & LHS
- INDEPENDENT: Before the loop