Skip to content

Commit cfa41f4

Browse files
committed
[L0 v2] use waitOnEvents instead of barrier
when appropriate. This is the same behavior as in legacy adapter.
1 parent 91f4d26 commit cfa41f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/adapters/level_zero/v2/queue_immediate_in_order.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -788,8 +788,8 @@ ur_result_t ur_queue_immediate_in_order_t::enqueueUSMPrefetch(
788788
getWaitListView(phEventWaitList, numEventsInWaitList);
789789

790790
if (pWaitEvents) {
791-
ZE2UR_CALL(zeCommandListAppendBarrier, (handler.commandList.get(), nullptr,
792-
numWaitEvents, pWaitEvents));
791+
ZE2UR_CALL(zeCommandListAppendWaitOnEvents,
792+
(handler.commandList.get(), numWaitEvents, pWaitEvents));
793793
}
794794
// TODO: figure out how to translate "flags"
795795
ZE2UR_CALL(zeCommandListAppendMemoryPrefetch,
@@ -820,8 +820,8 @@ ur_queue_immediate_in_order_t::enqueueUSMAdvise(const void *pMem, size_t size,
820820
auto [pWaitEvents, numWaitEvents] = getWaitListView(nullptr, 0);
821821

822822
if (pWaitEvents) {
823-
ZE2UR_CALL(zeCommandListAppendBarrier, (handler.commandList.get(), nullptr,
824-
numWaitEvents, pWaitEvents));
823+
ZE2UR_CALL(zeCommandListAppendWaitOnEvents,
824+
(handler.commandList.get(), numWaitEvents, pWaitEvents));
825825
}
826826

827827
// TODO: figure out how to translate "flags"

0 commit comments

Comments
 (0)