fix: missed error handler of SubmissionStatus::FAILED

Related-To: NEO-7802

Signed-off-by: Pan Zhenjie <zhenjie.pan@intel.com>
This commit is contained in:
Zhenjie Pan
2023-03-13 02:56:47 +00:00
committed by Compute-Runtime-Automation
parent 9f935276a0
commit 00b675643e
5 changed files with 25 additions and 0 deletions

View File

@@ -75,6 +75,7 @@ CommandQueue *CommandQueue::create(Context *context,
cl_int CommandQueue::getErrorCodeFromTaskCount(TaskCountType taskCount) {
switch (taskCount) {
case CompletionStamp::failed:
case CompletionStamp::gpuHang:
case CompletionStamp::outOfDeviceMemory:
return CL_OUT_OF_RESOURCES;