Skip to content

[SYCL][Docs] Add get_native_context call to interop_handle example #16901

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
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,8 @@ data to the host to access the data. Users can get type of the allocation using
Queue.submit([&](handler &CGH) {
auto BufferAcc = Buffer.get_access<access::mode::write>(CGH);
CGH.host_task([=](const interop_handle &IH) {
ze_context_handle_t ZeContext =
IH.get_native_context<backend::ext_oneapi_level_zero>();
void *DevicePtr =
IH.get_native_mem<backend::ext_oneapi_level_zero>(BufferAcc);
ze_memory_allocation_properties_t MemAllocProperties{};
Expand Down