AI Engineering › XKRN
Not startedLearningMasteredNeeds review
XKRN
GPU Kernels and IO-Aware Algorithms
M1Special topic in AI Engineering7 topics · 12 subtopics · 37 knowledge points
Topics
Sign up free to see the knowledge pointsA free account opens the knowledge points of 5 courses.
XKRN-01The GPU execution model
2 subtopics · 5 knowledge points · learn first: HPCD-04, CSYS-08
2 subtopics · 5 knowledge points · learn first: HPCD-04, CSYS-08
XKRN-01-01 · Threads, warps and blocks
XKRN-01-02 · The memory hierarchy of a GPU
XKRN-02The roofline model
1 subtopics · 4 knowledge points · learn first: XKRN-01
1 subtopics · 4 knowledge points · learn first: XKRN-01
XKRN-02-01 · Paper: Roofline (Williams, Waterman and Patterson, 2009)
XKRN-03Matrix multiplication
2 subtopics · 5 knowledge points · learn first: XKRN-02
2 subtopics · 5 knowledge points · learn first: XKRN-02
XKRN-03-01 · Tiling
XKRN-03-02 · Libraries
XKRN-04Writing kernels
2 subtopics · 7 knowledge points · learn first: XKRN-03, PROG-02
2 subtopics · 7 knowledge points · learn first: XKRN-03, PROG-02
XKRN-04-01 · CUDA basics
XKRN-04-02 · Paper: Triton (Tillet, Kung and Cox, 2019)
XKRN-05Kernel fusion
1 subtopics · 3 knowledge points · learn first: XKRN-04
1 subtopics · 3 knowledge points · learn first: XKRN-04
XKRN-05-01 · Why fusion pays
XKRN-06IO-aware attention
3 subtopics · 10 knowledge points · learn first: XKRN-05, TRFM-03
3 subtopics · 10 knowledge points · learn first: XKRN-05, TRFM-03
XKRN-06-01 · Paper: FlashAttention (Dao et al., 2022)
XKRN-06-02 · Paper: FlashAttention-2 (Dao, 2023)
XKRN-06-03 · Paper: FlashAttention-3 (Shah et al., 2024)
XKRN-07Profiling
1 subtopics · 3 knowledge points · learn first: XKRN-04
1 subtopics · 3 knowledge points · learn first: XKRN-04
XKRN-07-01 · Measuring a kernel
Papers in this course
Each paper is explained in the subtopic shown next to it.
WIL09Williams, Waterman and Patterson (2009). Roofline: An Insightful Visual Performance Model for Multicore Architectures. Communications of the ACM 52(4). doi:10.1145/1498765.1498785XKRN-02-01
TIL19Tillet, Kung and Cox (2019). Triton: An Intermediate Language and Compiler for Tiled Neural Network Computations. MAPL 2019. doi:10.1145/3315508.3329973XKRN-04-02
DAO22Dao et al. (2022). FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness. NeurIPS 2022. arXiv:2205.14135XKRN-06-01
DAO23Dao (2023). FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning. ICLR 2024. arXiv:2307.08691XKRN-06-02
SHA24Shah et al. (2024). FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision. NeurIPS 2024. arXiv:2407.08608XKRN-06-03