Skip to main content
CookLLM logoCookLLM Docs
Systems

GPU Programming Basics

Learn CUDA and Triton, and write efficient GPU kernels

Overview

Before diving into advanced optimizations like Flash Attention, we need the fundamentals of GPU programming. This module takes you from scratch to understanding how GPUs work and how to write efficient kernels with Triton.

This module is a prerequisite for the Systems track. We recommend completing it before Flash Attention.

Chapters

Why Learn This?

What You Want to DoWhat You Need
Understand Flash Attention implementationShared memory, tiling
Write your own attention kernelTriton programming
Optimize inference speedMemory layout, coalescing
Implement custom quantization kernelsCUDA/Triton fundamentals

References