aclrtSetExceptionInfoCallback

Description

Sets an exception callback function. This API is synchronous.

Restrictions

Prototype

aclError aclrtSetExceptionInfoCallback(aclrtExceptionInfoCallback callback)

Parameters

Parameter

Input/Output

Description

callback

Input

Callback function.

Prototype:

typedef void (*aclrtExceptionInfoCallback)(aclrtExceptionInfo *exceptionInfo);

Returns

0 on success; else, failure.

See Also

For the API call example, see AI Core Troubleshooting.