本文主要是介绍pytorch实现多进程的时候出现的BUG:OMP: Error #13: Assertion failure at z_Linux_util.cpp(2361).,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
在跑强化学习A3C的代码时候,用到python和pytorch的多进程,但是遇到这样的bug。
OMP: Error #13: Assertion failure at z_Linux_util.cpp(2361). │··································
OMP: Hint Please submit a bug report with this message, compile and run commands used, and machine configuration info including native compiler and ope│··································
rating system versions. Faster response will be obtained by including all program sources. For information on submitting this issue, please see http://│··································
www.intel.com/software/products/support/.
首先,尝试了https://github.com/hszhao/semseg/issues/16 的方法,安装apex,之后发现并不起效果。
最后,找到了https://github.com/ContinuumIO/anaconda-issues/issues/11294,在python运行命令前面加上KMP_INIT_AT_FORK=FALSE,即可避免这个问题。
这篇关于pytorch实现多进程的时候出现的BUG:OMP: Error #13: Assertion failure at z_Linux_util.cpp(2361).的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!