Skip to content

Conversation

@havogt
Copy link
Contributor

@havogt havogt commented Sep 11, 2025

Applies cse in fuse_as_fieldop to simplify the tree in nested repeated operations.

@edopao edopao marked this pull request as draft October 23, 2025 18:12
@havogt havogt marked this pull request as ready for review November 27, 2025 14:46
@havogt havogt requested a review from tehrengruber November 27, 2025 14:46
fuse_args,
uids=self.uids,
offset_provider_type=self.offset_provider_type,
enable_cse=True,
Copy link
Contributor Author

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")
Copy link
Contributor

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.

Copy link
Contributor Author

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 ?

@havogt
Copy link
Contributor Author

havogt commented Dec 3, 2025

running icon4py ci here C2SM/icon4py#869

@havogt havogt merged commit 7249e02 into GridTools:main Dec 3, 2025
29 of 33 checks passed
@havogt havogt deleted the cse_in_fieldop_fusion branch December 3, 2025 12:02
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