Tensorflow Compilation on Odroid XU4

I'm trying to compile Tensorflow (tried both: full and lite) on Odroid XU4 (16GB eMMc, Ubuntu 16), but I get the errors shown by numbers: https://www.dropbox.com/sh/j86ysncze1q0eka/AAB8RZtUTkaytqfEGivbev_Ga ?

I use FlytOS as an OS ( http://docs.flytbase.com/docs/FlytOS/GettingStarted/OdroidGuide.html ). Its configured Ubuntu 16 with OpenCV and ROS installation is 11 GB after installation. So, I got only 2.4 GB for free. So I added 16 GB of USB as swap memory.

I installed Bazel without using swap memory. I tried the full version of testorflow and Lite, but could not compile it. However, I downloaded the compiled tensor stream for Pi and successfully installed on Odroid. Since Odroid is Octacore, therefore, in order to make the best use of the available computing power, I need to build a tensor stream on Odroid.

Please let me know if anyone has a tensor compiled on Odroid XU4.

Yours faithfully,

+4
source share
1 answer

Check out this guide. Create Tensorflow on Odroid

IT provides a detailed step-by-step guide and also contains some troubleshooting procedures.

Summarizing the steps here:

  • , g++, gcc-4.8, python-pip, python-dev, numpy Oracle Java ( OpenJDK).
  • USB/- .
  • Bazel. compile.sh script ,

run "${JAVAC}" -J-Xms256m -J-Xmx384m -classpath "${classpath}" -sourcepath "${sourcepath}"

  • Tensorflow v1.4 ./configure . XLA, .
  • , Bazel.

bazel build -c opt --copt="-funsafe-math-optimizations" --copt="-ftree-vectorize" --copt="-fomit-frame-pointer" --local_resources 8192,8.0,1.0 --verbose_failures tensorflow/tools/pip_package:build_pip_package

  1. .

bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg

sudo pip2 install /tmp/tensorflow_pkg/tensorflow-1.4.0-cp27-cp27mu-linux_armv7l.whl --upgrade --ignore-installed

  1. python

    import tensorflow

    print(tensorflow.__version__)

    1.4.0

, .

+2

Source: https://habr.com/ru/post/1687168/


All Articles