Repository navigation
Arm backend: Enable planned Ethos-U scratch - #24336
Merged
Merged
Conversation
Reserve scratch during AOT flow instead of allocating it at runtime. This is done through DelegateScratchSpec using the label "ethosu_scratch", and it's enabled by setting plan_delegate_scratch=True or by setting --plan-delegate-scratch in the CLI. The default is False as delegate scratch can only be used on the CoreDriver backend. If a PTE that includes planned delegated scratch is run on the LinuxDriver a warning is issued since the memory will be unused. Legacy PTEs that do not have planned delegate scratch will continue to use the temporary allocator to allocate scratch in the runtime. Authored with AI assistance from OpenAI Codex. Change-Id: I482571a4d7928201f7df48c3440042ed705b4eaf Signed-off-by: Emma Kujala <Emma.Kujala@arm.com>
emmakujala
requested review from
digantdesai,
larryliu0820,
mergennachin and
rascani
as code owners
October 30, 2026 14:17
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/24336
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit d374616 with merge base 77b687d ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
zingo
approved these changes
Oct 31, 2026
zingo
left a comment
Collaborator
There was a problem hiding this comment.
OK to merge, just make sure buck2 files are updates if needed for the added file (you can ask codex/claude)
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.
Reserve scratch during AOT flow instead of allocating it at runtime. This is done through DelegateScratchSpec using the label "ethosu_scratch".
cc @digantdesai @freddan80 @per @zingo @oscarandersson8218 @mansnils @Sebastian-Larsson @robell @rascani