cudaError_t cudaStreamSynchronize ( cudaStream_t  stream  ) 

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

Parameters:
stream - Stream identifier
Returns:
cudaSuccess, cudaErrorInvalidResourceHandle
Note:
Note that this function may also return error codes from previous, asynchronous launches.
See also:
cudaStreamCreate, cudaStreamQuery, cudaStreamWaitEvent, cudaStreamDestroy


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA