Library/ManagedCuda/CudaDNN/CudaDNNContext.cs
/// <summary>
/// This function sets the stream to be used by the cudnn library to execute its routines.
/// </summary>
/// <param name="stream">the stream to be used by the library.</param>
This function sets the stream to be used by the cudnn library to execute its routines.
This function sets the stream to be used by the cudnn library to execute its routines .
public void SetStream(CudaStream stream)
        {
            res = CudaDNNNativeMethods.cudnnSetStream(_handle, stream.Stream);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cudnnSetStream", res));
            if (res != cudnnStatus.Success) throw new CudaDNNException(res);
        }
public void SetStream ( CudaStream stream ) { res = CudaDNNNativeMethods . cudnnSetStream ( _handle , stream . Stream ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != cudnnStatus . Success ) throw new CudaDNNException ( res ) ; }
This function sets the stream to be used by the cudnn library to execute its routines.
This function sets the stream to be used by the cudnn library to execute its routines .
stream
CudaStream
the stream to be used by the library.
the stream to be used by the library .