Skip to content

Commit 3f92696

Browse files
committed
[SYCL] submit barrier command to execution (see issue #3000)
Signed-off-by: Sergey V Maslov <[email protected]>
1 parent 697c018 commit 3f92696

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sycl/plugins/level_zero/pi_level_zero.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4102,7 +4102,9 @@ pi_result piEnqueueEventsWaitWithBarrier(pi_queue Queue,
41024102
(*Event)->WaitList.Length,
41034103
(*Event)->WaitList.ZeEventList));
41044104

4105-
return PI_SUCCESS;
4105+
// Execute command list asynchronously as the event will be used
4106+
// to track down its completion.
4107+
return Queue->executeCommandList(ZeCommandList, ZeFence);
41064108
}
41074109

41084110
pi_result piEnqueueMemBufferRead(pi_queue Queue, pi_mem Src,

0 commit comments

Comments
 (0)