aclrtSynchronizeStream

Description

Blocks the app running until all tasks in the specified stream are complete.

Prototype

aclError aclrtSynchronizeStream(aclrtStream stream)

Parameters

Parameter

Input/Output

Description

stream

Input

Stream.

Returns

The value 0 indicates success, and other values indicate failure. For details, see aclError.

See Also

For the API call example, see Sample Code for Task Synchronization Within a Stream.