Repository navigation
[FlyDSL] [gfx1250] Radix top-k: 512-thread blocks for long decode rows, index-sort output for streaming rows - #7662
Conversation
…rt for streaming rows On gfx1250 a 1024-thread block occupies a whole CU, so long decode rows past 256 rows ran in several rounds. Such rows (width above the cached capacity, more than 256 rows, decode) now take 512-thread blocks with half the LDS budget, two resident per CU; the stable index sort is allowed for them. gfx1250 streaming rows always take the index-sort output instead of the ordered re-scan, and its long-row first-level histogram uses two copies. Only scheduling choices change: the selection and its ascending-column output order are the same, and other arches and prefill are untouched. Co-Authored-By: Claude Opus 5.5 <[email protected]>
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: Reviews: |
WAITING ON AUTHORPR Self-ReviewRevision Waiting for the PR author. The readiness report will appear after the self-review answers are complete for this revision. Questions to answer in the PR description
Edit the Missing or invalid answers
Shadow mode reports what would block but keeps the status successful. Set |
…erge-1111 # Conflicts: # aiter/ops/flydsl/kernels/topk/radix_topk_one_block.py Both sides added independent code: main's 512-thread half-LDS block and index-sort-for-all-streaming-rows (#7662), and this branch's bounded path. The bounded path stays gated to 1024-thread blocks, so the 512-thread blocks #7662 now builds for long decode rows take the streaming path.
Summary
Scheduling changes for the FlyDSL one-block radix top-k on gfx1250 decode. The selection and its output (ascending columns, ties to the lower column) are unchanged.
Motivation
On gfx1250 a 1024-thread block occupies a whole CU, so with more than 256 long decode rows the one-block kernel runs in several rounds and its time steps up with
ceil(rows / 256). Separately, stable streaming rows between the cached capacity and the index-sort crossover take the ordered re-scan output, which is slower there than gathering the row and index-sorting it.Changes
topk_per_row.py: gfx1250 decode with long rows (wider than the cached capacity) and more than 256 rows uses 512-thread blocks, two resident per CU. Up to 256 rows, short rows and prefill keep their current block sizes.radix_topk_one_block.py(gfx1250 only):Validation
🤖 Generated with Claude Code