From c9412421f159e7e065867394251e6573f0d44df4 Mon Sep 17 00:00:00 2001 From: Zhiting Zhu Date: Fri, 28 Sep 2018 14:04:54 -0500 Subject: [PATCH] Add hikey960 --- build_tensorflow/configs/hikey960.conf | 34 ++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 build_tensorflow/configs/hikey960.conf diff --git a/build_tensorflow/configs/hikey960.conf b/build_tensorflow/configs/hikey960.conf new file mode 100644 index 0000000..c0a67d9 --- /dev/null +++ b/build_tensorflow/configs/hikey960.conf @@ -0,0 +1,34 @@ +TF_PATCH="yes" +TF_PYTHON_VERSION="3.5" +TF_VERSION="v1.11.0" + +# export tensorflow variables to configure +TF_BUILD_VARS="TF_NEED_GDR=0" +TF_BUILD_VARS+=" TF_NEED_AWS=0" +TF_BUILD_VARS+=" TF_NEED_GCP=0" +TF_BUILD_VARS+=" TF_NEED_CUDA=0" +TF_BUILD_VARS+=" TF_NEED_HDFS=0" +TF_BUILD_VARS+=" TF_NEED_OPENCL_SYCL=0" +TF_BUILD_VARS+=" TF_NEED_VERBS=0" +TF_BUILD_VARS+=" TF_NEED_MPI=0" +TF_BUILD_VARS+=" TF_NEED_MKL=0" +TF_BUILD_VARS+=" TF_NEED_JEMALLOC=1" +TF_BUILD_VARS+=" TF_ENABLE_XLA=0" +TF_BUILD_VARS+=" TF_NEED_S3=0" + +BAZEL_VERSION="0.15.0" +# BAZEL_AVALIABLE_RAM=1536 # MB +# BAZEL_AVALIABLE_CPU=0.5 # number of cpu cores (1.0 epresenting single full core) +# BAZEL_AVALIABLE_IO=1.0 # workstation I/O capability (with 1.0 representing average workstation) +# BAZEL_PATCH="yes" + +BAZEL_COPT_FLAGS="--copt=-march=armv8-a+crc+simd --copt=-mtune=cortex-a73.cortex-a53" +BAZEL_COPT_FLAGS+=" --config=monolithic --copt=-funsafe-math-optimizations" +BAZEL_COPT_FLAGS+=" --copt=-ftree-vectorize --copt=-fomit-frame-pointer --copt=-DRASPBERRY_PI --copt=-D_GLIBCXX_USE_CXX11_ABI=0" +BAZEL_EXTRA_FLAGS=" --cpu=armeabi --crosstool_top=//tools/local_arm_compiler:toolchain //tensorflow/tools/pip_package:build_pip_package //tensorflow:libtensorflow_cc.so //tensorflow:libtensorflow.so" + +CROSSTOOL_COMPILER="yes" +CROSSTOOL_URL="https://releases.linaro.org/components/toolchain/binaries/6.3-2017.05/aarch64-linux-gnu/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu.tar.xz" +CROSSTOOL_DIR="gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/" +CROSSTOOL_NAME="aarch64-linux-gnu" +CROSSTOOL_WHEEL_ARCH="linux_aarch64"