File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed
source/adapters/level_zero Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -1406,18 +1406,8 @@ ur_result_t ur_queue_handle_t_::synchronize() {
1406
1406
if (ImmCmdList == Queue->CommandListMap .end ())
1407
1407
return UR_RESULT_SUCCESS;
1408
1408
1409
- ur_event_handle_t Event{};
1410
- ur_result_t Res = createEventAndAssociateQueue (
1411
- reinterpret_cast <ur_queue_handle_t >(Queue), &Event,
1412
- UR_EXT_COMMAND_TYPE_USER, ImmCmdList, /* IsInternal */ false );
1413
- if (Res != UR_RESULT_SUCCESS)
1414
- return Res;
1415
- auto zeEvent = Event->ZeEvent ;
1416
- ZE2UR_CALL (zeCommandListAppendBarrier,
1417
- (ImmCmdList->first , zeEvent, 0 , nullptr ));
1418
- ZE2UR_CALL (zeHostSynchronize, (zeEvent));
1419
- Event->Completed = true ;
1420
- UR_CALL (urEventRelease (Event));
1409
+ // wait for all commands previously submitted to this immediate command list
1410
+ ZE2UR_CALL (zeCommandListHostSynchronize, (ImmCmdList->first , UINT64_MAX));
1421
1411
1422
1412
// Cleanup all events from the synced command list.
1423
1413
CleanupEventListFromResetCmdList (ImmCmdList->second .EventList , true );
You can’t perform that action at this time.
0 commit comments