aclrtRepairError
Note: This API is for trial use and may be changed in later versions. It is not available in production environments.
Applicable Products
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
☓ |
|
☓ |
|
☓ |
Function
Recovers a fault based on the details obtained by calling aclrtGetErrorVerbose. This API should be called after task submission is terminated.
Prototype
1 | 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 device ID in aclrtSetDevice. |
errorInfo |
Input |
Error message. For details about the aclrtErrorInfo structure, see aclrtGetErrorVerbose. |
Returns
0 on success; otherwise, failure. For details, see aclError.