Skip to content

PR template asks for evidence of a fix and its speed; bench_diff reports only grind time - #2520

Merged
sbryngelson merged 8 commits into
MFlowCode:masterfrom
sbryngelson:pr-template-evidence
Nov 26, 2026
Merged

sbryngelson merged 8 commits into
MFlowCode:masterfrom
sbryngelson:pr-template-evidence

Conversation

@sbryngelson

@sbryngelson sbryngelson commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

What

bench_diff now reports only simulation grind time: execution times and pre/post-process timings are no longer shown, warned about, or required.

Adds to the PR template, below the unchanged contribution policy:

  • a table of which sections each kind of change needs, with "N/A and a reason" instead of blanks
  • 1. Does it solve the problem? the command that shows it, before and after as a master / this PR / expected table and/or figures, and why the new result is right
  • 2. Does it create another one? tests run, golden files changed, what was not tested
  • 3. Is it slower? for src/ and build changes, the author benchmarks the base commit and the PR on the same GPU and pastes the speedup table; the commands are in a fold-out

Effect

  • Nothing is enforced; no workflow reads the template. The bench_diff change also applies to what the Benchmark workflow prints.
  • It pre-fills descriptions of PRs opened after the merge; open PRs are unchanged.
  • Authors of src/ and build changes are asked for a GPU run (base and PR builds plus both benchmark runs; 54 minutes on one node with one GPU in the test below). Authors without GPU access are asked to say so in section 3.
  • The commands create ../mfc-<base commit> next to the checkout and replace build/speed.md.

Checked

  • ./mfc.sh precheck and ./mfc.sh lint (1030 tests, 7 of them new for bench_diff) pass.
  • The new bench_diff, run on the result files from the GPU test below, gives the same grind speedups.
  • End to end on Tuolumne (MI300A), one GPU. The template's command block, edited only to --gpu mp and -c tamd, run from a clone of this branch with master (including tuolumne: keep each GPU rank on one socket #2522) merged in locally. src/ was identical in both builds. It completed, and every sampled benchmark run was on the GPU's socket.
  • With a stand-in mfc.sh: a detached HEAD, a repeat run and a branch behind a newer master each produce a table. Uncommitted changes, a checkout with nothing to compare, a shallow clone with no common commit and a failed build each stop without leaving a table.
Case Grind speedup
ibm 1.00
5eq_rk3_weno3_hllc 0.99
5eq_rk3_weno3_hll 1.00
viscous_weno5_sgb_acoustic 0.98
5eq_rk3_weno3_lf 1.66
igr 1.01
amr 0.98
hypo_hll 1.00

No grind speedup was below 0.95.

Limitations

  • Occasional timing outliers remain. The base build's 5eq_rk3_weno3_lf took 0.79 ns against 0.48 ns for the other build, both on the same socket; with the order reversed it would read as 0.60. The cause is unknown. This is why the template asks for an explanation only when a slowdown shows up twice.
  • Not run: --gpu acc, Frontier, Phoenix, several GPUs through these commands, other shells, and dependency downloads from compute nodes elsewhere.
  • A one-GPU run does not measure multi-GPU communication.

The PR template gains sections for evidence that the change solves its problem, what was tested, and benchmark results the author runs on a GPU, with a table of which kinds of change need which.
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Claude Code Review

Head SHA: 16e0b58

No review was produced. Claude ran but wrote no review (Claude step: failure). Run and transcript: https://github.com/MFlowCode/MFC/actions/runs/45906554903

@sbryngelson sbryngelson reopened this Nov 26, 2026
@sbryngelson
sbryngelson marked this pull request as ready for review November 26, 2026 22:43
@sbryngelson
sbryngelson requested a review from a team as a code owner November 26, 2026 22:43
@sbryngelson
sbryngelson requested review from danieljvickers and removed request for a team November 26, 2026 22:43
Execution times and pre_process/post_process timings are no longer shown, warned about, or required.
@sbryngelson sbryngelson changed the title docs: PR template asks for evidence that a change works and is not slower PR template asks for evidence of a fix and its speed; bench_diff reports only grind time Nov 26, 2026
@sbryngelson
sbryngelson merged commit 382cf34 into MFlowCode:master Nov 26, 2026
14 checks passed
@sbryngelson
sbryngelson deleted the pr-template-evidence branch November 27, 2026 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant