Skip to content

Commit 7c31f90

Browse files
[SYCL][L0] Add support for queue barrier in the L0 plugin (#3045)
Signed-off-by: Sergey V Maslov <[email protected]>
1 parent db1db99 commit 7c31f90

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
@@ -4121,7 +4121,9 @@ pi_result piEnqueueEventsWaitWithBarrier(pi_queue Queue,
41214121
(*Event)->WaitList.Length,
41224122
(*Event)->WaitList.ZeEventList));
41234123

4124-
return PI_SUCCESS;
4124+
// Execute command list asynchronously as the event will be used
4125+
// to track down its completion.
4126+
return Queue->executeCommandList(ZeCommandList, ZeFence);
41254127
}
41264128

41274129
pi_result piEnqueueMemBufferRead(pi_queue Queue, pi_mem Src,

0 commit comments

Comments
 (0)