cjolivier01 edited a comment on issue #17641: OpenMP Error URL: https://github.com/apache/incubator-mxnet/issues/17641#issuecomment-590521574 I can reproduce now. However, even if I remove the openmp build in CMakeLists.txt and build with clang, I get that warning, since it pulls in libomp from clang (I am using clang8): ```bash [chriso@chriso-ripper:~/src/mxnet/build (master)]ldd libmxnet.so linux-vdso.so.1 (0x00007ffd55ab4000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f084c8cd000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f084c6ae000) libmkl_rt.so => /opt/intel/mkl/lib/intel64/libmkl_rt.so (0x00007f084bfce000) librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f084bdc6000) liblapack.so.3 => /usr/lib/x86_64-linux-gnu/liblapack.so.3 (0x00007f084b540000) libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f084b1b7000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f084ae19000) libomp.so => /usr/local/lib/libomp.so (0x00007f084ab56000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f084a93e000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f084a54d000) /lib64/ld-linux-x86-64.so.2 (0x00007f0855365000) libopenblas.so.0 => /usr/lib/x86_64-linux-gnu/libopenblas.so.0 (0x00007f08482a7000) libgfortran.so.4 => /usr/lib/x86_64-linux-gnu/libgfortran.so.4 (0x00007f0847ec8000) libquadmath.so.0 => /usr/lib/x86_64-linux-gnu/libquadmath.so.0 (0x00007f0847c88000) ``` ```bash [chriso@chriso-ripper:~/src/mxnet (master)]PYTHONPATH=$(pwd)/python python3 test.py OMP: Error #15: Initializing libiomp5.so, but found libomp.so 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/. Aborted (core dumped) ``` ```[chriso@chriso-ripper:~/src/mxnet/build (master)]ldd libmxnet.so linux-vdso.so.1 (0x00007ffd55ab4000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f084c8cd000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f084c6ae000) libmkl_rt.so => /opt/intel/mkl/lib/intel64/libmkl_rt.so (0x00007f084bfce000) librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f084bdc6000) liblapack.so.3 => /usr/lib/x86_64-linux-gnu/liblapack.so.3 (0x00007f084b540000) libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f084b1b7000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f084ae19000) libomp.so => /usr/local/lib/libomp.so (0x00007f084ab56000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f084a93e000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f084a54d000) /lib64/ld-linux-x86-64.so.2 (0x00007f0855365000) libopenblas.so.0 => /usr/lib/x86_64-linux-gnu/libopenblas.so.0 (0x00007f08482a7000) libgfortran.so.4 => /usr/lib/x86_64-linux-gnu/libgfortran.so.4 (0x00007f0847ec8000) libquadmath.so.0 => /usr/lib/x86_64-linux-gnu/libquadmath.so.0 (0x00007f0847c88000) ``` so this seems like a systemic problem with mkl to me.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services