Table of Contents

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

string

IsReady

Gets a value indicating whether the kernel is compiled and ready for execution.

bool IsReady { get; }

Property Value

bool

Name

Gets the kernel name.

string Name { get; }

Property Value

string

Methods

ExecuteAsync(object[], CancellationToken)

Executes the compiled kernel with the specified parameters.

Task ExecuteAsync(object[] parameters, CancellationToken cancellationToken = default)

Parameters

parameters object[]

The kernel execution parameters.

cancellationToken CancellationToken

The cancellation token.

Returns

Task

A task representing the asynchronous execution.

GetMetadata()

Gets kernel metadata and properties.

object GetMetadata()

Returns

object

Kernel metadata.