Skip to content

CUDA driver version is insufficient for CUDA runtime version

Fix CUDA error 35 (cudaErrorInsufficientDriver) on Linux hosts, Docker containers, and Kubernetes GPU pods by aligning driver, CUDA runtime, or cuda-compat.

Quick answer

The host NVIDIA kernel driver is older than the minimum driver required by the CUDA toolkit bundled inside your Python wheel or Docker container. Upgrade the host driver, switch to a matching container CUDA tag, or configure NVIDIA forward compatibility (cuda-compat).

Symptom
RuntimeError: CUDA driver version is insufficient for CUDA runtime version
Root cause
Host NVIDIA kernel driver version sits below the CUDA toolkit minimum driver floor for the container or wheel runtime.
Recommended fix
Check the active host kernel driver via cat /proc/driver/nvidia/version or nvidia-smi on the node.
How Denpex helps
Denpex investigates CUDA driver version is insufficient for CUDA runtime version using the evidence you provide or your connected workload collects. Earlier rank, host or application evidence is needed to distinguish an initiating failure from a downstream report.
Environment#cuda#cuda-error-35#nvidia-driver#docker#kubernetes#compatibility

What this failure is

CUDA error 35 (cudaErrorInsufficientDriver) indicates that the loaded host kernel driver (nvidia.ko) does not satisfy the minimum driver version table for the CUDA runtime API version linked by the application.

Live diagnosis, no signup

Is this what broke your run? Paste your log.

You're reading about CUDA driver version is insufficient for CUDA runtime version. Paste your own traceback and relevant evidence for an investigation of your workload, with a next action or a specific missing fact. A reference entry does not establish your cause. No account or card for the free diagnosis. Review data handling before submitting sensitive logs.

Before uploading, review cloud data handling and local options.

training_logs.txt
No log to hand? Try one:

Upload your log file. Large files are processed in your browser. Only selected evidence is submitted when you run diagnosis.

3 free cloud diagnoses per day

Why it happens (the mechanism)

Containers ship their own CUDA runtime and cuBLAS/cuDNN libraries while sharing the host kernel driver. Upgrading a Docker image or PyTorch wheel to CUDA 12.6 or 12.8 on a host running an older R535/R525 driver triggers error 35 immediately at CUDA initialization.

What you'll observe

  • PyTorch reports torch.cuda.is_available() as False or throws RuntimeError: CUDA driver version is insufficient for CUDA runtime version
  • Containerized GPU jobs fail immediately across nodes with unpatched host drivers

Common symptoms and what they mean

Check possible explanations against the incident evidence. A matching symptom alone does not establish its cause.

SymptomPossible explanation
RuntimeError: CUDA driver version is insufficient for CUDA runtime versionHost NVIDIA kernel driver version sits below the CUDA toolkit minimum driver floor for the container or wheel runtime.
CUDA error 35 (cudaErrorInsufficientDriver) during cudaGetDeviceCountHost NVIDIA kernel driver version sits below the CUDA toolkit minimum driver floor for the container or wheel runtime.

Which systems are affected

  • NVIDIA datacenter and workstation GPUs on Linux
  • Docker, Singularity/Apptainer, and Kubernetes GPU workloads

How to confirm this is the problem

Use this checklist to test the hypothesis against a small reproduction. No single line proves the root cause, so preserve the preceding events and compare one variable at a time.

  • ✓Verify cat /proc/driver/nvidia/version matches nvidia-smi.
  • ✓Run python3 -c "import torch; print(torch.cuda.is_available(), torch.cuda.device_count())" inside the target container and confirm True.

Root cause

  • Host NVIDIA kernel driver version sits below the CUDA toolkit minimum driver floor for the container or wheel runtime.

The fix and how to prevent it

How to fix it

  • Check the active host kernel driver via cat /proc/driver/nvidia/version or nvidia-smi on the node.
  • Check the container CUDA runtime version using python3 -c "import torch; print(torch.version.cuda)" and nvcc --version.
  • Either upgrade the host NVIDIA driver to meet NVIDIA CUDA minor/major compatibility requirements, or select a container/PyTorch wheel compiled for a CUDA runtime supported by the host driver.
  • On datacenter GPUs where host driver upgrades are frozen, install the matching cuda-compat package inside the container and verify LD_LIBRARY_PATH per NVIDIA forward compatibility docs.

