-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[AOTI] Support MKLDNN conv ops in cpp wrapper #134475
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
Summary: Partially fix #123040. In the ABI-compatible mode, MKLDNN fallback ops do not have C shim implementations and thus need to go through the custom ops launch path. Other MLKDNN ops will be fixed in following PRs. [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/134475
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit b2bb636 with merge base c7328df ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Summary: Partially fix #123040. In the ABI-compatible mode, MKLDNN fallback ops do not have C shim implementations and thus need to go through the custom ops launch path. Other MLKDNN ops will be fixed in following PRs. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames chauhang [ghstack-poisoned]
Summary: Partially fix #123040. In the ABI-compatible mode, MKLDNN fallback ops do not have C shim implementations and thus need to go through the custom ops launch path. Other MLKDNN ops will be fixed in following PRs. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames chauhang [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.
Thanks for the PR. The changes of Mkldnn_ir
part looks good me. @chunyuan-w will take a look for the changes of cpp_wrapper
.
Summary: Partially fix #123040. In the ABI-compatible mode, MKLDNN fallback ops do not have C shim implementations and thus need to go through the custom ops launch path. Other MLKDNN ops will be fixed in following PRs. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames chauhang [ghstack-poisoned]
Just to confirm, do we need to add C shim implementations for MKLDNN OPs as well in the future? |
You can do that in the future to further improve the performance. My current plan is to clear the remaining ABI-compatible test issues and make ABI-compatible default afterwards. |
This case might work as well with the fix in this PR: pytorch/test/inductor/test_aot_inductor.py Lines 3462 to 3464 in d01a7a9
|
Summary: Similar to #134475, support linear and qlinear in the ABI-compatible mode for cpp-wrapper Inductor. [ghstack-poisoned]
Summary: Similar to #134475, support linear and qlinear in the ABI-compatible mode for cpp-wrapper Inductor. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames chauhang [ghstack-poisoned]
Summary: Similar to #134475, support qconv in the ABI-compatible mode for cpp-wrapper Inductor. [ghstack-poisoned]
Summary: Similar to #134475, support mkl linear in the ABI-compatible mode for cpp-wrapper Inductor. [ghstack-poisoned]
Summary: Similar to #134475, support qlinear in the ABI-compatible mode for cpp-wrapper Inductor. Pull Request resolved: #134783 Approved by: https://github.com/leslie-fang-intel, https://github.com/chunyuan-w, https://github.com/angelayi ghstack dependencies: #134475
Summary: Similar to #134475, support qconv in the ABI-compatible mode for cpp-wrapper Inductor. Pull Request resolved: #134795 Approved by: https://github.com/leslie-fang-intel, https://github.com/chunyuan-w, https://github.com/angelayi ghstack dependencies: #134475, #134783
Summary: Similar to pytorch/pytorch#134475, support qconv in the ABI-compatible mode for cpp-wrapper Inductor. ghstack-source-id: 6121d59 Pull Request resolved: pytorch/pytorch#134795
Summary: Partially fix pytorch#123040. In the ABI-compatible mode, MKLDNN fallback ops do not have C shim implementations and thus need to go through the custom ops launch path. Other MLKDNN ops will be fixed in following PRs. Pull Request resolved: pytorch#134475 Approved by: https://github.com/leslie-fang-intel, https://github.com/chunyuan-w, https://github.com/angelayi
Summary: Similar to pytorch#134475, support qlinear in the ABI-compatible mode for cpp-wrapper Inductor. Pull Request resolved: pytorch#134783 Approved by: https://github.com/leslie-fang-intel, https://github.com/chunyuan-w, https://github.com/angelayi ghstack dependencies: pytorch#134475
Summary: Similar to pytorch#134475, support qconv in the ABI-compatible mode for cpp-wrapper Inductor. Pull Request resolved: pytorch#134795 Approved by: https://github.com/leslie-fang-intel, https://github.com/chunyuan-w, https://github.com/angelayi ghstack dependencies: pytorch#134475, pytorch#134783
Summary: Similar to #134475, support mkl linear in the ABI-compatible mode for cpp-wrapper Inductor. [ghstack-poisoned]
Summary: Similar to #134475, support mkl linear in the ABI-compatible mode for cpp-wrapper Inductor. [ghstack-poisoned]
Summary: Similar to #134475, support mkl linear in the ABI-compatible mode for cpp-wrapper Inductor. [ghstack-poisoned]
Summary: Similar to #134475, support mkl linear in the ABI-compatible mode for cpp-wrapper Inductor. [ghstack-poisoned]
Summary: Similar to #134475, support mkl linear in the ABI-compatible mode for cpp-wrapper Inductor. [ghstack-poisoned]
Summary: Similar to #134475, support mkl linear in the ABI-compatible mode for cpp-wrapper Inductor. [ghstack-poisoned]
Summary: Similar to #134475, support mkl linear in the ABI-compatible mode for cpp-wrapper Inductor. Differential Revision: [D63322202](https://our.internmc.facebook.com/intern/diff/D63322202) Pull Request resolved: #134974 Approved by: https://github.com/chenyang78, https://github.com/leslie-fang-intel Co-authored-by: leslie-fang-intel <leslie.fang@intel.com>
Summary: Similar to pytorch#134475, support mkl linear in the ABI-compatible mode for cpp-wrapper Inductor. Differential Revision: [D63322202](https://our.internmc.facebook.com/intern/diff/D63322202) Pull Request resolved: pytorch#134974 Approved by: https://github.com/chenyang78, https://github.com/leslie-fang-intel Co-authored-by: leslie-fang-intel <leslie.fang@intel.com>
Summary: Similar to pytorch/pytorch#134475, support mkl linear in the ABI-compatible mode for cpp-wrapper Inductor. ghstack-source-id: 277ea5e Pull Request resolved: pytorch/pytorch#134974
Stack from ghstack (oldest at bottom):
Summary: Partially fix #123040. In the ABI-compatible mode, MKLDNN fallback ops do not have C shim implementations and thus need to go through the custom ops launch path. Other MLKDNN ops will be fixed in following PRs.
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @ColinPeppler @amjames @chauhang