mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
feature: Add hang detection support for zeDeviceGetStatus
Added hang detection for zeDeviceGetStatus API. Added ULT for hang detection for zeDeviceGetStatus API. Related-To: LOCI-1558 Signed-off-by: Zhang, Winston <winston.zhang@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
0a4d0917d4
commit
2a41ace67e
@@ -78,6 +78,13 @@ ze_result_t DeviceImp::getStatus() {
|
||||
if (this->resourcesReleased) {
|
||||
return ZE_RESULT_ERROR_DEVICE_LOST;
|
||||
}
|
||||
auto engines = neoDevice->getAllEngines();
|
||||
for (auto engine : engines) {
|
||||
auto csr = engine.commandStreamReceiver;
|
||||
if (csr->isGpuHangDetected()) {
|
||||
return ZE_RESULT_ERROR_DEVICE_LOST;
|
||||
}
|
||||
}
|
||||
return ZE_RESULT_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user