Skip to content

Commit 5e1195e

Browse files
Hugh Delaneypbalcer
andauthored
Update source/adapters/level_zero/enqueue_native.cpp
Co-authored-by: Piotr Balcer <piotr.balcer@intel.com>
1 parent 632ba6b commit 5e1195e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

source/adapters/level_zero/enqueue_native.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,14 @@ ur_result_t ur_queue_handle_legacy_t_::enqueueNativeCommandExp(
7171
// Execute interop func
7272
pfnNativeEnqueue(Queue, data);
7373

74-
ZE2UR_CALL(zeCommandListAppendSignalEvent, (ZeCommandList, ZeEvent));
75-
76-
UR_CALL(Queue->executeCommandList(CommandList, false));
77-
7874
if (!isInOrderQueue()) {
7975
queueFinish();
76+
UR_CALL(Queue->Context->getAvailableCommandList(
77+
Queue, CommandList, UseCopyEngine, NumEventsInWaitList, phEventList));
8078
}
8179

80+
ZE2UR_CALL(zeCommandListAppendSignalEvent, (ZeCommandList, ZeEvent));
81+
82+
UR_CALL(Queue->executeCommandList(CommandList, false));
8283
return UR_RESULT_SUCCESS;
8384
}

0 commit comments

Comments
 (0)