CUDA
CUDA is NVIDIA's parallel computing platform and API that allows developers to use GPU accelerators for general-purpose processing, including LLM training and inference.
CUDA, which stands for Compute Unified Device Architecture, is a parallel computing platform and application programming interface (API) model created by NVIDIA. It allows software developers to use a CUDA-enabled graphics processing unit (GPU) for general purpose processing - an approach known as GPGPU (General-Purpose computing on GPUs). For AI builders working with LLMs, CUDA is the dominant runtime for running deep learning frameworks like PyTorch, TensorFlow, and JAX. Most LLM inference engines, including vLLM and llama.cpp, leverage CUDA kernels to accelerate matrix multiplications, attention mechanisms, and other tensor operations. CUDA enables fine-grained parallelism by exposing thousands of GPU cores to perform SIMT (Single Instruction, Multiple Thread) operations. For LLMs, this is critical because operations like batched matrix multiplies in transformer layers can be decomposed into many parallel thread blocks. CUDA also provides libraries such as cuBLAS for optimized linear algebra, cuDNN for deep neural network primitives, and NCCL for multi-GPU communication. The CUDA toolkit includes a compiler (nvcc), debugger, and profiler (Nsight). AI builders must ensure their GPU compute capability (e.g., 8.0 for Ampere, 9.0 for Hopper) is compatible with the CUDA version they use. CUDA is proprietary but has become the de facto standard for GPU computing in AI, with almost all open-source LLM tools targeting it first. It supports features like tensor cores for mixed-precision training and FP8 quantization on recent hardware. While alternatives like ROCm exist, CUDA's ecosystem maturity and performance optimization make it the default choice for production AI workloads.
CUDA is not a programming language itself but a platform with extensions to languages like C++ and Python to execute code on NVIDIA GPUs.
Related terms
Concepts you'll usually encounter alongside this one.
ROCm is AMD's open-source GPU computing platform designed as a CUDA alternative for running AI workloads on AMD GPUs.
vLLM is an open-source high-performance LLM inference engine using PagedAttention to efficiently manage KV cache memory and achieve high throughput.
llama.cpp is an open-source C/C++ implementation of LLM inference optimized for CPU and GPU, known for running large models locally on modest hardware with quantized formats.
Mentioned in tutorials
Hands-on guides that put this concept to work.
Stand up a fully functional local LLM stack on Ubuntu 22.04, NVIDIA drivers, CUDA, Ollama, and your first model, in under 30 minutes.
Run local LLMs on Windows 11 the right way, WSL2, the WSL CUDA toolkit, and Ollama with full GPU acceleration. Native installer covered too.
Apple Silicon is shockingly good at LLM inference. Get Ollama running with unified memory acceleration on any M-series Mac in 15 minutes.
DeepSeek's reasoning model rivals GPT-4 on math and code. Run the distilled 7B/14B/32B variants on consumer hardware in 30 minutes.
See how this term affects your memory budget.
Real numbers, real chips, every workload.
Picks for builders, by use case.
Stay Ahead of the AI Curve
Get weekly AI hardware news, benchmark updates, and deals in your inbox. Founding-subscriber list, be one of the first.