Skip to content

[SYCL][libdevice] Support std::__glibcxx_assert_fail in device code #18527

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

Open
wants to merge 2 commits into
base: sycl
Choose a base branch
from

Conversation

jinge90
Copy link
Contributor

@jinge90 jinge90 commented May 19, 2025

GCC-15 introduced std::__glibcxx_assert_fail whose behavior is similar to normal assert. It is used extensively by libstdc++ to do some runtime check in some STL items such as std::array when "-O0" is used. We handle it in the same way as normal assert by calling __devicelib_assert_fail provide by IGC.

@jinge90 jinge90 requested a review from a team as a code owner May 19, 2025 05:48
@jinge90 jinge90 requested a review from slawekptak May 19, 2025 05:48
@jinge90 jinge90 temporarily deployed to WindowsCILock May 19, 2025 05:56 — with GitHub Actions Inactive
jinge90 added 2 commits May 19, 2025 14:15
GCC-15 introduced std::__glibcxx_assert_fail whose behavior is similar to normal assert.
It is used extensively by libstdc++ to do some runtime check in some STL items such as std::array when "-O0" is used.
We handle it in the same way as normal assert by calling __devicelib_assert_fail provide by IGC.

Signed-off-by: jinge90 <[email protected]>
Signed-off-by: jinge90 <[email protected]>
@jinge90 jinge90 temporarily deployed to WindowsCILock May 19, 2025 06:27 — with GitHub Actions Inactive
@jinge90 jinge90 temporarily deployed to WindowsCILock May 19, 2025 06:27 — with GitHub Actions Inactive
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.

1 participant