Skip to content

Commit

Permalink
Flush scheduling window before tree reduction is performed (nv-legate…
Browse files Browse the repository at this point in the history
  • Loading branch information
magnatelee authored Apr 19, 2022
1 parent d9b38a7 commit ae5140d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions legate/core/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,10 @@ def tree_reduce(
result = self.create_store(store.type)
unique_op_id = self.get_unique_op_id()

# Make sure we flush the scheduling window, as we will bypass
# the partitioner below
self.runtime.flush_scheduling_window()

# A single Reduce operation is mapepd to a whole reduction tree
task = Reduce(self, task_id, radix, mapper_id, unique_op_id)
task.add_input(store)
Expand Down

0 comments on commit ae5140d

Please sign in to comment.