Skip to content

Commit 723b0be

Browse files
Merge branch 'fixindexrace' into 'master'
Fix Replicated Index Space Race See merge request StanfordLegion/legion!1577 (cherry picked from commit ebb7f17) 84235cf legion: fix race in registering commit preconditions for control replicated index space tasks Co-authored-by: Mike Bauer <[email protected]>
1 parent f3360d2 commit 723b0be

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

runtime/legion/legion_replication.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1522,8 +1522,11 @@ namespace Legion {
15221522
// No need to do anything with the output local precondition
15231523
// We already added it to the complete_effects when we made
15241524
// the collective at the beginning
1525-
if (collective_done.exists())
1525+
if (collective_done.exists() && !collective_done.has_triggered())
1526+
{
1527+
AutoLock o_lock(op_lock);
15261528
commit_preconditions.insert(collective_done);
1529+
}
15271530
}
15281531
// Now call the base version of this to finish making
15291532
// the instances for the future results

0 commit comments

Comments
 (0)