Skip to content

NXP backend: Add e2e test for profiling feature#20785

Open
irtrukhina wants to merge 6 commits into
pytorch:mainfrom
nxp-upstream:feature/EIEX-976-E2E-test-for-profiling
Open

NXP backend: Add e2e test for profiling feature#20785
irtrukhina wants to merge 6 commits into
pytorch:mainfrom
nxp-upstream:feature/EIEX-976-E2E-test-for-profiling

Conversation

@irtrukhina

@irtrukhina irtrukhina commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

Add an end-to-end test for the profiling feature that generates ETDump and ETRecord artifacts and validates the resulting profiling data using the ExecuTorch Inspector.

Changes:

  1. Enable DevTools and Event Tracer support when building nxp_executor_runner.
  2. Save profiling artifacts for all models converted with the profiling flag:
    • ETDump (trace.etdump) is generated and saved by nxp_executor_runner.
    • ETRecord (etrecord.bin) is generated and saved in nsys_testing.py.

Add Inspector-based validation that:

  • Loads the generated ETDump and ETRecord.
  • Parses Neutron delegate metadata.
  • Verifies kernel profiling events and profiling dump events.
  • Confirms the profiling data can be successfully processed by the ExecuTorch Inspector.

Note: This test is currently marked as xfail and should be enabled after the Neutron SW 3.2 release.

Test plan

Test included.

cc @robert-kalmar @JakeStevens @digantdesai @rascani

@irtrukhina irtrukhina added the module: nxp Issues related to NXP Neutron NPU delegation and code under backends/nxp/ label Jul 8, 2026
@pytorch-bot

pytorch-bot Bot commented Jul 8, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 1 New Failure, 1 Pending

As of commit 3c109eb with merge base 6018283 (image):

NEW FAILURE - The following job has failed:

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 Jul 8, 2026
@linux-foundation-easycla

linux-foundation-easycla Bot commented Jul 8, 2026

Copy link
Copy Markdown

CLA Not Signed

@github-actions

github-actions Bot commented Jul 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.

executorch::etdump::ETDumpGen* etdump_gen = etdump_gen_ptr.get();
printf("ET_EVENT_TRACER_ENABLED\n");
#else
printf(" NO ET_EVENT_TRACER_ENABLED\n");

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nit: Is the leading space intended?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I forgot to remove my debugging prints. I've removed both of them, as they are not needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. module: nxp Issues related to NXP Neutron NPU delegation and code under backends/nxp/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants