Table of Contents

Enum KernelLanguage

Namespace
DotCompute.Abstractions.Kernels.Types
Assembly
DotCompute.Abstractions.dll

Defines the language or format of kernel source code. Specifies the programming language, assembly format, or bytecode type used to represent compute kernel implementations.

public enum KernelLanguage

Fields

Auto = 0

Automatically detect and select the most appropriate kernel language based on the target platform and available runtime features.

Binary = 10

Pre-compiled binary kernel code. Platform-specific executable binary format ready for direct execution.

CSharp = 11

C# source code for managed kernel implementations. High-level C# code that will be compiled to optimized kernels.

CSharpIL = 9

C# Intermediate Language (IL) or expression tree representation. .NET managed code compiled to bytecode for runtime execution.

Cuda = 1

CUDA C/C++ source code for NVIDIA GPU programming. Supports parallel computing on NVIDIA graphics processing units.

DirectCompute = 12

DirectCompute shader code for Windows GPU programming. Microsoft's GPU compute API integrated with Direct3D.

HIP = 7

ROCm HIP (Heterogeneous-Compute Interface for Portability) source code. AMD's runtime API and kernel language for GPU computing.

HLSL = 4

HLSL (High-Level Shading Language) shader code for DirectCompute. Microsoft's shading language for Direct3D compute shaders.

Metal = 6

Metal Shading Language for Apple platforms. Apple's unified graphics and compute shading language.

OpenCL = 2

OpenCL C source code for cross-platform parallel computing. Enables execution across CPUs, GPUs, and other accelerators.

Ptx = 3

NVIDIA PTX (Parallel Thread Execution) assembly language. Low-level virtual instruction set for NVIDIA GPUs.

SPIRV = 5

SPIR-V (Standard Portable Intermediate Representation - Vulkan) bytecode. Cross-API intermediate language for parallel compute and graphics.

SYCL = 8

SYCL/DPC++ (Data Parallel C++) source code. Open standard for heterogeneous parallel programming in modern C++.

Vulkan = 13

Vulkan compute shader code. Cross-platform GPU compute using Vulkan API.

WebGPU = 14

WebGPU shader code for web-based GPU computing. Modern web standard for GPU access in browsers.