Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat[dace]: Modified gt_simplify() #1647

Merged

Conversation

philip-paul-mueller
Copy link
Contributor

Before the pass was just calling the native DaCe version. Now it will not call the PromoteScalarToSymbol and ConstantPropagation pass. This is because the lowering sometimes has to change between a symbol and a scalar and back and back again and so on. Furthermore, it looks like these passes have problems with that, so we excluded them.

This is a temporary solution, at the end, it might be feasible or good to run the full simplify pass.

Before the pass was just calling the native DaCe version.
Now it will not call the `PromoteScalarToSymbol` and `ConstantPropagation` pass.
This is because the lowering sometimes has to change between a symbol and a scalar and back and back angain and so on.
Furthermore, it looks like these passes have problems with that, so we excluded them.

This is a temporary solution, at the end, it might be feasable or good to run the full simplify pass.
Thus if `skip` is `None` or empty, then the full DaCe pass will be run.
Futhermore, the argument now accepts an iterable, for correctness we have to turn it into a `set` though.
@philip-paul-mueller philip-paul-mueller merged commit 07e2ee9 into GridTools:main Sep 18, 2024
31 checks passed
@philip-paul-mueller philip-paul-mueller deleted the gt_simplify_skip_set branch September 19, 2024 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants