2020.11.19 記錄采坑過程
pytorch無錯退出,Process finished with exit code -1073740791 (0xC0000409)。
可能的原因猜測可能就是版本不匹配。
最后的解決辦法,我把Anaconda重新安裝了python version 3.6。Cuda換成了10.2,cudnn換成了8.05。
最后,安裝的Pytorch版本是 1.4, cuda=9.2(這里我選了低版本,沒有選對應的10.2)。
還有就是,我發現服務器上的其他程序(如Abaqus和MATLAB)也會調用GPU加速,不知道是不是別的程序占用了GPU顯存導致的。因為據我觀察,
當程序退出時,顯存占用會突然變滿。這里我在Nvidia的控制面板里的程序設置將可能的軟件禁用GPU。
##########################################我是分割線##################################################
Pycharm下運行pytorch中途進程無錯跳出,不知道啥原因。
之前跑過完整的一次,后面就不行了?
第一次給出的提示是:
THCudaCheck FAIL file=..\aten\src\THC\THCCachingHostAllocator.cpp line=278 error=719 : unspecified launch failure
有可能是新版驅動的原因,當前驅動版本是443.18
PyTorch - `THCudaCheck FAIL file=..\aten\src\THC\THCCachingHostAllocator.cpp line=278 error=719 : unspecified launch failure` after a few epochs?
unspecified launch failure cuda運行時錯誤的討論
pytorch計算錯誤unspecified launch failure
后面多次運行還是無錯跳出進程,給出的提示是:
Process finished with exit code -1073740791 (0xC0000409)
網上給出的原因五花八門的。。。有一種可能說是h5py這個包引起的,卸載即可。
pycharm報錯:Process finished with exit code -1073741819 (0xC0000005)
h5py這個坑-PyCharm Process finished with exit code -1073741819 (0xC0000005)
PyCharm Process finished with exit code -1073741819 (0xC0000005)
finished with exit code -1073740791 (0xC0000409)解決方案
Pycharm error “Process finished with exit code -1073740791 (0xC0000409)”