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][test-e2e] <latch> is a C++20 header #16468

Open
wants to merge 1 commit into
base: sycl
Choose a base branch
from

Conversation

ldrumm
Copy link
Contributor

@ldrumm ldrumm commented Dec 24, 2024

requires c++20 support in the standard library which is not a guarantee on all implementations. Fake latch support for the empty_command test with a simple atomic int wrapper. It's rough but doesn't need to support all generality of the standard version

<latch> requires c++20 support in the standard library which is not a
guarantee on all implementations. Fake latch support for the
empty_command test with a simple atomic int wrapper. It's rough but
doesn't need to support all generality of the standard version
@ldrumm ldrumm requested a review from a team as a code owner December 24, 2024 12:09
@ldrumm ldrumm changed the title [SYCL][test-e2e <latch> is a C++20 header [SYCL][test-e2e] <latch> is a C++20 header Dec 24, 2024
@aelovikov-intel
Copy link
Contributor

How did you find it and why do we need such old gcc in CI? I understand that we can't use C++20 in the headers, but I'd imagine that for the E2E it should be relatively fine.

Is that STL-only issue on the toolchain you care (i.e., is -std=c++20 accepted by the compiler)? If so, can we have an #ifdef branch with using simple_latch = std::latch;?

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