You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The simplify pass throws the exception below in the GT4Py SDFGs containing LoopRegion nodes. This error goes away if I run sdutils.inline_loop_blocks(sdfg) before simplify().
Traceback (most recent call last):
File "/opt/homebrew/Caskroom/miniconda/base/envs/edopao-gt4py/lib/python3.10/site-packages/networkx/classes/graph.py", line 2010, in bunch_iter
for n in nlist:
TypeError: 'AccessNode' object is not iterable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/epaone/repo/dace/dace/sdfg/sdfg.py", line 2384, in simplify
return SimplifyPass(validate=validate, validate_all=validate_all, verbose=verbose).apply_pass(self, {})
File "/Users/epaone/repo/dace/dace/transformation/passes/simplify.py", line 113, in apply_pass
result = super().apply_pass(sdfg, pipeline_results)
File "/Users/epaone/repo/dace/dace/transformation/pass_pipeline.py", line 547, in apply_pass
newret = super().apply_pass(sdfg, state)
File "/Users/epaone/repo/dace/dace/transformation/pass_pipeline.py", line 502, in apply_pass
r = self.apply_subpass(sdfg, p, state)
File "/Users/epaone/repo/dace/dace/transformation/passes/simplify.py", line 90, in apply_subpass
ret = p.apply_pass(sdfg, state)
File "/Users/epaone/repo/dace/dace/transformation/passes/analysis.py", line 162, in apply_pass
if state.in_degree(anode) > 0:
File "/Users/epaone/repo/dace/dace/sdfg/graph.py", line 696, in in_degree
return self._nx.in_degree(node)
File "/opt/homebrew/Caskroom/miniconda/base/envs/edopao-gt4py/lib/python3.10/site-packages/networkx/classes/reportviews.py", line 436, in __call__
return self.__class__(self._graph, nbunch, weight)
File "/opt/homebrew/Caskroom/miniconda/base/envs/edopao-gt4py/lib/python3.10/site-packages/networkx/classes/reportviews.py", line 421, in __init__
self._nodes = self._succ if nbunch is None else list(G.nbunch_iter(nbunch))
File "/opt/homebrew/Caskroom/miniconda/base/envs/edopao-gt4py/lib/python3.10/site-packages/networkx/classes/graph.py", line 2025, in bunch_iter
raise exc
networkx.exception.NetworkXError: nbunch is not a node or a sequence of nodes.
One additional note: The linked PR introduces a flag on SDFGs dace.sdfg.sdfg.SDFG.using_experimental_blocks. This is a boolean property that can be set to indicate that an SDFG contains the still being worked on features like LoopRegions. It is important to make sure that property is set when using LoopRegions, because certain passes are not yet compatible with them or have not yet been adapted to handle them. Setting this flag will ensure no such passes (or transformations) get executed.
The simplify pass throws the exception below in the GT4Py SDFGs containing
LoopRegion
nodes. This error goes away if I runsdutils.inline_loop_blocks(sdfg)
beforesimplify()
.Here is a test case to reproduce the issue.
The text was updated successfully, but these errors were encountered: