For debugging consider passing CUDA_LAUNCH_BLOCKING=1
时间: 2023-09-20 14:14:50 浏览: 244
"For debugging consider passing CUDA_LAUNCH_BLOCKING=1" 是一条建议,用于解决CUDA错误的问题。当使用CUDA进行深度学习训练时,有时可能会遇到CUDA错误。这个建议意味着可以尝试设置CUDA_LAUNCH_BLOCKING=1来进行调试。这个设置将使CUDA操作变为同步操作,这样在错误发生时会立即暂停程序,并提供更准确的错误堆栈信息。这样可以更容易地追踪问题所在并进行调试。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [一行代码解决PyTorch训练模型时突然出现的For debugging consider passing CUDA_LAUNCH_BLOCKING=1报错](https://blog.csdn.net/qq_36158230/article/details/128744250)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [cuda常见报错](https://blog.csdn.net/qq_41900846/article/details/128536185)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文