Detect GPU hangs in CommandMapUnmap::submit()

This change introduces detection of GPU hangs
in CommandMapUnmap::submit() as well as in Event::submitCommand().
ULTs have been added to cover the new code.

Related-To: NEO-6681
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>
This commit is contained in:
Patryk Wrobel
2022-03-04 16:23:43 +00:00
committed by Compute-Runtime-Automation
parent 8c4b2aafa1
commit 4cde6ea1ce
8 changed files with 154 additions and 6 deletions

View File

@@ -587,10 +587,17 @@ void Event::submitCommand(bool abortTasks) {
this->cmdQueue->getGpgpuCommandStreamReceiver().makeResident(*perfCounterNode->getBaseGraphicsAllocation());
}
}
auto &complStamp = cmdToProcess->submit(taskLevel, abortTasks);
if (profilingCpuPath && this->isProfilingEnabled()) {
setEndTimeStamp();
}
if (complStamp.taskCount == CompletionStamp::gpuHang) {
abortExecutionDueToGpuHang();
return;
}
updateTaskCount(complStamp.taskCount, peekBcsTaskCountFromCommandQueue());
flushStamp->setStamp(complStamp.flushStamp);
submittedCmd.exchange(cmdToProcess.release());