Skip to content

Revert "Revert "Qualcomm AI Engine Direct - heap profiling at runtime…#19710

Merged
psiddh merged 1 commit into
pytorch:mainfrom
psiddh:revert-revert-heap-profiling
May 21, 2026
Merged

Revert "Revert "Qualcomm AI Engine Direct - heap profiling at runtime…#19710
psiddh merged 1 commit into
pytorch:mainfrom
psiddh:revert-revert-heap-profiling

Conversation

@psiddh
Copy link
Copy Markdown
Contributor

@psiddh psiddh commented May 20, 2026

… with HTP backend" (#19705)"

This reverts commit 576ed77 which reverted the original heap profiling feature (#19224). The internal CI test failures that caused the original revert have been fixed by adding @unittest.skip overrides for test_qnn_backend_runtime_option_heap_profile in the simulator test classes.

Original commit changeset: 576ed77

… with HTP backend" (pytorch#19705)"

This reverts commit 576ed77 which reverted the original heap profiling
feature (pytorch#19224). The internal CI test failures that caused the original
revert have been fixed by adding @unittest.skip overrides for
test_qnn_backend_runtime_option_heap_profile in the simulator test classes.

Co-authored-by: Claude <noreply@anthropic.com>

Original commit changeset: 576ed77
@psiddh psiddh requested a review from abhinaykukkadapu as a code owner May 20, 2026 22:04
Copilot AI review requested due to automatic review settings May 20, 2026 22:04
@pytorch-bot pytorch-bot Bot added the ci-no-td label May 20, 2026
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented May 20, 2026

🔗 Helpful Links

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

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:

✅ No Failures

As of commit b110022 with merge base 2b7a5a2 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@psiddh psiddh requested review from winskuo-quic and removed request for abhinaykukkadapu and Copilot May 20, 2026 22:04
@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 May 20, 2026
@psiddh psiddh requested review from metascroy, shewu-quic and winskuo-quic and removed request for winskuo-quic May 20, 2026 22:04
@github-actions
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.

@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync Bot commented May 21, 2026

@psiddh has imported this pull request. If you are a Meta employee, you can view this in D105884788.

)
TestQNN.profile_level = 0

def test_qnn_backend_runtime_option_heap_profile(self):
Copy link
Copy Markdown
Collaborator

@shewu-quic shewu-quic May 21, 2026

Choose a reason for hiding this comment

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

Hi @psiddh , sorry for the inconvenience caused by the revert PR.
This test is not expected to run on the x86 emulator. Could you help add the following guard? Alternatively, we can also ask @jethroqti to submit the another PR with this fix.

if self.enable_x86_64:
    self.skipTest("heap profiling is not supported on host machine")

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks! I already landed an internal fix → adds @unittest.skip overrides in our simulator subclasses, matching the existing .patterns. That said, you can always add this condition as new PR, if you want to. This way any new tests getting added will share the pattern.

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.

Thanks! We will create another PR to do it.

)
TestQNN.profile_level = 0

def test_qnn_backend_runtime_option_heap_profile(self):
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.

ditto.

@psiddh
Copy link
Copy Markdown
Contributor Author

psiddh commented May 21, 2026

Merging this PR now, hopefully the internal CI should be ok this time around

@psiddh psiddh merged commit 4f3ac17 into pytorch:main May 21, 2026
196 of 201 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-no-td CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants