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 portability fix for single element vectors #719

Merged
merged 1 commit into from
Dec 5, 2023
Merged

Conversation

linehill
Copy link
Collaborator

@linehill linehill commented Dec 1, 2023

Adjust a HIP header for avoiding single element vectors to appear in LLVM IR. Single element vectors are not supported in SPIR-V without an extension (e.g. SPV_INTEL_vector_compute) which are enabled with hard coded --spirv-ext=+all option in clang.

I'll make clang patch to disable all SPIR-V extension which will cause an assertion to be triggered in llvm-spirv if there are single element vectors in the input device code.

Related to issue #713.

(We had this patch previously but it got lost in #521)

@pjaaskel pjaaskel added this to the 1.1 milestone Dec 1, 2023
@pjaaskel
Copy link
Collaborator

pjaaskel commented Dec 1, 2023

Let's add also to 1.1.

Adjust a HIP header for avoiding single element vectors to appear in
LLVM IR. Single element vectors are not supported in SPIR-V without an
extension (e.g. SPV_INTEL_vector_compute).

Related to issue #713.

(We had this patch previously but it got lost in #521)
@pvelesko
Copy link
Collaborator

pvelesko commented Dec 4, 2023

rebased on main

@pvelesko pvelesko merged commit a8c98eb into main Dec 5, 2023
20 checks passed
@pvelesko pvelesko deleted the avoid-1elt-vecs branch December 5, 2023 05:23
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.

3 participants