Skip to content

[f2dace/staging] simplify() simply breaks velocity_tendendencies SDFG. #2005

Open
@pratyai

Description

@pratyai

Verified on f2dace/staging branch (commit: 34e23611bedee4bed6c2d15e231e03e7faa5465c).

Before: https://polybox.ethz.ch/index.php/s/mD35Yj68CkwYJst
After: https://polybox.ethz.ch/index.php/s/yRaHt3MfNwKg3Jz

from dace import SDFG
from dace.transformation.interstate import LoopToMap
from dace.transformation.dataflow import MapCollapse

g = SDFG.from_file('~/Downloads/before.sdfgz')
g.simplify(skip=["ArrayElimination", "InlineSDFG"])

g.validate()
'''
output:
/Users/pmz/gitspace/dace/dace/sdfg/validation.py:551: UserWarning: WARNING: Use of uninitialized transient "cfl_clipping" in state "single_state_body_4"
  warnings.warn('WARNING: Use of uninitialized transient "%s" in state "%s"' %
/Users/pmz/gitspace/dace/dace/sdfg/validation.py:551: UserWarning: WARNING: Use of uninitialized transient "difcoef" in state "single_state_body"
  warnings.warn('WARNING: Use of uninitialized transient "%s" in state "%s"' %
/Users/pmz/gitspace/dace/dace/sdfg/validation.py:551: UserWarning: WARNING: Use of uninitialized transient "levmask" in state "single_state_body"
  warnings.warn('WARNING: Use of uninitialized transient "%s" in state "%s"' %
'''

g.view()
'''
Search on the UI to verify that there is a tasklet reading from `tmp_call_18` and assigning to somewhere.
'''

g.simplify(skip=["ArrayElimination", "InlineSDFG"])

g.view()
'''
Search on the UI to verify that `tmp_call_18` is nowhere to be found and that tasklet has been replaced by a constant.
'''

Metadata

Metadata

Assignees

Labels

criticalThis is urgent and / or affects many systems or peoplefortran

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions