Skip to content

GPU Driver Setup — CUDA vs ROCm vs Vulkan

As of CUDA 13.4 (Linux) / 13.1 (Windows): the NVIDIA driver is NO LONGER bundled with the CUDA Toolkit — install it separately. ROCm 7.2.x is the first release with official RDNA 4 support.

NVIDIA / CUDA (the default path): - Current line is CUDA 13.4 Update 1. Breaking change: the NVIDIA driver is no longer bundled with the CUDA Toolkit — on Windows since CUDA 13.1, on Linux since CUDA 13.4. You must install the driver separately from nvidia.com/drivers. - Toolkit→driver-branch mapping: CUDA 13.4 → R615, 13.3 → R610, 13.2 → R595, 13.1 → R590, 13.0 → R580. RTX Spark device needs driver ≥ 616.41 on Windows. - Minor-version compatibility: any CUDA 13.x app runs on drivers ≥ 580 (12.x needs ≥ 525 and < 580). Drivers are backward compatible, so a newer driver generally satisfies an older toolkit. - Install via RPM / Debian / Runfile / Conda depending on platform; datacenter cards follow the separate NVIDIA Data Center Driver lifecycle (New Feature Branch vs Production Branch, per docs.nvidia.com/datacenter/tesla/drivers). - Toolchain: NVCC runtime, cuBLAS 13.8, cuDNN, NCCL; profiling with Nsight Systems/Compute (2026.3.x).

AMD / ROCm (now genuinely viable for inference): - Current line is ROCm 7.2.x (7.2.4 latest patch, June 2026). ROCm 7.2 (March 2026) is the first release with official RDNA 4 (RX 9070/9070 XT, gfx1201) support and the first to claim out-of-the-box Ollama / LM Studio / llama.cpp / vLLM parity with CUDA on Radeon, shipped as one combined Windows + Linux installer. - Install on Ubuntu: amdgpu-install --usecase=rocm,hiplibsdk; verify with rocminfo; pin the 6.2/6.3 commands as a fallback if a 7.x point release regresses your card. - Official support covers RX 7900 XTX/XT/GRE (RDNA 3), RX 9070/9070 XT (RDNA 4, from 7.2), Radeon Pro W7800/W7900, Ryzen AI Max+ 395 / Strix Halo (128 GB unified, gfx1151), and CDNA (MI210/250/300X/325X). Older RDNA 2/2.5 and RDNA 3.5 APU cards work via HSA_OVERRIDE_GFX_VERSION (e.g. gfx1030→10.3.0, gfx1101→11.0.0, gfx1151→11.5.1) but are unsupported for production. - FlashAttention-2 has an official AMD port for RDNA 3 and CDNA 3; FP8 is mature on MI300X, landing for RDNA 4, absent on RDNA 3. HIP is largely CUDA-source-compatible (hipify), but hand-tuned NVIDIA kernels (FA-3, fused MoE) lag. - llama.cpp with ROCm: cmake -B build -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DGGML_HIP=ON -DAMDGPU_TARGETS=gfx1100 -DCMAKE_BUILD_TYPE=Release; add -DGGML_OPENMP=OFF on OpenMP link errors. Set HIP_VISIBLE_DEVICES=0|1 on multi-GPU systems. - Real numbers: RX 7900 XTX (24 GB) runs Llama 3.1 8B at ~96 tok/s ≈ 75% of an RTX 4090; MI300X (192 GB HBM3) beats H100 on long-context inference. Still lagging: training tooling parity and some framework kernels. For pure inference ROCm is a real choice in 2026; for training, NVIDIA still wins.

Vulkan (the cross-vendor fallback): - Vulkan is a cross-vendor compute backend and a practical llama.cpp GGUF path (also for Intel and older AMD cards where ROCm is unsupported), but it is not a drop-in replacement for the wider CUDA/ROCm library ecosystems (cuBLAS/cuDNN/NCCL equivalents). - llama.cpp 0.6.0 (5 Oct 2026) added sparse flash attention for quantized K/V on Vulkan, plus recent Intel Xe flash-attention kernels for Xe-LPG Plus / Xe2 / Xe3 and a Vulkan cooperative-matrix int8 matmul path lifting prompt throughput on Radeon RX 7900-class GPUs. - Benchmark both backends on supported RDNA 3/4 — kernel performance varies with model shape, quantization, context and build.

Sources

Date: 2026-10-09