Skip to content

Add neutronPowerOn/neutronPowerOff hooks to NeutronBackend#19845

Open
JakeStevens wants to merge 1 commit into
pytorch:mainfrom
JakeStevens:export-D106668625
Open

Add neutronPowerOn/neutronPowerOff hooks to NeutronBackend#19845
JakeStevens wants to merge 1 commit into
pytorch:mainfrom
JakeStevens:export-D106668625

Conversation

@JakeStevens
Copy link
Copy Markdown
Contributor

@JakeStevens JakeStevens commented May 28, 2026

Summary:
To minimize power, the NPU should be turned on and off, per:

https://docs.nxp.com/bundle/AN14700/page/topics/imx_rt700_system_details.html

This relies on SDK code.

Some users may wrap this code for protection.

So, we want two things:

  1. (potentially) turnOn -> execute NPU -> turnOff
  2. ability to override turnOn/Off implementations

Further, some may want to leave these stubs so that the ET backend does not control it for them.

Differential Revision: D106668625

cc @robert-kalmar @digantdesai @rascani

Summary:
To minimize power, the NPU should be turned on and off, per:


https://docs.nxp.com/bundle/AN14700/page/topics/imx_rt700_system_details.html

This relies on SDK code.

Some users may wrap this code for protection.

So, we want two things:

1) (potentially) turnOn -> execute NPU -> turnOff
2) ability to override turnOn/Off implementations

Further, some may want to leave these stubs so that the ET backend does not control it for them.

Differential Revision: D106668625
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented May 28, 2026

🔗 Helpful Links

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

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:

❌ 1 New Failure, 2 Unrelated Failures

As of commit b316aee with merge base acce7cd (image):

NEW FAILURE - The following job has 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 May 28, 2026
@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync Bot commented May 28, 2026

@JakeStevens has exported this pull request. If you are a Meta employee, you can view the originating Diff in D106668625.

@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.

@JakeStevens
Copy link
Copy Markdown
Contributor Author

I see there are neutronSuspend and neutronResume functions in the neutron header. Maybe can just use those instead?

@robert-kalmar robert-kalmar requested a review from jirioc May 29, 2026 06:26
@robert-kalmar robert-kalmar added the module: nxp Issues related to NXP Neutron NPU delegation and code under backends/nxp/ label May 29, 2026
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. fb-exported meta-exported 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