Step-by-step remediation

  1. 1Read /proc/driver/nvidia/version and nvidia-smi on the host node.
  2. 2Print torch.version.cuda inside the failing container and check NVIDIA's compatibility matrix.
  3. 3Upgrade the host driver, pin a compatible container image, or add cuda-compat.

How to prevent it

  • Pin container CUDA base images in CI/CD to match the cluster baseline host driver
  • Run a preflight torch.cuda.is_available() check before scheduling multi-node allocations

Save this diagnosis and catch the next crash automatically

All root cause, fix, and prevention steps above are free to read. Create a free account with any email or GitHub to keep your saved diagnosis history across the encyclopedia and run cloud checks, or use a work email below for the 30-day Team evaluation. No card required.

Or start a 30-day free Team trial (work email)

Verified work email unlocks all 14 fleet diagnostic tools, Slack alerts, and team history for 30 days. No card and no automatic charge.

Use your company email, for example alex@yourcompany.com.

Who qualifies?

Company email domains activate the free 30-day Team evaluation (up to 50 diagnoses a day) after an email and domain check, whatever mail provider you use. If we cannot verify your domain automatically, support reviews it: write to support@denpex.com. Free local diagnosis in the editor extension needs no account.

Using a personal email (Gmail, Outlook, Naver, QQ) or solo cluster? Create a free $0 account (no work email required) to save 7-day history and unlock AI fallback, or send a cluster crash log for a live walkthrough.
Already have an account? Sign in

Searchable error signature

search key
RuntimeError: CUDA driver version is insufficient for CUDA runtime version
CUDA error (35): CUDA driver version is insufficient for CUDA runtime version

Use this text as a lookup key in logs and upstream issue trackers. It is not presented as a captured customer log. Confirm the cause from your own preceding events, versions, configuration and the cited references.

Diagnose your own log automatically

The root cause and fix steps above stay free. Create a free account to analyze full job logs, attribute the first failed rank, and keep saved incident history.

Sign up free. Analyze your cluster logs

No credit card. Daily allowance follows verified trust tier. Instant access.

Why the recommended fix works

Aligning the container CUDA runtime (or enabling forward-compatibility libraries) with the host kernel driver restores valid ioctl communication between user-space libcudart and nvidia.ko.

Code examples

snippet
cat /proc/driver/nvidia/version
nvidia-smi
python3 -c "import torch; print('torch:', torch.__version__, 'cuda:', torch.version.cuda, 'avail:', torch.cuda.is_available())"

This snippet illustrates the entry-specific check. Verify the installed versions, permissions, target and workload context before using it. A command or API example is not proof of recovery.

Best practices by model family

Model / StackRecommendationNotes
Managed Kubernetes or cloud VMAlign container CUDA tag to node driverFastest fix without host reboot.
Self-managed bare metalStandardize host driver baseline (R550+ / R570+)Supports modern CUDA 12.x runtimes cleanly.

With the fix vs without the fix

DimensionWith the fixWithout the fix
Driver alignmentVerified /proc/driver/nvidia/version vs torch.version.cudaTrial-and-error wheel reinstalls
Cluster rolloutCI preflight blocks mismatched images before Slurm/K8s launchAll allocated GPUs fail simultaneously on init

Diagnostic note

“If nvidia-smi itself fails on the host with Failed to initialize NVML: Driver/library version mismatch, an unattended apt upgrade updated user-space libraries without reloading nvidia.ko. Reboot or reload the kernel module before debugging containers.”

Diagnose this failure in VS Code

Select the traceback or open the failed terminal, then run Denpex locally to inspect matched failure patterns, supporting evidence and next checks without uploading the log. Verify recommendations against your workload before changing production.

Install the free VS Code extension

CUDA errors in context

CUDA errors can surface asynchronously at a later operation. The hub connects documented errors with evidence checks for locating the initiating failure.

Compare related cuda errors

Frequently asked questions

Questions engineers and on-call staff commonly ask about this failure.

Why does CUDA driver version is insufficient happen inside Docker when nvidia-smi works on the host?
The container bundles a newer CUDA runtime toolkit than the host NVIDIA kernel driver supports. Either use a container image built for an older CUDA runtime or upgrade the host driver.
Can pip install --upgrade torch fix CUDA error 35?
Upgrading PyTorch typically pulls an even newer CUDA runtime and makes the mismatch worse. Install a PyTorch wheel built against a CUDA version your host driver supports, or upgrade the host driver.

Don't just read the fix, diagnose your run

The encyclopedia explains documented failure patterns. Denpex investigates your logs, configuration and stack, shows the supporting evidence, and asks for missing details when needed.