mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
feature: add zerDriverGetLastErrorDescription API
this function retrieves last error from default driver Related-To: NEO-14560 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
500ae54fc1
commit
8f1903c7dd
@@ -75,6 +75,9 @@ ze_context_handle_t zerDriverGetDefaultContext() {
|
||||
return L0::DriverHandle::fromHandle(L0::globalDriverHandles->front())->getDefaultContext();
|
||||
}
|
||||
|
||||
ze_result_t zerDriverGetLastErrorDescription(const char **ppString) {
|
||||
return L0::DriverHandle::fromHandle(L0::globalDriverHandles->front())->getErrorDescription(ppString);
|
||||
}
|
||||
} // namespace L0
|
||||
|
||||
extern "C" {
|
||||
@@ -158,4 +161,7 @@ ze_context_handle_t ZE_APICALL zeDriverGetDefaultContext(
|
||||
ze_context_handle_t ZE_APICALL zerDriverGetDefaultContext() {
|
||||
return L0::zerDriverGetDefaultContext();
|
||||
}
|
||||
ze_result_t ZE_APICALL zerDriverGetLastErrorDescription(const char **ppString) {
|
||||
return L0::zerDriverGetLastErrorDescription(ppString);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user