Function: get_error_code_from_exception_info
C Prototype |
uint32_t aclrtGetErrorCodeFromExceptionInfo(const aclrtExceptionInfo *info) |
|---|---|
Python Function |
ret = acl.rt.get_error_code_from_exception_info(info) |
Function Usage |
Obtains the error code in exception information. This API must be used in pair with acl.rt.set_exception_info_callback. |
Input Description |
info: int, pointer address of the exception information aclrtExceptionInfo. If acl.rt.set_exception_info_callback is called before task execution, the system records the task ID, stream ID, thread ID, device ID, and error code associated with an exception in aclExceptionInfo. |
Return Value |
ret: int, error code.
|
Restrictions |
None |
Parent topic: Exception Handling