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

Window Support? #4

Closed
noklam opened this issue Oct 8, 2020 · 3 comments · Fixed by #12
Closed

Window Support? #4

noklam opened this issue Oct 8, 2020 · 3 comments · Fixed by #12

Comments

@noklam
Copy link
Contributor

noklam commented Oct 8, 2020

Can this library run on Window? I am getting this error when I use a notebook to run example

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_L
IB_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/.
[I 11:04:32.509 NotebookApp] KernelRestarter: restarting kernel (1/5), keep random ports
kernel 7aec0344-7569-4f1d-bb6e-7cdd592802b5 restarted

@noklam
Copy link
Contributor Author

noklam commented Oct 8, 2020

I found a solution, adding this block will work on Window

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

Solution found here:
dmlc/xgboost#1715

@parrt
Copy link
Owner

parrt commented Oct 12, 2020

Hi @noklam you want to get credit for this by creating another PR? It shouldn't affect anything to set that environment variable on Mac etc... right?

@noklam
Copy link
Contributor Author

noklam commented Oct 12, 2020

@parrt I have googled around and seems people mostly report this error on Window / Mac.
I only have Windows and Linux machines, I only tested it on them.

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

Successfully merging a pull request may close this issue.

2 participants