Skip to content

[do not land] Support for Header File Generation in DTYPE Selective Build in OSS #11617

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

BujSet
Copy link
Contributor

@BujSet BujSet commented Jun 12, 2025

Summary

Part of the process for enabling the dtype selective build flow requires a header file to be generated that includes information about kernel operators and their dtypes. This change adds support for generating this header file when operators are specified. This functionality is enabled via the command line flag: -DEXECUTORCH_DTYPE_GEN_HEADER=ON. When enabled, the resultant selected_op_variants.h file will be generated.

Test plan

Updated examples/selective_build/test_selective_build.sh to include an example function that shows how to enable dtype header generation. Running bash ./examples/selective_build/test_selective_build.sh cmake produces a header file at cmake-out/examples/selective_build/select_build_lib/selected_op_variants.h which contains selective build information. Note, the example in test_selective_build.sh currently does not have dtype information, however the functionality of this feature was verified on other tests (e.g. mv3). These tests will be included in a future PR after #11601 successfully merges.

Copy link

pytorch-bot bot commented Jun 12, 2025

🔗 Helpful Links

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

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

✅ No Failures

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

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 12, 2025
@BujSet
Copy link
Contributor Author

BujSet commented Jun 12, 2025

@pytorchbot label "release notes: none"

@pytorch-bot pytorch-bot bot added the release notes: none Do not include this in the release notes label Jun 12, 2025
@BujSet BujSet self-assigned this Jun 12, 2025
@BujSet BujSet changed the title Support for Header File Generation in DTYPE Selective Build in OSS [do not land] Support for Header File Generation in DTYPE Selective Build in OSS Jun 12, 2025
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. release notes: none Do not include this in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants