Training... OMP: Error #15: Initializing libiomp5.dylib, but found libomp.dylib already initialized.

3,719 views
Skip to first unread message

Gábor Oroszlán

unread,
May 28, 2021, 12:10:43 PM5/28/21
to EMAN2
HI All,

I am totally new to eman2, so apologies if I have dark spots. In neural network interactive particle picking when I hit Train, I receive the following lines, and a window with "python quit unexpectedly":

Training...
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/.

Could you help me with this issue?

Thanks very much,

Gabor

MuyuanChen

unread,
May 28, 2021, 12:16:51 PM5/28/21
to em...@googlegroups.com
Are you sure you are not running multiple instances of the program? Or instances of other EMAN neural network related programs?
Also what is the version of EMAN you are running? I have vague memory of running into this sort of error in the past but haven’t seen it for a while, so I was assuming that someone solved this at a lower level… Anyway, last time I had this problem, using the “undocumented workaround” and set the environment variable before running the program seems to solve the issue. 

--
--
----------------------------------------------------------------------------------------------
You received this message because you are subscribed to the Google
Groups "EMAN2" group.
To post to this group, send email to em...@googlegroups.com
To unsubscribe from this group, send email to eman2+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/eman2

---
You received this message because you are subscribed to the Google Groups "EMAN2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eman2+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/eman2/04958891-0430-49d7-8435-4b3ee185c483n%40googlegroups.com.

Gábor Oroszlán

unread,
May 28, 2021, 12:25:29 PM5/28/21
to em...@googlegroups.com
Thank you for getting back to me. I am not sure about anything, I am hardly familiar with EMAN2 and the whole environment, I was doing a tutorial with my own data set. How can I check if multiple instances are running or not? I am using Eman2 2.91. Could you detail the solution you suggested, or give a link for a description?  I could not find any similar topic in previous chats.

You received this message because you are subscribed to a topic in the Google Groups "EMAN2" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/eman2/poZTXQHGcZs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to eman2+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/eman2/17F4DCDF-0958-47FD-8317-F345528E1216%40gmail.com.

MuyuanChen

unread,
May 28, 2021, 12:30:27 PM5/28/21
to em...@googlegroups.com
To test, I would just look at the task manager and kill all EMAN related programs, then re-start the particle picking process and see if the error is triggered again. 
I was talking about the solution mentioned in the error message: 

 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.


Just run “export KMP_DUPLICATE_LIB_OK=TRUE” before running the program in the command line.

Muyuan

Gábor Oroszlán

unread,
May 28, 2021, 1:10:39 PM5/28/21
to em...@googlegroups.com
Thank you. It must be a stupid one again but how can I kill all eman related programs? And I should run the suggested command before initiating eman2 or before running e2projectmanager? 

Muyuan Chen

unread,
May 28, 2021, 1:19:43 PM5/28/21
to em...@googlegroups.com
Depending on your system. In some linux distribution you can simply find some task manager GUI, in which you can search EMAN then kill all related programs. This can probably be done easily top, although it would be easier to google the exact command. You can always just restart your machine that should clean up everything.
Before executing the particle boxing program. Although running it earlier shouldn't hurt either.

Gábor Oroszlán

unread,
May 28, 2021, 3:54:08 PM5/28/21
to em...@googlegroups.com
The export command helped, thanks very much!

Reply all
Reply to author
Forward
0 new messages