Skip to content

Arm backend: Add tools for finding pte info#18842

Open
Erik-Lundell wants to merge 1 commit intopytorch:mainfrom
Erik-Lundell:pte-info
Open

Arm backend: Add tools for finding pte info#18842
Erik-Lundell wants to merge 1 commit intopytorch:mainfrom
Erik-Lundell:pte-info

Conversation

@Erik-Lundell
Copy link
Copy Markdown
Collaborator

@Erik-Lundell Erik-Lundell commented Apr 13, 2026

  • Add devtools/pte_tool/pte_info.py for getting all compile specs from a pte
  • Add backends/arm/scripts/ethosu_pte_info.py for Ethos-U specific info.
  • Use ethosu_pte_info.py in build_executor_runner to set default parameters.

cc @Gasoonjia @digantdesai @freddan80 @per @zingo @oscarandersson8218 @mansnils @Sebastian-Larsson @robell

@pytorch-bot
Copy link
Copy Markdown

pytorch-bot bot commented Apr 13, 2026

🔗 Helpful Links

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

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

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

❌ 13 New Failures, 3 Unrelated Failures

As of commit 1d48089 with merge base 2eaa16c (image):

NEW FAILURES - The following jobs have failed:

BROKEN TRUNK - The following jobs failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

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 Apr 13, 2026
@Erik-Lundell Erik-Lundell added module: devtools Issues related to developer tools and code under devtools/ partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm ciflow/trunk release notes: devtools Changes to dev tooling, for example the debugger & profiler and removed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Apr 13, 2026
- Add devtools/pte_tool/pte_info.py for getting
all compile specs from a pte
- Add backends/arm/scripts/ethosu_pte_info.py
for Ethos-U specific info.
- Use ethosu_pte_info.py in build_executor_runner
to set default parameters.

Signed-off-by: Erik Lundell <erik.lundell@arm.com>
Change-Id: I7ce38fb7b103b628ea69730e9380dd628b44caf3
@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 Apr 13, 2026
@@ -0,0 +1,149 @@
#!/usr/bin/env python3
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bunch of good discussion on this topic - #7088

Copy link
Copy Markdown
Contributor

@digantdesai digantdesai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the original idea was if we have these tools in C++, since we will likely be in Python-free environment, it might be handly. In my mind the analogy is with https://www.gnu.org/software/binutils.

@Erik-Lundell
Copy link
Copy Markdown
Collaborator Author

I think the original idea was if we have these tools in C++, since we will likely be in Python-free environment, it might be handly. In my mind the analogy is with https://www.gnu.org/software/binutils.

Interesting. I would have expected a user to use tools like these as a part of their aot-flow (generate -> inspect -> re-generate), or when cross-compiling on host. What python-free environment do you have in mind?

The way I am reading the discussion, a general pteinspect with subcommands would be preferable, correct? Something like pteinspect list-compile-specs?

(On a side note, this was done as quick un-planned work. If lots of changes are needed, I'll close the PR and postpone this until we have a proper ask for it 😁)

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: devtools Issues related to developer tools and code under devtools/ partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm release notes: devtools Changes to dev tooling, for example the debugger & profiler

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants