Table of Contents

Class MetalStreamGroup

Namespace
DotCompute.Backends.Metal.Execution.Types
Assembly
DotCompute.Backends.Metal.dll

Group of related Metal streams for batch operations and coordinated execution.

public sealed class MetalStreamGroup : IDisposable
Inheritance
MetalStreamGroup
Implements
Inherited Members
Extension Methods

Constructors

MetalStreamGroup(string, int)

public MetalStreamGroup(string name, int capacity = 0)

Parameters

name string
capacity int

Properties

CreatedAt

public DateTimeOffset CreatedAt { get; }

Property Value

DateTimeOffset

Name

public string Name { get; }

Property Value

string

Streams

public IReadOnlyList<MetalStreamHandle> Streams { get; }

Property Value

IReadOnlyList<MetalStreamHandle>

Methods

AddStream(StreamId, nint)

public void AddStream(StreamId streamId, nint commandQueue)

Parameters

streamId StreamId
commandQueue nint

AddStream(MetalStreamHandle)

public void AddStream(MetalStreamHandle stream)

Parameters

stream MetalStreamHandle

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()