Skip to content

Dtype selective build: fail if not xplat, if portable/optimized not in kernel_deps #10990

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

Merged
merged 3 commits into from
May 20, 2025

Conversation

lucylq
Copy link
Contributor

@lucylq lucylq commented May 19, 2025

Stack from ghstack (oldest at bottom):

#10985

Try to make user error harder for dtype selective build.

Emit warning for now, as too many failures when set to failure :(
For example:

buck2 build //xplat/sgr/resources/tests/handwriting:pkg
buck2 build fbsource//xplat/sgr/resources/mwa:main_pkg_libAndroid

Differential Revision: [D75027794](https://our.internmc.facebook.com/intern/diff/D75027794/)

…n kernel_deps

#10985

Try to make user error harder for dtype selective build.

Emit warning for now, as too many failures when set to failure :(
For example:
```
buck2 build //xplat/sgr/resources/tests/handwriting:pkg
buck2 build fbsource//xplat/sgr/resources/mwa:main_pkg_libAndroid

Differential Revision: [D75027794](https://our.internmc.facebook.com/intern/diff/D75027794/)

[ghstack-poisoned]
Copy link

pytorch-bot bot commented May 19, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit afd78fc with merge base d50f26f (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

lucylq added a commit that referenced this pull request May 19, 2025
…n kernel_deps

#10985

Try to make user error harder for dtype selective build.

Emit warning for now, as too many failures when set to failure :(
For example:
```
buck2 build //xplat/sgr/resources/tests/handwriting:pkg
buck2 build fbsource//xplat/sgr/resources/mwa:main_pkg_libAndroid

Differential Revision: [D75027794](https://our.internmc.facebook.com/intern/diff/D75027794/)

ghstack-source-id: 284982140
Pull Request resolved: #10990
@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 May 19, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D75027794

…mized not in kernel_deps"

#10985

Try to make user error harder for dtype selective build.

Emit warning for now, as too many failures when set to failure :(
For example:
```
buck2 build //xplat/sgr/resources/tests/handwriting:pkg
buck2 build fbsource//xplat/sgr/resources/mwa:main_pkg_libAndroid

Differential Revision: [D75027794](https://our.internmc.facebook.com/intern/diff/D75027794/)

[ghstack-poisoned]
lucylq added a commit that referenced this pull request May 20, 2025
Pull Request resolved: #10990

#10985

Try to make user error harder for dtype selective build.

Currently, if dtype selective build cannot be enabled we silently fallback to regular dtype selective build.

This diff:
1. Emits failure when there is nothing in kernel_deps and dtype_selective_build=True.
2. Remove dtype_selective_build=True for cases in (1).
3. Warning that dtype selective build is not enabled if user is not in xplat.

ghstack-source-id: 285196226

Differential Revision: [D75027794](https://our.internmc.facebook.com/intern/diff/D75027794/)
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D75027794

…mized not in kernel_deps"

#10985

Try to make user error harder for dtype selective build.

Emit warning for now, as too many failures when set to failure :(
For example:
```
buck2 build //xplat/sgr/resources/tests/handwriting:pkg
buck2 build fbsource//xplat/sgr/resources/mwa:main_pkg_libAndroid

Differential Revision: [D75027794](https://our.internmc.facebook.com/intern/diff/D75027794/)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D75027794

@lucylq lucylq added the release notes: none Do not include this in the release notes label May 20, 2025
@facebook-github-bot facebook-github-bot merged commit e789002 into gh/lucylq/79/base May 20, 2025
88 of 91 checks passed
@facebook-github-bot facebook-github-bot deleted the gh/lucylq/79/head branch May 20, 2025 23:34
kirklandsign pushed a commit that referenced this pull request May 21, 2025
…n kernel_deps (#11020)

Pull Request resolved: #10990

#10985

Try to make user error harder for dtype selective build.

Currently, if dtype selective build cannot be enabled we silently fallback to regular dtype selective build.

This diff:
1. Emits failure when there is nothing in kernel_deps and dtype_selective_build=True.
2. Remove dtype_selective_build=True for cases in (1).
3. Warning that dtype selective build is not enabled if user is not in xplat.

ghstack-source-id: 285201952

Differential Revision: [D75027794](https://our.internmc.facebook.com/intern/diff/D75027794/)
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. fb-exported release notes: none Do not include this in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants