- Notifications
You must be signed in to change notification settings - Fork25.8k
Commit6ddf5cf
[AOTI] Update cpp wrapper codegen to use v2 C shim (#120714)
Summary: To use the torchgen-ed v2 C shim interface, cpp wrapper codegen needs to update its rule for generating the right parameter and function call. Because changing the emitted code will cause a FC breakage, we add a flag to control the behavior.Differential Revision: [D54258086](https://our.internmc.facebook.com/intern/diff/D54258086)Pull Requestresolved:#120714Approved by:https://github.com/chenyang78ghstack dependencies:#1205131 parentbd19d6d commit6ddf5cf
File tree
4 files changed
+45
-8
lines changed- torch/_inductor
- codegen
4 files changed
+45
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | | - | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
152 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
153 | 159 | | |
154 | 160 | | |
155 | 161 | | |
| |||
924 | 930 | | |
925 | 931 | | |
926 | 932 | | |
927 | | - | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
928 | 938 | | |
929 | 939 | | |
930 | 940 | | |
| |||
1676 | 1686 | | |
1677 | 1687 | | |
1678 | 1688 | | |
1679 | | - | |
| 1689 | + | |
1680 | 1690 | | |
1681 | 1691 | | |
1682 | 1692 | | |
1683 | | - | |
1684 | | - | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
1685 | 1707 | | |
1686 | 1708 | | |
1687 | 1709 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4855 | 4855 | | |
4856 | 4856 | | |
4857 | 4857 | | |
4858 | | - | |
| 4858 | + | |
| 4859 | + | |
| 4860 | + | |
| 4861 | + | |
4859 | 4862 | | |
4860 | 4863 | | |
4861 | 4864 | | |
| |||
4908 | 4911 | | |
4909 | 4912 | | |
4910 | 4913 | | |
| 4914 | + | |
4911 | 4915 | | |
4912 | 4916 | | |
4913 | 4917 | | |
| |||
5065 | 5069 | | |
5066 | 5070 | | |
5067 | 5071 | | |
5068 | | - | |
| 5072 | + | |
| 5073 | + | |
| 5074 | + | |
| 5075 | + | |
| 5076 | + | |
| 5077 | + | |
| 5078 | + | |
5069 | 5079 | | |
5070 | 5080 | | |
5071 | 5081 | | |
| |||
0 commit comments
Comments
(0)