-
Notifications
You must be signed in to change notification settings - Fork 767
Arm backend: Add support for Zephyr as a external module #16294
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
Arm backend: Add support for Zephyr as a external module #16294
Conversation
This commit has everything needed to build executorch from zephyr and include it as a external module without having any changes in zephyr. Based on code by BujSet. Co-authored-by: BujSet <[email protected]> Co-authored-by: Zingo Andersen <[email protected]> Co-authored-by: Per Held <[email protected]> Change-Id: I1a1aeb8aa02f1b5e3a578dd25d031919c9925019 Signed-off-by: Zingo Andersen <[email protected]>
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/16294
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New Failures, 1 Cancelled Job, 1 Unrelated FailureAs of commit 6991033 with merge base cf8496a ( NEW FAILURES - The following jobs have failed:
CANCELLED JOB - The following job was cancelled. Please retry:
UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
| CONFIG_CPP=y | ||
| CONFIG_STD_CPP17=y | ||
|
|
||
| # Needed as kernels/portable/cpu/op_allclose.cpp uses isfinite() instead of std::isfinite() |
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 have a PR on it's way to fix this, it will be uploaded after this is merged as it depends on this PR
| * ethos-u-core-driver for hardware interaction. | ||
| */ | ||
|
|
||
| // Workaround for runtime/core/portable_type/c10/c10/util/Float16-math.h |
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.
|
Hi @digantdesai this touches file outside Arm folders and need a non Arm review. |
|
For reference: There are some extra information about this PR in this discussions zephyrproject-rtos/zephyr#92981 |
larryliu0820
left a comment
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.
CMake files are looking good to me. Preemptively accepting unless others have blocking comments.
|
@zingo are we able to have a CI to cover the runner? Would be good to have an e2e CI, right now we only have a build preset CI. |
rascani
left a comment
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, just one tiny nit and +1 on @larryliu0820's comment about CI.
I think so, working on rewriting the old/current one (that is disabled) from Bujset to match this PR. |
Signed-off-by: Zingo Andersen <[email protected]> Change-Id: Ia5eec18ba42d8056332fb5f3e3699c6e85c81956
|
Hi @MartinPavella (or who might be a NXP person to notify :) ) when this is merged it might be easy for you to update/adopt and get some NXP targets already available in ZephyrOS working :) |
|
Fails are unrelated |
Summary
This commit has everything needed to build executorch from zephyr and include it as a external module without having any changes in zephyr.
Based on code by BujSet.
Test plan
Tested by hand. Plan to update GitHub testing for this in later PR
cc @freddan80 @per @oscarandersson8218 @digantdesai
Co-authored-by: BujSet <[email protected]>
Co-authored-by: Adrian Lundell <[email protected]>
Co-authored-by: Zingo Andersen <[email protected]>
Co-authored-by: Per Held <[email protected]>