8000 cpp_wrapper: Move #includes to per-device header files by benjaminglass1 · Pull Request #143909 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

cpp_wrapper: Move #includes to per-device header files #143909

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 Dec 27, 2024

[ghstack-poisoned]
Copy link
pytorch-bot bot commented Dec 27, 2024

🔗 Helpful Links

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

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

❌ 7 New Failures, 1 Unrelated Failure

As of commit 0e49d4c with merge base 95b41d2 (image):

NEW FAILURES - The following jobs have failed:

FLAKY - The following job failed but was likely due to flakiness present on trunk:

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

benjaminglass1 added a commit that referenced this pull request Dec 27, 2024
This prepares us for the next PR in the stack, where we introduce pre-compiled per-device header files to save compilation time.

ghstack-source-id: bcaf39d
Pull Request resolved: #143909
benjaminglass1 added a commit that referenced this pull request Dec 27, 2024
This prepares us for the next PR in the stack, where we introduce pre-compiled per-device header files to save compilation time.

ghstack-source-id: bcaf39d
Pull Request resolved: #143909
[ghstack-poisoned]
benjaminglass1 added a commit that referenced this pull request Dec 30, 2024
This prepares us for the next PR in the stack, where we introduce pre-compiled per-device header files to save compilation time.

ghstack-source-id: c874e17
Pull Request resolved: #143909
[ghstack-poisoned]
benjaminglass1 added a commit that referenced this pull request Dec 30, 2024
This prepares us for the next PR in the stack, where we introduce pre-compiled per-device header files to save compilation time.

ghstack-source-id: 4822892
Pull Request resolved: #143909
[ghstack-poisoned]
@benjaminglass1
Copy link
Collaborator Author

@desertfire For your consideration: would it also be worth doing this for things built in non-cpp_wrapper AOTI mode? The precompiled header seems to be a big enough boost to make it potentially worthwhile.

8000

[ghstack-poisoned]
@desertfire
Copy link
Contributor

@desertfire For your consideration: would it also be worth doing this for things built in non-cpp_wrapper AOTI mode? The precompiled header seems to be a big enough boost to make it potentially worthwhile.

Reasonable to do something similar for AOTI

@benjaminglass1
Copy link
Collaborator Author

@desertfire For your consideration: would it also be worth doing this for things built in non-cpp_wrapper AOTI mode? The precompiled header seems to be a big enough boost to make it potentially worthwhile.

Reasonable to do something similar for AOTI

@desertfire I think I'm going to get the array_ref work done in this PR, then do the AOTI work in a follow-on. The further I've dug into this, the more I've realized that the AOTI work will take some design effort, since the build step is implemented differently.

[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@desertfire desertfire self-requested a review January 14, 2025 20:01
@desertfire
Copy link
Contributor

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

@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

@kit1980
Copy link
Contributor
kit1980 commented Jan 17, 2025

@pytorchbot revert -m "breaking internal builds because of removal of torch‎/_inductor‎/codegen‎/aoti_runtime‎/implementation.cpp‎" -c ghfirst

@kit1980
Copy link
Contributor
kit1980 commented Jan 17, 2025

@desertfire Can you help with updating the internal build files as needed?

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a revert job. Check the current status here.
Questions? Feedback? Please reach out to the PyTorch DevX Team

pytorchmergebot added a commit that referenced this pull request Jan 17, 2025
…)"

This reverts commit d62b397.

Reverted #143909 on behalf of https://github.com/kit1980 due to breaking internal builds because of removal of torch‎/_inductor‎/codegen‎/aoti_runtime‎/implementation.cpp‎ ([comment](#143909 (comment)))
@pytorchmergebot
Copy link
Collaborator

@benjaminglass1 your PR has been successfully reverted.

@pytorchmergebot pytorchmergebot added Reverted ci-no-td Do not run TD on this PR labels Jan 17, 2025
@etaf etaf added the ciflow/xpu Run XPU CI tasks label Jan 17, 2025
@etaf
Copy link
Collaborator
etaf commented Jan 17, 2025

Hi, @benjaminglass1, I learned this PR and find some XPU code change, so I added the ciflow/xpu label.

@benjaminglass1
Copy link
Collaborator Author

Hi, @benjaminglass1, I learned this PR and find some XPU code change, so I added the ciflow/xpu label.

Thanks @etaf! Should I add this new file to the automatic ciflow/xpu tagging list?

@desertfire
Copy link
Contributor

@desertfire Can you help with updating the internal build files as needed?

I did make some internal changes to D67938955, but looks some tests were not triggered when I imported this PR. I will do another around of fix.

@benjaminglass1
Copy link
Collaborator Author

Re-implemented in #145083 to ease internal bugfixing.

Git-Hub-Chris pushed a commit to Git-Hub-Chris/PyTorch that referenced this pull request Jan 19, 2025
This prepares us for the next PR in the stack, where we introduce pre-compiled per-device header files to save compilation time.

ghstack-source-id: f8fd2b4
Pull Request resolved: pytorch/pytorch#143909
desertfire pushed a commit that referenced this pull request Jan 29, 2025
Summary:
This prepares us for the next PR in the stack, where we introduce pre-compiled per-device header files to save compilation time.

Reland #143909 after merge conflicts.

Differential Revision: D68656960

Pulled By: desertfire
pytorchmergebot pushed a commit that referenced this pull request Jan 29, 2025
Summary:
This prepares us for the next PR in the stack, where we introduce pre-compiled per-device header files to save compilation time.

Reland #143909 after merge conflicts.

Co-authored-by: Benjamin Glass <[bglass@quansight.com](mailto:bglass@quansight.com)>

Differential Revision: D68656960

Pulled By: benjaminglass1

Pull Request resolved: #145932
Approved by: https://github.com/yushangdi, https://github.com/benjaminglass1

Co-authored-by: bglass@quansight.com <bglass@quansight.com>
@github-actions github-actions bot deleted the gh/benjaminglass1/45/head branch February 17, 2025 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-no-td Do not run TD on this PR ciflow/inductor ciflow/trunk Trigger trunk jobs on your pull request ciflow/xpu Run XPU CI tasks Merged module: inductor open source Reverted topic: not user facing topic category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants
0