Library/ManagedCuda/CudaStream.cs
/// <summary>
/// Returns true if all operations in the stream have completed, or
/// false if not.
/// </summary>
/// <returns></returns>
Returns true if all operations in the stream have completed, or
false if not.
Returns true if all operations in the stream have completed or false if not .
public bool Query()
        {
            if (disposed) throw new ObjectDisposedException(this.ToString());
            res = DriverAPINativeMethods.Streams.cuStreamQuery(_stream);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuStreamQuery", res));
            if (res != CUResult.Success && res != CUResult.ErrorNotReady) throw new CudaException(res);
            if (res == CUResult.Success) return true;
            return false; 
        }
public bool Query ( ) { if ( disposed ) throw new ObjectDisposedException ( this . ToString ( ) ) ; res = DriverAPINativeMethods . Streams . cuStreamQuery ( _stream ) ; 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 all operations in the stream have completed, or
false if not.
Returns true if all operations in the stream have completed or false if not .
// --> ErrorNotReady
None