mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 16:45:25 +08:00
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:
committed by
Compute-Runtime-Automation
parent
8c4b2aafa1
commit
4cde6ea1ce
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user