Function: peek_at_last_error
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Description
Obtains (but does not clear) the Runtime error code of the current thread.
Prototype
- C Prototype
1aclError aclrtPeekAtLastError(aclrtLastErrLevel level)
- Python Function
1ret = acl.rt.peek_at_last_error(level)
Parameters
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
Return Value |
Description |
|---|---|
ret |
Int, 0 on success; else, failure. |
Parent topic: Exception Handling