add warmup to hipblaslt tuning #796
All Vouch review confidence checks passed
Residual risk 0.06 = Change Risk (0.29) × (1 − Review Confidence (0.81)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.29 · 64 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.77 · 3 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
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.250
Real PR Conversation Timeline
5 items
Approved
Approved these changes.
This isn't quite in line with my previous findings, I have found that gfx950 can take up to 0.5s to reach full power usage, and 0.25s to get to 95% of sclk speed. If we are running kernels back to back then I would consider at least adding a .5s warmup before kernel 1.
Warmup takes dozens milliseconds, so maybe print at ms scale here and ns scale for per run is probably beyond measurement acuracy
0.5s is honestly is a huge delay but for simplification may be use the same 200ms default for all arch
Micky774
matthiasdiener
Description
TE's hipblaslt autotuning runs each candidate algorithm once untimed, then times
TE_HIPBLASLT_TUNING_RUN_COUNTcalls (a few ms in total). That is too short for the GPU to settle,so each candidate is timed in whatever power state the previous candidate left behind.
On gfx1250 the GPU can run above its power limit for ~60-100 ms after a period of lower power. A
slow candidate draws less power, so the candidate after it is timed with boost headroom and can look
faster than a candidate that is actually faster at sustained clocks.
As an example, BF16 TN 8192^3 tuned on a gfx1250 GPU:
algo 1 (default), algo 2 and algo 3 (both slow), algo 4.
Algo 4 timed 537 us vs 561 us for algo 1 and was picked, but sustained it is 16% slower (1624 vs 1926 TFLOPS).
8192x14336x4096 picked a 7% slower algorithm the same way. The same effect favors the first
candidate when tuning starts on an idle GPU.
Type of change
Changes
Please list the changes introduced in this PR:
Checklist: