-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not link quantized ops libraries into portable_lib by default #4039
base: main
Are you sure you want to change the base?
Conversation
Summary: CMake options will decide whether portable_lib should link quantized ops libraries (`quantized_ops`, `quantized_ops_aot_lib`). This fix the issue where we build `portable_lib` but doesn't have `EXECUTORCH_BUILD_KERNELS_QUANTIZED(_AOT)` set to `ON`. Test Plan: ``` cmake -DEXECUTORCH_BUILD_PYBIND=ON -DEXECUTORCH_BUILD_KERNELS_QUANTIZED=OFF -Bcmake-out . cmake --build . ``` Reviewers: Subscribers: Tasks: Tags:
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/4039
Note: Links to docs will display an error until the docs builds have been completed. ❌ 3 New FailuresAs of commit c488da9 with merge base 39e17e4 ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@larryliu0820 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags:
@@ -679,6 +677,9 @@ if(EXECUTORCH_BUILD_PYBIND) | |||
if(EXECUTORCH_BUILD_KERNELS_QUANTIZED) | |||
target_link_options_shared_lib(quantized_ops_lib) | |||
list(APPEND _dep_libs quantized_kernels quantized_ops_lib) | |||
if(TARGET quantized_ops_aot_lib) | |||
list(APPEND _dep_libs quantized_kernels quantized_ops_aot_lib) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will add quantized_kernels
to the list twice, since it was already added by line 681
@@ -656,8 +656,6 @@ if(EXECUTORCH_BUILD_PYBIND) | |||
etdump | |||
executorch | |||
extension_data_loader | |||
portable_ops_lib |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this added as a transitive dep somewhere, or are you removing the portable ops altogether?
Summary:
CMake options will decide whether portable_lib should link quantized ops libraries (
quantized_ops
,quantized_ops_aot_lib
).This fix the issue where we build
portable_lib
but doesn't haveEXECUTORCH_BUILD_KERNELS_QUANTIZED(_AOT)
set toON
.Test Plan:
Reviewers:
Subscribers:
Tasks:
Tags: