Blocks app running until all tasks in the specified stream are complete. This API is enhanced based on aclrtSynchronizeStream and allows you to set the timeout interval for your app. This API is synchronous.
aclError aclrtSynchronizeStreamWithTimeout(aclrtStream stream, int32_t timeout)
Parameter |
Input/Output |
Description |
|---|---|---|
stream |
Input |
Stream. |
timeout |
Input |
Interface timeout interval. The options are as follows:
|
0 on success; else, failure.