Library/ManagedCuda/CudaStream.cs
/// <summary>
/// Make a compute stream wait on an event<para/>
/// Makes all future work submitted to the Stream wait until <c>hEvent</c>
/// reports completion before beginning execution. This synchronization
/// will be performed efficiently on the device.
/// <para/>
/// The stream will wait only for the completion of the most recent
/// host call to <see cref="CudaEvent.Record()"/> on <c>hEvent</c>. Once this call has returned,
/// any functions (including <see cref="CudaEvent.Record()"/> and <see cref="Dispose()"/> may be
/// called on <c>hEvent</c> again, and the subsequent calls will not have any
/// effect on this stream.
/// <para/>
/// If <c>hStream</c> is 0 (the NULL stream) any future work submitted in any stream
/// will wait for <c>hEvent</c> to complete before beginning execution. This
/// effectively creates a barrier for all future work submitted to the context.
/// <para/>
/// If <see cref="CudaEvent.Record()"/> has not been called on <c>hEvent</c>, this call acts as if
/// the record has already completed, and so is a functional no-op.
/// </summary>
/// <returns></returns>
Make a compute stream wait on an event
Makes all future work submitted to the Stream wait until hEvent
The stream will wait only for the completion of the most recent
host call to  on hEvent and  may be
called on hEvent
If hStreamhEvent
If  has not been called on hEvent
Make a compute stream wait on an event Makes all future work submitted to the Stream wait until hEvent The stream will wait only for the completion of the most recent host call to on hEvent and may be called on hEvent If hStreamhEvent If has not been called on hEvent
public void WaitEvent(CUevent cuevent)
        {
            if (disposed) throw new ObjectDisposedException(this.ToString());
            res = DriverAPINativeMethods.Streams.cuStreamWaitEvent(_stream, cuevent, 0);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuStreamWaitEvent", res));
            if (res != CUResult.Success) throw new CudaException(res);
        }
public void WaitEvent ( CUevent cuevent ) { if ( disposed ) throw new ObjectDisposedException ( this . ToString ( ) ) ; res = DriverAPINativeMethods . Streams . cuStreamWaitEvent ( _stream , cuevent , 0 ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success ) throw new CudaException ( res ) ; }
Make a compute stream wait on an event
Makes all future work submitted to the Stream wait until hEvent
The stream will wait only for the completion of the most recent
host call to  on hEvent and  may be
called on hEvent
If hStreamhEvent
If  has not been called on hEvent
Make a compute stream wait on an event Makes all future work submitted to the Stream wait until hEvent The stream will wait only for the completion of the most recent host call to on hEvent and may be called on hEvent If hStreamhEvent If has not been called on hEvent
None
cuevent
CUevent