Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Obtains the Runtime error code of the current thread and clears the error code. If you call this API before a new error code is added to the thread, ACL_SUCCESS is returned.
1 | aclError aclrtGetLastError(aclrtLastErrLevel level) |
1 | ret = acl.rt.get_last_error(level) |
Parameter |
Description |
|---|---|
level |
Int, level of the error code to be obtained. Currently, only the thread level is supported. For details, see aclrtLastErrLevel. |
Return Value |
Description |
|---|---|
ret |
Int, 0 on success; else, failure. |