hubutui opened a new issue #15294: mkldnn is not properly installed
URL: https://github.com/apache/incubator-mxnet/issues/15294
 
 
   Note: Providing complete information in the most concise form is the best 
way to get help. This issue template serves as the checklist for essential 
information to most of the technical issues and bug reports. For non-technical 
issues and feature requests, feel free to present the information in what you 
believe is the best form.
   
   For Q & A and discussion, please start a discussion thread at 
https://discuss.mxnet.io 
   
   ## Description
   `libmklml_intel.so` and `libmklml_gnu.so`  are missing in the final 
installation, only `libmkldnn.so` is installed. But `libmkldnn.so` needs 
`libmklml_intel.so`, not sure if `libmklml_gnu.so` is needed too.
   
   ## Environment info (Required)
   ```bash
   Architecture:        x86_64
   CPU op-mode(s):      32-bit, 64-bit
   Byte Order:          Little Endian
   Address sizes:       46 bits physical, 48 bits virtual
   CPU(s):              24
   On-line CPU(s) list: 0-23
   Thread(s) per core:  2
   Core(s) per socket:  6
   Socket(s):           2
   NUMA node(s):        2
   Vendor ID:           GenuineIntel
   CPU family:          6
   Model:               63
   Model name:          Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz
   Stepping:            2
   CPU MHz:             1200.000
   CPU max MHz:         2600.0000
   CPU min MHz:         1200.0000
   BogoMIPS:            4801.92
   Virtualization:      VT-x
   L1d cache:           32K
   L1i cache:           32K
   L2 cache:            256K
   L3 cache:            15360K
   NUMA node0 CPU(s):   0,2,4,6,8,10,12,14,16,18,20,22
   NUMA node1 CPU(s):   1,3,5,7,9,11,13,15,17,19,21,23
   Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge 
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx 
pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology 
nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est 
tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt 
tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm cpuid_fault epb 
invpcid_single pti tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust 
bmi1 avx2 smep bmi2 erms invpcid cqm xsaveopt cqm_llc cqm_occup_llc dtherm ida 
arat pln pts
   ----------Python Info----------
   Version      : 3.7.3
   Compiler     : GCC 8.2.1 20181127
   Build        : ('default', 'Mar 26 2019 21:43:19')
   Arch         : ('64bit', 'ELF')
   ------------Pip Info-----------
   No corresponding pip install for current python.
   ----------MXNet Info-----------
   No MXNet installed.
   ----------System Info----------
   Platform     : Linux-4.18.5-arch1-1-ARCH-x86_64-with-arch
   system       : Linux
   node         : hubutui
   release      : 4.18.5-arch1-1-ARCH
   version      : #1 SMP PREEMPT Fri Aug 24 12:48:58 UTC 2018
   ----------Hardware Info----------
   machine      : x86_64
   processor    : 
   ----------Network Test----------
   Setting timeout: 10
   Timing for MXNet: https://github.com/apache/incubator-mxnet, DNS: 0.0062 
sec, LOAD: 0.4946 sec.
   Timing for Gluon Tutorial(en): http://gluon.mxnet.io, DNS: 0.2516 sec, LOAD: 
0.7011 sec.
   Timing for Gluon Tutorial(cn): https://zh.gluon.ai, DNS: 0.0924 sec, LOAD: 
0.7636 sec.
   Timing for FashionMNIST: 
https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz,
 DNS: 0.0213 sec, LOAD: 0.9804 sec.
   Timing for PYPI: https://pypi.python.org/pypi/pip, DNS: 0.0024 sec, LOAD: 
0.2850 sec.
   Timing for Conda: https://repo.continuum.io/pkgs/free/, DNS: 0.0035 sec, 
LOAD: 0.0291 sec.
   ```
   
   Package used (Python/R/Scala/Julia):
   python 3.7
   
   ## Build info (Required if built from source)
   
   Compiler (gcc/clang/mingw/visual studio):
   clang 8.0.0
   MXNet commit hash:
   (Paste the output of `git rev-parse HEAD` here.)
   4d96671
   Build config:
   (Paste the content of config.mk, or the build command.)
   ```shell
   cmake \
       -DBUILD_CPP_EXAMPLES=OFF \
       -DBUILD_TESTING=OFF \
       -DCMAKE_BUILD_TYPE:String=Release \
       -DCMAKE_C_COMPILER=clang \
       -DCMAKE_CXX_COMPILER=clang++ \
       -DCMAKE_EXE_LINKER_FLAGS=$(pkg-config --libs blas lapacke cblas) \
       -DCMAKE_INSTALL_LIBDIR:PATH=lib \
       -DCMAKE_INSTALL_PREFIX:PATH=/usr \
       -DCMAKE_SHARED_LINKER_FLAGS=$(pkg-config --libs blas lapacke cblas) \
       -DUSE_BLAS=open \
       -DUSE_MKLDNN:BOOL=ON \
       -DUSE_MKLML_MKL=OFF \
       -DUSE_NCCL:BOOL=OFF \
       -DUSE_CUDA:BOOL=OFF \
       -DUSE_CUDNN:BOOL=OFF \
       -DUSE_OPENCV:BOOL=ON \
       -GNinja \
       ..
   ninja
   ninja install
   ```
   ## Error Message:
   ```text
   ldd /usr/lib/libmkldnn.so
        linux-vdso.so.1 (0x00007ffd4e325000)
        libcblas.so.3 => /usr/lib/libcblas.so.3 (0x00007f433c10f000)
        libmklml_intel.so => not found
        libiomp5.so => /usr/lib/libiomp5.so (0x00007f433c030000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f433be48000)
        libm.so.6 => /usr/lib/libm.so.6 (0x00007f433bd02000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f433bce8000)
        libc.so.6 => /usr/lib/libc.so.6 (0x00007f433bb23000)
        /usr/lib64/ld-linux-x86-64.so.2 (0x00007f433d151000)
        libblas.so.3 => /usr/lib/libblas.so.3 (0x00007f433a8ea000)
        libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f433a8c9000)
        libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f433a8c4000)
        libgomp.so.1 => /usr/lib/libgomp.so.1 (0x00007f433a88b000)
   ```
   ## Minimum reproducible example
   (If you are using your own code, please provide a short script that 
reproduces the error. Otherwise, please provide link to the existing example.)
   
   ## Steps to reproduce
   (Paste the commands you ran that produced the error.)
   
   1. build with the config mentioned above
   2. `ldd /usr/lib/libmkldnn.so`
   
   ## What have you tried to solve it?
   
   1. manual install the missing mkldnn so files. and it seems works.
   
   
   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to