Skip to content

Commit c238cf7

Browse files
authored
[UR][L0v2] Remove host synchronize around cmdbuf enqueue (#18027)
This was used as a workaround for a driver bug that was already fixed.
1 parent 567c077 commit c238cf7

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

unified-runtime/source/adapters/level_zero/v2/queue_immediate_in_order.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -910,16 +910,11 @@ ur_result_t ur_queue_immediate_in_order_t::enqueueGenericCommandListsExp(
910910
auto [pWaitEvents, numWaitEvents] =
911911
getWaitListView(commandListLocked, phEventWaitList, numEventsInWaitList,
912912
additionalWaitEvent);
913-
// zeCommandListImmediateAppendCommandListsExp is not working with in-order
914-
// immediate lists what causes problems with synchronization
915-
// TODO: remove synchronization when it is not needed
916-
ZE_CALL_NOCHECK(zeCommandListHostSynchronize,
917-
(commandListLocked->getZeCommandList(), UINT64_MAX));
913+
918914
ZE2UR_CALL(zeCommandListImmediateAppendCommandListsExp,
919915
(commandListLocked->getZeCommandList(), numCommandLists,
920916
phCommandLists, zeSignalEvent, numWaitEvents, pWaitEvents));
921-
ZE_CALL_NOCHECK(zeCommandListHostSynchronize,
922-
(commandListLocked->getZeCommandList(), UINT64_MAX));
917+
923918
return UR_RESULT_SUCCESS;
924919
}
925920

0 commit comments

Comments
 (0)