Mac电脑跑程序遇到以下报错:
OMP: Error #15: Initializing libiomp5.dylib, but found libomp.dylib already initialized.
OMP: Hint This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see http://www.intel.com/software/products/support/.
解决方式:
conda install nomkl
Answer found at: https://github.com/dmlc/xgboost/issues/1715
在Mac上运行程序时遇到了OpenMP错误,提示libiomp5.dylib和libomp.dylib初始化冲突。这可能是由于程序中链接了多个OpenMP运行时导致的。建议避免静态链接OpenMP运行时库,并可以通过conda卸载nomkl来解决问题。在某些情况下,设置环境变量KMP_DUPLICATE_LIB_OK=TRUE可作为不安全的工作around。
172万+

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



