Skip to content

Commit

Permalink
* Fix support of android-arm and android-x86 platforms for Tenso…
Browse files Browse the repository at this point in the history
…rFlow presets (pull #297)
  • Loading branch information
saudet committed Oct 16, 2016
1 parent 3b27084 commit 067fca6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

* Add support for `android-arm` and `android-x86` platforms to TensorFlow presets ([pull #297](https://github.com/bytedeco/javacpp-presets/pull/297))
* Keep a reference of `tensorflow.SessionOptions` in `AbstractSession` to prevent premature deallocation ([pull #297](https://github.com/bytedeco/javacpp-presets/pull/297))
* Enable CUDA in `cppbuild.sh` script for TensorFlow ([issue #294](https://github.com/bytedeco/javacpp-presets/issues/294))
* Bundle `libgomp.so.1` in JAR files of OpenCV for the sake of some Linux distributions ([issue bytedeco/javacv#436](https://github.com/bytedeco/javacv/issues/436))
Expand Down
9 changes: 9 additions & 0 deletions tensorflow/cppbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,19 @@ cd tensorflow-$TENSORFLOW_VERSION

case $PLATFORM in
android-arm)
export CC="/usr/bin/gcc"
export CXX="/usr/bin/g++"
patch -Np1 < ../../../tensorflow-$TENSORFLOW_VERSION-android.patch
sed -i "/ path=\"<PATH_TO_NDK>\",/c\ path=\"${ANDROID_NDK}\"," ./WORKSPACE
export BUILDFLAGS="--crosstool_top=//external:android/crosstool --cpu=armeabi-v7a --host_crosstool_top=@bazel_tools//tools/cpp:toolchain"
;;
android-x86)
export CC="/usr/bin/gcc"
export CXX="/usr/bin/g++"
patch -Np1 < ../../../tensorflow-$TENSORFLOW_VERSION-android.patch
sed -i "/ path=\"<PATH_TO_NDK>\",/c\ path=\"${ANDROID_NDK}\"," ./WORKSPACE
export BUILDFLAGS="--crosstool_top=//external:android/crosstool --cpu=x86 --host_crosstool_top=@bazel_tools//tools/cpp:toolchain"
;;
linux-x86)
export CC="/usr/bin/gcc"
export CXX="/usr/bin/g++"
Expand Down

0 comments on commit 067fca6

Please sign in to comment.