Library/ManagedCuda/CudaEvent.cs
/// <summary>
/// Records an event. If <c>stream</c> is non-zero, the event is recorded after all preceding operations in the stream have been
/// completed; otherwise, it is recorded after all preceding operations in the CUDA context have been completed. Since
/// operation is asynchronous, <see cref="Query"/> and/or <see cref="Synchronize"/> must be used to determine when the event
/// has actually been recorded. <para/>
/// If <see cref="Record()"/> has previously been called and the event has not been recorded yet, this function throws
/// <see cref="CUResult.ErrorInvalidValue"/>.
/// <param name="stream"></param>
/// </summary>
Records an event. If stream and/or  must be used to determine when the event
has actually been recorded.
If  has previously been called and the event has not been recorded yet, this function throws
.
Records an event . If stream and / or must be used to determine when the event has actually been recorded . If has previously been called and the event has not been recorded yet this function throws .
public void Record(CUstream stream)
        {
            res = DriverAPINativeMethods.Events.cuEventRecord(_event, stream);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuEventRecord", res));
            if (res != CUResult.Success) throw new CudaException(res);
        }
public void Record ( CUstream stream ) { res = DriverAPINativeMethods . Events . cuEventRecord ( _event , stream ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success ) throw new CudaException ( res ) ; }
Records an event.
Records an event .
stream
CUstream