move all external kernels into a class for better compiler error messages#59839
move all external kernels into a class for better compiler error messages#59839bdhirsh wants to merge 17 commits intogh/bdhirsh/124/basefrom
Conversation
…ages [ghstack-poisoned]
💊 CI failures summary and remediationsAs of commit 47c1960 (more details on the Dr. CI page and at hud.pytorch.org/pr/59839):
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
|
@bdhirsh has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
… error messages" Differential Revision: [D29047680](https://our.internmc.facebook.com/intern/diff/D29047680) [ghstack-poisoned]
|
@bdhirsh has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
… error messages" Differential Revision: [D29047680](https://our.internmc.facebook.com/intern/diff/D29047680) [ghstack-poisoned]
…ages Pull Request resolved: #59839 Differential Revision: [D29047615](https://our.internmc.facebook.com/intern/diff/D29047615/) ghstack-source-id: 131148089
… error messages" Differential Revision: [D29047680](https://our.internmc.facebook.com/intern/diff/D29047680) [ghstack-poisoned]
|
@bdhirsh has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
… error messages" Differential Revision: [D29047680](https://our.internmc.facebook.com/intern/diff/D29047680) [ghstack-poisoned]
|
@bdhirsh has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
… error messages" Differential Revision: [D29047680](https://our.internmc.facebook.com/intern/diff/D29047680) [ghstack-poisoned]
|
@bdhirsh has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
… error messages" Differential Revision: [D29047680](https://our.internmc.facebook.com/intern/diff/D29047680) [ghstack-poisoned]
|
@bdhirsh has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
… error messages" Differential Revision: [D29047680](https://our.internmc.facebook.com/intern/diff/D29047680) [ghstack-poisoned]
|
@bdhirsh has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
… error messages" Differential Revision: [D29047680](https://our.internmc.facebook.com/intern/diff/D29047680) [ghstack-poisoned]
… error messages" Differential Revision: [D29047680](https://our.internmc.facebook.com/intern/diff/D29047680) [ghstack-poisoned]
…ages Pull Request resolved: #59839 Differential Revision: [D29047680](https://our.internmc.facebook.com/intern/diff/D29047680/) ghstack-source-id: 131502432
… error messages" Differential Revision: [D29047680](https://our.internmc.facebook.com/intern/diff/D29047680) [ghstack-poisoned]
… error messages" Differential Revision: [D29047680](https://our.internmc.facebook.com/intern/diff/D29047680) [ghstack-poisoned]
…ages Pull Request resolved: #59839 Differential Revision: [D29047680](https://our.internmc.facebook.com/intern/diff/D29047680/) ghstack-source-id: 131628623
… error messages" Differential Revision: [D29047680](https://our.internmc.facebook.com/intern/diff/D29047680) [ghstack-poisoned]
…ages Pull Request resolved: #59839 Differential Revision: [D29047680](https://our.internmc.facebook.com/intern/diff/D29047680/) ghstack-source-id: 131703206
… error messages" Differential Revision: [D29047680](https://our.internmc.facebook.com/intern/diff/D29047680) [ghstack-poisoned]
… error messages" Differential Revision: [D29047680](https://our.internmc.facebook.com/intern/diff/D29047680) [ghstack-poisoned]
|
@bdhirsh has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
… error messages" Differential Revision: [D29047680](https://our.internmc.facebook.com/intern/diff/D29047680) [ghstack-poisoned]
|
@bdhirsh has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
… error messages" Turns external backend kernels into class methods, so they get helpful compiler errors instead of linker errors whenever they're a schema mismatch. I took a stab at trying to do the same for in-tree kernels, but gave up after a while. It would probably make sense to come back to it with @wenleix 's nice set of regex calls, to automatically pick up all of the native kernels in the `aten/src/ATen/native` folder. Corresponding xla PR: pytorch/xla#3012 Differential Revision: [D29047680](https://our.internmc.facebook.com/intern/diff/D29047680) [ghstack-poisoned]
|
@bdhirsh has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Turns external backend kernels into class methods, so they get helpful compiler errors instead of linker errors whenever they're a schema mismatch.
I took a stab at trying to do the same for in-tree kernels, but gave up after a while. It would probably make sense to come back to it with @wenleix 's nice set of regex calls, to automatically pick up all of the native kernels in the
aten/src/ATen/nativefolder.Corresponding xla PR: pytorch/xla#3012
Stack from ghstack:
Differential Revision: D29047680