Skip to content

Commit

Permalink
compiler: Fix CDE
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioLuporini committed Feb 12, 2024
1 parent 377d189 commit ca97026
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions devito/passes/clusters/derivatives.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def lower_index_derivatives(clusters, mode=None, **kwargs):
# previously were just not detectable via e.g. plain CSE. For example, if
# there were two IndexDerivatives such as `(p.dx + m.dx).dx` and `m.dx.dx`
# then it's only after `_lower_index_derivatives` that they're detectable!
# TODO: see https://github.com/devitocodes/devito/issues/2306
clusters = CDE(mapper).process(clusters)

return clusters
Expand Down Expand Up @@ -189,6 +190,9 @@ class CDE(Queue):
Common derivative elimination.
"""

_q_guards_in_key = True
_q_syncs_in_key = True

def __init__(self, mapper):
super().__init__()

Expand Down

0 comments on commit ca97026

Please sign in to comment.