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