Skip to content

Commit

Permalink
compiler: Patch data dependencies across Jumps
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioLuporini committed Feb 13, 2023
1 parent 96e618a commit 37e549e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion devito/ir/support/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from cached_property import cached_property
from sympy import S
from sympy.tensor.indexed import IndexException

from devito.ir.support.space import Backward, IterationSpace
from devito.ir.support.utils import AccessMode
Expand Down Expand Up @@ -822,7 +823,10 @@ def __init__(self, exprs, rules=None):
f = a.function
indices = [i if d in e.ispace else S.Infinity
for i, d in zip(a, a.aindices)]
mock = f.indexify(indices)
try:
mock = f.indexify(indices)
except IndexException:
continue
v = self.writes.setdefault(f, [])
v.extend([TimedAccess(mock, 'R', i, e.ispace),
TimedAccess(mock, 'W', i, e.ispace)])
Expand Down

0 comments on commit 37e549e

Please sign in to comment.