Skip to content

[SYCL] Align assert ext name with libdevice implementation #13312

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
merged 2 commits into from
Apr 9, 2024

Conversation

jinge90
Copy link
Contributor

@jinge90 jinge90 commented Apr 7, 2024

In native assert design (https://github.com/intel/llvm/blob/sycl/sycl/doc/extensions/supported/sycl_ext_oneapi_assert.asciidoc), fallback implementation is used only when native support is not available for underlying device(OCL CPU/GPU, level 0 GPU). The fallback implementation for assert is provided via sycl device libraries and fallback mechanism requires that any underlying device which provides native assert should also expose 'cl_intel_devicelib_assert' extension for sycl runtime to check. Latest OCL cpu runtime has already provided native assert and expose this ext string, but we find the fallback implementation is still used instead of native version on OCL CPU device.
The reason is sycl runtime used a different string for checking: "pi_ext_intel_devicelib_assert", so this PR fixes it.

@jinge90 jinge90 requested a review from a team as a code owner April 7, 2024 09:05
@jinge90 jinge90 requested a review from dm-vodopyanov April 7, 2024 09:05
@jinge90 jinge90 marked this pull request as draft April 7, 2024 09:05
@jinge90 jinge90 temporarily deployed to WindowsCILock April 7, 2024 09:06 — with GitHub Actions Inactive
@jinge90 jinge90 temporarily deployed to WindowsCILock April 7, 2024 09:25 — with GitHub Actions Inactive
@jinge90 jinge90 temporarily deployed to WindowsCILock April 7, 2024 13:07 — with GitHub Actions Inactive
Signed-off-by: jinge90 <[email protected]>
@jinge90 jinge90 temporarily deployed to WindowsCILock April 7, 2024 13:35 — with GitHub Actions Inactive
@jinge90 jinge90 marked this pull request as ready for review April 8, 2024 07:31
@jinge90 jinge90 requested a review from zhaomaosu April 8, 2024 07:32
@jinge90 jinge90 requested a review from a team April 9, 2024 03:07
@jinge90
Copy link
Contributor Author

jinge90 commented Apr 9, 2024

Hi, @intel/llvm-gatekeepers
Could you help merge this patch?
Thanks very much.

@steffenlarsen steffenlarsen merged commit 0939f39 into intel:sycl Apr 9, 2024
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