Skip to content

[SYCL] Support device_global in SYCLBIN kernel_bundle #19164

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 8 commits into from
Jul 1, 2025

Conversation

steffenlarsen
Copy link
Contributor

@steffenlarsen steffenlarsen commented Jun 26, 2025

This commit adds the functionality for using device_global in SYCLBIN-based kernel_bundle, with some temporary limitations such as the names have to be without namespace qualification.

This commit changes the use of RTDeviceBinaryImage pointers to be const
in more places. Primary cases where we break this is for compressed
images, where decompression happens semi-lazily, so const-casts are
occassionally necessary.

Signed-off-by: Larsen, Steffen <[email protected]>
@steffenlarsen
Copy link
Contributor Author

Based on #19099 so I'll keep it draft while it gets reviewed.

Signed-off-by: Larsen, Steffen <[email protected]>
@steffenlarsen steffenlarsen changed the title [SYCL][NFCI] Make device binary image pointers const in more places [SYCL] Support device_global in SYCLBIN kernel_bundle Jun 26, 2025
@steffenlarsen steffenlarsen marked this pull request as ready for review June 30, 2025 11:10
@steffenlarsen steffenlarsen requested a review from a team as a code owner June 30, 2025 11:10
@steffenlarsen steffenlarsen requested a review from againull June 30, 2025 11:10
Signed-off-by: Larsen, Steffen <[email protected]>
Signed-off-by: Larsen, Steffen <[email protected]>
Signed-off-by: Larsen, Steffen <[email protected]>
@againull
Copy link
Contributor

againull commented Jul 1, 2025

Failures are unrleated and known #18576:


Failed Tests (3):
SYCL :: Adapters/level_zero/ext_intel_cslice.cpp
SYCL :: Adapters/level_zero/ext_intel_queue_index.cpp
SYCL :: Adapters/sycl-ls-uuid-subdevs.cpp

@againull againull merged commit e452bf0 into intel:sycl Jul 1, 2025
24 of 25 checks passed
@coldav
Copy link
Contributor

coldav commented Jul 2, 2025

@steffenlarsen
Copy link
Contributor Author

BTW @steffenlarsen this shows when running as requiring Opt capability #6146 which is deprecated https://github.com/intel/llvm/blob/sycl/sycl/doc/design/spirv-extensions/SPV_INTEL_global_variable_decorations.asciidoc

@coldav - Sadly that is correct and applies to all device_global uses with SPIR-V target currently. We are waiting on L0 to update their implementation of the extension.

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