CUDA
53 entries · 11 sections
Editor’s pick
II Inference Engines 4
LMDeploy Tool
Toolkit pairing the C++ TurboMind engine with a PyTorch engine, with weight and KV-cache quantization and Ascend support.
DeepInfer Tool
DeepSeek's production engine, released for offline inference with expert parallelism, batch invariance, and Blackwell and Ascend support.
ExLlamaV3 Library
Inference library for consumer NVIDIA GPUs built around the QTIP-based EXL3 format, with tensor parallelism and TabbyAPI as its server.
tiny-vllm Tool
Course plus C++/CUDA codebase that builds a small vLLM-style server step by step, from safetensors loading to paged attention.
III Distributed Serving & Orchestration 1
cuda-checkpoint Tool
Command-line utility that suspends and restores CUDA state in a running process; paired with CRIU it snapshots GPU processes for faster restarts.
V Model Compression 1
bitsandbytes Library
Reference code for LLM.int8() outlier-aware 8-bit matmul and the NF4 4-bit format from QLoRA, applied at load time in Transformers without calibration.
IX Kernels & GPU Programming 19
FlashAttention Library
IO-aware exact attention kernels; FA3 targets Hopper and FA4, written in CuTe DSL, targets Blackwell.
FlashInfer Library
Attention, sampling, MoE, and GEMM kernels built for LLM serving, with JIT-compiled variants used as backends by vLLM and SGLang.
CUTLASS Library
NVIDIA's C++ templates and CuTe layout abstractions for GEMM-class kernels, plus the Python CuTe DSL, from Ampere through Blackwell.
DeepGEMM Library
DeepSeek's JIT-compiled tensor-core kernels for FP8, FP4, and BF16 GEMMs, grouped MoE GEMMs, and MoE fused with communication.
FlashMLA Library
DeepSeek's sparse and dense MLA attention kernels with FP8 or FP4 KV cache, for Blackwell GPUs and Ascend NPUs (Hopper in older releases).
Transformer Engine Library
Transformer layers and scaling recipes for FP8, MXFP8, and NVFP4 execution on Hopper and Blackwell, with PyTorch and JAX bindings.
ThunderKittens Library
Tile primitives embedded in CUDA C++ for writing attention and GEMM kernels; version 2.0 adds Blackwell, MXFP8, and NVFP4 support.
SageAttention Library
Quantized attention kernels (INT8 QK, FP8 PV, FP4 on Blackwell) that replace FlashAttention without retraining, common in video diffusion.
DeepSelect Library
Top-k selection kernels for the lightning indexer in DeepSeek Sparse Attention and for token samplers, on CUDA and Ascend.
Marlin Library
Reference FP16xINT4 mixed-precision GEMM kernel for small-batch decoding; maintained Marlin variants now ship inside vLLM.
NVIDIA's normative reference for the CUDA execution model, memory hierarchy, C++ language extensions, and per-architecture features.
PTX ISA Spec
Specification of NVIDIA's virtual instruction set and memory model, including async-copy, TMA, wgmma, and tcgen05 instructions.
CUDA C++ Best Practices Guide Docs
Official optimization workflow for CUDA C++ covering memory coalescing, shared memory, occupancy, and the assess-parallelize-optimize cycle.
Mirage Persistent Kernel (MPK) Tool
Compiler and runtime that turns a multi-GPU LLM forward pass into one persistent megakernel with SM-level task scheduling.
Megakernels (Hazy Research) Tool
ThunderKittens-based research megakernels that run a full Llama forward pass in a single launch to eliminate kernel-boundary stalls.
NCCL Library
NVIDIA's collective and point-to-point communication library over NVLink, PCIe, InfiniBand, and RoCE; the default PyTorch GPU backend.
NCCL Device API Docs
Docs for NCCL's device-side API, which lets kernels issue communication over NVLink load/store, multicast, and GPU-initiated RDMA.
NVSHMEM Library
OpenSHMEM-style global address space for NVIDIA GPUs with one-sided puts, gets, atomics, and signals issued from inside kernels.
DeepEP Library
Expert-parallel dispatch and combine kernels with high-throughput NVLink/RDMA modes for prefill and low-latency modes for decoding.
X Compilers & Graph Runtimes 1
TensorRT Tool
NVIDIA's inference optimizer and runtime; version 11 removed weakly typed networks, implicit quantization, and IPluginV2.
XI Hardware & Accelerators 1
CUTLASS Blackwell Documentation Docs
CUTLASS reference for Blackwell SM100/SM120 GEMM layouts, tcgen05 MMA instructions, and warp-specialized kernel schedules.
XII Benchmarking & Capacity Planning 2
CUTLASS GEMM Performance Measurement Methodology Docs
NVIDIA guidance on separate warmup loops, buffer rotation for cold caches, fixed-clock versus fixed-power runs, and input entropy for reproducible GEMM numbers.
AI Systems Performance Checklist Article
Over 200 tuning and measurement items from Fregly's O'Reilly book, from steady-state timing and OS and CUDA settings up to cluster-scale cost controls.
XIII Observability & Operations 3
Nsight Systems Tool
System-wide timeline profiler that lines up CPU threads, OS runtime, CUDA API calls, kernels, memory copies, and NVTX ranges to expose idle GPU time.
Nsight Compute Tool
Kernel profiler that reads hardware counters to report roofline position, memory-hierarchy throughput, occupancy, and warp stall reasons per CUDA kernel.
Compute Sanitizer Tool
CUDA toolkit checkers (memcheck, racecheck, initcheck, synccheck) that catch out-of-bounds accesses, shared-memory races, and synchronization misuse.
XV Verticals 1
NVIDIA RecSys Examples Library
NVIDIA's HSTU and semantic-ID recommender examples, including inference with a paged GPU KV cache, Triton Inference Server, and AOTInductor C++ deployment.
XVII Case Studies & Engineering Blogs 2
Better MoE Model Inference with Warp Decode (Cursor) Article
Cursor's MoE decode kernel in which each warp computes one output value, with B200 measurements for a Qwen-style model on its internal inference system.
Hazy Research Blog Article
Stanford's Hazy Research posts on hardware-aware kernels, efficient architectures, and local AI, including the ThunderKittens releases.
XVIII Learning Resources 18
Programming Massively Parallel Processors (5th ed.) Book
Standard textbook on GPU programming, memory hierarchies, and parallel patterns; the 2026 edition adds LLM workloads.
AI Systems Performance Engineering (O'Reilly) Book
Profiling-first book on tuning GPUs, CUDA kernels, PyTorch, and multi-node systems for training and inference, closing with an optimization checklist.
CMU 11-868: Large Language Model Systems Course
Spring 2026 course that goes from CUDA basics and a MiniTorch homework track to FlashAttention, vLLM, SGLang, and disaggregated serving.
GPU MODE Lectures Course
Slides and code for the community lecture series on CUDA, Triton, CUTLASS, profiling, and inference kernels; recordings are on YouTube.
MIT 6.S894: Accelerated Computing Course
Fall 2025 graduate course on performance engineering for accelerators, with weekly CUDA labs that build toward fast GPU kernels.
NVIDIA Accelerated Computing Hub Course
Open notebooks and syllabi from NVIDIA for CUDA C++, CUDA Python, and CUDA Tile, runnable on cloud GPUs or Colab.
How to Optimize a CUDA Matmul Kernel for cuBLAS-like Performance Article
Worklog that takes a naive SGEMM through coalescing, shared-memory tiling, and warptiling, profiling each step against cuBLAS.
Inside NVIDIA GPUs: Anatomy of High-Performance Matmul Kernels Article
Builds from GPU memory hierarchy and PTX/SASS up to Hopper matmul kernels that use TMA, wgmma, and warp specialization.
Outperforming cuBLAS on H100: A Worklog Article
Hopper follow-up to the Boehm worklog that grows a dependency-free GEMM in one CUDA file, adding TMA, wgmma, and warp specialization step by step.
tcgen05 for dummies Article
Plain CUDA C++ and PTX walkthrough of Blackwell's tcgen05 Tensor Core instructions, building a B200 matmul that approaches cuBLAS.
CUTLASS Tutorial: Mastering the Tensor Memory Accelerator (TMA) Article
Explains Hopper's TMA unit for asynchronous bulk copies, including loads, stores, and multicast, and how to drive it through CuTe.
CUTLASS Tutorial: Fast Matrix Multiplication with WGMMA on Hopper Article
Shows how warpgroup-level wgmma instructions work on Hopper and how CUTLASS and CuTe expose them in a GEMM mainloop.
Deep Dive on CUTLASS Ping-Pong GEMM Kernel Article
Walks through a warp-specialized Hopper FP8 GEMM in which producer and consumer warpgroups alternate so math overlaps with epilogues.
GPUs Go Brrr Article
Hazy Research essay on what keeps an H100 busy, from tensor cores and TMA to async pipelines, and the ThunderKittens design built on it.
Optimizing Parallel Reduction in CUDA Article
Classic NVIDIA slide deck that refines a sum-reduction kernel through seven versions, a template for reasoning about bandwidth limits.
Fast LLM Inference From Scratch Article
Builds a single-GPU inference engine in C++ and CUDA without libraries, profiling each step from a naive CPU loop to fused kernels.
GPU MODE (YouTube) Video
Recorded community lectures on CUDA, Triton, CUTLASS, profiling, and inference kernels, often given by the people who wrote them.
GPU MODE Discord Community
Open Discord server for GPU programming with channels per kernel language and vendor, reading groups, lectures, and kernel competitions.