Library/ManagedCuda/CudaEvent.cs
/// <summary>
/// Returns true if the event has actually been recorded, or false if not. If
/// <see cref="Record()"/> has not been called on this event, the function throws <see cref="CUResult.ErrorInvalidValue"/>.
/// </summary>
/// <returns></returns>
Returns true if the event has actually been recorded, or false if not. If
has not been called on this event, the function throws .
Returns true if the event has actually been recorded or false if not . If has not been called on this event the function throws .
public bool Query()
        {
            res = DriverAPINativeMethods.Events.cuEventQuery(_event);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuEventQuery", res));
            if (res != CUResult.Success && res != CUResult.ErrorNotReady) throw new CudaException(res);
            if (res == CUResult.Success) return true;
            return false; 
        }
public bool Query ( ) { res = DriverAPINativeMethods . Events . cuEventQuery ( _event ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success && res != CUResult . ErrorNotReady ) throw new CudaException ( res ) ; if ( res == CUResult . Success ) return true ; return false ; }
Returns true if the event has actually been recorded, or false if not.
Returns true if the event has actually been recorded or false if not .
// --> ErrorNotReady
None