Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

larryliu0820
Copy link
Contributor

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:

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:
Copy link

pytorch-bot bot commented Jun 22, 2024

🔗 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 Failures

As of commit c488da9 with merge base 39e17e4 (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 Jun 22, 2024
@facebook-github-bot
Copy link
Contributor

@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)
Copy link
Contributor

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
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants