[f2dace/staging] `simplify()` simply breaks `velocity_tendendencies` SDFG.
- Dominant language
- Python
- Stars
- 593
- Forks
- 163
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 60
Description
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
```python
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.
'''
```
Contributor guide
Assessment
This issue has not been assessed yet.