feat(hipblaslt): W4A16 gfx1150 prefill kernels selected by Origami #16276
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.55) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.55 · 633 lines diff across 7 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.386
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #16276"
general
weight: 0.35
yzhang93
ISSUE ID #16221
Motivation
hipBLASLt has no W4A16 kernels for gfx1150 (Strix Point), and Origami's W4A16 model and Stream-K grid rule only apply to gfx1151. This PR brings the gfx1151 W4A16 prefill set of #16229 to gfx1150.
Depends on #16229; based on its branch. One commit.
Technical Details
CUOccupancythe gfx11 rule gives for its kernel on gfx1150, which is lower than on gfx1151 (a third less VGPR file).is_w4a16(problem, hardware)now holds on gfx1150 too, with the same constants. The two architectures run the same kernels on the same ISA, so no constant of the W4A16 model is per architecture. What differs comes fromhardware_t(16 CUs, and no MALL, so tiles are not shared over the workgroups) and from each kernel'sCUOccupancy.SK_FIXUP_CYCLES_PER_ELEMis the one shared constant that depends on the memory system (it prices reading the Stream-K partials, which gfx1151 holds in its MALL). It was fitted on gfx1151. gfx1150 takes the same value because its picks do not depend on it: sweeping it from 0 to twice its value changes no pick on 632 measured problems. The comment on the constant says so.mem30.0300383) came with #15687, already on develop. An earlier version of this PR carried them in a commit of its own.heuristics.cppis unchanged.hipblaslt.h: the padding and 8 MiB workspace note of the W4A16 scale modes covers gfx1150 too.Test Plan
hipblaslt-bench -vof hipBLASLt's own pick on gfx1150. The client tests run on gfx1150 from #16341 on.test_custom_kernel_occupancy.pychecks gfx1150 as it does gfx1151).Test Result
test_gemm87,test_streamk19,test_origami39); TensileLite custom-kernel tests 1871 pass, 3 skipped.| | problems | geomean | weighted by profile time |
|---|---|---|---|
| all | 180 | 1.72x | 1.85x |
| bf16 symmetric | 33 | 2.05x | 2.12x |
| bf16 zero-point | 11 | 2.25x | 2.20x |
| fp16 symmetric | 18 | 1.60x | 1.58x |
| fp16 zero-point | 118 | 1.61x | 1.77x |
| M ≤ 128 | 44 | 2.03x | 2.50x |
| M 129-800 | 90 | 1.60x | 1.73x |
| M ≥ 801 | 46 | 1.68x | 1.54x |
The lowest is 1.10x (89×3584×3584 fp16 symmetric).
- Common constants instead of per-architecture ones: 0.995x the time on the kernels timed one by one (95% CI 0.991-0.998, 632 problems) and 1.000x end to end (1,012 cases).
-
CUOccupancyread per CU (#16229): 0.992x on the prefill calibration shapes (95% CI 0.988-0.996, 632 cases) and 0.995x on the vLLM prefill problems. Of the 13 vLLM problems whose kernel changes, 5 are more than 5% faster and 5 more than 5% slower; the slowest are 89×3584×18944 (+18%) and 89×3584×3584 (+15%), both still ahead of vLLM.- One builder of the Origami config for ranking and launch (#16229): no pick changes on 1,012 cases, 1.000x.
Submission Checklist
Risk level
Low. The kernels and the W4A16 model only affect W4A16 on gfx1150; gfx1151's picks do not change.
🤖 Generated with Claude Code