From 5a494fede4711ae1faa9e3e4c2fcd5d1c4822a58 Mon Sep 17 00:00:00 2001 From: luxuhui Date: Tue, 5 Mar 2019 18:51:51 +0800 Subject: [PATCH] change the cpu type of arm_linux_gnueabihf N/A Signed-off-by: Luxuhui --- mace/python/tools/converter_tool/transformer.py | 2 +- tools/arm_compiler/BUILD | 8 ++++---- tools/arm_compiler/CROSSTOOL | 8 ++++---- tools/bazel.rc | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/mace/python/tools/converter_tool/transformer.py b/mace/python/tools/converter_tool/transformer.py index 2147c6e1..669bcf8b 100644 --- a/mace/python/tools/converter_tool/transformer.py +++ b/mace/python/tools/converter_tool/transformer.py @@ -127,7 +127,7 @@ class Transformer(base_converter.ConverterInterface): self.construct_ops_and_consumers(key) changed = transformer() if not changed: - break + break self.delete_after_check_nodes() return self._model, self._quantize_activation_info diff --git a/tools/arm_compiler/BUILD b/tools/arm_compiler/BUILD index 30f83eb0..140ed0d3 100644 --- a/tools/arm_compiler/BUILD +++ b/tools/arm_compiler/BUILD @@ -11,7 +11,7 @@ filegroup( name = "toolchain_fg", srcs = [ - ":cc-compiler-armeabi-v7a", + ":cc-compiler-armhf", ":linaro_linux_all_files", "@gcc_linaro_7_3_1_arm_linux_gnueabihf//:compiler_components", ], @@ -29,7 +29,7 @@ cc_toolchain_suite( name = "toolchain", # target_cpu | compiler toolchains = { - "armeabi-v7a|gcc": "cc-compiler-armeabi-v7a", + "armhf|gcc": "cc-compiler-armhf", }, ) @@ -66,10 +66,10 @@ filegroup( ) cc_toolchain( - name = "cc-compiler-armeabi-v7a", + name = "cc-compiler-armhf", all_files = ":linaro_linux_all_files", compiler_files = ":linaro_linux_compiler_files", - cpu = "armeabi-v7a", + cpu = "armhf", dwp_files = ":empty", dynamic_runtime_libs = [":empty"], linker_files = ":linaro_linux_linker_files", diff --git a/tools/arm_compiler/CROSSTOOL b/tools/arm_compiler/CROSSTOOL index ce7f6d15..58edd2f9 100644 --- a/tools/arm_compiler/CROSSTOOL +++ b/tools/arm_compiler/CROSSTOOL @@ -1,9 +1,9 @@ major_version: "local" minor_version: "" -default_target_cpu: "armeabi-v7a" +default_target_cpu: "armhf" default_toolchain { - cpu: "armeabi-v7a" + cpu: "armhf" toolchain_identifier: "arm-linux-gnueabihf" } @@ -12,7 +12,7 @@ toolchain { abi_libc_version: "" builtin_sysroot: "" compiler: "gcc" - host_system_name: "armeabi-v7a" + host_system_name: "armhf" needsPic: true supports_gold_linker: true supports_incremental_linker: false @@ -22,7 +22,7 @@ toolchain { supports_start_end_lib: false supports_thin_archives: true target_libc: "" - target_cpu: "armeabi-v7a" + target_cpu: "armhf" target_system_name: "" toolchain_identifier: "arm-linux-gnueabihf" diff --git a/tools/bazel.rc b/tools/bazel.rc index 77978ea3..6ad5d64a 100644 --- a/tools/bazel.rc +++ b/tools/bazel.rc @@ -27,7 +27,7 @@ build:arm_linux_gnueabihf --spawn_strategy=standalone build:arm_linux_gnueabihf --distinct_host_configuration=true build:arm_linux_gnueabihf --crosstool_top=//tools/arm_compiler:toolchain build:arm_linux_gnueabihf --host_crosstool_top=@bazel_tools//tools/cpp:toolchain -build:arm_linux_gnueabihf --cpu=armeabi-v7a +build:arm_linux_gnueabihf --cpu=armhf build:arm_linux_gnueabihf --copt -mfloat-abi=hard build:arm_linux_gnueabihf --copt -mfpu=neon build:arm_linux_gnueabihf --copt -Wno-ignored-attributes -- GitLab