Commit 16f8822
authored
[Transform][Relax] Handle
* [Transform][Relax] Handle `is_group` argument in IPC AllReduce
The `relax.transform.IPCAllReduceRewrite` pass rewrites calls to
`"runtime.disco.allreduce"` to instead call an optimized
`"runtime.disco.cuda_ipc.custom_allreduce"` version. When the
legalization of `R.ccl.allreduce` was updated in
#17180 to provide an `in_group`
argument, the `IPCAllReduceRewrite` pass was not updated.
This commit updates the `IPCAllReduceRewrite` to be handle the
additional `in_group` argument.
* lint fix
* lint fixis_group argument in IPC AllReduce (#17201)1 parent 9e88018 commit 16f8822
File tree
2 files changed
+17
-9
lines changed- python/tvm/relax/transform
- tests/python/relax
2 files changed
+17
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
| 100 | + | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
116 | 117 | | |
117 | 118 | | |
118 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
119 | 123 | | |
120 | 124 | | |
121 | 125 | | |
| |||
Lines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
88 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
89 | 93 | | |
90 | 94 | | |
91 | 95 | | |
| |||
137 | 141 | | |
138 | 142 | | |
139 | 143 | | |
140 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
141 | 147 | | |
142 | 148 | | |
143 | 149 | | |
| |||
146 | 152 | | |
147 | 153 | | |
148 | 154 | | |
149 | | - | |
150 | | - | |
151 | | - | |
| 155 | + | |
0 commit comments