aclrtGetTaskIdFromExceptionInfo

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Description

Obtains the task ID associated with an exception. This API must be used in pair with aclrtSetExceptionInfoCallback.

Prototype

1
uint32_t aclrtGetTaskIdFromExceptionInfo(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, and device ID associated with an exception in the aclExceptionInfo structure to facilitate troubleshooting.

Returns

Task ID in the exception information. 0xFFFFFFFF (a hexadecimal example) indicates that the device is abnormal.