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 = 0Automatically detect and select the most appropriate kernel language based on the target platform and available runtime features.
Binary = 10Pre-compiled binary kernel code. Platform-specific executable binary format ready for direct execution.
CSharp = 11C# source code for managed kernel implementations. High-level C# code that will be compiled to optimized kernels.
CSharpIL = 9C# Intermediate Language (IL) or expression tree representation. .NET managed code compiled to bytecode for runtime execution.
Cuda = 1CUDA C/C++ source code for NVIDIA GPU programming. Supports parallel computing on NVIDIA graphics processing units.
DirectCompute = 12DirectCompute shader code for Windows GPU programming. Microsoft's GPU compute API integrated with Direct3D.
HIP = 7ROCm HIP (Heterogeneous-Compute Interface for Portability) source code. AMD's runtime API and kernel language for GPU computing.
HLSL = 4HLSL (High-Level Shading Language) shader code for DirectCompute. Microsoft's shading language for Direct3D compute shaders.
Metal = 6Metal Shading Language for Apple platforms. Apple's unified graphics and compute shading language.
OpenCL = 2OpenCL C source code for cross-platform parallel computing. Enables execution across CPUs, GPUs, and other accelerators.
Ptx = 3NVIDIA PTX (Parallel Thread Execution) assembly language. Low-level virtual instruction set for NVIDIA GPUs.
SPIRV = 5SPIR-V (Standard Portable Intermediate Representation - Vulkan) bytecode. Cross-API intermediate language for parallel compute and graphics.
SYCL = 8SYCL/DPC++ (Data Parallel C++) source code. Open standard for heterogeneous parallel programming in modern C++.
Vulkan = 13Vulkan compute shader code. Cross-platform GPU compute using Vulkan API.
WebGPU = 14WebGPU shader code for web-based GPU computing. Modern web standard for GPU access in browsers.