yinghu5 commented on issue #15294: mkldnn is not properly installed
URL: 
https://github.com/apache/incubator-mxnet/issues/15294#issuecomment-508644374
 
 
   Hi butui 
   Thank you a lot for your report.  I actually was able to reproduce the 
problem under linux  by CMake install system. 
   Cmake ..
   make -j
   make install
   and did some investigation: 
   the  root cause should be  CMAKE install mechanism will do the strip by 
default . It remove the runtime dependency library  libmklml_intel.so (coexist 
wtih intel openmp ) or libmklml_gnu.so (coexist with gomp)
   in the cmake_install.cmake , which are produced after the cmake includes the 
below code: 
   
   file(RPATH_CHANGE
              FILE "${file}"
              OLD_RPATH 
"/home/yhu5/mxnet/incubator-mxnet/build/mklml/mklml_lnx_2019.0.5.20190502/lib:"
   **# NEW_RPATH " ")**
              NEW_RPATH "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib:")
         if(CMAKE_INSTALL_DO_STRIP)
           execute_process(COMMAND "/usr/bin/strip" "${file}")
   it did the remove. 
   So one of  basic solution may be 
   1. to  rewrite the CMAKElist .txt  to make sure  Cmake install the 
libmklml_intel.lib and set the set(CMAKE_INSTALL_RPATH 
"${CMAKE_INSTALL_PREFIX}/lib" for example, 
   and create a new PR for libmklml install 
   
   I discussed it with tao.lv  and  as you see, there are some change about 
libmklml in later design.  so I may suggested  keep the current workaround  as 
you did
   or  use the workaroud : 
   2. 1. cmake  make -j , make install   after that manually  export the so 
runtime path. 
   2. 2 export LD_LIBRARY_PATH = < include the path of mklml
   how do you think? Please feel free to let us know if the workaround is ok. 

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