Bootstrap

KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crash 解决方法

第一部分:问题描述

(chap_three2) C:\Users\wwwju\Desktop\chap_three\glfl>python main_test.py --lr 0.03 --alg FedAvg --epoch 2000 --data_name CIFAR10 --extname hello
OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll 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/.

(chap_three2) C:\Users\wwwju\Desktop\chap_three\glfl>

第二部分:解决方法

 在运行前先在cmd中输入:

set KMP_DUPLICATE_LIB_OK=TRUE

悦读

道可道,非常道;名可名,非常名。 无名,天地之始,有名,万物之母。 故常无欲,以观其妙,常有欲,以观其徼。 此两者,同出而异名,同谓之玄,玄之又玄,众妙之门。

;