Skip to content

[cadence] Add PR-triggered hifi op-test stage on the Xtensa ISS#20682

Open
aliafzal wants to merge 2 commits into
mainfrom
cadence-hifi-op-test
Open

[cadence] Add PR-triggered hifi op-test stage on the Xtensa ISS#20682
aliafzal wants to merge 2 commits into
mainfrom
cadence-hifi-op-test

Conversation

@aliafzal

@aliafzal aliafzal commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

The Cadence OSS CI builds the runner for hifi4 and vision and runs CPU tests (cpu-build -> cpu-test), but the hifi backend has no test stage. This adds a PR-triggered op-level test for hifi that mirrors cpu-build -> cpu-test, so the op kernels are exercised on the Xtensa ISS on every PR.

A new hifi-op-test job (needs: hifi-build) calls a new reusable _xtensa_test.yml, which runs .ci/scripts/test-cadence-xtensa.sh to cross-compile the op-level gtests (-DEXECUTORCH_BUILD_CADENCE_OP_TESTS=ON) and run them on xt-run. The cadence_hifi_op_tests target is defined in a new backends/cadence/hifi/operators/tests/CMakeLists.txt (wired via backends/cadence/CMakeLists.txt) and seeds the suite with one op, test_op_quantized_relu_out.

Same-repo PR so the cadence CI jobs run on pull_request (fork PRs skip them).

@pytorch-bot

pytorch-bot Bot commented Jul 1, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 1 New Failure, 1 Unrelated Failure

As of commit 411952d with merge base 7f1cf77 (image):

NEW FAILURE - The following job has failed:

FLAKY - The following job failed but was likely due to flakiness present on trunk:

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 Jul 1, 2026
@github-actions

github-actions Bot commented Jul 1, 2026

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.

aliafzal added 2 commits July 2, 2026 02:43
The Cadence OSS CI builds the runner for hifi4 and vision and runs CPU
tests (cpu-build -> cpu-test), but the hifi backend has no test stage.
Add a PR-triggered op-level test for hifi that mirrors cpu-build ->
cpu-test, so the op kernels are exercised on the Xtensa ISS on every PR.

A new hifi-op-test job (needs: hifi-build) calls a new reusable
_xtensa_test.yml, which runs .ci/scripts/test-cadence-xtensa.sh to
cross-compile the op-level gtests (-DEXECUTORCH_BUILD_CADENCE_OP_TESTS=ON)
and run them on xt-run. The cadence_hifi_op_tests target is defined in a
new backends/cadence/hifi/operators/tests/CMakeLists.txt (wired via
backends/cadence/CMakeLists.txt) and seeds the suite with one op,
test_op_quantized_relu_out.
Wire the remaining nine op-level gtests already in the tree into the
cadence_hifi_op_tests target, so the hifi-op-test CI stage runs the full
suite (cat, div, im2row, permute, transpose, quantize_per_tensor,
dequantize_per_tensor, quantized_conv2d, quantized_matmul, quantized_relu)
instead of only quantized_relu. Also link aten_ops_cadence, which defines
the aten-compliant ops (cat, div, im2row, permute, transpose) that the
newly added tests call directly.
@meta-codesync

meta-codesync Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

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

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.

1 participant