AIXX Pedia › Tech Concept › CUDA Graphs Execution
CUDA Graphs is NVIDIA's official graph-execution feature: a sequence of kernels and their dependencies is captured into a single graph, which is then launched once and replayed repeatedly. It addresses launch overhead — the CPU launching kernels one by one incurs a fixed microsecond-level cost each time; the smaller and denser the kernels, the more the GPU sits idle waiting on the CPU. The official programming guide describes it as replacing a series of individual kernel launches with a single graph launch (CUDA Programming Guide).
The feature debuted with CUDA 10 in 2018 (NVIDIA PyTorch blog: CUDA Graphs first appeared in CUDA 10, 'launching multiple GPU operations with a single CPU operation, thereby reducing launch overhead'). Each training iteration and each inference decode step repeats the same sequence of kernels, so the one-time cost of building the graph is amortized over countless replays; PyTorch (built-in API since 1.10) and TensorRT-LLM, among others, have made graph capture/replay a standard optimization.
| Item | Value / Basis |
|---|---|
| Introduced | CUDA 10 · 2018 (NVIDIA PyTorch blog, citing CUDA 10 features) |
| Mechanism | Whole-graph launch via a single cudaGraphLaunch · replay on demand (CUDA Runtime API) |
| Gain Example | MLPerf v1.0 Mask R-CNN: graphed segment 31ms→6ms (5x) · 1.7x overall (NVIDIA PyTorch blog) |
| Scaling | BERT: 1.12x speedup on 4096 GPUs · helped scale MLPerf training to 4000+ GPUs (NVIDIA PyTorch blog) |
The faster the GPU, the more costly waiting on CPU feeding becomes: B300 kernels run faster and shorter, further amplifying the share of launch overhead — this generation of inference stacks (TensorRT-LLM, etc.) and training scripts routinely enable graph execution. When comparing inference throughput between two identical eight-GPU machines, the difference often lies not in the GPUs but in how well the software stack (including graph execution) is tuned; benchmark reports should be reviewed alongside stack configuration.
Buyer's perspective: when validating with inference benchmarks, request GPU utilization or timeline traces — with high CPU launch overhead, the GPU sits idle for large stretches, and peak compute means nothing (the illustrative curves in the NVIDIA PyTorch blog show exactly this pattern). The measured gap between a 'well-tuned stack' and an untuned one on identical machines is legitimate grounds for price negotiation.