Skip to content

Commit 24066e4

Browse files
committed
[L0] reset command list and events given execution failure
Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com>
1 parent 9d319a7 commit 24066e4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

source/adapters/level_zero/queue.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,6 +1207,12 @@ ur_queue_handle_t_::executeCommandList(ur_command_list_ptr_t CommandList,
12071207
// Turn into a more informative end-user error.
12081208
return UR_RESULT_ERROR_UNKNOWN;
12091209
}
1210+
// Reset Command List and erase the Fence forcing the user to resubmit
1211+
// their commands.
1212+
std::vector<ur_event_handle_t> EventListToCleanup;
1213+
resetCommandList(CommandList, true, EventListToCleanup, false);
1214+
CleanupEventListFromResetCmdList(EventListToCleanup,
1215+
true /* QueueLocked */);
12101216
return ze2urResult(ZeResult);
12111217
}
12121218
}

0 commit comments

Comments
 (0)