somoclu icon indicating copy to clipboard operation
somoclu copied to clipboard

OMP: Error #15: Initializing libomp.dylib, but found libiomp5.dylib already initialized multiple copies of the OpenMP runtime have been linked into the program

Open isaac-you opened this issue 5 years ago • 4 comments

when I use somoclu on ubuntu, there is no problem and perform perfectly with 100% cpu usage, but when I do the same experiment on Macbookpro with spyder IDE, it tells me that "OMP: Error #15: Initializing libomp.dylib, but found libiomp5.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.

can you tell me how to fix the problem?

isaac-you avatar Sep 18 '18 14:09 isaac-you

Are you using the conda forge version?

xgdgsc avatar Sep 18 '18 16:09 xgdgsc

If you're on MacOS , then do the following to solve the issue:

import os
os.environ['KMP_DUPLICATE_LIB_OK']='True'

Answer found at: https://github.com/dmlc/xgboost/issues/1715

personalaccount avatar Nov 11 '18 19:11 personalaccount

It's work! Tks

i1mT avatar Nov 28 '18 15:11 i1mT

Can anyone tell me what this code actually means? I ran into the same issue and used the same code, but I don't understand what its actually accomplishing

maddogAI avatar Jan 17 '20 04:01 maddogAI