You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Core ML] Avoid unnecessary portable-kernel linkage from coremldelegate #22684
buggood first issueGood for newcomersmodule: build/installIssues related to the cmake and buck2 builds, and to installing ExecuTorchmodule: coremlIssues related to Apple's Core ML delegation and code under backends/apple/coreml/
The Core ML CMake target links portable_ops_lib and portable_kernels privately when the standalone runner option is enabled. The standalone Xcode runner already links those archives itself, while other Core ML consumers should not pull in a second operator registry.
A proposed switch from link edges to build dependencies surfaced another requirement: add_dependencies fails when portable operators are disabled unless both targets are guarded. This was found during the source-build validation for #22620 and is intentionally excluded from that documentation-only PR.
Proposed change
Use build-order dependencies instead of private linkage where appropriate, guarded with TARGET portable_ops_lib and TARGET portable_kernels.
Test plan
Configure the macOS preset with Core ML enabled and portable operators disabled.
Build the Core ML runner configuration with portable operators enabled.
buggood first issueGood for newcomersmodule: build/installIssues related to the cmake and buck2 builds, and to installing ExecuTorchmodule: coremlIssues related to Apple's Core ML delegation and code under backends/apple/coreml/
Activity
[docs] Refresh README, runtime APIs, and success stories (#22620)