Skip to content

[SYCL] Work around codegen issue with vectors-of-3 #19087

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

Open
wants to merge 2 commits into
base: sycl
Choose a base branch
from

Conversation

hvdijk
Copy link
Contributor

@hvdijk hvdijk commented Jun 23, 2025

Vectors of length 3 have an adjusted length of 4 where the last element is poison. Copying that poison element results in wrong code being generated. Avoid that by only copying the first 3 elements.

Vectors of length 3 have an adjusted length of 4 where the last element
is poison. Copying that poison element results in wrong code being
generated. Avoid that by only copying the first 3 elements.
@hvdijk hvdijk requested a review from a team as a code owner June 23, 2025 09:23
@hvdijk hvdijk requested a review from steffenlarsen June 23, 2025 09:23
@hvdijk hvdijk temporarily deployed to WindowsCILock June 23, 2025 09:23 — with GitHub Actions Inactive
@hvdijk
Copy link
Contributor Author

hvdijk commented Jun 23, 2025

Although this is a very general problem in theory, in practice it only shows up very rarely so far, but it has shown up: this PR fixes SYCL-CTS's math_builtin_api when built on AArch64 for Native CPU.

@hvdijk hvdijk temporarily deployed to WindowsCILock June 23, 2025 09:50 — with GitHub Actions Inactive
@hvdijk hvdijk temporarily deployed to WindowsCILock June 23, 2025 09:50 — with GitHub Actions Inactive
@hvdijk hvdijk temporarily deployed to WindowsCILock June 25, 2025 08:14 — with GitHub Actions Inactive
@hvdijk hvdijk temporarily deployed to WindowsCILock June 25, 2025 08:38 — with GitHub Actions Inactive
@hvdijk hvdijk temporarily deployed to WindowsCILock June 25, 2025 08:38 — with GitHub Actions Inactive
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