Add executorch_no_prim_ops target
Summary:
Currently libexecutorch.a always contain prim ops. This becomes a problem when a binary contains 2 "versions" of libexecutorch.a, causing a double registration of the prim ops.
For example, libA.so depends on libexecutorch.a and a binary B depends on both libA.so and libexecutorch.a. Since both libexecutorch.a and libA.so contains prim ops, they will be registered twice.
In this PR I created another library executorch_no_prim_ops for libA.so to depend on.
Differential Revision: D55907752
:link: Helpful Links
:test_tube: See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/2970
- :page_facing_up: Preview Python docs built from this PR
Note: Links to docs will display an error until the docs builds have been completed.
:x: 1 New Failure
As of commit 0cf81c08dd14e41d2b9259032386aac643cf3bf7 with merge base d3326a2073dee7baf78044fb3afd0772edbc616a ():
NEW FAILURE - The following job has failed:
-
pull / test-models-linux (cmake, llava_encoder, portable, linux.4xlarge, 90) / linux-job (gh)
RuntimeError: Command docker exec -t e91dc6b9edaa5829d01b65ced30406ce8df9d095d076c0a0f678d06c83c683c5 /exec failed with exit code 1
This comment was automatically generated by Dr. CI and updates every 15 minutes.