Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[SPIRV][Codegen] Refine consumer compatibility checks for SPIRVSubgroupReduce#23176

Merged
efric merged 8 commits into
iree-org:mainfrom
efric:spirv-bug
Jan 18, 2026
Merged

[SPIRV][Codegen] Refine consumer compatibility checks for SPIRVSubgroupReduce#23176
efric merged 8 commits into
iree-org:mainfrom
efric:spirv-bug

Conversation

@efric
Copy link
Copy Markdown
Member

@efric efric commented Jan 16, 2026

Improves SPIRVSubgroupReduce kernel config selection for reductions with consumers. Refines consumer compatibility checks and improves workgroup size fallback by halving from the original group size down to subgroup_size to find a consumer compatible size, rather than clamping immediately. Also bail out of reduction pipeline entirely when consumers are fundamentally non-distributable under the constraints.

Fixes: #23177

efric added 4 commits January 16, 2026 13:50
Signed-off-by: Eric Feng <[email protected]>
Signed-off-by: Eric Feng <[email protected]>
Signed-off-by: Eric Feng <[email protected]>
@efric efric marked this pull request as ready for review January 16, 2026 22:54
@efric efric requested a review from kuhar as a code owner January 16, 2026 22:54
efric added 2 commits January 16, 2026 15:53
Signed-off-by: Eric Feng <[email protected]>
Signed-off-by: Eric Feng <[email protected]>
Comment thread compiler/src/iree/compiler/Codegen/SPIRV/KernelConfig.cpp Outdated
efric added 2 commits January 18, 2026 11:26
Signed-off-by: Eric Feng <[email protected]>
Signed-off-by: Eric Feng <[email protected]>
@efric efric enabled auto-merge (squash) January 18, 2026 19:29
@efric efric merged commit 6c50bfd into iree-org:main Jan 18, 2026
53 of 56 checks passed
keshavvinayak01 pushed a commit that referenced this pull request Jan 27, 2026
…upReduce (#23176)

Improves `SPIRVSubgroupReduce` kernel config selection for reductions
with consumers. Refines consumer compatibility checks and improves
workgroup size fallback by halving from the original group size down to
`subgroup_size` to find a consumer compatible size, rather than clamping
immediately. Also bail out of reduction pipeline entirely when consumers
are fundamentally non-distributable under the constraints.

Fixes: #23177

---------

Signed-off-by: Eric Feng <[email protected]>
Signed-off-by: Keshav Vinayak Jha <[email protected]>
MaheshRavishankar pushed a commit to MaheshRavishankar/iree that referenced this pull request Feb 24, 2026
…upReduce (iree-org#23176)

Improves `SPIRVSubgroupReduce` kernel config selection for reductions
with consumers. Refines consumer compatibility checks and improves
workgroup size fallback by halving from the original group size down to
`subgroup_size` to find a consumer compatible size, rather than clamping
immediately. Also bail out of reduction pipeline entirely when consumers
are fundamentally non-distributable under the constraints.

Fixes: iree-org#23177

---------

Signed-off-by: Eric Feng <[email protected]>
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.

[spirv] lowering issue with SPIRVSubgroupReduce when handling reduction with elementwise consumer

2 participants