From 37e549ee6eb4cc53b42aa48035269ff28359f147 Mon Sep 17 00:00:00 2001 From: FabioLuporini Date: Mon, 13 Feb 2023 15:32:55 +0000 Subject: [PATCH] compiler: Patch data dependencies across Jumps --- devito/ir/support/basic.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/devito/ir/support/basic.py b/devito/ir/support/basic.py index dda010d75f..9c269f4026 100644 --- a/devito/ir/support/basic.py +++ b/devito/ir/support/basic.py @@ -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 @@ -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)])