GPU Infrastructure and Model Serving / The NVIDIA Software Stack

Drivers, CUDA and the compatibility rules

Lesson 5 of 29. Open to read. No account needed.

What You Will Be Able to Do

Most "the GPU does not work" tickets are not about the GPU. They are about two software layers that disagree on a version. This lesson lays out the layers between an application and an NVIDIA GPU, the rules that say which versions work together, and where each rule is documented, so that you can read a failure and name the layer at fault. The rules are quoted from NVIDIA's pages as read on 2026-10-21 (S19, S20, S21, S22, S62); the failures are cited or described, because the author has no NVIDIA GPU and no recorded run exists yet. The lesson says so wherever that applies.

Seven stacked layers from bottom to top: the GPU hardware; the NVIDIA kernel driver on the host; the CUDA runtime and libraries such as cuBLAS; the framework or engine build, for example a vLLM wheel compiled for CUDA 12.9; the container runtime with the NVIDIA Container Toolkit; the container image; the application. Arrows on the left mark the constraint between neighbouring layers: the driver must be at least the minimum for the CUDA major version; the engine build must match a CUDA major version the driver supports; the container sees the GPU only through the toolkit.

Figure: the layers and the constraint between each pair. Read it from the bottom: the host owns the driver, the container brings its own CUDA libraries and engine build, and the toolkit connects the two.

The Layers

  1. The GPU. Hardware with a compute capability (for example 7.5 for a T4 and 9.0 for an H100) that each CUDA release supports or drops.
  2. The kernel driver. Installed on the host operating system, once per machine, by the administrator. Its version number (for example 580.xx) is the first line of nvidia-smi. It is the layer every other one depends on.
  3. The CUDA runtime and libraries. The toolkit (nvcc, headers) is for building; the runtime and libraries such as cuBLAS and cuDNN are what applications load. They come with the application or its container image, not with the driver. Since CUDA 13.4 on Linux and 13.1 on Windows the toolkit installer no longer bundles a driver at all (S21).
  4. The framework or engine build. A vLLM wheel, a PyTorch wheel or a llama.cpp CUDA binary is compiled against one CUDA major version; the vLLM wheels, for example, are built with CUDA 12.9 (the GPU track lesson cites the page). The build's CUDA version is what must agree with the driver.
  5. The container runtime and the NVIDIA Container Toolkit. Docker does not see a GPU by itself. The toolkit installs a runtime hook that mounts the host driver's libraries into a container started with --runtime=nvidia --gpus all, after nvidia-ctk runtime configure --runtime=docker has registered it (S22).
  6. The container image with its CUDA libraries and engine build.
  7. The application.

The Rules

Minimum driver per CUDA major version. NVIDIA's release notes give a table for minor-version compatibility (S21):

CUDA toolkit familyMinimum driver
13.x580 or later
12.x525 or later
11.x450 or later

Within a family, a newer driver always works; the table gives the floor. The release notes also list, for releases up to 12.9, the exact driver each release shipped with (12.9 Update 1: 575.57.08 on Linux, 576.57 on Windows), which is higher than the family floor. The floor is what minor- version compatibility guarantees; the exact version is what a release was tested with.

Minor-version compatibility. Since CUDA 11, an application built with any release in a major family runs on a driver that meets the family's floor, with some newer features unavailable (S19). So a wheel built with CUDA 12.9 runs on a 525 driver, but a 13.x wheel does not.

Forward compatibility. For data-centre GPUs, the cuda-compat package lets an application built with a newer major version run on an older driver branch, subject to platform and GPU support (S19). It is an exception you install deliberately, not a default.

