Enum KernelType
- Namespace
- DotCompute.Abstractions.Types
- Assembly
- DotCompute.Abstractions.dll
Enumeration of kernel types for cross-platform kernel categorization and optimization.
public enum KernelType
Fields
ComputeIntensive = 9Compute-intensive operations with transcendental functions. Optimized for floating-point computation and mathematical operations.
Custom = 10Custom kernel implementation. User-defined kernel with arbitrary computation pattern.
ElementWise = 1Element-wise operation kernel. Each thread operates on independent data elements. Examples: vector addition, scalar multiplication, activation functions.
Fused = 11Fused kernel combining multiple operations. Result of kernel fusion optimization.
Generic = 0Generic kernel type for unknown or unsupported patterns. Uses fallback implementation with basic optimization.
MatrixMultiply = 5Matrix multiplication operations using cache-optimized algorithms. Benefits from Tensor Core acceleration on supported hardware.
MemoryIntensive = 8Memory-intensive operations optimized for bandwidth utilization. Focuses on efficient memory access patterns and data movement.
Reduction = 6Reduction operations (sum, max, min, etc.) with logarithmic scaling. Combines multiple values into a single result.
Transpose = 7Matrix transpose kernel. Rearranges matrix data layout in memory.
VectorAdd = 2Vector addition operations (element-wise addition of two vectors). Optimized with SIMD instructions for parallel processing.
VectorMultiply = 3Vector multiplication operations (element-wise multiplication of two vectors). Optimized with SIMD instructions for parallel processing.
VectorScale = 4Vector scaling operations (multiplication of vector by scalar). Optimized with SIMD instructions and vectorized scalar broadcasting.