Skip to content

Commit

Permalink
uses toolchain 4.9.3 for armv6. (fails when compile with linaro)
Browse files Browse the repository at this point in the history
  • Loading branch information
lhelontra committed Nov 9, 2017
1 parent fcd935c commit ec2cac4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions build_tensorflow/configs/rpi_one.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ BAZEL_VERSION="0.5.4"
#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=armv6 --copt=-marm --copt=-mfpu=vfp"
BAZEL_COPT_FLAGS="--copt=-march=armv6 --copt=-mfpu=vfp"
BAZEL_COPT_FLAGS+=" --copt=-DS_IREAD=S_IRUSR --copt=-DS_IWRITE=S_IWUSR"
BAZEL_COPT_FLAGS+=" --config=monolithic --copt=-funsafe-math-optimizations --copt=-ftree-vectorize --copt=-fomit-frame-pointer --copt=-DRASPBERRY_PI --copt=-DIS_MOBILE_PLATFORM"
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_URL="https://github.com/raspberrypi/tools/archive/0e906ebc527eab1cdbf7adabff5b474da9562e9f.tar.gz"
CROSSTOOL_DIR="tools-0e906ebc527eab1cdbf7adabff5b474da9562e9f/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/"
CROSSTOOL_NAME="arm-linux-gnueabihf"
6 changes: 3 additions & 3 deletions build_tensorflow/configs/rpi_one_openblas.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ BAZEL_VERSION="0.5.4"
#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=armv6 --copt=-marm --copt=-mfpu=vfp --copt=-DUSE_GEMM_FOR_CONV --copt=-DUSE_OPENBLAS"
BAZEL_COPT_FLAGS="--copt=-march=armv6 --copt=-mfpu=vfp --copt=-DUSE_GEMM_FOR_CONV --copt=-DUSE_OPENBLAS"
BAZEL_COPT_FLAGS+=" --copt=-DS_IREAD=S_IRUSR --copt=-DS_IWRITE=S_IWUSR"
BAZEL_COPT_FLAGS+=" --config=monolithic --copt=-funsafe-math-optimizations --copt=-ftree-vectorize --copt=-fomit-frame-pointer --copt=-DRASPBERRY_PI --copt=-DIS_MOBILE_PLATFORM"
BAZEL_COPT_FLAGS+=" --copt=-isystem --copt=${OPENBLAS_PATH}/include/ --linkopt=-L${OPENBLAS_PATH}/lib/ --linkopt=-l:libopenblas.a"
BAZEL_EXTRA_FLAGS="--cpu=armeabi --crosstool_top=//tools/local_arm_compiler:toolchain //tensorflow/tools/pip_package:build_pip_package"
CROSSTOOL_COMPILER="yes"
CROSSTOOL_EXTRA_INCLUDE="${OPENBLAS_PATH}/include/"
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_URL="https://github.com/raspberrypi/tools/archive/0e906ebc527eab1cdbf7adabff5b474da9562e9f.tar.gz"
CROSSTOOL_DIR="tools-0e906ebc527eab1cdbf7adabff5b474da9562e9f/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/"
CROSSTOOL_NAME="arm-linux-gnueabihf"

0 comments on commit ec2cac4

Please sign in to comment.