Table of Contents

Class GeneratedKernel

Namespace
DotCompute.Abstractions.Interfaces.Kernels
Assembly
DotCompute.Abstractions.dll

Represents a generated kernel.

public sealed class GeneratedKernel
Inheritance
GeneratedKernel
Inherited Members

Properties

EntryPoint

Gets the entry point name (defaults to Name).

public string EntryPoint { get; }

Property Value

string

Id

Gets the kernel ID (alias for Name as Guid).

public Guid Id { get; }

Property Value

Guid

Language

Gets or sets the kernel language.

public required KernelLanguage Language { get; init; }

Property Value

KernelLanguage

Metadata

Gets the kernel metadata (alias for OptimizationMetadata).

public KernelMetadata? Metadata { get; }

Property Value

KernelMetadata

Name

Gets or sets the kernel name.

public required string Name { get; init; }

Property Value

string

OptimizationMetadata

Gets or sets optimization metadata.

public Dictionary<string, object>? OptimizationMetadata { get; init; }

Property Value

Dictionary<string, object>

Parameters

Gets or sets the kernel parameters.

public required IReadOnlyList<KernelParameter> Parameters { get; init; }

Property Value

IReadOnlyList<KernelParameter>

RequiredWorkGroupSize

Gets or sets the required work group size.

public IReadOnlyList<int>? RequiredWorkGroupSize { get; init; }

Property Value

IReadOnlyList<int>

SharedMemorySize

Gets or sets the shared memory size in bytes.

public int SharedMemorySize { get; init; }

Property Value

int

Source

Gets or sets the kernel source code.

public required string Source { get; init; }

Property Value

string

SourceCode

Gets the source code (alias for Source).

public string SourceCode { get; }

Property Value

string