Repository navigation
Bugfix - Reject invalid hipBLASLt GEMM throughput - #903
Draft
gusui-msft wants to merge 3 commits into
Draft
gusui-msft wants to merge 3 commits into
gusui-msft wants to merge 3 commits into
Conversation
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>
Contributor
There was a problem hiding this comment.
🟢 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 Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
For the existing ROCm
hipblaslt-gemminputs (fp32,fp16,bf16,fp8), treat non-finite or non-positivehipblaslt-GflopsasMICROBENCHMARK_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
0previously produced a successful 0-TFLOPS metric. It is proposed separately from the opt-in MXFP4 feature in #882. This branch targetsmaindirectly and contains no FP4 code or dependencies.Verification
0,-1,nan,infand-inffor each of the four existing input types.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.git diff --check. Remote checks are tracked on this PR.