Skip to content

[SYCL][Unit] Fix unit-tests after intel/llvm#19399 #19543

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

Merged

Conversation

AlexeySachkov
Copy link
Contributor

#19399 made layout of scheduler class dependent on whether or not XPTI instrumentation is enabled. This caused issues with layout mismatch when scheduler.hpp is included directly from unit-tests, because macro enabling XPTI were not aligned between the RT and unit-tests.

The issue was caught for scheduler unit-tests and fixed in #19399, but apparently we have more unit-tests which need scheduler. Internal testing discovered issues with buffer unit-tests.

Therefore, re-applied the fix from #19399 globally to all unit-tests to prevent issues like this appearing in new and other existing unit-tests.

intel#19399 made layout of `scheduler` class dependent on whether
or not XPTI instrumentation is enabled. This caused issues with layout
mismatch when `scheduler.hpp` is included directly from unit-tests,
because macro enabling XPTI were not aligned between the RT and
unit-tests.

The issue was caught for scheduler unit-tests and fixed in
intel#19399, but apparently we have more unit-tests which need
scheduler. Internal testing discovered issues with buffer unit-tests.

Therefore, re-applied the fix from intel#19399 globally to all
unit-tests to prevent issues like this appearing in new and other
existing unit-tests.
@AlexeySachkov
Copy link
Contributor Author

E2E tests in pre-commit failed due to infra issues (unable to get a toolchain from the artifacts). This patch does not affect E2E tests, so I will proceed with merge

@AlexeySachkov AlexeySachkov merged commit 5a6e769 into intel:sycl Jul 23, 2025
24 of 26 checks passed
@AlexeySachkov AlexeySachkov deleted the private/asachkov/fix-unittests branch July 23, 2025 08:56
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