Class MetalMPSKernel
- Namespace
- DotCompute.Backends.Metal.MPS
- Assembly
- DotCompute.Backends.Metal.dll
Compiled kernel wrapper that represents MPS-accelerated operations. This is a lightweight placeholder that indicates a kernel can be executed via MPS. Actual execution is handled by the Metal accelerator's orchestration layer.
public sealed class MetalMPSKernel : ICompiledKernel, IAsyncDisposable, IDisposable
- Inheritance
-
MetalMPSKernel
- Implements
- Inherited Members
- Extension Methods
Constructors
MetalMPSKernel(nint, MPSOperationType, string, ILogger)
public MetalMPSKernel(nint device, MPSOperationType operation, string name, ILogger logger)
Parameters
devicenintoperationMPSOperationTypenamestringloggerILogger
Properties
CompilationMetadata
public ICompilationMetadata CompilationMetadata { get; }
Property Value
Id
Gets the kernel unique identifier.
public Guid Id { get; }
Property Value
Name
Gets the kernel name.
public string Name { get; }
Property Value
Operation
Gets the MPS operation type for this kernel.
public MPSOperationType Operation { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
public ValueTask DisposeAsync()
Returns
- ValueTask
A task that represents the asynchronous dispose operation.
ExecuteAsync(KernelArguments, CancellationToken)
Executes the kernel with given arguments.
public ValueTask ExecuteAsync(KernelArguments arguments, CancellationToken cancellationToken = default)
Parameters
argumentsKernelArgumentscancellationTokenCancellationToken