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[next][dace]: Fix memlet for array slicing #1399

Merged
merged 2 commits into from
Dec 19, 2023

Conversation

edopao
Copy link
Contributor

@edopao edopao commented Dec 18, 2023

The memlet used for array slicing was configured in the wrong direction, which caused an error in memlet propagation when targeting a GPU node.

This problem was analyzed in DaCe issue #1481, and resolved by @philip-paul-mueller and @edopao. However, DaCe is still not able of generating CUDA code for such representation.

As a workaround, this PR proposes an implementation of array slicing based on a mapped tasklet.

The memlet used for array slicing was configured in the wrong
direction, which caused an error in memlet propagation.
@edopao edopao marked this pull request as ready for review December 18, 2023 13:47
@philip-paul-mueller
Copy link
Contributor

While the fix proposed by @edopao helps, I now get an error regarding some missed symbols in an nested SDFG.

@philip-paul-mueller philip-paul-mueller marked this pull request as draft December 18, 2023 14:26
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.

The changes looks good, but before the final approval it must also validate on GPU.

@edopao
Copy link
Contributor Author

edopao commented Dec 18, 2023

@philip-paul-mueller I have pushed a different implementation, based on a mapped tasklet. This implementation works on GPU (tested on TestMoVelocityAdvectionStencil20).

@edopao edopao marked this pull request as ready for review December 19, 2023 07:38
@edopao edopao merged commit 15a7bd6 into GridTools:main Dec 19, 2023
@edopao edopao deleted the dace-fix-deref branch December 19, 2023 07:43
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