Driver branches and their lifetimes. Drivers ship in branches with support windows (S20, read 2026-09-09's version of the page): R580 is a long-term support branch until June 2028 and supports CUDA 13; R595 is a production branch until March 2027; R535, long-term support until June 2026, tops out at CUDA 12 without the forward-compatibility package; R610 is a new-feature branch until August 2026. A host on R535 cannot run a CUDA 13 build; the fix is a driver upgrade to a branch that supports 13, or the forward-compatibility package where the platform allows it.

Windows and WSL2. CUDA runs inside Windows Subsystem for Linux 2 with the Windows host driver only (R495 or later, Pascal or newer GPU); you must not install a Linux display driver inside the WSL distribution, and inside WSL you install only the toolkit packages that do not pull a driver (S62). The guide also lists limitations: no full unified memory, limited pinned memory, a reduced nvidia-smi, and --gpus all only with Docker 19.03 and later.

Five Failures, Attributed

Each is a planted problem the diagnosis lesson returns to. Evidence here is cited or described, not recorded.

FailureEvidenceLayerRule and check
P09: a vLLM or llama.cpp build for CUDA 13.x on a host whose driver is 535The application fails to initialise CUDA and reports a driver-too-old condition; nvidia-smi shows Driver Version 535.xxDriver13.x needs 580 or later (S21); upgrade the branch or use the forward-compatibility package where supported
P10: a container started without the NVIDIA runtimeInside the container nvidia-smi is not found or no GPU is visible; on the host it worksContainer toolkitInstall the toolkit, run nvidia-ctk runtime configure --runtime=docker, restart Docker, start with --runtime=nvidia --gpus all (S22)
P11: a Linux display driver installed inside WSLCUDA inside WSL stops working after the installDriver (WSL rule)Only the Windows host driver is used; remove the Linux driver and reinstall only toolkit packages (S62)
A library built for CUDA 12.x on a 450 driverThe library reports an unsupported driverDriver12.x needs 525 or later; 450 only satisfies 11.x (S21)
An image with a newer CUDA 12 minor than the host ever hadIt runsNoneMinor-version compatibility: any 12.x build runs on a 12-family driver at or above 525 (S19)

The check that resolves most of them is the first line of nvidia-smi on the host (Driver Version and the highest CUDA version that driver supports), compared with the CUDA version the engine build was compiled for, which the engine's install page or pip show states.

The Task: Classify Five Cases

Goal: for each case below, name the layer and the rule, and write the one check that proves it.

  1. nvidia-smi on the host prints Driver Version 535.183.01; a container running a CUDA 13.4 build fails to start its engine.
  2. The same container runs on a different host whose driver is 580.65.
  3. A developer on Windows 11 installed nvidia-driver-5xx inside Ubuntu on WSL2 and now nvidia-smi in WSL reports no device.
  4. docker run --gpus all ubuntu nvidia-smi fails with an unknown runtime error on a fresh Linux host that has the driver installed.
  5. A PyTorch wheel built with CUDA 12.6 runs on a host whose driver was installed with CUDA 12.2 and never updated.

Success: cases 1 and 3 are driver-layer failures, case 4 is the toolkit layer, cases 2 and 5 are not failures; each answer cites the rule (floor of 580 for 13.x; the WSL host-driver rule; the toolkit registration; minor-version compatibility within 12.x).

Check Your Understanding

  1. Where does the CUDA runtime a container uses come from, and where does the driver come from?
  2. Which single command output answers "can this host run a CUDA 13 build", and which field in it?
  3. Why does the course say the toolkit installer "no longer bundles a driver", and what does that change for an administrator?
  4. What does minor-version compatibility promise, and what does it not?

Answers: (1) The runtime and libraries come with the application or its image; the driver comes from the host. (2) nvidia-smi; the Driver Version must be 580 or later. (3) Since 13.4 on Linux and 13.1 on Windows the toolkit package does not install a driver (S21), so the driver must be installed and upgraded on its own. (4) That any build within a major family runs on a driver at or above the family's floor; not that a build from a newer major family runs, and not that every new feature is available.

Next

The next lesson reads nvidia-smi field by field, runs a container that sees a GPU, and on your own machine lists the devices llama.cpp sees.

24 more lessons in the full course

Course access opens every lesson and adds revision notes, the Quick Reference, saved progress, bookmarks and your own notes.

INR 199 plus 18% GST. 90 days of online access. No auto-renewal.

Get the full course

This website is operated by VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED, operating as Vectametric.

Corporate Identity Number (CIN): U85499KA2026OPC229822. GSTIN: 29AAMCV8281D1ZS. Registered office: RS NO/38/2A/1 BASTAND, ROAD MAHANTESH NAGAR, Ramdurg, Ramdurg, Belgaum- 591123, Karnataka.

Queries and grievances: Prajval Honnungar, Grievance Officer and Data Protection Contact.

Telephone: +91 94800 09310. Support: support@vectametric.com. Grievances: support@vectametric.com.

Copyright 2026 VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED. All rights reserved.

Vectametric home · Roadmaps · Vecta IT Exams · Vecta Government Exams · Vecta Banking & Finance Exams · Vecta Entrance Exams · About us · Contact · Privacy Policy · Terms and Conditions · No-Refund Policy