#2913 RuntimeError: _process:parallel_for failed: cudaErrorNoKernelImageForDevice: no kernel image is available for execution

2408:826c* Posted at: 20 hours ago 👁13

语音识别阶段出错:Traceback (most recent call last):
File "videotrans\recognition\_base.py", line 64, in run
File "videotrans\recognition\_overall.py", line 156, in _exec
RuntimeError: _process:parallel_for failed: cudaErrorNoKernelImageForDevice: no kernel image is available for execution on the device

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\task\trans_create.py", line 376, in recogn
File "videotrans\recognition\__init__.py", line 240, in run
File "videotrans\recognition\_base.py", line 67, in run
videotrans.configure._except.SpeechToTextError: _process:parallel_for failed: cudaErrorNoKernelImageForDevice: no kernel image is available for execution on the device:FasterAll

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\job.py", line 77, in run
File "videotrans\task\trans_create.py", line 412, in recogn
RuntimeError: _process:parallel_for failed: cudaErrorNoKernelImageForDevice: no kernel image is available for execution on the device:FasterAll


=
Windows-10-10.0.19045-SP0
version:v3.78
frozen:True
language:zh

1 Replies

这是由于 CUDA 版本与显卡架构不兼容导致的。错误 cudaErrorNoKKernelImageForDevice 表明当前安装的 CUDA 版本(或 Faster-Whisper 编译版本)不支持你的显卡硬件。

解决方案:

  1. 确认显卡型号:在 CMD 中输入 nvidia-smi,查看你的显卡型号(例如 RTX 40系列、RTX 50系列)。
  2. 检查并安装正确的 CUDA 版本

    • pyVideoTrans 内置支持 CUDA 12.8
    • 如果你的显卡是较新的 RTX 40系列或50系列,可能需要使用 CUDA 12.6 版本。请从 NVIDIA 官网下载并安装 CUDA 12.6。
    • 安装时,请确保在“自定义安装”中勾选“CUDA”组件,并覆盖安装到同一路径。
  3. 安装匹配的 cuDNN:下载与 CUDA 12.6 对应的 cuDNN 9.x 版本(如 9.1.0),将其 binincludelib 目录下的文件复制到 CUDA 安装目录的对应文件夹中。
  4. 更新环境变量:确保系统环境变量 PATH 中包含 CUDA 安装目录下的 binlibnvvp 路径(例如 C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\bin)。
  5. 重启软件:完成上述步骤后,重启 pyVideoTrans 再试。

参考文档:

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Related resource