Interface ICompiledKernel
- Namespace
- DotCompute.Abstractions.Interfaces.Kernels
- Assembly
- DotCompute.Abstractions.dll
Represents a compiled kernel ready for execution across all backends. This is the unified interface for compiled kernels that abstracts away backend-specific implementation details.
public interface ICompiledKernel : IDisposable
- Inherited Members
- Extension Methods
Properties
BackendType
Gets the backend type that compiled this kernel.
string BackendType { get; }
Property Value
IsReady
Gets a value indicating whether the kernel is compiled and ready for execution.
bool IsReady { get; }
Property Value
Name
Gets the kernel name.
string Name { get; }
Property Value
Methods
ExecuteAsync(object[], CancellationToken)
Executes the compiled kernel with the specified parameters.
Task ExecuteAsync(object[] parameters, CancellationToken cancellationToken = default)
Parameters
parametersobject[]The kernel execution parameters.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- Task
A task representing the asynchronous execution.
GetMetadata()
Gets kernel metadata and properties.
object GetMetadata()
Returns
- object
Kernel metadata.