Skip to content

Commit

Permalink
compiler: Tweak lowering of HaloTouch
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioLuporini committed May 25, 2023
1 parent df820d6 commit 9a2c468
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion devito/ir/stree/algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ def preprocess(clusters):

found = []
for c1 in list(queue):
if c1.halo_scheme.distributed_aindices & dims:
if c1.guards == c.guards and \
c1.halo_scheme.distributed_aindices & dims:
found.append(c1)
queue.remove(c1)

Expand All @@ -155,6 +156,9 @@ def preprocess(clusters):

processed.append(c.rebuild(syncs=syncs, halo_scheme=halo_scheme))

# Sanity check!
assert not queue

return processed


Expand Down

0 comments on commit 9a2c468

Please sign in to comment.