mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-27 07:44:16 +08:00
Detect GPU hang in remaining blocking calls of L0
This change introduces detection of GPU hangs in zeEventHostSynchronize and zeFenceHostSynchronize. Furthermore, if CommandQueueHw::executeCommandLists uses ZE_COMMAND_QUEUE_MODE_SYNCHRONOUS and hang occurs, the information about it is propagated to the caller. Related-To: NEO-6681 Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
64b8de3c1d
commit
1275c4e200
@@ -462,7 +462,10 @@ ze_result_t CommandQueueHw<gfxCoreFamily>::executeCommandLists(
|
||||
csr->makeSurfacePackNonResident(csr->getResidencyAllocations());
|
||||
|
||||
if (getSynchronousMode() == ZE_COMMAND_QUEUE_MODE_SYNCHRONOUS) {
|
||||
this->synchronize(std::numeric_limits<uint64_t>::max());
|
||||
const auto synchronizeResult = this->synchronize(std::numeric_limits<uint64_t>::max());
|
||||
if (synchronizeResult == ZE_RESULT_ERROR_DEVICE_LOST) {
|
||||
return ZE_RESULT_ERROR_DEVICE_LOST;
|
||||
}
|
||||
}
|
||||
|
||||
this->heapContainer.clear();
|
||||
|
||||
Reference in New Issue
Block a user