CARVIEW |
Navigation Menu
-
Notifications
You must be signed in to change notification settings - Fork 24.7k
[inductor] Make DtypeView work with cpp_wrapper without abi_compatible #136233
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
[inductor] Make DtypeView work with cpp_wrapper without abi_compatible #136233
Conversation
Prior to this PR, using cpp_wrapper without abi_compatible could result in incorrect dtypes. The following block of code implements cpp_wrapper codegen for reinterpret_view for abi_compatible mode, but not for non-abi_compatible mode. https://github.com/pytorch/pytorch/blob/f6f1504d39c92f1ab2a1ee10a7da97745593151f/torch/_inductor/codegen/cpp_wrapper_cpu.py#L1678-L1814 Added a test that verifies that we keep the view behavior, but returned tensors also have correct dtypes. [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/136233
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 9d00d92 with merge base 6a6f5b2 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
…i_compatible" Fixes #136159 Prior to this PR, using cpp_wrapper without abi_compatible could result in incorrect dtypes. The following block of code implements cpp_wrapper codegen for reinterpret_view for abi_compatible mode, but not for non-abi_compatible mode. https://github.com/pytorch/pytorch/blob/f6f1504d39c92f1ab2a1ee10a7da97745593151f/torch/_inductor/codegen/cpp_wrapper_cpu.py#L1678-L1814 Added a test that verifies that we keep the view behavior, but returned tensors also have correct dtypes. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang [ghstack-poisoned]
Prior to this PR, using cpp_wrapper without abi_compatible could result in incorrect dtypes. The following block of code implements cpp_wrapper codegen for reinterpret_view for abi_compatible mode, but not for non-abi_compatible mode. https://github.com/pytorch/pytorch/blob/f6f1504d39c92f1ab2a1ee10a7da97745593151f/torch/_inductor/codegen/cpp_wrapper_cpu.py#L1678-L1814 Added a test that verifies that we keep the view behavior, but returned tensors also have correct dtypes. ghstack-source-id: ff22357 Pull Request resolved: #136233
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@pytorchbot merge |
Merge startedYour 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 |
@pytorchbot merge -r |
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
Successfully rebased |
Prior to this PR, using cpp_wrapper without abi_compatible could result in incorrect dtypes. The following block of code implements cpp_wrapper codegen for reinterpret_view for abi_compatible mode, but not for non-abi_compatible mode. https://github.com/pytorch/pytorch/blob/f6f1504d39c92f1ab2a1ee10a7da97745593151f/torch/_inductor/codegen/cpp_wrapper_cpu.py#L1678-L1814 Added a test that verifies that we keep the view behavior, but returned tensors also have correct dtypes. ghstack-source-id: 4151596 Pull Request resolved: #136233
Merge startedYour 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 |
The merge job was canceled or timed out. This most often happen if two merge requests were issued for the same PR, or if merge job was waiting for more than 6 hours for tests to finish. In later case, please do not hesitate to reissue the merge command |
@pytorchbot merge |
Merge startedYour 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 |
The merge job was canceled or timed out. This most often happen if two merge requests were issued for the same PR, or if merge job was waiting for more than 6 hours for tests to finish. In later case, please do not hesitate to reissue the merge command |
@pytorchbot merge |
Merge startedYour 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 |
The merge job was canceled or timed out. This most often happen if two merge requests were issued for the same PR, or if merge job was waiting for more than 6 hours for tests to finish. In later case, please do not hesitate to reissue the merge command |
@pytorchbot merge |
Merge startedYour 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 |
The merge job was canceled or timed out. This most often happen if two merge requests were issued for the same PR, or if merge job was waiting for more than 6 hours for tests to finish. In later case, please do not hesitate to reissue the merge command |
@pytorchbot merge -f "waited for 2 days for gcp.a100 machine for CI, and the job just got rescheduled at the end of the queue - don't want to wait another 2 days as the queue is currently 1.7 days long." |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Stack from ghstack (oldest at bottom):
Fixes #136159
Prior to this PR, using cpp_wrapper without abi_compatible could result in incorrect dtypes.
The following block of code implements cpp_wrapper codegen for reinterpret_view for abi_compatible mode, but not for non-abi_compatible mode.
pytorch/torch/_inductor/codegen/cpp_wrapper_cpu.py
Lines 1678 to 1814 in f6f1504
Added a test that verifies that we keep the view behavior, but returned tensors also have correct dtypes.
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @ColinPeppler @amjames @desertfire @chauhang