Skip to content

Conversation

desertfire
Copy link
Contributor

@desertfire desertfire commented Aug 26, 2024

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]
Copy link

pytorch-bot bot commented Aug 26, 2024

🔗 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 Failures

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

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

desertfire added a commit that referenced this pull request Aug 26, 2024
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-source-id: b61bd38
Pull Request resolved: #134475
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]
desertfire added a commit that referenced this pull request Aug 27, 2024
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-source-id: 24578c1
Pull Request resolved: #134475
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]
Copy link
Collaborator

@leslie-fang-intel leslie-fang-intel left a 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]
desertfire added a commit that referenced this pull request Aug 29, 2024
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-source-id: 0bf4b6d
Pull Request resolved: #134475
@chunyuan-w
Copy link
Collaborator

Just to confirm, do we need to add C shim implementations for MKLDNN OPs as well in the future?

@desertfire
Copy link
Contributor Author

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.

@chunyuan-w
Copy link
Collaborator

This case might work as well with the fix in this PR:

# TODO: test_conv_freezing_abi_compatible_cpu fails,
# AssertionError: None, i.e. optional output is not supported
"test_conv_freezing": fail_with_and_without_stack_allocation(is_skip=True),

desertfire added a commit that referenced this pull request Aug 29, 2024
Summary: Similar to #134475, support linear and qlinear in the ABI-compatible mode for cpp-wrapper Inductor.

[ghstack-poisoned]
desertfire added a commit that referenced this pull request Aug 29, 2024
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]
desertfire added a commit that referenced this pull request Aug 29, 2024
Summary: Similar to #134475, support qlinear in the ABI-compatible mode for cpp-wrapper Inductor.

ghstack-source-id: e41145c
Pull Request resolved: #134783
desertfire added a commit that referenced this pull request Aug 29, 2024
Summary: Similar to #134475, support qconv in the ABI-compatible mode for cpp-wrapper Inductor.

[ghstack-poisoned]
desertfire added a commit that referenced this pull request Aug 29, 2024
Summary: Similar to #134475, support qconv in the ABI-compatible mode for cpp-wrapper Inductor.

ghstack-source-id: eada10b
Pull Request resolved: #134795
@desertfire desertfire added the topic: not user facing topic category label Aug 29, 2024
desertfire added a commit that referenced this pull request Sep 3, 2024
Summary: Similar to #134475, support mkl linear in the ABI-compatible mode for cpp-wrapper Inductor.

[ghstack-poisoned]
[ghstack-poisoned]
desertfire added a commit that referenced this pull request Sep 5, 2024
Summary: Similar to #134475, support mkl linear in the ABI-compatible mode for cpp-wrapper Inductor.

ghstack-source-id: 06a726c
Pull Request resolved: #134974
pytorchmergebot pushed a commit that referenced this pull request Sep 6, 2024
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
CaoE pushed a commit that referenced this pull request Sep 6, 2024
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
desertfire added a commit that referenced this pull request Sep 9, 2024
Summary: Similar to #134475, support mkl linear in the ABI-compatible mode for cpp-wrapper Inductor.

ghstack-source-id: 8feb940
Pull Request resolved: #134974
enter-ctrl9 pushed a commit to enter-ctrl9/pytorch11 that referenced this pull request Sep 15, 2024
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
Chao1Han pushed a commit to Chao1Han/pytorch that referenced this pull request Sep 20, 2024
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
Chao1Han pushed a commit to Chao1Han/pytorch that referenced this pull request Sep 20, 2024
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
Chao1Han pushed a commit to Chao1Han/pytorch that referenced this pull request Sep 20, 2024
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
desertfire added a commit that referenced this pull request Sep 23, 2024
Summary: Similar to #134475, support mkl linear in the ABI-compatible mode for cpp-wrapper Inductor.

[ghstack-poisoned]
desertfire added a commit that referenced this pull request Sep 23, 2024
Summary: Similar to #134475, support mkl linear in the ABI-compatible mode for cpp-wrapper Inductor.

[ghstack-poisoned]
desertfire added a commit that referenced this pull request Sep 23, 2024
Summary: Similar to #134475, support mkl linear in the ABI-compatible mode for cpp-wrapper Inductor.

[ghstack-poisoned]
desertfire added a commit that referenced this pull request Sep 23, 2024
Summary: Similar to #134475, support mkl linear in the ABI-compatible mode for cpp-wrapper Inductor.

[ghstack-poisoned]
desertfire added a commit that referenced this pull request Sep 23, 2024
Summary: Similar to #134475, support mkl linear in the ABI-compatible mode for cpp-wrapper Inductor.

ghstack-source-id: 1e8479b
Pull Request resolved: #134974
desertfire added a commit that referenced this pull request Sep 23, 2024
Summary: Similar to #134475, support mkl linear in the ABI-compatible mode for cpp-wrapper Inductor.

[ghstack-poisoned]
desertfire added a commit that referenced this pull request Sep 23, 2024
Summary: Similar to #134475, support mkl linear in the ABI-compatible mode for cpp-wrapper Inductor.

[ghstack-poisoned]
leslie-fang-intel pushed a commit that referenced this pull request Sep 24, 2024
Summary: Similar to #134475, support mkl linear in the ABI-compatible mode for cpp-wrapper Inductor.

ghstack-source-id: 277ea5e
Pull Request resolved: #134974
pytorchmergebot pushed a commit that referenced this pull request Sep 25, 2024
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>
BoyuanFeng pushed a commit to BoyuanFeng/pytorch that referenced this pull request Sep 25, 2024
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>
injiiiiil pushed a commit to injiiiiil/654 that referenced this pull request Oct 1, 2024
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
@github-actions github-actions bot deleted the gh/desertfire/451/head branch October 6, 2024 02:10
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.

5 participants