From 3af97bcf4b7f176466b4e3d6dff9f0321a37f515 Mon Sep 17 00:00:00 2001 From: Thierry Moreau Date: Tue, 4 Aug 2020 18:36:37 -0700 Subject: [PATCH 1/2] adding 64bit target for rpi --- python/tvm/target/target.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/tvm/target/target.py b/python/tvm/target/target.py index 597f8a59eeee..7aa1ff8a1a0b 100644 --- a/python/tvm/target/target.py +++ b/python/tvm/target/target.py @@ -188,7 +188,8 @@ def arm_cpu(model='unknown', options=None): "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"], + "rasp4b": ["-model=bcm2711", "-mtriple=armv8l-linux-gnueabihf", "-mattr=+neon"], + "rasp4b64": ["-model=bcm2711", "-mtriple=aarch64-linux-gnu", "-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"], From 2e9368702c6701a1994326d2af1c8affb7dd8bf9 Mon Sep 17 00:00:00 2001 From: Thierry Moreau Date: Tue, 4 Aug 2020 23:50:38 -0700 Subject: [PATCH 2/2] adding mcpu field --- python/tvm/target/target.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python/tvm/target/target.py b/python/tvm/target/target.py index 7aa1ff8a1a0b..1cde8752fdb9 100644 --- a/python/tvm/target/target.py +++ b/python/tvm/target/target.py @@ -188,8 +188,10 @@ def arm_cpu(model='unknown', options=None): "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=armv8l-linux-gnueabihf", "-mattr=+neon"], - "rasp4b64": ["-model=bcm2711", "-mtriple=aarch64-linux-gnu", "-mattr=+neon"], + "rasp4b": ["-model=bcm2711", "-mtriple=armv8l-linux-gnueabihf", "-mattr=+neon", + "-mcpu=cortex-a72"], + "rasp4b64": ["-model=bcm2711", "-mtriple=aarch64-linux-gnu", "-mattr=+neon", + "-mcpu=cortex-a72"], "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"],