Table of Contents

Class KernelGenerationContext

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

Context for kernel generation.

public sealed class KernelGenerationContext
Inheritance
KernelGenerationContext
Inherited Members

Properties

DeviceInfo

Gets or sets the target device information.

public required AcceleratorInfo DeviceInfo { get; init; }

Property Value

AcceleratorInfo

Metadata

Gets or sets additional metadata.

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

Property Value

Dictionary<string, object>

Precision

Gets or sets the precision mode.

public PrecisionMode Precision { get; init; }

Property Value

PrecisionMode

UseSharedMemory

Gets or sets whether to use shared memory.

public bool UseSharedMemory { get; init; }

Property Value

bool

UseVectorTypes

Gets or sets whether to use vector types.

public bool UseVectorTypes { get; init; }

Property Value

bool

WorkGroupDimensions

Gets or sets the work group dimensions.

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

Property Value

IReadOnlyList<int>