8000 cpp_wrapper: Precompile device-specific header files by benjaminglass1 · Pull Request #146928 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

cpp_wrapper: Precompile device-specific header files #146928

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

Closed

Conversation

benjaminglass1
Copy link
Collaborator
@benjaminglass1 benjaminglass1 commented Feb 11, 2025

Stack from ghstack (oldest at bottom):

This saves us about a second per compilation, which is massive for the OpInfo tests. Total OpInfo test runtime is down about 2x from this change alone.

Relands #144002, with changes needed by fbcode internals.

cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @amjames @chauhang @aakhundov

[ghstack-poisoned]
Copy link
pytorch-bot bot commented Feb 11, 2025

🔗 Helpful Links

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

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

✅ No Failures

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

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

[ghstack-poisoned]
@benjaminglass1 benjaminglass1 marked this pull request as ready for review February 11, 2025 21:58
[ghstack-poisoned]
@desertfire
Copy link
Contributor

@desertfire has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Feb 12, 2025
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@desertfire
Copy link
Contributor

@desertfire has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

[ghstack-poisoned]
[ghstack-poisoned]
desai0007 pushed a commit to desai0007/test-repo-pytorch that referenced this pull request Feb 26, 2025
This saves us about a second per compilation, which is _massive_ for the
OpInfo tests.  Total OpInfo test runtime is down about 2x from this
change alone.

Relands #144002, with changes needed by fbcode internals.

ghstack-source-id: 51921ab
Pull Request resolved: pytorch/pytorch#146928
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@desertfire
Copy link
Contributor

@desertfire has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@benjaminglass1
Copy link
Collaborator Author

I've spent a while wrestling with it, and I think I'm going to give up and disable precompilation of headers on Windows. That's not our main platform for testing anyway, and we get the majority of our benefit from this when running tests.

The reason why I'm going this way is that MSVC deals with precompiled headers weirdly, where you have to both use the precompiled header and link in a resulting object file, and cpp_builder is currently pretty tied to the model that one build == one target file, not two.

[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@benjaminglass1
Copy link
Collaborator Author

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

jurgen-paul pushed a commit to jurgen-paul/pytorch.git.file that referenced this pull request Mar 19, 2025
This saves us about a second per compilation, which is _massive_ for the
OpInfo tests.  Total OpInfo test runtime is down about 2x from this
change alone.

Relands #144002, with changes needed by fbcode internals.

ghstack-source-id: efdd6b6
Pull Request resolved: pytorch/pytorch#146928
jurgen-paul pushed a commit to jurgen-paul/pytorch.git.file that referenced this pull request Mar 19, 2025
This saves us about a second per compilation, which is _massive_ for the
OpInfo tests.  Total OpInfo test runtime is down about 2x from this
change alone.

Relands #144002, with changes needed by fbcode internals.

ghstack-source-id: aa55832
Pull Request resolved: pytorch/pytorch#146928
@github-actions github-actions bot deleted the gh/benjaminglass1/68/head branch April 20, 2025 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0