Skip to content

Add cortex_m visibility to portable kernel utilities#17456

Open
Ninja91 wants to merge 1 commit intopytorch:mainfrom
Ninja91:export-D93254993
Open

Add cortex_m visibility to portable kernel utilities#17456
Ninja91 wants to merge 1 commit intopytorch:mainfrom
Ninja91:export-D93254993

Conversation

@Ninja91
Copy link
Contributor

@Ninja91 Ninja91 commented Feb 13, 2026

Summary:
Add cortex_m backends to visibility for kernel utilities that cortex_m operators depend on:

  • copy_ops_util
  • kernel_ops_util
  • padding_util

This enables cortex_m operators to import these utilities when building for ARM embedded platforms.

Differential Revision: D93254993

Copilot AI review requested due to automatic review settings February 13, 2026 20:20
@pytorch-bot
Copy link

pytorch-bot bot commented Feb 13, 2026

🔗 Helpful Links

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

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

❌ 2 New Failures

As of commit e2257f3 with merge base 6e31609 (image):

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 13, 2026
@meta-codesync
Copy link
Contributor

meta-codesync bot commented Feb 13, 2026

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

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

Ninja91 added a commit to Ninja91/executorch that referenced this pull request Feb 13, 2026
Summary:

Add cortex_m backends to visibility for kernel utilities that cortex_m operators depend on:
- copy_ops_util
- kernel_ops_util
- padding_util

This enables cortex_m operators to import these utilities when building for ARM embedded platforms.

Differential Revision: D93254993
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds cortex_m backend visibility to three portable kernel utilities that are needed by cortex_m operators when building for ARM embedded platforms. The changes enable the cortex_m backend to properly access these utility libraries during build.

Changes:

  • Added //executorch/backends/cortex_m/... visibility to copy_ops_util, kernel_ops_util, and padding_util

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Ninja91 added a commit to Ninja91/executorch that referenced this pull request Feb 13, 2026
Summary:

Add cortex_m backends to visibility for kernel utilities that cortex_m operators depend on:
- copy_ops_util
- kernel_ops_util
- padding_util

This enables cortex_m operators to import these utilities when building for ARM embedded platforms.

Differential Revision: D93254993
Ninja91 added a commit to Ninja91/executorch that referenced this pull request Feb 13, 2026
Summary:

Add cortex_m backends to visibility for kernel utilities that cortex_m operators depend on:
- copy_ops_util
- kernel_ops_util
- padding_util

This enables cortex_m operators to import these utilities when building for ARM embedded platforms.

Differential Revision: D93254993
Summary:
Add cortex_m backends to visibility for portable kernel utilities that cortex_m operators depend on.

## Context

The cortex_m operators (`quantized_linear`, `quantized_conv2d`, `quantized_add`, etc.) require utilities from `//executorch/kernels/portable/cpu/util/` for kernel calculations, tensor operations, and padding. These utilities had restricted visibility that excluded `//executorch/backends/cortex_m/...`, causing build failures when building cortex_m operators for ARM embedded platforms.

This diff is part of a stack enabling D92456499 (use `on_device_model.pte` for CC pipeline offline eval).

## Changes

Updated visibility for three utility targets:
| Utility | Purpose |
|---------|---------|
| `kernel_ops_util` | Kernel dimension calculations for quantized ops |
| `copy_ops_util` | Tensor copy operations |
| `padding_util` | Padding calculations for pooling operators |

Differential Revision: D93254993
Ninja91 added a commit to Ninja91/executorch that referenced this pull request Feb 13, 2026
Summary:

Add cortex_m backends to visibility for portable kernel utilities that cortex_m operators depend on.

## Context

The cortex_m operators (`quantized_linear`, `quantized_conv2d`, `quantized_add`, etc.) require utilities from `//executorch/kernels/portable/cpu/util/` for kernel calculations, tensor operations, and padding. These utilities had restricted visibility that excluded `//executorch/backends/cortex_m/...`, causing build failures when building cortex_m operators for ARM embedded platforms.

This diff is part of a stack enabling D92456499 (use `on_device_model.pte` for CC pipeline offline eval).

## Changes

Updated visibility for three utility targets:
| Utility | Purpose |
|---------|---------|
| `kernel_ops_util` | Kernel dimension calculations for quantized ops |
| `copy_ops_util` | Tensor copy operations |
| `padding_util` | Padding calculations for pooling operators |

Differential Revision: D93254993
Ninja91 added a commit to Ninja91/executorch that referenced this pull request Feb 14, 2026
Summary:

Add cortex_m backends to visibility for portable kernel utilities that cortex_m operators depend on.

## Context

The cortex_m operators (`quantized_linear`, `quantized_conv2d`, `quantized_add`, etc.) require utilities from `//executorch/kernels/portable/cpu/util/` for kernel calculations, tensor operations, and padding. These utilities had restricted visibility that excluded `//executorch/backends/cortex_m/...`, causing build failures when building cortex_m operators for ARM embedded platforms.

This diff is part of a stack enabling D92456499 (use `on_device_model.pte` for CC pipeline offline eval).

## Changes

Updated visibility for three utility targets:
| Utility | Purpose |
|---------|---------|
| `kernel_ops_util` | Kernel dimension calculations for quantized ops |
| `copy_ops_util` | Tensor copy operations |
| `padding_util` | Padding calculations for pooling operators |

Differential Revision: D93254993
Ninja91 added a commit to Ninja91/executorch that referenced this pull request Feb 14, 2026
Summary:

Add cortex_m backends to visibility for portable kernel utilities that cortex_m operators depend on.

## Context

The cortex_m operators (`quantized_linear`, `quantized_conv2d`, `quantized_add`, etc.) require utilities from `//executorch/kernels/portable/cpu/util/` for kernel calculations, tensor operations, and padding. These utilities had restricted visibility that excluded `//executorch/backends/cortex_m/...`, causing build failures when building cortex_m operators for ARM embedded platforms.

This diff is part of a stack enabling D92456499 (use `on_device_model.pte` for CC pipeline offline eval).

## Changes

Updated visibility for three utility targets:
| Utility | Purpose |
|---------|---------|
| `kernel_ops_util` | Kernel dimension calculations for quantized ops |
| `copy_ops_util` | Tensor copy operations |
| `padding_util` | Padding calculations for pooling operators |

Differential Revision: D93254993
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant