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

fix[dace]: Updating MapFusion #1850

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

philip-paul-mueller
Copy link
Contributor

The MapFusion PR in DaCe is still under review.
However, the MapFusion in that PR has evolved, i.e. some bugs were fixed and now GT4Py is also these bugs.
This PR essentially back ports some of the fixes to GT4Py.

Note that this is a temporary solution and as soon as the MapFusion PR has been merged (and parallel map fusion has been introduced) the GT4Py version will go away.

@edopao edopao changed the title fix[dace]: Updateing MapFusion fix[dace]: Updating MapFusion Feb 6, 2025
Copy link
Contributor

@edopao edopao left a comment

Choose a reason for hiding this comment

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

Only one minor comment.

squeezed_dims: List[int] = [] # These are the dimensions we removed.
new_inter_shape: List[int] = [] # This is the final shape of the new intermediate.
for dim, (proposed_dim_size, full_dim_size) in enumerate(
zip(new_inter_shape_raw, inter_shape)
Copy link
Contributor

Choose a reason for hiding this comment

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

Since inter_shape is cloned from a function input argument and producer_subset is also an input argument, I would suggest:

Suggested change
zip(new_inter_shape_raw, inter_shape)
zip(new_inter_shape_raw, inter_shape, strict=True)

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