Skip to content

Commit 0272ec9

Browse files
author
Jaime Arteaga
committed
[SYCL] Change event wait scope flag in Level Zero
Set it to ZE_EVENT_SCOPE_FLAG_HOST, so cache hierarchies are flushed in host scope. This ensures that when host is waiting on a event with zeEventHostSynchronize(), that changes in the event state are correctly propagated and seen by the host. Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
1 parent 4fdd0ab commit 0272ec9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/plugins/level_zero/pi_level0.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2177,7 +2177,7 @@ pi_result piEventCreate(pi_context Context, pi_event *RetEvent) {
21772177
ze_event_handle_t ZeEvent;
21782178
ze_event_desc_t ZeEventDesc = {};
21792179
ZeEventDesc.signal = ZE_EVENT_SCOPE_FLAG_NONE;
2180-
ZeEventDesc.wait = ZE_EVENT_SCOPE_FLAG_NONE;
2180+
ZeEventDesc.wait = ZE_EVENT_SCOPE_FLAG_HOST;
21812181
ZeEventDesc.version = ZE_EVENT_DESC_VERSION_CURRENT;
21822182
ZeEventDesc.index = Index;
21832183

0 commit comments

Comments
 (0)