mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
Log error caused by NPU SSR. (#20356)
### Description Log error caused by NPU SSR.
This commit is contained in:
parent
ccaa4d1db2
commit
301240433c
1 changed files with 6 additions and 0 deletions
|
|
@ -287,6 +287,12 @@ Status QnnModel::ExecuteGraph(const Ort::KernelContext& context) {
|
|||
ORT_RETURN_IF_ERROR(qnn_backend_manager_->ExtractBackendProfilingInfo());
|
||||
}
|
||||
|
||||
if (QNN_COMMON_ERROR_SYSTEM_COMMUNICATION == execute_status) {
|
||||
auto error_message = "NPU crashed. SSR detected. Caused QNN graph execute error. Error code: ";
|
||||
LOGS(logger_, ERROR) << error_message << execute_status;
|
||||
return ORT_MAKE_STATUS(ONNXRUNTIME, FAIL, error_message, execute_status);
|
||||
}
|
||||
|
||||
if (QNN_GRAPH_NO_ERROR != execute_status) {
|
||||
return ORT_MAKE_STATUS(ONNXRUNTIME, FAIL, "QNN graph execute error. Error code: ", execute_status);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue