Repository navigation
Conversation
Replace the shuffle butterfly in emitGPUGroupReduction with gpu.subgroup_reduce. SPIR-V lowers that to one GroupNonUniform reduction, and ExpandGPUOps still chooses DPP or shuffles for LLVMGPU. Drop expandSubgroupReduce: it only selected the old shuffle expansion, which every caller had opted out of. Build integer identities at the element width so i32 maxsi, minsi, and and are not truncated. Fixes iree-org#18516 Fixes iree-org#20318 Assisted-by: Cursor Grok 4.7 Signed-off-by: Alexander Dick <[email protected]> Co-authored-by: Cursor <[email protected]>
setReductionConfig numbers lanes using the preferred subgroup size. On a target that can run more than one size, such as RDNA, the driver may pick the other size and a subgroup reduction then counts lanes twice. Record the chosen size so Vulkan can require it. Leave the size unset when the target has only one legal size. A recorded size is a required size, and pipeline creation fails when subgroupSizeControl is unavailable. Assisted-by: Cursor Grok 4.7 Signed-off-by: Alexander Dick <[email protected]> Co-authored-by: Cursor <[email protected]>
|
Hello @adliek 👋 Thank you for submitting a Pull Request to IREE! It looks like this is your first one. We have one ask, and you can also find some general tips below. Action required: acknowledge IREE project policiesIREE is a Linux Foundation project. All participants are expected to follow the LF Projects Code of Conduct. All contributions to IREE must follow our IREE AI Tool Use Policy. In particular:
We kindly ask you to reply to this message and confirm that you understand and accept the cited policies, particularly the AI Tool Use Policy. General guidanceOur general Contributing guide contains information and links to detailed guides on code quality, testing, commit summaries and our CI system. A common point for new PRs: if a DCO signing check fails for you, check out the section on Developer Certificate of Origin. If you have any questions, feel free to leave a comment here, or ask away on IREE Discord. Thank you, |
I understand this policy. I have use AI assistance and was not aware of the "Good first issue" policy. Therefore, I will close this PR. |
Replace the shuffle butterfly in emitGPUGroupReduction with gpu.subgroup_reduce. SPIR-V lowers that to one GroupNonUniform reduction, and ExpandGPUOps still chooses DPP or shuffles for LLVMGPU. Drop expandSubgroupReduce: it only selected the old shuffle expansion.
Build integer identities at the element width so i32 maxsi, minsi, and "and" are not truncated.
setReductionConfig numbers lanes using the preferred subgroup size. On a target that can run more than one size, such as RDNA, the driver may pick the other size and a subgroup reduction then counts lanes twice. Record the chosen size so Vulkan can require it. Leave the size unset when the target has only one valid size. A recorded size is a required size, and pipeline creation fails when subgroupSizeControl is unavailable.
Fixes #18516
Fixes #20318
Assisted-by: Cursor Grok 4.7
Signed-off-by: Alexander Dick [email protected]