8000 fix[next][dace]: Do not apply map_promoter on symbolic range by edopao · Pull Request #2071 · GridTools/gt4py · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix[next][dace]: Do not apply map_promoter on symbolic range #2071

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

Merged
merged 7 commits into from
Jun 11, 2025

Conversation

edopao
Copy link
Contributor
@edopao edopao commented Jun 10, 2025

When a 1d temporary is consumed by different 2d maps, with symbolic range, we can promote the 1d producer map to a 2d map only if the range of the new dimension is known to be not empty. The issue found in icon4py (stencil 39_to_40, without constant substitution) was that the temporary was no longer produced, after applying MapPromotion, because the new dimension was empty. The other consumer maps, that actually needed the temporary data, found uninitialized data (it happened to be zeros).

Copy link
Contributor
@philip-paul-mueller philip-paul-mueller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we have to refine the approach a little bit but we are close.

If you need a discussion or if you need help in merging, as we have modified the transformation in PR#2063 please drop me a message.

Copy link
Contributor
@philip-paul-mueller philip-paul-mueller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, although I suggest to rename the argument in the test to make it more clear what is going on.

@philip-paul-mueller philip-paul-mueller merged commit c181bee into GridTools:main Jun 11, 2025
30 of 31 checks passed
@edopao edopao deleted the gtir-dace-fix_map_promoter branch June 11, 2025 11:59
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
0