Skip to content

Commit

Permalink
* Add an RPATH to libmkldnn.so.0 to avoid loading issues on Linux …
Browse files Browse the repository at this point in the history
  • Loading branch information
saudet committed Sep 10, 2018
1 parent 91ddab2 commit 30acbcd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@

* Add an RPATH to `libmkldnn.so.0` to avoid loading issues on Linux ([issue deeplearning4j/deeplearning4j#6366](https://github.com/deeplearning4j/deeplearning4j/issues/6366))
* Fix logic in `tensorflow.Tensor.createIndexer()` to support scalar tensors
* Bundle `libgomp.so.1` in JAR file of MKL-DNN for Linux
* Enable OpenMP for MKL-DNN also on Mac and Windows by building with GCC
* Fix loading order of runtime libraries for Visual Studio 2015 on Windows ([issue #606](https://github.com/bytedeco/javacpp-presets/issues/606))
* Add methods overloaded with `PointerPointer` for MKL-DNN ([issue bytedeco/javacpp#251](https://github.com/bytedeco/javacpp/issues/251))
* Bundle native resources (header files and import libraries) of MKL-DNN
* Make MSBuild compile more efficiently on multiple processors ([pull #599](https://github.com/bytedeco/javacpp-presets/pull/599))
* Add samples for Clang ([pull #598](https://github.com/bytedeco/javacpp-presets/pull/598))
* Include `python_api.h` and enable Python API for TensorFlow ([issue #602](https://github.com/bytedeco/javacpp-presets/issues/602))
* Add presets for CPython 3.6.x, ONNX 1.2.2 ([pull #547](https://github.com/bytedeco/javacpp-presets/pull/547))
* Add presets for Spinnaker 1.15.x ([pull #553](https://github.com/bytedeco/javacpp-presets/pull/553)), CPython 3.6.x, ONNX 1.2.2 ([pull #547](https://github.com/bytedeco/javacpp-presets/pull/547))
* Define `std::vector<tensorflow::OpDef>` type to `OpDefVector` for TensorFlow
* Link HDF5 with zlib on Windows also ([issue deeplearning4j/deeplearning4j#6017](https://github.com/deeplearning4j/deeplearning4j/issues/6017))
* Enable MKL-DNN for TensorFlow
Expand Down
3 changes: 2 additions & 1 deletion mkl-dnn/cppbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ case $PLATFORM in
download https://github.com/intel/mkl-dnn/releases/download/v$MKLDNN_VERSION/mklml_lnx_$MKLML_VERSION.tgz mklml_lnx_$MKLML_VERSION.tgz
mkdir -p external
tar --totals -xf mklml_lnx_$MKLML_VERSION.tgz -C external
"$CMAKE" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH -Wno-error=unused-result
# libmklml_intel.so does not have a SONAME, so libmkldnn.so.0 needs an RPATH to be able to load
"$CMAKE" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH -DCMAKE_CXX_FLAGS='-Wl,-rpath,$ORIGIN/' -Wno-error=unused-result
make -j $MAKEJ
make install/strip
cp external/mklml_lnx_$MKLML_VERSION/include/* ../include/
Expand Down

0 comments on commit 30acbcd

Please sign in to comment.