Repository navigation
Commit a87146d
Port gfx950 kernel B1: row_proportional_parts
Cap each row's cooperating workgroups by its actual coverage need
(ceil(row_len / items_per_block), floored at 2) in the mid/long tiers,
undoing the pow2 round-up of blocks_per_row for rows whose coverage is
not a power of two. Only reduces active parts (a min), so results are
identical.
Kernel: add row_proportional_parts param + _rpp name tag + the row_cover
cap after mid/long_parts. Dispatch: emit row_proportional_parts in the
config (gfx950 default on, env FLYDSL_TOPK_TIERED_RPP override, gfx942
frozen), passed through the existing **kernel_config spread.
Verified: correctness lossless (random/ties/10LSBits x rows{8,32} x
L{49k,120k,256k} all PASS); perf rows=1 L=49152 22.44->22.20us (-1.1%,
parts 16->12), L=98304 28.64->27.84us (-2.8%, 32->24); null cell
unchanged. blocks_per_row unchanged; gfx942 frozen.
Co-authored-by: Cursor <[email protected]>1 parent 2fc5ddc commit a87146d
2 files changed
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
| |||
218 | 219 | | |
219 | 220 | | |
220 | 221 | | |
| 222 | + | |
221 | 223 | | |
222 | 224 | | |
223 | 225 | | |
| |||
308 | 310 | | |
309 | 311 | | |
310 | 312 | | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
311 | 335 | | |
312 | 336 | | |
313 | 337 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
170 | 176 | | |
171 | 177 | | |
172 | 178 | | |
| |||
177 | 183 | | |
178 | 184 | | |
179 | 185 | | |
| 186 | + | |
180 | 187 | | |
181 | 188 | | |
182 | 189 | | |
| |||
0 commit comments