Skip to content

Commit

Permalink
compiler: Patch double buffering
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioLuporini committed Oct 25, 2023
1 parent 522d475 commit 4706e66
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion devito/passes/clusters/buffering.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,11 @@ def __init_multi_buffering__(self):

lhs, rhs = expr.args

self.xd = lhs.function.indices[self.dim]
maybe_xd = lhs.function.indices[self.dim]
if not isinstance(maybe_xd, CustomDimension):
maybe_xd = rhs.function.indices[self.dim]
assert isinstance(maybe_xd, CustomDimension)
self.xd = maybe_xd

idx0 = lhs.indices[self.dim]
idx1 = rhs.indices[self.dim]
Expand Down

0 comments on commit 4706e66

Please sign in to comment.