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[next][dace]: GTIR-to-SDFG lowering of neighbors and reduce #1597

Merged

Conversation

edopao
Copy link
Contributor

@edopao edopao commented Jul 29, 2024

This PR adds lowering of neighbors and reduce operators to DaCe SDFG.

@edopao edopao marked this pull request as ready for review July 29, 2024 15:17
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.

A first round of comments.

Copy link
Contributor Author

@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.

Thanks for the comments, I will soon update my PR.

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.

There are some small things, but nothing that essentially blocks merging.
However, maybe someone else should also take a small look, for example Till.

@@ -776,6 +785,447 @@ def test_gtir_connectivity_shift_chain():
assert np.allclose(e_out, ref)


def test_gtir_neighbors_as_input():
# FIXME[#1582](edopao): Enable testcase when type inference is working
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tehrengruber I have added 6 testcases for neighbors and reduce but 3 of them are currently skipped, because of the issues we discussed about fields of lists as input/output to programs or in combination with map operations. Later we can try to enable them, when GTIR type inference has support.

@edopao edopao merged commit 719c487 into GridTools:main Jul 30, 2024
31 checks passed
@edopao edopao deleted the dace-fieldview-neighbors-let_reduce_identity branch July 30, 2024 11:26
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