admin管理员组文章数量:1026182
环境:
wsl ubuntu22.04
vits2
问题描述:
RuntimeError: CUDA error: unknown error
[rank0]: CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
[rank0]: For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
[rank0]: Compile with TORCH_USE_CUDA_DSA
to enable device-side assertions
解决方案:
1.在train_ms.py开头代码添加
import os
os.environ['CUDA_LAUNCH_BLOCKING'] = '1'
2.重新训练 这边报错消失
环境:
wsl ubuntu22.04
vits2
问题描述:
RuntimeError: CUDA error: unknown error
[rank0]: CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
[rank0]: For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
[rank0]: Compile with TORCH_USE_CUDA_DSA
to enable device-side assertions
解决方案:
1.在train_ms.py开头代码添加
import os
os.environ['CUDA_LAUNCH_BLOCKING'] = '1'
2.重新训练 这边报错消失
本文标签: passingDebuggingCUDALAUNCHBLOCKING
版权声明:本文标题:For debugging consider passing CUDA_LAUNCH_BLOCKING=1. 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/jiaocheng/1738332726a1562118.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论