在跑强化学习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,即可避免这个问题。

在使用Python和PyTorch进行A3C强化学习代码实现时,遇到多进程OMP错误#13:断言失败。尝试安装apex未解决问题,最终通过设置环境变量KMP_INIT_AT_FORK=FALSE成功规避此问题。

被折叠的 条评论
为什么被折叠?



