aclrtGetErrorCodeFromExceptionInfo
Applicable Products
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function
Obtains the error code in exception information. This API must be used in pair with aclrtSetExceptionInfoCallback.
Prototype
1 | uint32_t aclrtGetErrorCodeFromExceptionInfo(const aclrtExceptionInfo *info) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
info |
Input |
Pointer to exception information. If aclrtSetExceptionInfoCallback 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 the aclrtExceptionInfo structure. |
Returns
Error code in the exception information. 0xFFFFFFFF (a hexadecimal example) indicates that the device is abnormal.