From 3f9269689e7ad43e7654315c9ccd153a9e6018c1 Mon Sep 17 00:00:00 2001 From: Sergey V Maslov Date: Fri, 15 Jan 2021 20:54:12 -0800 Subject: [PATCH] [SYCL] submit barrier command to execution (see issue #3000) Signed-off-by: Sergey V Maslov --- sycl/plugins/level_zero/pi_level_zero.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sycl/plugins/level_zero/pi_level_zero.cpp b/sycl/plugins/level_zero/pi_level_zero.cpp index 791196c3adc0c..afc7cf4e6a159 100644 --- a/sycl/plugins/level_zero/pi_level_zero.cpp +++ b/sycl/plugins/level_zero/pi_level_zero.cpp @@ -4102,7 +4102,9 @@ pi_result piEnqueueEventsWaitWithBarrier(pi_queue Queue, (*Event)->WaitList.Length, (*Event)->WaitList.ZeEventList)); - return PI_SUCCESS; + // Execute command list asynchronously as the event will be used + // to track down its completion. + return Queue->executeCommandList(ZeCommandList, ZeFence); } pi_result piEnqueueMemBufferRead(pi_queue Queue, pi_mem Src,