Implementation of FORALL and INDEPENDENT (3)
Function calls in INDEPENDENT or FORALL make data movement much more challenging in distributed memory
- There is no race condition
- But finding and sending the data is hard
This often leads to compiler serialization
- Usually there is a compiler override switch to parallelize at least some cases
- Best advice: Don't use global data in functions