Skip to content

Conversation

@zingo
Copy link
Collaborator

@zingo zingo commented Dec 10, 2025

Summary

Add a function that serves as a linker force-include mechanism to
ensure the EthosU backend module gets properly linked into the final
executable, even when it might otherwise be optimized out by the
linker. This is needed when you use linker options that remove unused
code or data then this function can be called from your runner to
force the inclusion of the EthosU backend module.

This might be the case when build Executorch in other projects like
in ZephyrOS when you have an other set of compilers and linker flags.

Test plan

Tested by invoking the project from ZephyrOS and check if the backend get installed or not.

cc @freddan80 @per @oscarandersson8218 @digantdesai

Add a function that serves as a linker force-include mechanism to
ensure the EthosU backend module gets properly linked into the final
executable, even when it might otherwise be optimized out by the
linker. This is needed when you use linker options that remove unused
code or data then this function can be called from your runner to
force the inclusion of the EthosU backend module.

This might be the case when build Executorch in other projects like
in ZephyrOS when you have an other set of compilers and linker flags.

Co-authored-by: Zingo Andersen <Zingo.Andersen@arm.com>
Change-Id: Ida57115d40385c963e46538134340da3577cf5c4
Signed-off-by: Zingo Andersen <Zingo.Andersen@arm.com>
@zingo zingo requested a review from digantdesai as a code owner December 10, 2025 09:57
@pytorch-bot
Copy link

pytorch-bot bot commented Dec 10, 2025

🔗 Helpful Links

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

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

❌ 1 Cancelled Job, 1 Unrelated Failure

As of commit 8ff4a4e with merge base 670bc11 (image):

CANCELLED JOB - The following job was cancelled. Please retry:

UNSTABLE - The following job is marked as unstable, possibly due to flakiness 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 Dec 10, 2025
@zingo zingo added partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm ciflow/trunk release notes: none Do not include this in the release notes labels Dec 10, 2025
@oscarandersson8218 oscarandersson8218 merged commit d968e47 into pytorch:main Dec 11, 2025
443 of 473 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm release notes: none Do not include this in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants