Skip to content

Commit af21e50

Browse files
[SYCL] Assume interop event is host-visible (#5411)
Signed-off-by: Sergey V Maslov <sergey.v.maslov@intel.com>
1 parent dfea516 commit af21e50

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sycl/plugins/level_zero/pi_level_zero.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5372,6 +5372,10 @@ pi_result piextEventCreateWithNativeHandle(pi_native_handle NativeHandle,
53725372
*Event = new _pi_event(ZeEvent, nullptr /* ZeEventPool */, Context,
53735373
PI_COMMAND_TYPE_USER, OwnNativeHandle);
53745374

5375+
// Assume native event is host-visible, or otherwise we'd
5376+
// need to create a host-visible proxy for it.
5377+
(*Event)->HostVisibleEvent = *Event;
5378+
53755379
return PI_SUCCESS;
53765380
}
53775381

0 commit comments

Comments
 (0)