Interface IKernelSource
- Namespace
- DotCompute.Abstractions
- Assembly
- DotCompute.Abstractions.dll
Represents a source of kernel code that can be compiled and executed. Defines the contract for providing kernel source code, metadata, and dependencies required for compilation and execution on various compute accelerators.
public interface IKernelSource
Properties
Code
Gets the source code or bytecode representation of the kernel. For text-based sources, this contains the actual source code. For binary sources, this contains a Base64-encoded representation.
string Code { get; }
Property Value
Dependencies
Gets the read-only list of dependency identifiers required by this kernel. Dependencies may include libraries, headers, or other kernel modules.
IReadOnlyList<string> Dependencies { get; }
Property Value
EntryPoint
Gets the entry point method name for kernel execution. This is the function name that will be invoked when the kernel runs.
string EntryPoint { get; }
Property Value
Language
Gets the kernel language or source type format. Specifies the programming language, assembly format, or bytecode type.
KernelLanguage Language { get; }
Property Value
Name
Gets the unique name identifier for the kernel. This name is used for identification and debugging purposes.
string Name { get; }