Skip to content

[pallas] size emit_pipeline scratch from reshape-merged block-size products#2769

Open
choijon5 wants to merge 1 commit into
mainfrom
choijon5/stack/93
Open

[pallas] size emit_pipeline scratch from reshape-merged block-size products#2769
choijon5 wants to merge 1 commit into
mainfrom
choijon5/stack/93

Conversation

@choijon5

@choijon5 choijon5 commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

A reshape([-1, d]) that merges tiled dims gives a leading size that is a sympy
product of block-size symbols (u0u1u2). _resolve_shape only resolved a single
block symbol and fell back to int(s) = the full-extent size hint, over-sizing
the loop-carried VMEM scratch for emit_pipeline/fori_loop and crashing at
runtime. Resolve compound expressions by substituting each block size.

…oducts

A reshape([-1, d]) that merges tiled dims gives a leading size that is a sympy
product of block-size symbols (u0*u1*u2). _resolve_shape only resolved a single
block symbol and fell back to int(s) = the full-extent size hint, over-sizing
the loop-carried VMEM scratch for emit_pipeline/fori_loop and crashing at
runtime. Resolve compound expressions by substituting each block size.

stack-info: PR: #2769, branch: choijon5/stack/93
@choijon5 choijon5 force-pushed the choijon5/stack/93 branch from 9d7ae0c to 9a73569 Compare June 11, 2026 21:27
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant