Archived
The sampler's candidate plane is kSampleCandidates (1024) wide and at top_k 20 about 20 entries are live, but the coupled verify ran its eligibility scan (global memory, one entry at a time) and its sums and walks on one thread over all 1024: 92-151 us a launch at any row count, on the critical path of every coupled step. The workgroup now checks validity and takes the maximum in parallel (order-free, exact), compacts the live indices in ascending order into LDS, and the serial sums and walks run over that list in the host reference's order, so the token is the same bit for bit. vtime (n_cand 1024, 20 live, every row bound): 151.7 / 92.8 / 100.5 -> 31.3 / 32.2 / 35.9 us at 4 / 16 / 64 rows; device == host on every row. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>