1---2name: kernel-specific-skills3description: Kernel Specific Skills4---5# Kernel Specific Skills67Implementation skills for specific ESIMD kernel types on Intel Xe2 and Xe3 GPUs.89## Sub-Skills1011### SDP / Flash Attention (Xe2)1213| Skill | Description |14|-------|-------------|15| [xe2-sdp-kernels](./xe2-sdp-kernels/SKILL.md) | Flash Attention SDP kernels (prefill and decode) on Xe2: GQA, paged KV-cache, DPAS tiling |16| [xe2-sdp-bf16](./xe2-sdp-bf16/SKILL.md) | BF16 SDP kernel variants on Xe2: ALU analysis, barrier interleave optimization, V-conversion strategies |17| [xe2-sdp-hd256](./xe2-sdp-hd256/SKILL.md) | Head-dim 256 SDP kernel optimizations on Xe2: pipelined QK, MAD fusion, S-scatter techniques |18| [xe2-sdp-sparse-mask](./xe2-sdp-sparse-mask/SKILL.md) | SDP with sparse attention masks on Xe2: mask pipeline, sparse kernel patterns |1920### GEMM (Matrix Multiply)2122| Skill | Description |23|-------|-------------|24| [xe2-esimd-gemm](./xe2-esimd-gemm/SKILL.md) | FP16 ESIMD GEMM kernels on Xe2: DPAS tiling, gather-based layouts, prefetch strategies |25| [onednn-fp8-gemm](./onednn-fp8-gemm/SKILL.md) | OneDNN FP8 GEMM on Xe2: quantization patterns, API usage, performance tuning |26| [xe3-onednn-fp16-gemm](./xe3-onednn-fp16-gemm/SKILL.md) | OneDNN FP16 GEMM on Xe3 (Panther Lake): setup and optimization |27| [xe3-onednn-fp8-gemm](./xe3-onednn-fp8-gemm/SKILL.md) | FP16/BF16 x FP8 quantized GEMM using OneDNN on Xe3: dequant pipelines, per-N scaling |2829### GEMV (Matrix-Vector Multiply)3031| Skill | Description |32|-------|-------------|33| [intel-esimd-gemv-fp16](./intel-esimd-gemv-fp16/skill.md) | High-performance FP16 GEMV kernels on Intel GPUs using ESIMD |34| [intel-esimd-gemv-w4a16](./intel-esimd-gemv-w4a16/skill.md) | W4A16 quantized GEMV kernels using ESIMD: 4-bit weight dequantization |35| [xe2-esimd-gemv](./xe2-esimd-gemv/SKILL.md) | W4A16 and W8A16 quantized GEMV on Xe2: SLM reduction, dequant-dot fusion |36| [gemv-gguf-quant](./gemv-gguf-quant/skill.md) | GGUF quantized GEMV (Q4_K/Q5_K/Q6_K/Q8_0) on Xe2: nibble unpacking, pre-shuffled bit buffers, >95% DRAM roofline |3738### Attention Sub-Operations3940| Skill | Description |41|-------|-------------|42| [intel-esimd-qk-gemm-gqa](./intel-esimd-qk-gemm-gqa/skill.md) | QK GEMM decode kernel with Grouped-Query Attention (GQA) |43| [intel-esimd-qk-gemm-softmax](./intel-esimd-qk-gemm-softmax/skill.md) | Fused QK GEMM + softmax kernel |44| [intel-esimd-qkv-gemm](./intel-esimd-qkv-gemm/skill.md) | QKV GEMM kernel for attention computation |45| [intel-esimd-kv-gemm](./intel-esimd-kv-gemm/skill.md) | KV GEMM kernel for score-value multiplication |46| [intel-esimd-pooling](./intel-esimd-pooling/skill.md) | QK max pooling kernel for sparse attention |4748### TopK Kernels4950| Skill | Description |51|-------|-------------|52| [intel-esimd-topk](./intel-esimd-topk/skill.md) | Top-K selection kernel using ESIMD |53| [intel-esimd-topk-runtime](./intel-esimd-topk-runtime/skill.md) | Runtime-configurable Top-K with dynamic K |54| [intel-esimd-topk-softmax](./intel-esimd-topk-softmax/skill.md) | Fused softmax + Top-K + normalize kernel |5556### Linear Attention5758| Skill | Description |59|-------|-------------|60| [xe2-linear-attention](./xe2-linear-attention/SKILL.md) | GLA (Gated Linear Attention) and GDN (Gated Delta Network) recurrent/decode kernels on Xe2 |6162### MoE (Mixture of Experts)6364| Skill | Description |65|-------|-------------|66| [moe-kernels](./moe-kernels/SKILL.md) | MoE kernel suite: routing (sigmoid top-K), decode GEMV, prefill GEMM, and vLLM integration |6768### Sparse Attention (InfLLMv2)6970| Skill | Description |71|-------|-------------|72| [infllmv2-sparse-attention](./infllmv2-sparse-attention/SKILL.md) | InfLLMv2 sparse attention suite: pattern generation, sparse SDP (prefill/decode), vLLM integration |7374### Xe3 Kernels7576| Skill | Description |77|-------|-------------|78| [xe3-esimd-kernels](./xe3-esimd-kernels/SKILL.md) | SYCL ESIMD kernels on Xe3 (Panther Lake): GLA decode/recurrent kernels |