-
Notifications
You must be signed in to change notification settings - Fork 54
fix[next]: apply cse in fuse_as_fieldop #2257
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
Conversation
src/gt4py/next/iterator/transforms/fixed_point_transformation.py
Outdated
Show resolved
Hide resolved
| fuse_args, | ||
| uids=self.uids, | ||
| offset_provider_type=self.offset_provider_type, | ||
| enable_cse=True, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this option mainly for testing, but now we could disable it here and we wouldn't have to pass the offset_provider_type. Not sure what to do...
| # instead of an as_fieldop | ||
| if cpm.is_call_to( | ||
| node, ("lift", "shift", "reduce", "map_", "index") | ||
| node, ("lift", "shift", "neighbors", "reduce", "map_", "index") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you extend the comment above to document why neighbors should not be collected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering if this can be undone, after unroll_reduce #2267 ?
|
running icon4py ci here C2SM/icon4py#869 |
Applies cse in fuse_as_fieldop to simplify the tree in nested repeated operations.