diff --git a/build_tensorflow/configs/odroidxu4.conf b/build_tensorflow/configs/odroidxu4.conf new file mode 100644 index 0000000..1df7381 --- /dev/null +++ b/build_tensorflow/configs/odroidxu4.conf @@ -0,0 +1,36 @@ +TF_PATCH="no" +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=armv7-a --copt=-mfpu=neon-vfpv4 --copt=-mfloat-abi=hard --copt=-mtune=cortex-a15.cortex-a7" +BAZEL_COPT_FLAGS+=" --copt=-std=c++11 --copt=-DS_IREAD=S_IRUSR --copt=-DS_IWRITE=S_IWUSR" +BAZEL_COPT_FLAGS+=" --copt=-U__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1" +BAZEL_COPT_FLAGS+=" --copt=-U__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 --copt=-U__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8" +BAZEL_COPT_FLAGS+=" --config=monolithic --copt=-funsafe-math-optimizations" +BAZEL_COPT_FLAGS+=" --copt=-ftree-vectorize --copt=-fomit-frame-pointer --copt=-DRASPBERRY_PI" +BAZEL_EXTRA_FLAGS="--cpu=armeabi --crosstool_top=//tools/local_arm_compiler:toolchain //tensorflow/tools/pip_package:build_pip_package" + +CROSSTOOL_COMPILER="yes" +CROSSTOOL_URL="https://releases.linaro.org/components/toolchain/binaries/6.3-2017.05/arm-linux-gnueabihf/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf.tar.xz" +CROSSTOOL_DIR="gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/" +CROSSTOOL_NAME="arm-linux-gnueabihf" +CROSSTOOL_WHEEL_ARCH="linux_armv7l"