Skip to content

[SYCL][E2E] Pass sycl target options to clang in one test #18997

New issue

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

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

Already on GitHub? # to your account

Merged
merged 2 commits into from
Jun 16, 2025

Conversation

Maetveis
Copy link
Contributor

This is required to ensure that the correct target with the correct options is used when linking with clang in the test. For example without trying to use the SPIR-V (not the SPIR) backend for testing with --param spirv-backend=True does not take effect. If the test would be run on a non SPIR target it would fail as clang is expecting object files for the SPIR target when -fsycl-targets is not set.

This is required to ensure that the correct target with the correct
options is used when linking with clang in the test.
For example without trying to use the `SPIR-V` (not the SPIR) backend
for testing with `--param spirv-backend=True` does not take effect.
If the test would be run on a non SPIR target it would fail
as clang is expecting object files for the SPIR target when `-fsycl-targets`
is not set.
@Maetveis Maetveis requested a review from a team as a code owner June 16, 2025 15:07
@Maetveis Maetveis requested a review from againull June 16, 2025 15:07
@againull againull merged commit 610d42a into intel:sycl Jun 16, 2025
25 checks passed
@Maetveis Maetveis deleted the device-lib-sycl-target-opts branch June 17, 2025 03:19
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants