Function: get_error_code_from_exception_info
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Description
Obtains the error code in exception information. This API must be used in pair with acl.rt.set_exception_info_callback.
Prototype
- C Prototype
1uint32_t aclrtGetErrorCodeFromExceptionInfo(const aclrtExceptionInfo *info)
- Python Function
1ret = acl.rt.get_error_code_from_exception_info(info)
Parameters
Parameter |
Description |
|---|---|
info |
Int, pointer address of the exception information aclrtExceptionInfo. If the acl.rt.set_exception_info_callback API is called before a task is executed, the system stores the abnormal task ID, stream ID, thread ID, device ID, and error code in aclExceptionInfo. |
Return Value
Return Value |
Description |
|---|---|
ret |
Int, error code. 0 on success; else failure. 0xFFFFFFFF (hexadecimal) indicates that the device is abnormal. |