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 let-lambdas #1589

Merged
merged 190 commits into from
Jul 29, 2024

Conversation

edopao
Copy link
Contributor

@edopao edopao commented Jul 25, 2024

This PR adds lowering of let-lambdas to DaCe SDFG.

@edopao edopao marked this pull request as ready for review July 25, 2024 09:56
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.

Other than a couple of minor python style issues looks fine to me, but I think someone else should be the main reviewer of this PR (@tehrengruber ? @philip-paul-mueller ?)

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 did not found anything major, I have two suggestions and one question.

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 afterwards we should be able to merge it.

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.

LGTM.

@edopao edopao merged commit abed597 into GridTools:main Jul 29, 2024
31 checks passed
@edopao edopao deleted the dace-fieldview-let_lambdas-rebase branch July 29, 2024 14:34
edopao added a commit that referenced this pull request Sep 3, 2024
…DFG) (#1601)

This PR proposes an alternative design for the lowering of let-lambdas
to SDFG, than the design provided in #1589. The previous PR added a
separate state for the definition of let-symbols: the disadvantage of
that solution is that the generated SDFG does not clearly represent the
data dependency. The alternative design proposed in this PR uses a
nested SDFG to represent some local symbols in the lambda scope. The
lambda function is lowered inside the nested SDFG. We rely on the
simplify pass to remove unnecessary nested SDFGs.
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.

3 participants