Class Stream
Encapculates Cuda Stream. Provides interface for async coping. Passed to each function that supports async kernel execution. Reference counting is enabled
public class Stream : UnmanagedObject, IDisposable
- Inheritance
-
Stream
- Implements
- Inherited Members
Constructors
Stream()
Create a new Cuda Stream
public Stream()
Stream(int)
Create a new Cuda Stream
public Stream(int flag)
Parameters
flag
intThe cuda flags argument that determine the behaviors of the stream
Properties
Completed
Check if the stream is completed
public bool Completed { get; }
Property Value
CudaPtr
Get pointer to CUDA stream
public nint CudaPtr { get; }
Property Value
Methods
DisposeObject()
Release the stream
protected override void DisposeObject()
WaitForCompletion()
Wait for the completion
public void WaitForCompletion()