Skip to content

Use 16-byte alignment for CMSIS-NN scratch buffers#17765

Open
rascani wants to merge 1 commit intopytorch:mainfrom
rascani:cortex-m-mve-align
Open

Use 16-byte alignment for CMSIS-NN scratch buffers#17765
rascani wants to merge 1 commit intopytorch:mainfrom
rascani:cortex-m-mve-align

Conversation

@rascani
Copy link
Contributor

@rascani rascani commented Feb 28, 2026

Summary

MVE vector operations require 16-byte aligned data. Replace alignof(int16_t) (2 bytes) for scratch buffer allocations with a shared kCortexMMveAlignment constant.

MVE vector loads on Cortex-M55/M85 perform best with 16-byte aligned
data. Replace alignof(int16_t) (2 bytes) with a shared
kCortexMMveAlignment constant.

Co-authored-by: Claude <noreply@anthropic.com>
@pytorch-bot
Copy link

pytorch-bot bot commented Feb 28, 2026

🔗 Helpful Links

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

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

❌ 1 Awaiting Approval, 2 New Failures

As of commit b6cb614 with merge base 1f4ad07 (image):

AWAITING APPROVAL - The following workflow needs approval before CI can run:

NEW FAILURES - The following jobs have 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 Feb 28, 2026
@github-actions
Copy link

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.

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants