[cadence] Add PR-triggered hifi op-test stage on the Xtensa ISS#20682
Open
aliafzal wants to merge 2 commits into
Open
[cadence] Add PR-triggered hifi op-test stage on the Xtensa ISS#20682aliafzal wants to merge 2 commits into
aliafzal wants to merge 2 commits into
Conversation
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.
🔗 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. ❌ 6 New FailuresAs of commit 5612f80 with merge base 6fac71d ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-testjob (needs: hifi-build) calls a new reusable_xtensa_test.yml, which runs.ci/scripts/test-cadence-xtensa.shto cross-compile the op-level gtests (-DEXECUTORCH_BUILD_CADENCE_OP_TESTS=ON) and run them onxt-run. Thecadence_hifi_op_teststarget is defined in a newbackends/cadence/hifi/operators/tests/CMakeLists.txt(wired viabackends/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).