-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Inductor cpp wrapper: support dynamic shapes #97965
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
Conversation
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/97965
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ✅ No FailuresAs of commit 25e4554: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
cc soumith voznesenskym penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 desertfire [ghstack-poisoned]
cc soumith voznesenskym penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 desertfire [ghstack-poisoned]
cc soumith voznesenskym penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 desertfire [ghstack-poisoned]
cc soumith voznesenskym penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 desertfire [ghstack-poisoned]
cc soumith voznesenskym penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 desertfire [ghstack-poisoned]
cc soumith voznesenskym penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 desertfire [ghstack-poisoned]
cc soumith voznesenskym penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 desertfire [ghstack-poisoned]
cc soumith voznesenskym penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 desertfire [ghstack-poisoned]
1. Fixed dynamic shapes support in cpp_wrapper - fixed the cpp codegen of `size()` and `stride()` - fixed the cpp codegen of `ShapeAsConstantBuffer` - changed to use `cexpr` instead of `pexpr` in the cpp codegen of the `sizevar` 2. Enabled dynamic shapes tests for cpp_wrapper cc soumith voznesenskym penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 desertfire [ghstack-poisoned]
1. Fixed dynamic shapes support in cpp_wrapper - fixed the cpp codegen of `size()` and `stride()` - fixed the cpp codegen of `ShapeAsConstantBuffer` - changed to use `cexpr` instead of `pexpr` in the cpp codegen of the `sizevar` 2. Enabled dynamic shapes tests for cpp_wrapper cc soumith voznesenskym penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 desertfire [ghstack-poisoned]
1. Fixed dynamic shapes support in cpp_wrapper - fixed the cpp codegen of `size()` and `stride()` - fixed the cpp codegen of `ShapeAsConstantBuffer` - changed to use `cexpr` instead of `pexpr` in the cpp codegen of the `sizevar` 2. Enabled dynamic shapes tests for cpp_wrapper cc soumith voznesenskym penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 desertfire [ghstack-poisoned]
1. Fixed dynamic shapes support in cpp_wrapper - fixed the cpp codegen of `size()` and `stride()` - fixed the cpp codegen of `ShapeAsConstantBuffer` - changed to use `cexpr` instead of `pexpr` in the cpp codegen of the `sizevar` 2. Enabled dynamic shapes tests for cpp_wrapper cc soumith voznesenskym penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 desertfire [ghstack-poisoned]
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. Suggest to move CPU-only test to the right place. See comment.
test/inductor/test_torchinductor.py
Outdated
| def test_int_div(self): | ||
| if self.device == "cuda": | ||
| raise unittest.SkipTest("only support cpu int_div test") |
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.
If so, consider to move it to CPURepro?
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.
Moved to CPURepro.
1. Fixed dynamic shapes support in cpp_wrapper - fixed the cpp codegen of `size()` and `stride()` - fixed the cpp codegen of `ShapeAsConstantBuffer` - changed to use `cexpr` instead of `pexpr` in the cpp codegen of the `sizevar` 2. Enabled dynamic shapes tests for cpp_wrapper cc soumith voznesenskym penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 desertfire [ghstack-poisoned]
1. Fixed dynamic shapes support in cpp_wrapper - fixed the cpp codegen of `size()` and `stride()` - fixed the cpp codegen of `ShapeAsConstantBuffer` - changed to use `cexpr` instead of `pexpr` in the cpp codegen of the `sizevar` 2. Enabled dynamic shapes tests for cpp_wrapper cc soumith voznesenskym penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 desertfire [ghstack-poisoned]
1. Fixed dynamic shapes support in cpp_wrapper - fixed the cpp codegen of `size()` and `stride()` - fixed the cpp codegen of `ShapeAsConstantBuffer` - changed to use `cexpr` instead of `pexpr` in the cpp codegen of the `sizevar` 2. Enabled dynamic shapes tests for cpp_wrapper cc soumith voznesenskym penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 desertfire [ghstack-poisoned]
|
@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 |
Stack from ghstack (oldest at bottom):
Fixed dynamic shapes support in cpp_wrapper
size()andstride()ShapeAsConstantBuffercexprinstead ofpexprin the cpp codegen of thesizevarEnabled dynamic shapes tests for cpp_wrapper
cc @soumith @voznesenskym @penguinwu @anijain2305 @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @Xia-Weiwen @wenzhe-nrv @jiayisunx @peterbell10 @desertfire