cudaErrorInsufficientDriver cuda config_error ai_generated true

CUDA 错误:驱动程序版本不足以支持 CUDA 运行时版本 (cudaErrorInsufficientDriver)

CUDA error: driver version is insufficient for CUDA runtime version (cudaErrorInsufficientDriver)

ID: cuda/cuda-driver-version-unsupported

其他格式: JSON · Markdown 中文 · English
90%修复率
88%置信度
1证据数
2023-08-01首次发现

版本兼容性

版本状态引入弃用备注
CUDA 12.2 active
NVIDIA Driver 525.60.11 active
Ubuntu 22.04 active
PyTorch 2.1.0 active

根因分析

已安装的 NVIDIA 驱动程序版本低于应用程序加载的 CUDA 运行时库所需的最低版本。

English

The installed NVIDIA driver version is older than the minimum required by the CUDA runtime library loaded by the application.

generic

官方文档

https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__TYPES.html

解决方案

  1. sudo apt-get update && sudo apt-get install nvidia-driver-545
  2. pip install torch==1.13.1 --index-url https://download.pytorch.org/whl/cu117

无效尝试

常见但无效的做法:

  1. 100% 失败

    The driver remains at the old version; the runtime still detects incompatibility.

  2. 80% 失败

    Environment changes may cause library conflicts but do not fix the fundamental driver-runtime version mismatch.