Table of Contents

Class CudaStreamHandle

Namespace
DotCompute.Backends.CUDA.Execution
Assembly
DotCompute.Backends.CUDA.dll

Handle for managed CUDA streams with automatic cleanup

public class CudaStreamHandle : IDisposable
Inheritance
CudaStreamHandle
Implements
Inherited Members
Extension Methods

Properties

Handle

Gets the CUDA stream handle (alias for Stream).

public nint Handle { get; }

Property Value

nint

Stream

Gets or sets the stream.

public nint Stream { get; }

Property Value

nint

The stream.

StreamId

Gets or sets the stream identifier.

public StreamId StreamId { get; }

Property Value

StreamId

The stream id.

Methods

Dispose()

Performs dispose.

public void Dispose()

Dispose(bool)

Performs dispose with managed/unmanaged resource cleanup.

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

True if disposing managed resources.

ReturnToManager()

protected virtual void ReturnToManager()

SynchronizeAsync(CancellationToken)

Synchronizes the stream asynchronously.

public ValueTask SynchronizeAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Cancellation token.

Returns

ValueTask

A task representing the synchronization operation.