You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/07/05 06:25:38 UTC

[GitHub] [incubator-mxnet] yinghu5 edited a comment on issue #15294: mkldnn is not properly installed

yinghu5 edited a comment 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 removes the runtime dependency library  libmklml_intel.so (coexist wtih intel openmp ) or libmklml_gnu.so (coexist with gomp). 
   for example, after Cmake, you can see the below code in the cmake_install.cmake : 
   
   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 and set the set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib" for example, 
   it required to create a new PR for libmklml install 
   
   I discussed this with tao.lv  and  as you sknow, there are some change about libmklml in later design.  so I may suggested  keep the current workaround  as you did
   or  use the workaround : 
   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:
users@infra.apache.org


With regards,
Apache Git Services