From 5fef34d5c8be9d6fd8fc36885c7a73950c724c68 Mon Sep 17 00:00:00 2001 From: windclarion Date: Fri, 3 Jul 2020 11:40:04 +0800 Subject: [PATCH] [TARGET] each option of target str should only contain one '=' src/target/target_id.cc ParseAttrsFromRawString L222: if ((pos = FindUniqueSubstr(s, "=")) != -1) require option contains only one '=' Signed-off-by: windclarion --- python/tvm/target/target.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/python/tvm/target/target.py b/python/tvm/target/target.py index dc8c446fb6e56..c69c2dae1c292 100644 --- a/python/tvm/target/target.py +++ b/python/tvm/target/target.py @@ -178,16 +178,16 @@ def arm_cpu(model='unknown', options=None): Additional options """ trans_table = { - "pixel2": ["-model=snapdragon835", "-mtriple=arm64-linux-android -mattr=+neon"], - "mate10": ["-model=kirin970", "-mtriple=arm64-linux-android -mattr=+neon"], - "mate10pro": ["-model=kirin970", "-mtriple=arm64-linux-android -mattr=+neon"], - "p20": ["-model=kirin970", "-mtriple=arm64-linux-android -mattr=+neon"], - "p20pro": ["-model=kirin970", "-mtriple=arm64-linux-android -mattr=+neon"], - "rasp3b": ["-model=bcm2837", "-mtriple=armv7l-linux-gnueabihf -mattr=+neon"], - "rasp4b": ["-model=bcm2711", "-mtriple=arm-linux-gnueabihf -mattr=+neon"], - "rk3399": ["-model=rk3399", "-mtriple=aarch64-linux-gnu -mattr=+neon"], - "pynq": ["-model=pynq", "-mtriple=armv7a-linux-eabi -mattr=+neon"], - "ultra96": ["-model=ultra96", "-mtriple=aarch64-linux-gnu -mattr=+neon"], + "pixel2": ["-model=snapdragon835", "-mtriple=arm64-linux-android", "-mattr=+neon"], + "mate10": ["-model=kirin970", "-mtriple=arm64-linux-android", "-mattr=+neon"], + "mate10pro": ["-model=kirin970", "-mtriple=arm64-linux-android", "-mattr=+neon"], + "p20": ["-model=kirin970", "-mtriple=arm64-linux-android", "-mattr=+neon"], + "p20pro": ["-model=kirin970", "-mtriple=arm64-linux-android", "-mattr=+neon"], + "rasp3b": ["-model=bcm2837", "-mtriple=armv7l-linux-gnueabihf", "-mattr=+neon"], + "rasp4b": ["-model=bcm2711", "-mtriple=arm-linux-gnueabihf", "-mattr=+neon"], + "rk3399": ["-model=rk3399", "-mtriple=aarch64-linux-gnu", "-mattr=+neon"], + "pynq": ["-model=pynq", "-mtriple=armv7a-linux-eabi", "-mattr=+neon"], + "ultra96": ["-model=ultra96", "-mtriple=aarch64-linux-gnu", "-mattr=+neon"], } pre_defined_opt = trans_table.get(model, ["-model=%s" % model])