Skip to content

[SYCL] Don't use std::optional<device> in level_zero.hpp header#21682

Draft
againull wants to merge 1 commit intointel:syclfrom
againull:gcc8_wa
Draft

[SYCL] Don't use std::optional<device> in level_zero.hpp header#21682
againull wants to merge 1 commit intointel:syclfrom
againull:gcc8_wa

Conversation

@againull
Copy link
Copy Markdown
Contributor

@againull againull commented Apr 2, 2026

sycl::device has recently become not trivially copy-constructible and usage of std::optional in level_zero.hpp header makes sycl apps not buildable with gcc <= 8.2.0. So, remove usage of std::optional from that header.

Workaround for the bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87855

sycl::device has recently become not trivially copy-constructiblea and
usage of std::optional in level_zero.hpp header makes sycl apps not
buildable with gcc <= 8.2.0. So, remove usage of std::optional from that
header.

Workaround for the bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87855
@againull againull requested a review from a team as a code owner April 2, 2026 23:27
@againull againull requested a review from cperkinsintel April 2, 2026 23:27
@againull againull marked this pull request as draft April 2, 2026 23:27
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