Arm backend: Enable using minimal c++ runtime. - #21587
Merged
Merged
Conversation
Erik-Lundell
requested review from
digantdesai,
kirklandsign,
larryliu0820 and
rascani
as code owners
August 5, 2026 09:17
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/21587
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 52 PendingAs of commit cea0b38 with merge base 2afdd93 ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Erik-Lundell
force-pushed
the
minimal-specs
branch
2 times, most recently
from
August 6, 2026 08:18
48504be to
7ed920c
Compare
Add a helper arm_runner_link_minimal_specs that adds preffered minimal specs, in particular nano.specs with float printing included. Enable this in the example arm_executor_runner when EXECUTORCH_OPTIMIZE_SIZE=ON. Always enable in the image_classification example. While the helper reduces code size, it reduces support of standard c++ features. In particular, it does not support printing %zu, i.e. size_t:s. The impact can be reduced by instead using unsigned longs and printing with %lu, which is easily done in our code. For ET runtime code, it is a bit more complicated. Reduce impact by extending the ArmMemoryAllocator subclass to fix its error messages, to at least print proper diagnostics for memory problems. Signed-off-by: Erik Lundell <erik.lundell@arm.com> Change-Id: I80b127f7a939e7ee29baa59dc87777ae71f81647
zingo
approved these changes
Aug 6, 2026
Collaborator
Author
|
test-arm-backend-ethos-u (test_ootb_tests_tosa) with new test passes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a helper arm_runner_link_minimal_specs
that adds preffered minimal specs, in particular
nano.specs with float printing included.
Enable this in the example arm_executor_runner
when EXECUTORCH_OPTIMIZE_SIZE=ON. Always enable
in the image_classification example.
While the helper reduces code size, it reduces support of standard c++ features. In particular, it does
not support printing %zu, i.e. size_t:s. The impact can be reduced by instead using unsigned longs
and printing with %lu, which is easily done in our code. For ET runtime code, it is a bit more complicated. Reduce impact by extending the ArmMemoryAllocator
subclass to fix its error messages, to at least print proper diagnostics for memory problems.
cc @digantdesai @freddan80 @per @zingo @oscarandersson8218 @mansnils @Sebastian-Larsson @robell @rascani