Skip to content

Cluster scaling campaign: sbatch scripts, local runs and efficiency tables - #78

Merged
max-models merged 2 commits into
develfrom
scaling-campaign
Nov 26, 2026
Merged

max-models merged 2 commits into
develfrom
scaling-campaign

Conversation

@max-models

@max-models max-models commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Summary

benchmarks/scaling/: the drivers of benchmarks/amrex (B2 3D nodal Poisson, B4 halos and restriction in 2D and 3D, B6 markers) plus a new bench_mhd.py (a step and a regrid of carafe's MHD2D on three levels), run for strong and weak scaling.

  • campaign.py jobs: one sbatch script per node count, written with slurm-script-generator's SlurmScript (cluster presets with --cluster, account, partition, QOS, modules, a setup line); the one-node job sweeps 1, 2, 4, ... ranks up to a full node, the others run every case on all their cores. Each run is its own srun with a time limit; its JSON line is labelled (case, scaling, ranks, nodes) and appended to a results file. submit.sh submits them.
  • campaign.py local: the same commands with mpiexec here, --small sizes, to check the drivers and the scripts.
  • campaign.py report: Markdown tables of time and parallel efficiency (strong t0 P0 / (t P), weak t0 / t) and peak memory per case.

Weak scaling grows the cells per axis by P^(1/d) and the markers by P.

Checked here: all 30 small runs (5 cases, strong and weak, 1, 2 and 4 ranks) pass, B2 with --backend amg (no PETSc in this container), and the report renders. No production runs: those are for the cluster.

bench_mhd.py needs carafe with MHD2D (max-models/carafe#81).

Checklist

  • pre-commit run passes on the new files; the package itself is unchanged
  • New code has docstrings (benchmark scripts, not part of the test suite, like benchmarks/amrex)
  • Docs: benchmarks/scaling/README.md
  • The commit messages follow Conventional Commits (the repo's history uses plain sentences)

@max-models
max-models merged commit c4216ca into devel Nov 26, 2026
27 checks passed
@max-models
max-models deleted the scaling-campaign branch November 26, 2026 14:16
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.

1 participant