Skip to content

Fix overlapping output compute blocks for multi-field stencils. - #81

Merged
tbennun merged 1 commit into
mainfrom
fix/merge-overlapping-output-sends
Oct 12, 2026
Merged

tbennun merged 1 commit into
mainfrom
fix/merge-overlapping-output-sends

Conversation

@luxfg

@luxfg luxfg commented Oct 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Merge output sends that cover the same PEs into one compute block, which the Spatial IR requires for a phase.
  • Split partial domain overlaps so the shared region carries every send and exclusive regions stay separate blocks.
  • This unblocks lowering of uvbke, which returns arg4 and arg5 on the same domain.

Test plan

  • pytest tests/stencil_ir/test_lowering_stencil_to_spatial.py::test_input_receives_index_within_arguments
  • pytest tests/stencil_ir/test_lowering_stencil_to_spatial.py

A phase may place each PE in only one compute block, so outputs that share a domain must send from the same block.
@tbennun
tbennun merged commit 984975f into main Oct 12, 2026
5 checks passed
@tbennun
tbennun deleted the fix/merge-overlapping-output-sends branch October 12, 2026 20:20
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.

2 participants