Skip to content

Commit

Permalink
Merge pull request #2065 from devitocodes/hotfix-unexpansion
Browse files Browse the repository at this point in the history
compiler: Patch data dependencies across Jumps
  • Loading branch information
FabioLuporini committed Feb 13, 2023
2 parents 24c64cf + 37e549e commit 405b113
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion devito/ir/support/basic.py
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 405b113

Please sign in to comment.