pub unsafe extern "C" fn hipStreamWaitEvent(
    stream: *mut ihipStream_t,
    event: *mut ihipEvent_t,
    flags: u32
) -> hipError_t
Expand description

@brief Make the specified compute stream wait for an event

@param[in] stream stream to make wait. @param[in] event event to wait on @param[in] flags control operation [must be 0]

@return #hipSuccess, #hipErrorInvalidHandle

This function inserts a wait operation into the specified stream. All future work submitted to @p stream will wait until @p event reports completion before beginning execution.

This function only waits for commands in the current stream to complete. Notably,, this function does not impliciy wait for commands in the default stream to complete, even if the specified stream is created with hipStreamNonBlocking = 0.

@see hipStreamCreate, hipStreamCreateWithFlags, hipStreamCreateWithPriority, hipStreamSynchronize, hipStreamDestroy