mxnet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-mxnet] TaoLv edited a comment on issue #17641: OpenMP Error
Date Tue, 25 Feb 2020 08:20:41 GMT
TaoLv edited a comment on issue #17641: OpenMP Error
URL: https://github.com/apache/incubator-mxnet/issues/17641#issuecomment-590741577
 
 
   @leezu How about also set `-DMKL_USE_STATIC_LIBS=ON`? Then there is no need to worry about
loading iomp dynamically.
   
   On my machine, I always have another `gomp` as reported [here](https://github.com/apache/incubator-mxnet/issues/11417#issuecomment-555413002):
   
   ```
   [lvtao@mlt2-clx016 build]$ ldd libmxnet.so | grep omp
           libomp.so => /home/lvtao/Workspace/mxnet-official/build/3rdparty/openmp/runtime/src/libomp.so
(0x00007fea4b117000)
           libgomp.so.1 => /lib64/libgomp.so.1 (0x00007fea4a4c8000)
           libXcomposite.so.1 => /lib64/libXcomposite.so.1 (0x00007fea43a9e000)
   [lvtao@mlt2-clx016 build]$ ldd libmxnet.so | grep mkl
   [lvtao@mlt2-clx016 build]$
   [lvtao@mlt2-clx016 build]$ readelf -a libmxnet.so| grep NEEDED
    0x0000000000000001 (NEEDED)             Shared library: [librt.so.1]
    0x0000000000000001 (NEEDED)             Shared library: [libopencv_imgproc.so.2.4]
    0x0000000000000001 (NEEDED)             Shared library: [libopencv_highgui.so.2.4]
    0x0000000000000001 (NEEDED)             Shared library: [libopencv_core.so.2.4]
    0x0000000000000001 (NEEDED)             Shared library: [libomp.so]
    0x0000000000000001 (NEEDED)             Shared library: [libdl.so.2]
    0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
    0x0000000000000001 (NEEDED)             Shared library: [libstdc++.so.6]
    0x0000000000000001 (NEEDED)             Shared library: [libm.so.6]
    0x0000000000000001 (NEEDED)             Shared library: [libgomp.so.1]
    0x0000000000000001 (NEEDED)             Shared library: [libgcc_s.so.1]
    0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
    0x0000000000000001 (NEEDED)             Shared library: [ld-linux-x86-64.so.2]
   ```
   
   I built with
   ```
   cmake -DUSE_CUDA=0 -DUSE_MKLDNN=1 -DMKL_USE_SINGLE_DYNAMIC_LIBRARY=OFF -DMKL_USE_STATIC_LIBS=ON
-DUSE_LAPACK=0 ..
   make -j20
   ```

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message