aclrtRepairError

Note: This API is reserved and not supported currently.

Description

Recovers a fault based on the details obtained by calling aclrtGetErrorVerbose. aclrtRepairError should be called after task submission is terminated.

Prototype

aclError aclrtRepairError(int32_t deviceId, const aclrtErrorInfo *errorInfo)

Parameters

Parameter

Input/Output

Description

deviceId

Input

Device ID.

The value must be the same as the value of Device ID in aclrtSetDevice.

errorInfo

Input

Error message.

For details about the aclrtErrorInfo structure, see aclrtGetErrorVerbose.

Returns

0 on success; else, failure. For details, see aclError.