Skip to content

Bugfix - Reject invalid hipBLASLt GEMM throughput - #903

Draft
gusui-msft wants to merge 3 commits into
mainfrom
fix/hipblaslt-invalid-throughput-20261123
Draft

gusui-msft wants to merge 3 commits into
mainfrom
fix/hipblaslt-invalid-throughput-20261123

Conversation

@gusui-msft

Copy link
Copy Markdown
Contributor

What changes

For the existing ROCm hipblaslt-gemm inputs (fp32, fp16, bf16, fp8), treat non-finite or non-positive hipblaslt-Gflops as MICROBENCHMARK_RESULT_PARSING_FAILURE. No TFLOPS metric is recorded for that command. Valid values retain their metric names and GFLOPS-to-TFLOPS conversion.

This is intentionally a behavior change: for example, a client row reporting 0 previously produced a successful 0-TFLOPS metric. It is proposed separately from the opt-in MXFP4 feature in #882. This branch targets main directly and contains no FP4 code or dependencies.

Verification

  • Added a regression for 0, -1, nan, inf and -inf for each of the four existing input types.
  • Replayed the same synthetic rows through main, the feature-only branch and this draft using the actual parser and result collector. Only the draft rejects those old-mode values; all three convert 2000 GFLOPS to 2 TFLOPS.
  • Both merge orders with Benchmarks - Add experimental MI455X MXFP4 hipBLASLt GEMM #882 produced the same tree and preserved both behaviors. Changed files compile, pass pinned YAPF and git diff --check. Remote checks are tracked on this PR.

gusui-msft and others added 3 commits November 23, 2026 16:59
Treat non-finite and non-positive client GFLOPS as a parsing failure before recording a metric. Keep valid TFLOPS names and conversions unchanged and cover each existing input precision.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Use the existing registry directly so the standalone throughput test does not change the fixture used by other work.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Keep the legacy result parser within the existing complexity limit while reporting the same error and metrics.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 24, 2026 01:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block approval of the throughput-validation change.

No open issues 🎉

What changed in this PR

This PR hardens the existing ROCm hipblaslt-gemm parser by rejecting invalid throughput measurements. It preserves metric names and GFLOPS-to-TFLOPS conversion for valid values and remains separate from the experimental MXFP4 work in #882.

Changes:

  • Reject non-finite or non-positive throughput with a result-parsing failure, without emitting a TFLOPS metric for that command.
  • Add regression cases for zero, negative values, NaN, and infinities across FP32, FP16, BF16, and FP8.
  • Document the changed failure behavior.
File Description
tests/​benchmarks/​micro_benchmarks/​test_hipblaslt_function.py Adds invalid-throughput regression coverage for all four existing input types.
superbench/​benchmarks/​micro_benchmarks/​hipblaslt_function.py Validates throughput before recording a performance metric.
docs/​user-tutorial/​benchmarks/​micro-benchmarks.md Documents rejection of invalid throughput and omission of the corresponding metric.

Review effort: Balanced

@codecov

codecov Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.37%. Comparing base (c548e79) to head (d0af32b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #903      +/-   ##
==========================================
+ Coverage   86.36%   86.37%   +0.01%     
==========================================
  Files         107      107              
  Lines        8258     8265       +7     
==========================================
+ Hits         7132     7139       +7     
  Misses       1126     1126              
Flag Coverage Δ
cpu-python3.10-unit-test 71.97% <100.00%> (+0.02%) ⬆️
cpu-python3.12-unit-test 71.97% <100.00%> (+0.02%) ⬆️
cpu-python3.7-unit-test 71.43% <100.00%> (+0.02%) ⬆️
cuda-unit-test 84.38% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants