mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3163] [CLOSED] [Engine] hip: STRATA_SELECT_SPLIT2=1 - the selection scorer's hi/mid bf16 pieces (3 wmma instead of 6) #4485
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4485
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/3163
Author: @vlupilin
Created: 10/19/2026
Status: ❌ Closed
Base:
main← Head:pr-split2📝 Commits (1)
420ef3ahip: STRATA_SELECT_SPLIT2=1 - the selection scorer's hi/mid bf16 pieces (3 wmma instead of 6)📊 Changes
1 file changed (+35 additions, -14 deletions)
View changed files
📝
src/kernels/cuda/qsa_select.cu(+35 -14)📄 Description
Problem and result
The QSA selection scorer on gfx11/gfx12 (the WMMA path,
STRATA_SELECT_WMMA=1) computes 6 wmma products per block. WithSTRATA_SELECT_SPLIT2=1the three products that carry the lo piece are dropped (3 wmma instead of 6): the scorer runs 1.5-2.2x faster, rounding-level accuracy change (~1.5e-5, the class upstream accepts at 254/256).Companion to the accepted wide top-k (#1749).
Approach
Template parameter
bool S2onblock_scores_wmma_kernel; opt-in env. Default off: the 6-product kernel bits are unchanged. One file:src/kernels/cuda/qsa_select.cu(+35/-14).Validation
Passed:
Kernel benchmark (both arms same session, 5 reps, v0.2.0-beta @
4caf857c, gfx1151 Radeon 8060S Strix Halo, ROCm 10.1, Linux 7.0.0-38-generic):Selections identical: 256/256 at 32K, 253/256 at 262K (cells 0.0013%).
Engine (interleaved 2 rounds, same session, split2 measured alone):
Failed: none.
Not run: CUDA (kernel is HIP-only,
#if defined(__HIPCC__)); gfx12 (maintainer R9700 can verify); long-prompt quality battery (selections gate suffices).Limits
HIP only; requires
STRATA_SELECT_WMMA=1; accuracy 253/256 (upstream gate class 254/256).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.