Skip to content

stencil: Various enhancements#682

Merged
jpsamaroo merged 4 commits intomasterfrom
jps/stencil-bcast
Feb 12, 2026
Merged

stencil: Various enhancements#682
jpsamaroo merged 4 commits intomasterfrom
jps/stencil-bcast

Conversation

@jpsamaroo
Copy link
Copy Markdown
Member

@jpsamaroo jpsamaroo commented Feb 11, 2026

This PR improves stencils in a number of ways:

  • Removes the need for spawn_datadeps around @stencil
  • Allows expressions like @stencil(sum(@neighbors(A[idx], 1, Wrap()))), which auto-allocates the output container
  • Validates that @stencil can be used in broadcast expressions
  • Supports writing to read variables, like @stencil(A[idx] = sum(@neighbors(A[idx], 1, Wrap())))

Written by Gemini

Todo:

  • Update docs

@jpsamaroo jpsamaroo merged commit 6cffec1 into master Feb 12, 2026
9 of 17 checks passed
@jpsamaroo jpsamaroo deleted the jps/stencil-bcast branch February 12, 2026 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant