Skip to content

Commit

Permalink
[L0] reset command list and events given execution failure
Browse files Browse the repository at this point in the history
Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com>
  • Loading branch information
nrspruit committed Feb 8, 2024
1 parent 9d319a7 commit 24066e4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/adapters/level_zero/queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1207,6 +1207,12 @@ ur_queue_handle_t_::executeCommandList(ur_command_list_ptr_t CommandList,
// Turn into a more informative end-user error.
return UR_RESULT_ERROR_UNKNOWN;
}
// Reset Command List and erase the Fence forcing the user to resubmit
// their commands.
std::vector<ur_event_handle_t> EventListToCleanup;
resetCommandList(CommandList, true, EventListToCleanup, false);
CleanupEventListFromResetCmdList(EventListToCleanup,
true /* QueueLocked */);
return ze2urResult(ZeResult);
}
}
Expand Down

0 comments on commit 24066e4

Please sign in to comment.