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.
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.
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.
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.
Upload your log file. Large files are processed in your browser. Only selected evidence is submitted when you run diagnosis.
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.
| Symptom | Possible explanation |
|---|---|
| RuntimeError: CUDA driver version is insufficient for CUDA runtime version | Host NVIDIA kernel driver version sits below the CUDA toolkit minimum driver floor for the container or wheel runtime. |
| CUDA error 35 (cudaErrorInsufficientDriver) during cudaGetDeviceCount | Host 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
- 1Read /proc/driver/nvidia/version and nvidia-smi on the host node.
- 2Print torch.version.cuda inside the failing container and check NVIDIA's compatibility matrix.
- 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.
Searchable error signature
RuntimeError: CUDA driver version is insufficient for CUDA runtime version
CUDA error (35): CUDA driver version is insufficient for CUDA runtime versionUse 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 logsNo 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
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 / Stack | Recommendation | Notes |
|---|---|---|
| Managed Kubernetes or cloud VM | Align container CUDA tag to node driver | Fastest fix without host reboot. |
| Self-managed bare metal | Standardize host driver baseline (R550+ / R570+) | Supports modern CUDA 12.x runtimes cleanly. |
With the fix vs without the fix
| Dimension | With the fix | Without the fix |
|---|---|---|
| Driver alignment | Verified /proc/driver/nvidia/version vs torch.version.cuda | Trial-and-error wheel reinstalls |
| Cluster rollout | CI preflight blocks mismatched images before Slurm/K8s launch | All 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 extensionCUDA 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 errorsFrequently 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?
Can pip install --upgrade torch fix CUDA error 35?
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.