Skip to content

Arm backend: Report CPU time per inference for Ethos-U on Linux - #22596

Draft
vacu9708 wants to merge 1 commit into
pytorch:mainfrom
vacu9708:linux-perf-monitor
Draft

Arm backend: Report CPU time per inference for Ethos-U on Linux#22596
vacu9708 wants to merge 1 commit into
pytorch:mainfrom
vacu9708:linux-perf-monitor

Conversation

@vacu9708

@vacu9708 vacu9708 commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Summary

EthosUBackend::execute() calls the EthosUBackend_execute_begin() / EthosUBackend_execute_end() hooks around each delegated inference.

  • The Cortex-M runner reports the CPU time spent in EthosUBackend::execute() per inference.
  • The Linux runtime runner does not.

I added a Linux branch to arm_perf_monitor.cpp to measure the CPU time saved by a Linux runtime change (#22599)

Draft

This is a draft because I'm not sure an Arm-specific measurement belongs in the portable executor_runner, though ET_ENABLE_VGF_INPUT_DUMP is a precedent.
Would this be mergeable if I only added the Linux branch to arm_perf_monitor.cpp and left out the calls in the portable executor_runner?

@pytorch-bot

pytorch-bot Bot commented Sep 8, 2026

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/22596

Note: Links to docs will display an error until the docs builds have been completed.

⚠️ 22 Awaiting Approval

As of commit 503aa16 with merge base c9eee94 (image):

AWAITING APPROVAL - The following workflows need approval before CI can run:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 8, 2026
@github-actions github-actions Bot added ciflow/trunk module: arm Issues related to arm backend labels Sep 8, 2026
@pytorch-bot

pytorch-bot Bot commented Sep 8, 2026

Copy link
Copy Markdown

The following ciflow label(s) have been added but CI has not been triggered yet because the workflows are awaiting approval:

  • ciflow/trunk

Once a maintainer approves the workflows (scroll to the bottom of the PR page), the corresponding CI jobs will be triggered automatically. Please ping one of the reviewers if you do not have access to approve and run workflows.

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@vacu9708
vacu9708 marked this pull request as draft September 8, 2026 07:23
@vacu9708 vacu9708 changed the title Arm backend: Report CPU time per inference for the Linux runtime Arm backend: Report CPU time per inference for Ethos-U on Linux Sep 8, 2026
**Motivation**
The Cortex-M runtime reports the CPU time spent in `EthosUBackend::execute()`
per inference while the Linux runtime does not.

**Change**
Add a Linux branch to `arm_perf_monitor.cpp` to measure the CPU time per inference

Signed-off-by: Youngsik Yang <vacu9708@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. module: arm Issues related to arm backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant