Sets the timeout interval for waiting for the completion of a specified event. This API is synchronous.
The Ascend 310P AI Processor does not support this API in the current version.
The aclrtStreamWaitEvent API is an asynchronous API. Successful API calling only indicates that the task is successfully delivered but not executed. Therefore, if the wait time exceeds the configured timeout interval, an error is reported after the aclrtSynchronizeStream API is called.
aclError aclrtSetOpWaitTimeout(uint32_t timeout)
Parameter |
Input/Output |
Description |
|---|---|---|
timeout |
Input |
Timeout interval, in seconds. The value 0 indicates no timeout. |
0 on success; else, failure.