Repository navigation
Arm backend: Collect PMU counters in EthosUExecutionStats - #24432
Open
Erik-Lundell wants to merge 1 commit into
Open
Erik-Lundell wants to merge 1 commit into
Erik-Lundell wants to merge 1 commit into
Conversation
In the Ethos-U Backend, create a delegate context that is passed to ethosu_invoke_v3 as user_args. When ethosu_execution_stats is linked in, it registers ethosu callbacks that use the context to write to an EthosUStatsBuffer that is owned by the application and registered using `set_ethosu_stats_buffer`. The buffer consists of EthosUExecutionRecords that contain data for one delegate call, including metadata to identify what npu ran the delegate. Additional introduced API: - EthosUBackend_npu_begin() callback - EthosUBackend_npu_end() callback These can be used for measuring CPU time during npu dispatch. - ethosu_execution_metrics_enabled() -> bool Use this infra in arm_perf_monitor. Change-Id: I7d4c2a87e0df624ba99d22dfc09f5fb290b66837 Signed-off-by: Erik Lundell <erik.lundell@arm.com>
Erik-Lundell
requested review from
digantdesai and
larryliu0820
as code owners
November 2, 2026 15:13
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/24432
Note: Links to docs will display an error until the docs builds have been completed. ❌ 4 New Failures, 4 PendingAs of commit 4cc369b with merge base ab68460 ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
zingo
approved these changes
Nov 2, 2026
zingo
left a comment
Collaborator
There was a problem hiding this comment.
Ok to merge, it seems buck2 is updated. Nice.
This branch has not been deployed
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.
In the Ethos-U Backend, create a delegate context that is passed to ethosu_invoke_v3 as user_args.
When ethosu_execution_stats is linked in, it registers ethosu callbacks that use the context to write to an EthosUStatsBuffer that is owned by the application and registered using
set_ethosu_stats_buffer.The buffer consists of EthosUExecutionRecords that contain data for one delegate call, including metadata to identify what npu ran the delegate.
Additional introduced API:
Use this infra in arm_perf_monitor.
cc @digantdesai @freddan80 @per @zingo @oscarandersson8218 @mansnils @Sebastian-Larsson @robell @rascani