Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
isaac-you opened this issue Sep 18, 2018 · 4 comments

Comments

@isaac-you
Copy link

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?

@xgdgsc
Copy link
Collaborator

xgdgsc commented Sep 18, 2018

Are you using the conda forge version?

@personalaccount
Copy link

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: dmlc/xgboost#1715

@i1mT
Copy link

i1mT commented Nov 28, 2018

It's work! Tks

@maddogAI
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants