Skip to content

[SYCL][Doc][RTC] Add device global queries to kernel_compiler extension #17401

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 5 commits into
base: sycl
Choose a base branch
from

Conversation

jopperm
Copy link
Contributor

@jopperm jopperm commented Mar 12, 2025

Adds three new methods on kernel_bundle to interact with device globals defined in runtime-compiled code:

bool ext_oneapi_has_device_global(const std::string &name);
void *ext_oneapi_get_device_global_address(const std::string &name, const device &dev); // return a device USM pointer suitable for queue::memcpy etc.
size_t ext_oneapi_get_device_global_size(const std::string &name);

@jopperm jopperm force-pushed the rtc-devglobs-spec-new branch from 13dc424 to 10aa1c8 Compare March 12, 2025 05:38
@sommerlukas sommerlukas marked this pull request as ready for review March 14, 2025 08:28
@sommerlukas sommerlukas requested a review from a team as a code owner March 14, 2025 08:28
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