CNN for Cryo Tomogram annotation - libomp.dylib already initialized

39 views
Skip to first unread message

Jaime Llodra

unread,
Aug 12, 2021, 4:03:09 AM8/12/21
to EMAN2
Dear Members of this group,

I am using EMAN2 for annotation of Cryo Electron tomograms using a convolutional neural network. I am at the training stipend get the following error message 

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

Any idea how to solve this problem?.

Maybe this is important but I am using EMAN2 on a Mac Pro OSX system. 

Thanks in advance for your help and support.

Have a good day

Jaime Llodra







Steve Ludtke

unread,
Aug 12, 2021, 9:20:55 AM8/12/21
to em...@googlegroups.com
Hi Jaime,
need to know the complete output of e2version.py before we can offer suggestions. Note that while the deep-learning based tools should be usable on Macs, Tensorflow will be _very_ slow without an Nvidia GPU (Linux).

--------------------------------------------------------------------------------------
Steven Ludtke, Ph.D. <slu...@bcm.edu>                      Baylor College of Medicine 
Charles C. Bell Jr., Professor of Structural Biology
Dept. of Biochemistry and Molecular Biology                      (www.bcm.edu/biochem)
Academic Director, CryoEM Core                                        (cryoem.bcm.edu)
Co-Director CIBR Center                                    (www.bcm.edu/research/cibr)



--
--
----------------------------------------------------------------------------------------------
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/2c48d9f9-9430-469f-9f9e-54820c1f1becn%40googlegroups.com.

Jaime Llodra

unread,
Aug 13, 2021, 4:45:58 AM8/13/21
to EMAN2
Hi Steve, 
thanks for your answer.
Here I am copying what's on the screen of the terminal showing the processes which led to the error message I reported.

NOT Writing notes, ppid=-2

Using CPU...

loading particles...

616 particles loaded, 616 in training set, 0 in validation set

(616, 20, 20)

Std of particles:  0.9426957

/Users/jl2235/System/Applications/bin/e2tomoseg_convnet.py:292: RuntimeWarning: invalid value encountered in true_divide

  label/=np.max(np.abs(label))

Setting up model...

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


Best,

Jaime


Muyuan Chen

unread,
Aug 13, 2021, 10:20:09 AM8/13/21
to em...@googlegroups.com
I had this issue occasionally. It may happen when you run two similar jobs (neural networks or some other programs that uses openmp) at the same time. As suggested in the message, setting the environment variable should work. Simply run 
export KMP_DUPLICATE_LIB_OK=TRUE
In the terminal before running the Eman program. Despite the warnings, I haven’t noticed that it does any real damage anywhere yet. 

Steve Ludtke

unread,
Aug 14, 2021, 2:37:51 PM8/14/21
to em...@googlegroups.com
Hi Jaime,
did Muyuan's suggestion solve the issue?  Note that your answer, while still relevant, didn't actually answer the question I asked.
-----------------------------------------
Steven Ludtke, slud...@gmail.com 


Jaime Llodra

unread,
Aug 16, 2021, 11:08:08 AM8/16/21
to EMAN2
Hi Steve,

here is the output of e2version.py

(base) TUAP227:EMAN2_test jl2235$ e2version.py

EMAN 2.99 ( GITHUB: 2021-07-15 12:34 - commit: bb6529a )

Your EMAN2 is running on: Mac OS 10.16 x86_64

Your Python version is: 3.7.9

(base) TUAP227:EMAN2_test jl2235$ 



I am waiting for the IT support team at my institution to work on Muyuan's suggestion
Promise I will read more carefully next time

Jaime

Ludtke, Steven J.

unread,
Aug 17, 2021, 8:34:41 AM8/17/21
to em...@googlegroups.com
Hi Jaime,
I'm not quite sure what you are waiting for your IT team to do?  Muyuan's suggestion was to type:
export KMP_DUPLICATE_LIB_OK=TRUE
then run the program (in the same window). If you are using e2projectmanager, then you would type that command before running e2projectmanager.

--------------------------------------------------------------------------------------
Steven Ludtke, Ph.D. <slu...@bcm.edu>                      Baylor College of Medicine 
Charles C. Bell Jr., Professor of Structural Biology
Dept. of Biochemistry and Molecular Biology                      (www.bcm.edu/biochem)
Academic Director, CryoEM Core                                        (cryoem.bcm.edu)
Co-Director CIBR Center                                    (www.bcm.edu/research/cibr)



Jaime Llodra

unread,
Aug 17, 2021, 9:39:16 AM8/17/21
to EMAN2
Hi Steve,
Muyuan's suggestion worked.
I was able to run the training module without any problem.

Thanks a lot

Jaime

Reply all
Reply to author
Forward
0 new messages