Library/ManagedCuda/CudaStream.cs
/// <summary>
/// Waits until the device has completed all operations in the stream. If the context was created
/// with the <see cref="CUCtxFlags.BlockingSync"/> flag, the CPU thread will block until the stream is finished with all of its
/// tasks.
/// </summary>
Waits until the device has completed all operations in the stream. If the context was created
with the  flag, the CPU thread will block until the stream is finished with all of its
tasks.
Waits until the device has completed all operations in the stream . If the context was created with the flag the CPU thread will block until the stream is finished with all of its tasks .
public void Synchronize()
        {
            if (disposed) throw new ObjectDisposedException(this.ToString());
            res = DriverAPINativeMethods.Streams.cuStreamSynchronize(_stream);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuStreamSynchronize", res));
            if (res != CUResult.Success) throw new CudaException(res);
        }
public void Synchronize ( ) { if ( disposed ) throw new ObjectDisposedException ( this . ToString ( ) ) ; res = DriverAPINativeMethods . Streams . cuStreamSynchronize ( _stream ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success ) throw new CudaException ( res ) ; }
Waits until the device has completed all operations in the stream.
Waits until the device has completed all operations in the stream .