GPU & Accelerator Kernels for LLMs

Parent: LLM Models and APIs · researched 2026-05-31T21:58:27.015Z· 14 sources · 13 concepts · skill llm-gpu-kernels

PROVENANCE

Overview

GPU & Accelerator Kernels for LLMs

When to load this reference

1. The GPU execution model — SMs, warps, SIMT, occupancy

2. The memory hierarchy — and why attention is IO-bound

3. Arithmetic intensity and the roofline model

4. Precision and tensor cores — BF16 / FP8 / FP4 / MX / INT8

5. CUDA basics — kernels, grids/blocks, coalescing, shared memory

6. Triton — block-level kernels and autotuning

7. Kernel fusion

8. FlashAttention — the kernel case study (implementation view)

9. Paged and quantized KV-cache kernels

10. NCCL collectives — the communication primitives (ring vs tree)

11. Profiling and Model FLOPs Utilization (MFU)

12. The hardware landscape (Hopper → Blackwell, MI300X, TPU)

13. Compilers — torch.compile / TorchInductor, TensorRT-LLM, XLA, Mojo

Practical patterns

Anti-patterns

Cross-references (reciprocal)

References

Children

Frontier under this node: Arithmetic intensity and the roofline (prefill compute-bound vs decode memory-bound), CUDA basics (coalescing, shared memory, bank conflicts, CUDA graphs), Compilers (torch.compile/TorchInductor, TensorRT-LLM, XLA, Mojo), FlashAttention kernel implementation (tiling, online softmax, FA-3 warp specialization/WGMMA/TMA), GPU execution model (SMs, warps, SIMT, occupancy), Hardware landscape (Hopper to Blackwell, AMD MI300X/MI350X, Google TPU), Kernel fusion, Memory hierarchy (registers/SRAM/L2/HBM) and IO-bound attention, NCCL collective primitives (ring vs tree), Paged and quantized KV-cache kernels, Precision and tensor cores (BF16/TF32, FP8, MX/MXFP4, NVFP4, INT8), Profiling and MFU (Nsight Systems/Compute, PyTorch profiler), Triton kernels (tile/block programming, autotune)

← the whole tree · 3D view· how to read this page