Function rcudnn_sys::cudaStreamWaitEvent[][src]

pub unsafe extern "C" fn cudaStreamWaitEvent(
    stream: cudaStream_t,
    event: cudaEvent_t,
    flags: c_uint
) -> cudaError_t
Expand description

\brief Make a compute stream wait on an event

Makes all future work submitted to \p stream wait for all work captured in \p event. See ::cudaEventRecord() for details on what is captured by an event. The synchronization will be performed efficiently on the device when applicable. \p event may be from a different device than \p stream.

flags include:

  • ::cudaEventWaitDefault: Default event creation flag.
  • ::cudaEventWaitExternal: Event is captured in the graph as an external event node when performing stream capture.

\param stream - Stream to wait \param event - Event to wait on \param flags - Parameters for the operation(See above)

\return ::cudaSuccess, ::cudaErrorInvalidValue, ::cudaErrorInvalidResourceHandle \note_null_stream \notefnerr \note_init_rt \note_callback

\sa ::cudaStreamCreate, ::cudaStreamCreateWithFlags, ::cudaStreamQuery, ::cudaStreamSynchronize, ::cudaStreamAddCallback, ::cudaStreamDestroy, ::cuStreamWaitEvent