Skip to content

Conversation

@zingo
Copy link
Collaborator

@zingo zingo commented Nov 7, 2024

Moving linking of libexecutorch.a to after "-Wl,--whole-archive" This adds executorch_prim::* to the build as the executorch_prim ops are added with a c++ static initialize that get optimized away by the linker as the variable in never used in the normal linking. See docs/source/runtime-build-and-cross-compilation.md

Tested on Arm backend using a non delegated view. Without this non of the executorch_prim:: can be found/used during runtime.

Moving linking of libexecutorch.a to after "-Wl,--whole-archive"
This adds executorch_prim::* to the build as the executorch_prim
ops are added with a c++ static initialize that get optimized away
by the linker as the variable in never used in the normal linking.
See docs/source/runtime-build-and-cross-compilation.md

Signed-off-by: Zingo Andersen <[email protected]>
Change-Id: I914ce4dc86b5ec067461dedf7d8768c4be91bf95
@pytorch-bot
Copy link

pytorch-bot bot commented Nov 7, 2024

🔗 Helpful Links

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

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

❌ 3 New Failures

As of commit 4cd4213 with merge base abc8a5f (image):

NEW FAILURES - The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-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 Nov 7, 2024
@zingo zingo added partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm ciflow/trunk labels Nov 7, 2024
@zingo zingo closed this Nov 8, 2024
@zingo
Copy link
Collaborator Author

zingo commented Nov 8, 2024

Closing this, have a better way to do this that only bring in the view and not all ops

@zingo zingo deleted the Arm-backend-execute_runner-link-in-portable_kernels branch November 13, 2024 05:54
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants