Skip to content
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

[Bug][Ext Mem Interop] Corrected the behavior of importing external memory using NT handle name #2644

Open
wants to merge 1 commit into
base: SYCLomatic
Choose a base branch
from
Open
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
10 changes: 3 additions & 7 deletions clang/runtime/dpct-rt/include/dpct/bindless_images.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1082,13 +1082,9 @@ import_external_memory(sycl::ext::oneapi::experimental::external_mem *extMem,
memHandleDesc->get_res_size()},
get_default_queue());
} else if (memHandleDesc->get_win32_obj_name()) {
*extMem = sycl::ext::oneapi::experimental::import_external_memory(
sycl::ext::oneapi::experimental::external_mem_descriptor<
sycl::ext::oneapi::experimental::resource_win32_name>{
{memHandleDesc->get_win32_obj_name()},
memHandleDesc->get_handle_type(),
memHandleDesc->get_res_size()},
get_default_queue());
throw std::runtime_error("Importing external resource using Windows NT name"
" type is not supported. Only NT handle type is"
" supported");
}
#else
if (memHandleDesc->get_fd_handle() != -1) {
Expand Down