Skip to content

Fix unrolling over field broadcast arguments #2350

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dennisYatunin
Copy link
Member

This PR overrides the recursive unrolling used in Base.Broadcast.combine_styles with manual unrolling, which will hopefully allow us to avoid inference issues in broadcast expressions with many arguments. Specifically, this should allow us to fix the allocations and inference failures in CliMA/ClimaAtmos.jl#3864.

  • Code follows the style guidelines OR N/A.
  • Unit tests are included OR N/A.
  • Code is exercised in an integration test OR N/A.
  • Documentation has been added/updated OR N/A.

@dennisYatunin dennisYatunin requested a review from costachris June 27, 2025 01:04
@dennisYatunin dennisYatunin force-pushed the dy/broadcast_argument_unrolling branch from 886808b to 39a7ee9 Compare June 27, 2025 10:09
@dennisYatunin dennisYatunin force-pushed the dy/broadcast_argument_unrolling branch from 39a7ee9 to 66c0a84 Compare June 27, 2025 10:15
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.

1 participant