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

Link MPS and CoreML delegate library into portable_lib #4040

Closed
wants to merge 2 commits into from

Conversation

larryliu0820
Copy link
Contributor

@larryliu0820 larryliu0820 commented Jun 23, 2024

Summary: As titled. MPS and CoreML should be linked into portable_lib on mac.

Test Plan: See CI job works?

Reviewers:

Subscribers:

Tasks:

Tags:

Copy link

pytorch-bot bot commented Jun 23, 2024

🔗 Helpful Links

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

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

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

✅ You can merge normally! (2 Unrelated Failures)

As of commit 822a053 with merge base 970e278 (image):

UNSTABLE - The following jobs failed but were likely due to flakiness present on trunk and has been marked as unstable:

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 23, 2024
@larryliu0820 larryliu0820 requested a review from dbort June 23, 2024 09:10
@larryliu0820 larryliu0820 added ciflow/binaries ciflow/binaries/all Release PRs with this label will build wheels for all python versions and removed ciflow/binaries labels Jun 25, 2024
@larryliu0820 larryliu0820 changed the title Link MPS delegate library into portable_lib Link MPS and CoreML delegate library into portable_lib Jun 25, 2024
Copy link
Contributor

@dbort dbort left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that these are enabled, please update https://github.com/pytorch/executorch/blob/enable_mps_pip/README-wheel.md to mention CoreML and MPS, on a bullet under the XNNPACK item, like

  • [macOS only] The Core ML and MPS backends are also linked into the prebuilt module

build/packaging/env_var_script_m1.sh Outdated Show resolved Hide resolved
Summary: As titled. MPS should be linked into portable_lib on mac.

Test Plan: See CI job works?

Reviewers:

Subscribers:

Tasks:

Tags:
Copy link
Contributor

@dbort dbort left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Glad this works now. Might be worth trying to cherry-pick this into the 0.3.0 branch, though it is a little risky.

@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.

@facebook-github-bot
Copy link
Contributor

@larryliu0820 merged this pull request in 38d67db.

kirklandsign pushed a commit to kirklandsign/executorch that referenced this pull request Jul 5, 2024
Summary:
As titled. MPS and CoreML should be linked into portable_lib on mac.

Pull Request resolved: pytorch#4040

Test Plan: See CI job works?

Reviewed By: dbort

Differential Revision: D59351891

Pulled By: larryliu0820

fbshipit-source-id: 2d551b84b1fd09995ef3cbf0594b2e1b46854276
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/binaries/all Release PRs with this label will build wheels for all python versions CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants