Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
x |
|
√ |
Sets the timeout interval for waiting for the completion of a specified event.
1 | aclError aclrtSetOpWaitTimeout(uint32_t timeout) |
1 | ret = acl.rt.set_op_wait_timeout(timeout) |
Parameter |
Description |
|---|---|
timeout |
Int, timeout interval, in seconds. The value 0 indicates no timeout. |
Return Value |
Description |
|---|---|
ret |
Int, error code. 0 on success; else, failure. |
The acl.rt.stream_wait_event API is an asynchronous API. If the API is successfully called, the task is successfully delivered but not executed. Therefore, if the waiting time exceeds the configured timeout interval, an error is returned after the acl.rt.synchronize_stream API is called.