Skip to content

[SYCL][NativeCPU] Limit generic ABI to builtins. #19564

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 Jul 23, 2025

In #17408, NativeCPU became a target in order to be able to pick the ABI for its own libclc functions consistently, without having targets affect this. This was, and is, required to be able to use libclc independent of target and target options. However, it breaks some calls into libc. Therefore, this PR allows the calling convention to be explicitly specified, ensures it is specified for any libclc functions, and ensures it is not specified for any libc functions.

Fixes the SYCL-E2E acos, cmath, and exp-std-complex tests.

In intel#17408, NativeCPU became a target in order to be able to pick the ABI
for its own libclc functions consistently, without having targets affect
this. This was, and is, required to be able to use libclc independent of
target and target options. However, it breaks some calls into libc.
Therefore, this PR allows the calling convention to be explicitly
specified, ensures it is specified for any libclc functions, and ensures
it is not specified for any libc functions.

Fixes the SYCL-E2E acos, cmath, and exp-std-complex tests.
@hvdijk hvdijk requested review from a team as code owners July 23, 2025 16:26
@hvdijk hvdijk requested review from aelovikov-intel and ldrumm July 23, 2025 16:26
@hvdijk
Copy link
Contributor Author

hvdijk commented Jul 23, 2025

This needs compiler tests, I will work on adding some I've added one.

@hvdijk hvdijk temporarily deployed to WindowsCILock July 23, 2025 17:33 — with GitHub Actions Inactive
@hvdijk hvdijk temporarily deployed to WindowsCILock July 23, 2025 18:14 — with GitHub Actions Inactive
@hvdijk hvdijk temporarily deployed to WindowsCILock July 23, 2025 18:14 — with GitHub Actions Inactive
@hvdijk
Copy link
Contributor Author

hvdijk commented Jul 25, 2025

Just a heads up that after today I will be on holiday. I am not expecting reviews to be done today, that is fine, but it will be a little while before I'll be able to respond to any issues or concerns.

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.

1 participant