Skip to content

Cortex-M backend: Add cmsis_nn pybind dependency#19279

Open
Erik-Lundell wants to merge 2 commits intopytorch:mainfrom
Erik-Lundell:upstream-cmsis-dep
Open

Cortex-M backend: Add cmsis_nn pybind dependency#19279
Erik-Lundell wants to merge 2 commits intopytorch:mainfrom
Erik-Lundell:upstream-cmsis-dep

Conversation

@Erik-Lundell
Copy link
Copy Markdown
Collaborator

@Erik-Lundell Erik-Lundell commented May 4, 2026

- Add cmsis_nn to new optional-dependency called [cortex_m]

- Additionally, add an install step that allows optional
depedencies to install required build tools. This is needed
for cortex_m.

- Add cmsis_nn to backends/cortex_m/requirements-cortex-m.txt
and add possibility to install from setup.sh to not break
backwards compatability, and to mirror ethos_u and vgf backend.

- Add guard to cortex_m/passes/__init__.py to fail gracefully if
cortex_m dependencies are not installed.

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

- Add cmsis_nn to new optional-dependency called [cortex_m]

- Additionally, add an install step that allows optional
depedencies to install required build tools. This is needed
for cortex_m.

- Add cmsis_nn to backends/cortex_m/requirements-cortex-m.txt
and add possibility to install from setup.sh to not break
backwards compatability, and to mirror ethos_u and vgf backend.

- Add guard to cortex_m/passes/__init__.py to fail gracefully if
cortex_m dependencies are not installed.

Signed-off-by: Erik Lundell <erik.lundell@arm.com>
Change-Id: I0c98b04cb19cccee44e8362a7bdded2f8a90cd1d
Signed-off-by: Erik Lundell <erik.lundell@arm.com>
Change-Id: Id4dc3d8964889683fb941f8cfc70270521291dec
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented May 4, 2026

🔗 Helpful Links

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

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, 1 Cancelled Job, 3 Unrelated Failures

As of commit 646ccb7 with merge base 524f037 (image):

NEW FAILURE - The following job has failed:

CANCELLED JOB - The following job was cancelled. Please retry:

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 4, 2026
@github-actions github-actions Bot added ciflow/trunk module: arm Issues related to arm backend labels May 4, 2026
@Erik-Lundell Erik-Lundell added ciflow/trunk partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm release notes: none Do not include this in the release notes labels May 4, 2026
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 partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm release notes: none Do not include this in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant