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 shifts #1577

Merged
merged 143 commits into from
Jul 25, 2024

Conversation

edopao
Copy link
Contributor

@edopao edopao commented Jul 12, 2024

This PR adds support for lowering of the shift operator to DaCe SDFG. It supports both cartesian and unstructured shift. The shift also works with dynamic offset. The lowering is designed in a way to support pure fieldview IR as well as mixed IR with composition of shift operators.

Additional changes:

  • type inference is enabled
  • the IR maker as_fieldop is imported from gtir branch and the IRs in dace tests are updated to use it
  • the storage for literal values and symbols is changed to scalar (was array before)
  • removed extra call around the cond primitive, which was not needed since no arguments are passed

@edopao edopao marked this pull request as ready for review July 22, 2024 09:41
@edopao edopao requested a review from egparedes July 22, 2024 09:41
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 only looked at the SDFG parts.
There is nothing really major.

Copy link
Contributor

@egparedes egparedes left a comment

Choose a reason for hiding this comment

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

Just minor comments and a couple of questions.

@edopao
Copy link
Contributor Author

edopao commented Jul 24, 2024

@tehrengruber I have imported some helpers from gtir branch in src/gt4py/next/iterator, and I have added type inference for the cond builtin. Maybe you could have a look at it.

@edopao edopao requested a review from tehrengruber July 24, 2024 14:34
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.

Just some questions and a proposal for clarification of wording.

@edopao edopao merged commit 1051a6d into GridTools:main Jul 25, 2024
31 checks passed
@edopao edopao deleted the dace-fieldview-shifts branch July 25, 2024 09:40
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.

4 participants