Function cuStreamSynchronize

Source
pub unsafe extern "C" fn cuStreamSynchronize(
    hStream: CUstream,
) -> CUresult
Expand description

\brief Wait until a stream’s tasks are completed

Waits until the device has completed all operations in the stream specified by \p hStream. If the context was created with the ::CU_CTX_SCHED_BLOCKING_SYNC flag, the CPU thread will block until the stream is finished with all of its tasks.

\param hStream - Stream to wait for

\return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_CONTEXT, ::CUDA_ERROR_INVALID_HANDLE

\note_null_stream \notefnerr

\sa ::cuStreamCreate, ::cuStreamDestroy, ::cuStreamWaitEvent, ::cuStreamQuery, ::cuStreamAddCallback, ::cudaStreamSynchronize