feat(hipblaslt): epilogue, scales, aux, amaxD and MX in PartitionedGemm #17079
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.47) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.47 · 480 lines diff across 6 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.369
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #17079"
general
weight: 0.35
yzhang93
Motivation
hipblaslt_experimental::PartitionedGemmruns a plain GEMM only:setProblemrefuses bias, scale, aux and amaxD pointers, always uses an empty epilogue, and refuses MX and sub-byte types. The ordinaryhipblaslt_ext::Gemmsupports all of these, so a framework cannot yet run its real layers as a split GEMM.JIRA ID : AIHPBLAS-6003
Technical Details
A
PartitionedGemmis still N ordinaryGemmobjects, one per partition. This change passes the rest of the problem through and gives each partition its slice of every extra input.setProblemoverload that takes ahipblaslt_ext::GemmEpilogue. The existing overload is unchanged in signature and forwards with a default epilogue. The feature revision stays 1 (check_experimental_api.py: added method).scaleAlphaVec, vectorscaleA/scaleB: offset by the slice when the split cuts the dimension they run along, passed whole otherwise. Scalar scales pass through.HIPBLAS_STATUS_INVALID_VALUE.BGRADB); any other split would leave each partition a partial sum.batch_count1, because otherwise the slice's strides differ from the whole tensor's.NOT_SUPPORTED: scale-aux (as inGemm),BLK32_UE8M0_128_4cut along its rows, the gfx950 32x8 layout, int4 group scales, device user arguments.hipblaslt-bench --partitionsruns these cases and gathers D, aux, bias gradient and amaxD before the existing check. Header doc,experimental-api.rstand CHANGELOG updated, including what each partition reads so a caller can give it a local copy of just that range.Test Plan
hipblaslt-test --gtest_filter='pre_checkin_partitioned_gemm_ext.:pre_checkin_partitioned_gemm_contract.'hipblaslt-test --gtest_filter='partitioned_gemm_ext_epilogue_multi_gpu'(new: each input for M, N and Batch splits against the unsplitGemm)hipblaslt-test --gtest_filter='partitioned_gemm_ext*'hipblaslt-bench -f matmul -r f16_r -m 1024 -n 1024 -k 1024 --transA T --transB N --partitions 2 --split_dim M -v, plain and with--bias_vector --activation_type reluTest Result
One gfx1250 GPU in SPX mode (both partitions on one device), device library built from the gfx1250 fp16 and MX logic only:
NotSupportedOffGfx1250, expected on gfx1250).BGRADB, alpha vector (M, N, Batch), MXFP8 (M, N, Batch; shared and per-partition scales), MXFP4.Not yet run:
Submission Checklist