feat(hipblaslt): run PartitionedGemm and --split-devices tests on two gfx950 GPUs #16725
All Vouch review confidence checks passed
Residual risk 0.28 = Change Risk (0.52) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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.388
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #16725"
general
weight: 0.35
yzhang93
JIRA ID : AIHPBLAS-5661
Motivation
A split GEMM divides one matrix multiplication into slices that run at the same time on two HIP devices: the two partitions of a GPU in DPX mode, or two separate GPUs. hipBLASLt offers it through the experimental
PartitionedGemmclass, and its kernel generator, TensileLite, benchmarks it withtensilelite-client --split-devices. No automated check ran either on two devices: the TensileLite split configs need a gfx1250 in DPX mode, which no CI runner has, andPartitionedGemmrefused every architecture except gfx1250, so on a two-GPU gfx950 machine 26 of its 27 tests skip.This PR runs both on the two-GPU gfx950 node of Math CI, AMD's internal Jenkins CI that posts the
mci/...checks. Getting the split runs to pass there took two fixes to the TensileLite client.Related: #15976 added
PartitionedGemm, and #16403 moved it into the experimental tier at revision 1. #16104 and #16186 added the 256-byte slice alignment and the shared placements that the new configs exercise; AIHPBLAS-5661 lists the follow-ups from #16186's review. #16404 added the client join that the first fix replaces. AIHPBLAS-5609 has the gfx1250 measurements of the free-run write, and AIHPBLAS-5704 tracks the experimental tier.Technical Details
TensileLite client (
tensilelite/client/main.cpp; the benchmark tool only, not the library)hipStreamBatchMemOpper stream, a beta API that ROCm 7.2.4 rejects withhipErrorInvalidValue, so every joined run failed at its first launch. Each stream now writes its own counter withhipStreamWriteValue64and waits on the other's withhipStreamWaitValue64, ashipblaslt-bench --partitionsdoes.hipMemseton its owning device, but nothing ordered the other device's writes after that; in 2 of 120 free-run runs ondevelopthe second slice read back as zeros. The owning device is now synchronized after the clear.--split-free-run, which skips the join, no longer adds a stream write after each launch, so its times no longer include one. AIHPBLAS-5661 asked for this if no test needs the write. None does: nothing reads another device's D between free-run launches, and validation reads each slice only after a blocking copy on the device that wrote it.TensileLite tests (
Tests/common/comm/gfx950/)Five configs split a BF16 GEMM over two gfx950 GPUs: M split with B shared, N split with A shared, M and N split with D shared, and M split with D shared under
--split-free-run. A sixth splits an MXFP4 GEMM (4-bit floats with per-block scales) along M with B and its scales shared; it turns offMXDataGenerator, which would give both devices the same data and hide a broken redirect. Odd sizes check the slice alignment: the share of M = 51301 is rounded to a 256-byte boundary, and the shares of M = 1001 and N = 301 are not.--output-peerDis left out because gfx950 has no kernels for it; TensileLite's Known Risks table now says that its only config, underdpx/gfx1250, runs in no CI lane. The configs validate after timed launches, so each is added to theSyncsPerBenchmarkopt-out list intest_common_yaml_syncs_per_benchmark.py.PartitionedGemmon gfx950: PARTITIONED_GEMM revision 2setProblemaccepts gfx950 as well as gfx1250. The declarations are unchanged, but the contract tests changed (under the experimental-API policy, any change to them raises the revision), so the revision goes from 1 to 2 and code that checks for 1 must check for 2. Without a DPX GPU, thepartitioned_gemm_ext__multi_gputests use two GPUs with peer access (devicePair()), and two tests that assumed devices 0 and 1 now use the pair's devices.StorePeerDRefusesKernelsWithoutThePeerStore, checks that astorePeerDproblem never runs a kernel without the second store, which would leave the peer D unwritten: the heuristic leaves it out, andisAlgoSupportedandinitializerefuse it.hipStreamBatchMemOpis refused. Stream capture does not record those on ROCm 7.2, so the fallback fails instead of capturing a graph without its join.TESTING.mdfiles describe gfx950 support.Each commit covers one topic: client fixes, free-run write, configs,
SyncsPerBenchmarkopt-outs,PartitionedGemmon gfx950, thestorePeerDcontract test, the sample's capture check, CHANGELOG.Test Plan
On two of a node's eight gfx950 GPUs (
HIP_VISIBLE_DEVICES=0,1), ROCm 7.2.4. The hipBLASLt device library was built from fp16 TN and NN logic (-f '_Bljk_HHS_BH'), once without--gemm-a2a-fusionand once with it, as AIHPBLAS-5661 says the two-GPU node builds.tox -e commintensilelite/(the two-GPU node's command) andtox -e unit.develop's client and this branch's.hipblaslt-test --gtest_filter='partitioned_gemm:ExperimentalApi'on two GPUs and on one, fordevelopand this branch, with and without--gemm-a2a-fusion.PartitionedGemm::run();setPeerDremoved fromPartitionedGemm::setProblem(); the MXFP4 reference without its redirect of the shared scales; the per-solution listeners in reverse order.sample_hipblaslt_gemm_partitioned_ext(2,2 shared,1) andhipblaslt-bench --partitions 2 --verify_strict(7 runs), on both builds;check_experimental_api.py --base origin/develop;pytest tools/scripts/tests.Test Result
tox -e comm: 8 passed (the 6 new configs and the 2 fused all-to-all configs at world size 2), 4 skipped (world sizes 4 and 8).develop's client fails the 5 joined configs: all 40 launches returnhipErrorInvalidValue.tox -e unit: 19,350 passed. 4 failed, all intest_client_identity_build.py, because the test machine has noninja; Math CI'spreliminaryran them and they passed.develop118 passed, this branch 120. Without the free-run write: 120 of 120.hipblaslt-test, two GPUs: 30 passed, 1 skipped (NotSupportedOnOtherArchitectures, which runs only on other architectures); ondevelop, 4 passed and 26 skipped. One GPU: 25 passed, 6 skipped.--gemm-a2a-fusiongives the same counts.setPeerDremoved, the new contract test fails all three of its checks.tools/scripts/tests: 92 passed.preliminary, two-GPU node: the 6 split configs passed, none skipped. With the 2 fused all-to-all configs, 8 passed and 4 skipped (world sizes 4 and 8). Run on46a8c94bea5.precheckin, two-GPU node: the 12partitioned_gemm_ext_*_multi_gputests passed, none skipped; the stage's 12 skips are fused all-to-all tests for 3 to 8 GPUs. Run on46a8c94bea5.Nothing ran on gfx1250, which has no hardware here; apart from the revision number,
PartitionedGemmon gfx1250 is unchanged. On gfx950 the contract tests ran in TheRock's gfx950-dcgpu job: 12 passed, andNotSupportedOnOtherArchitecturesskipped. On every other architecture onlyNotSupportedOnOtherArchitecturesruns.CI labels: none chosen. The labeler adds
ci:hipsparselt-fastto every TensileLite change; hipSPARSELt cannot reach this diff.ci:no-downstream-testdoes not apply because library code changes, andci:run-multi-gpuadds no hipBLASLt job.Submission Checklist
Risk level
Medium (3/5). Library behavior changes only for
PartitionedGemmon gfx950, which now runs instead of returningHIPBLAS_STATUS_NOT_SUPPORTED; gfx1250 and the stable API are unchanged. Callers see the revision bump: a program written for revision 1 falls back, or stops as the sample does, until it checks for 2. PARTITIONED_GEMM first ships in ROCm 10.3, so only code built againstdevelophas seen revision 1. The client changes affect only--split-devicesruns.