You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 197eda0
Browse filesBrowse the repository at this point in the historyBrowse files
Port gfx950 dispatch B2: batch_coresident_cap (grid=1 fold)
Cap the launch grid width so blocks_per_row*num_rows stays within one
co-resident wave (envelope = CU*occ), so the persistent barrier does not
serialize rows into sequential waves. When even a width-2 grid overflows
(budget<2), collapse to grid=(1, num_rows): every row runs the
barrier-free single-workgroup short tier (needs the B0 bpr==1 kernel
path). Also fold the all-short case (max_model_len<=short_max) to grid=1.
- Add _CDNA_OCCUPANCY / _COCAP_OCC2_MAX_ROWS (occ=2 up to 32 rows, else 1).
- Make tiered_mid_max a local so the fold can raise it with short_max
(kernel requires mid_max >= short_max when force_single_wg lifts
short_max to L).
- gfx950 only (env FLYDSL_TOPK_TIERED_BATCH_CAP / _OCC override);
gfx942 frozen.
Verified: correctness lossless (rows{64,128,256} x L{8k,65k,120k} x
{random,ties} all PASS); perf rows=256 L=120000 364.11->101.52us (-72%),
rows=128 L=65536 117.56->78.56us (-33%); folded config builds; gfx942
frozen (arch-patch check).
Co-authored-by: Cursor <[email protected]>
0 commit comments