Obtains and clears the error messages returned by other failure AscendCL API calls in the calling thread. This API is synchronous.
You are advised to make a separate aclGetRecentErrMsg call on each AscendCL API call failure to facilitate troubleshooting. If aclGetRecentErrMsg has been called for multiple times in a thread, only the error message string pointer returned by the most recent call is valid. Do not use those returned by the previous calls as this will result in unauthorized memory access.
Make a separate aclGetRecentErrMsg call on each AscendCL API call failure to avoid error messages from being stacked or lost.
const char *aclGetRecentErrMsg()
None
Success: a pointer to the error message string. If multiple error messages are obtained, the latest error message is displayed on the top.
Failure: nullptr