Skip to content

[SYCL] Emit error when get_backend_info is used under _GLIBCXX_USE_CXX11_ABI=0 #16272

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

aelovikov-intel
Copy link
Contributor

It doesn't seem that the interfaces match the spec, so it's highly likely that these methods will be deprecated/removed anyway, so there is little point in fixing them to work in _GLIBCXX_USE_CXX11_ABI=0 mode.

On the other hand, using _GLIBCXX_USE_CXX11_ABI=0 causes segmentation fault crashes due to ABI mismatches in runtime, so emitting compile-time error is a better thing to do here.

…_CXX11_ABI=0`

It doesn't seem that the interfaces match the spec, so it's highly
likely that these methods will be deprecated/removed anyway, so there is
little point in fixing them to work in `_GLIBCXX_USE_CXX11_ABI=0` mode.

On the other hand, using `_GLIBCXX_USE_CXX11_ABI=0` causes segmentation
fault crashes due to ABI mismatches in runtime, so emitting compile-time
error is a better thing to do here.
@aelovikov-intel
Copy link
Contributor Author

Ping @uditagarwal97 (assigned reviewer). Other reviewers were added as a "FYI".

Copy link
Contributor

@uditagarwal97 uditagarwal97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@aelovikov-intel aelovikov-intel merged commit d75a153 into intel:sycl Dec 6, 2024
14 checks passed
@aelovikov-intel aelovikov-intel deleted the cxx11abi-get_backend_info branch December 6, 2024 15:09
sarnex pushed a commit that referenced this pull request Jan 23, 2025
The `get_backend_info()` functions implemented in
#12906 are returning some info
descriptors that are not backend-specific info descriptors but SYCL core
info descriptors. This leads to problems as described in
#16272 . Therefore, its current
implementations are being deprecated, and removed under the
`__INTEL_PREVIEW_BREAKING_CHANGES` flag.

---------

Signed-off-by: Hu, Peisen <[email protected]>
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.

4 participants