From df55fb21b42ff003bb8d4d65ca786a04790bf1c0 Mon Sep 17 00:00:00 2001 From: Sergey V Maslov Date: Thu, 25 Mar 2021 09:36:42 -0700 Subject: [PATCH] [SYCL] Avoid HOST .wait scope; .signal=HOST is expected to be enough Signed-off-by: Sergey V Maslov --- sycl/plugins/level_zero/pi_level_zero.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sycl/plugins/level_zero/pi_level_zero.cpp b/sycl/plugins/level_zero/pi_level_zero.cpp index 5b46a9a00eb16..5aeb23ed978c4 100644 --- a/sycl/plugins/level_zero/pi_level_zero.cpp +++ b/sycl/plugins/level_zero/pi_level_zero.cpp @@ -3695,11 +3695,11 @@ pi_result piEventCreate(pi_context Context, pi_event *RetEvent) { ze_event_handle_t ZeEvent; ze_event_desc_t ZeEventDesc = {}; - // We have to set the SIGNAL & WAIT flags as HOST scope because the + // We have to set the SIGNAL flag as HOST scope because the // Level-Zero plugin implementation waits for the events to complete // on the host. ZeEventDesc.signal = ZE_EVENT_SCOPE_FLAG_HOST; - ZeEventDesc.wait = ZE_EVENT_SCOPE_FLAG_HOST; + ZeEventDesc.wait = 0; ZeEventDesc.index = Index; ZE_CALL(zeEventCreate, (ZeEventPool, &ZeEventDesc, &ZeEvent));