Skip to content

Commit

Permalink
[TARGET] each option of target str should only contain one '='
Browse files Browse the repository at this point in the history
src/target/target_id.cc ParseAttrsFromRawString L222:
if ((pos = FindUniqueSubstr(s, "=")) != -1)
require option contains only one '='

Signed-off-by: windclarion <windclarion@gmail.com>
  • Loading branch information
windclarion committed Jul 3, 2020
1 parent 575a383 commit c0aeacb
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions python/tvm/target/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,16 +194,16 @@ def arm_cpu(model='unknown', options=None):
Additional options
"""
trans_table = {
"pixel2": ["-model=snapdragon835", "-target=arm64-linux-android -mattr=+neon"],
"mate10": ["-model=kirin970", "-target=arm64-linux-android -mattr=+neon"],
"mate10pro": ["-model=kirin970", "-target=arm64-linux-android -mattr=+neon"],
"p20": ["-model=kirin970", "-target=arm64-linux-android -mattr=+neon"],
"p20pro": ["-model=kirin970", "-target=arm64-linux-android -mattr=+neon"],
"rasp3b": ["-model=bcm2837", "-target=armv7l-linux-gnueabihf -mattr=+neon"],
"rasp4b": ["-model=bcm2711", "-target=arm-linux-gnueabihf -mattr=+neon"],
"rk3399": ["-model=rk3399", "-target=aarch64-linux-gnu -mattr=+neon"],
"pynq": ["-model=pynq", "-target=armv7a-linux-eabi -mattr=+neon"],
"ultra96": ["-model=ultra96", "-target=aarch64-linux-gnu -mattr=+neon"],
"pixel2": ["-model=snapdragon835", "-target=arm64-linux-android", "-mattr=+neon"],
"mate10": ["-model=kirin970", "-target=arm64-linux-android", "-mattr=+neon"],
"mate10pro": ["-model=kirin970", "-target=arm64-linux-android", "-mattr=+neon"],
"p20": ["-model=kirin970", "-target=arm64-linux-android", "-mattr=+neon"],
"p20pro": ["-model=kirin970", "-target=arm64-linux-android", "-mattr=+neon"],
"rasp3b": ["-model=bcm2837", "-target=armv7l-linux-gnueabihf", "-mattr=+neon"],
"rasp4b": ["-model=bcm2711", "-target=arm-linux-gnueabihf", "-mattr=+neon"],
"rk3399": ["-model=rk3399", "-target=aarch64-linux-gnu", "-mattr=+neon"],
"pynq": ["-model=pynq", "-target=armv7a-linux-eabi", "-mattr=+neon"],
"ultra96": ["-model=ultra96", "-target=aarch64-linux-gnu", "-mattr=+neon"],
}
pre_defined_opt = trans_table.get(model, ["-model=%s" % model])

Expand Down

0 comments on commit c0aeacb

Please sign in to comment.