Skip to content

Xtensa ISS op-test stage (hifi seed) (#20315)#20315

Closed
aliafzal wants to merge 1 commit into
pytorch:mainfrom
aliafzal:export-D108805403
Closed

Xtensa ISS op-test stage (hifi seed) (#20315)#20315
aliafzal wants to merge 1 commit into
pytorch:mainfrom
aliafzal:export-D108805403

Conversation

@aliafzal

@aliafzal aliafzal commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Summary:

Add the first op-level test stage for the Cadence backend, run on the Xtensa
Instruction Set Simulator (xt-run), mirroring the host cpu-build -> cpu-test
flow with a new hifi-op-test job that runs after hifi-build.

The existing operator gtests (ExecuTorch OperatorTest + EXPECT_TENSOR_EQ,
calling the kernels directly) are cross-compiled for Xtensa via cadence.cmake
and run on xt-run --exit_with_target_code, so the gtest exit code drives
pass/fail. googletest is built for the target (not the host find_package), with
libc++ and GTEST_HAS_PTHREAD=0; gated by EXECUTORCH_BUILD_CADENCE_OP_TESTS.

This diff seeds the suite with one quantized op (test_op_quantized_relu_out) to
prove the harness end to end; later diffs in the stack add vision, more hifi
ops, and a models category.

Differential Revision: D108805403

@pytorch-bot

pytorch-bot Bot commented Jun 16, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 1 New Failure, 270 Pending

As of commit ca4624e with merge base 574bfca (image):

NEW FAILURE - The following job has 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 Jun 16, 2026
@meta-codesync

meta-codesync Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

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

@github-actions

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.

@meta-codesync meta-codesync Bot changed the title Xtensa ISS op-test stage (hifi seed) Xtensa ISS op-test stage (hifi seed) (#20315) Jun 17, 2026
aliafzal added a commit to aliafzal/executorch that referenced this pull request Jun 17, 2026
Summary:

Add the first op-level test stage for the Cadence backend, run on the Xtensa
Instruction Set Simulator (xt-run), mirroring the host cpu-build -> cpu-test
flow with a new hifi-op-test job that runs after hifi-build.

The existing operator gtests (ExecuTorch OperatorTest + EXPECT_TENSOR_EQ,
calling the kernels directly) are cross-compiled for Xtensa via cadence.cmake
and run on xt-run --exit_with_target_code, so the gtest exit code drives
pass/fail. googletest is built for the target (not the host find_package), with
libc++ and GTEST_HAS_PTHREAD=0; gated by EXECUTORCH_BUILD_CADENCE_OP_TESTS.

This diff seeds the suite with one quantized op (test_op_quantized_relu_out) to
prove the harness end to end; later diffs in the stack add vision, more hifi
ops, and a models category.

Differential Revision: D108805403
@aliafzal aliafzal force-pushed the export-D108805403 branch from bf0a729 to e03a5a2 Compare June 17, 2026 08:25
aliafzal added a commit to aliafzal/executorch that referenced this pull request Jun 17, 2026
Summary:

Add the first op-level test stage for the Cadence backend, run on the Xtensa
Instruction Set Simulator (xt-run), mirroring the host cpu-build -> cpu-test
flow with a new hifi-op-test job that runs after hifi-build.

The existing operator gtests (ExecuTorch OperatorTest + EXPECT_TENSOR_EQ,
calling the kernels directly) are cross-compiled for Xtensa via cadence.cmake
and run on xt-run --exit_with_target_code, so the gtest exit code drives
pass/fail. googletest is built for the target (not the host find_package), with
libc++ and GTEST_HAS_PTHREAD=0; gated by EXECUTORCH_BUILD_CADENCE_OP_TESTS.

This diff seeds the suite with one quantized op (test_op_quantized_relu_out) to
prove the harness end to end; later diffs in the stack add vision, more hifi
ops, and a models category.

Differential Revision: D108805403
@aliafzal aliafzal force-pushed the export-D108805403 branch from e03a5a2 to 36df0b5 Compare June 17, 2026 08:57
@meta-codesync meta-codesync Bot changed the title Xtensa ISS op-test stage (hifi seed) (#20315) Xtensa ISS op-test stage (hifi seed) Jun 17, 2026
@aliafzal aliafzal force-pushed the export-D108805403 branch from 36df0b5 to 1d33c2d Compare June 17, 2026 09:39
Summary:

Add the first op-level test stage for the Cadence backend, run on the Xtensa
Instruction Set Simulator (xt-run), mirroring the host cpu-build -> cpu-test
flow with a new hifi-op-test job that runs after hifi-build.

The existing operator gtests (ExecuTorch OperatorTest + EXPECT_TENSOR_EQ,
calling the kernels directly) are cross-compiled for Xtensa via cadence.cmake
and run on xt-run --exit_with_target_code, so the gtest exit code drives
pass/fail. googletest is built for the target (not the host find_package), with
libc++ and GTEST_HAS_PTHREAD=0; gated by EXECUTORCH_BUILD_CADENCE_OP_TESTS.

This diff seeds the suite with one quantized op (test_op_quantized_relu_out) to
prove the harness end to end; later diffs in the stack add vision, more hifi
ops, and a models category.

Differential Revision: D108805403
@meta-codesync meta-codesync Bot changed the title Xtensa ISS op-test stage (hifi seed) Xtensa ISS op-test stage (hifi seed) (#20315) Jun 18, 2026
@aliafzal aliafzal force-pushed the export-D108805403 branch from 1d33c2d to ca4624e Compare June 18, 2026 01:10
@aliafzal

Copy link
Copy Markdown
Contributor Author

Discarding this op-test export; superseded.

@aliafzal aliafzal closed this Jun 18, 2026
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. meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant