Skip to content

Commit 5a1ef01

Browse files
authored
[SYCL] Change event wait scope flag in Level Zero (#1898)
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 <[email protected]>
1 parent db74d92 commit 5a1ef01

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
@@ -2199,7 +2199,7 @@ pi_result piEventCreate(pi_context Context, pi_event *RetEvent) {
21992199
ze_event_handle_t ZeEvent;
22002200
ze_event_desc_t ZeEventDesc = {};
22012201
ZeEventDesc.signal = ZE_EVENT_SCOPE_FLAG_NONE;
2202-
ZeEventDesc.wait = ZE_EVENT_SCOPE_FLAG_NONE;
2202+
ZeEventDesc.wait = ZE_EVENT_SCOPE_FLAG_HOST;
22032203
ZeEventDesc.version = ZE_EVENT_DESC_VERSION_CURRENT;
22042204
ZeEventDesc.index = Index;
22052205

0 commit comments

Comments
 (0)