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

[SYCL][E2E] Make layout_array.cpp use specific headers #16822

Merged

Conversation

steffenlarsen
Copy link
Contributor

@steffenlarsen steffenlarsen commented Jan 29, 2025

The layout_array test is currently prone to failure if any of the types it checks are instantiated by the headers rather than by the test itself. This means that unrelated changes to the SYCL headers may make the test fail due to one of the types being instantiated earlier than the test instantiates other types that go before it. To avoid this issue, this commit makes the test use specific headers, reducing the chance of instantiations.

This commit also fixes a faulty expectation in the nd_item test case.

The layout_array test is currently prone to failure if any of the types
it checks are instantiated by the headers rather than by the test
itself. This means that unrelated changes to the SYCL headers may make
the test fail due to one of the types being instantiated earlier than
the test instantiates other types that go before it. To avoid this
issue, these changes makes the test indifferent to the order of the
instantiated layouts in the generated output.

Signed-off-by: Larsen, Steffen <[email protected]>
Signed-off-by: Larsen, Steffen <[email protected]>
@steffenlarsen steffenlarsen changed the title [SYCL][E2E] Make layout_array.cpp more robust to ordering [SYCL][E2E] Make layout_array.cpp use specific headers Jan 29, 2025
@dyniols
Copy link
Contributor

dyniols commented Jan 30, 2025

@intel/llvm-gatekeepers Can we merge this PR? PVC CI tests can't finish because runner somehow can't pick this job.

@steffenlarsen steffenlarsen merged commit 20d4bec into intel:sycl Jan 30, 2025
16 checks passed
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