Open ehsantn opened 8 years ago
Do you have a test case I can work on this with?
If a parfor p
has index variable i
and array is accessed with index variable j
, we need to make sure j
doesn't depend on i
before parallelizing p
. This requires dependence analysis.
Think my latest checkin does this. It passes index_test.jl at least.
The result of index_test.jl is wrong I believe. All arrays should be SEQ but they are not. I update the test to properly check for this.
DistributedPass
inference needs proper index analysis for arrays accessed in parfors.