-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Target] 64-bit RPi4b target #6211
Conversation
The PR proposes having two targets A. Keep 2 targets until Raspbian 64bit OS is not in beta anymore and ships with Rpi4b |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks Thierry!
python/tvm/target/target.py
Outdated
@@ -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"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should add -mcpu=cortex-a72
for rasp4. We should get better performance after it than generic cpu instruction.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, I've added this additional field.
A 64-bit raspbian operating system is still not fully supported (in beta mode: https://www.raspberrypi.org/forums/viewtopic.php?t=275370), however, it's still possible to boot Ubuntu Server 64bit on the raspberry pi 4.
64bit code-generation should result in better performance overall, so it's recommended to boot a 64bit operating system on the pi by default.
I've also updated the 32bit target for better code-generation overall. Untuned results on Rpi4b below: