#3677 CUDA error: the launch timed out and was terminated CUDA kernel errors might be asynchronously reported at some other AP

103.196* Posted at: 20 hours ago 👁19

CUDA error: the launch timed out and was terminated CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1 Compile with TORCH_USE_CUDA_DSA to enable device-side assertions.

1 Replies

这是由于CUDA内核执行超时导致的,通常与显卡驱动、CUDA版本不兼容或显存不足有关。

解决方案:

  1. 更新显卡驱动:前往NVIDIA官网下载并安装最新版本的显卡驱动程序。
  2. 检查CUDA版本:pyVideoTrans内置支持CUDA 12.8。请确保您的CUDA版本为12.8,并安装了匹配的cuDNN(版本9.11及以上)。在CMD中输入 nvcc -Vnvidia-smi 进行验证。
  3. 降低显存占用

    • 在软件主界面,确保已勾选“CUDA加速”。
    • 在“菜单-工具-高级选项”中,尝试以下调整:

      • CUDA数据类型:从 float32 改为 float16int8
      • 识别准确度beam_size识别准确度best_of:均从 5 改为 1
      • 使用更小的语音识别模型(例如,从 large-v3 改为 mediumsmall)。
  4. 检查其他程序占用:关闭其他可能大量占用GPU显存的程序(如游戏、其他AI软件),确保pyVideoTrans有足够的显存可用。
  5. 环境变量调试(高级):如错误信息提示,可以尝试设置环境变量 CUDA_LAUNCH_BLOCKING=1 来定位问题,但这会降低性能,仅用于调试。

请查阅相关文档:

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