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]: lowering of scan to SDFG #1776

Open
wants to merge 216 commits into
base: main
Choose a base branch
from

Conversation

edopao
Copy link
Contributor

@edopao edopao commented Dec 6, 2024

This PR contains the lowering of the scan builtin function.

DropD and others added 30 commits November 18, 2024 13:38
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.

It looks generally good but I would strongly suggest to split the translate_scan function into several smaller functions that each handle one particular aspect of the translation.

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.

I have addressed all comments except splitting the lowering of the scan into multiple functions / separate module. I will push another commit on this PR for that, so it is easier to review.


# parse the dataflow input and output symbols
lambda_flat_args: dict[str, FieldopData] = {}
lambda_field_offsets: dict[str, Optional[list[dace.symbolic.SymExpr]]] = {}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right. Be aware that there will be another PR that will change the way we setup field offsets, to support new features in recent GTIR PRs (#1779).

@edopao
Copy link
Contributor Author

edopao commented Jan 17, 2025

Thanks for the review comments. I have moved the scan translator to a separate module and split it into small functions. At some point I stopped, in order to avoid too much fragmentation. I agree, it looks much better now!

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