Add fpu embedded target to EthosUBackend#15202
Add fpu embedded target to EthosUBackend#15202meta-codesync[bot] merged 2 commits intopytorch:mainfrom
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/15202
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New FailuresAs of commit d0a505d with merge base d588947 ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@Daksh-Shami has exported this pull request. If you are a Meta employee, you can view the originating Diff in D84284543. |
This PR needs a
|
Summary:
Explicitly declaring generated libs with exception code off for quantized kernels as executorch does not use exceptions in general, and it can cause downstream errors. Detailed error is P1986979595 but the relevant part is:
```
buck-out/ABC/gen/fbsource/6e53edb0a9a0d828/xplat/executorch/kernels/quantized/__generated_lib_combined__/out/RegisterCodegenUnboxedKernelsEverything.cpp:77:44: error: exception handling disabled, use '-fexceptions' to enable
77 | } catch (const std::exception& ex) {
|
```
This means the existing generated code uses exceptions in its code, so when we use these kernels with -fno-exceptions downstream, the build fails.
After this diff, we can use the exception free kernels with 'no_exceptions' suffix --
`//xplat/executorch/kernels/quantized:generated_lib_no_exceptions` or
`//xplat/executorch/kernels/quantized:generated_lib_aten_no_exceptions` as appropriate.
We still have `//xplat/executorch/kernels/quantized:generated_lib` and `//xplat/executorch/kernels/quantized:generated_lib_aten` available, same as before, so no downstream side effects are expected.
Reviewed By: swolchok
Differential Revision: D84284541
Summary: We need to add embedded fpu target as well for EthosUBackend as Arm FVP platform can use that for tests for some models. Differential Revision: D84284543
5f57cbd to
d0a505d
Compare
swolchok
left a comment
There was a problem hiding this comment.
Review automatically exported from Phabricator review in Meta.
Differential Revision: D84284543 Pull Request resolved: pytorch#15202
Summary: We need to add embedded fpu target as well for EthosUBackend as Arm FVP platform can use that for tests for some models.
Differential Revision: D84284543