aclrtStreamWaitEvent

Description

Blocks the running of a specified stream or multiple streams until the specified event is complete. This API is asynchronous.

Restrictions

Prototype

aclError aclrtStreamWaitEvent(aclrtStream stream, aclrtEvent event)

Parameters

Parameter

Input/Output

Description

stream

Input

Stream to wait.

To specify the default stream, pass NULL.

event

Input

Event to wait on.

Returns

0 on success; else, failure.

See Also