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][next]: Update MapFusion #1857

Merged

Conversation

philip-paul-mueller
Copy link
Contributor

@philip-paul-mueller philip-paul-mueller commented Feb 11, 2025

Last year, the then state of MapFusion from DaCe PR#1629 was added to GT4Py, as a temporary fix until the PR in DaCe is merged and parallel map fusion has become available there.
However, during that time the transformation in the PR has evolved and improved and some of the bug that were fixed are now appearing in GT4Py, for example PR#1850 and PR#1856.

Thus this PR updated the MapFusion transformation that is currently inside GT4Py and replaces it with newest development version from DaCe.
Because we need it, and it was designed from the start to be that way, it also adds parallel map fusion to the transformation.
As before, this transformation, currently fully located in map_fusion_dace.py, is only kept inside the repo until DaCe has caught up to it.

The PR also introduces some additional memory layer that encapsulates the DaCe transformation.
Something that we have to deal with in the long run and we currently do because other parts of the toolchain require it.

… the PR into GT4Py.

The reason is that it is no longer economic to backport stuff we have to start fresh.
However, we will now do some development on it here.
This file is essentially how the final map fusion in DaCe should look like.
It is fully backwards compable, in the sense that parallel map fusion has to be enabled.
We will now start to integrate it into our toolchain.
@philip-paul-mueller philip-paul-mueller marked this pull request as ready for review February 12, 2025 15:22
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.

LGTM

@philip-paul-mueller philip-paul-mueller merged commit 937e894 into GridTools:main Feb 14, 2025
23 checks passed
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