Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPIR-V] Reland "Fix OpGroupNonUniformBroadcast version requirement" #16854

Open
wants to merge 1 commit into
base: sycl
Choose a base branch
from

Conversation

vmaksimo
Copy link
Contributor

For SPIR-V 1.4 and earlier, the Id operand of
OpGroupNonUniformBroadcast must come from a constant instruction.

Ensure that any emitted SPIR-V module using a non-constant Id operand declares SPIR-V version 1.5. Bail out if the maximum SPIR-V version was restricted to < 1.5, to avoid producing invalid SPIR-V.

Original commit:
KhronosGroup/SPIRV-LLVM-Translator@64fe75e388dc3b7

This reverts commit bbf3800 The reland is possible after switch to SPIR-V 1.5

For SPIR-V 1.4 and earlier, the Id operand of
OpGroupNonUniformBroadcast must come from a constant instruction.

Ensure that any emitted SPIR-V module using a non-constant Id operand
declares SPIR-V version 1.5. Bail out if the maximum SPIR-V version was
restricted to < 1.5, to avoid producing invalid SPIR-V.

Original commit:
KhronosGroup/SPIRV-LLVM-Translator@64fe75e388dc3b7

This reverts commit bbf3800
The reland is possible after switch to SPIR-V 1.5
@vmaksimo vmaksimo marked this pull request as ready for review January 31, 2025 14:05
@vmaksimo vmaksimo requested a review from a team as a code owner January 31, 2025 14:05
@vmaksimo vmaksimo changed the title Reland "Fix OpGroupNonUniformBroadcast version requirement" [SPIR-V] Reland "Fix OpGroupNonUniformBroadcast version requirement" Jan 31, 2025
Copy link
Contributor

@maarquitos14 maarquitos14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

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