Function rcudnn_sys::cudaStreamSynchronize[][src]

pub unsafe extern "C" fn cudaStreamSynchronize(
    stream: cudaStream_t
) -> cudaError_t
Expand description

\brief Waits for stream tasks to complete

Blocks until \p stream has completed all operations. If the ::cudaDeviceScheduleBlockingSync flag was set for this device, the host thread will block until the stream is finished with all of its tasks.

\param stream - Stream identifier

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

\sa ::cudaStreamCreate, ::cudaStreamCreateWithFlags, ::cudaStreamQuery, ::cudaStreamWaitEvent, ::cudaStreamAddCallback, ::cudaStreamDestroy, ::cuStreamSynchronize