Skip to content

Commit

Permalink
Merge pull request #1539 from nrspruit/fix_error_unknown_out_of_memory
Browse files Browse the repository at this point in the history
[L0] reset and clean the command list on error unknown
  • Loading branch information
kbenzie authored Apr 25, 2024
2 parents 7fcfe3a + 49046ec commit 48facdd
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions source/adapters/level_zero/queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1416,10 +1416,6 @@ ur_queue_handle_t_::executeCommandList(ur_command_list_ptr_t CommandList,
(ZeCommandQueue, 1, &ZeCommandList, CommandList->second.ZeFence));
if (ZeResult != ZE_RESULT_SUCCESS) {
this->Healthy = false;
if (ZeResult == ZE_RESULT_ERROR_UNKNOWN) {
// 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;
Expand Down

0 comments on commit 48facdd

Please sign in to comment.