Repository navigation
LDC Benchmark Refactoring - #84
Merged
Merged
Conversation
…g, process_grid Add lbm-dist-sweep-run.sh + lbm-dist-sweep.yml (N x GPUs x slab/pencil/brick x NCCL/MPI-P2P x --hp-halo off/on, plus a 1-GPU ref run per N), the plot_dist_scaling.py plotter and data/lbm-dist-sweep/reproduce.sh. The distributed benchmark gains --reps with results.repetitions, timing marks taken after a GPU drain plus Distributed::barrier(), and config.process_grid. lbm_sweep_config.py loaders take optional key/choice tables. Co-authored-by: Cursor <cursoragent@cursor.com>
The efficiency baseline is the 1-GPU dense-intra report of the single-process DGX sweep (reference_dir / reference_prefix / reference_label), drawn as a separate marker. gpus is replaced by gpus_slab (2..8), gpus_pencil (4 8) and gpus_brick (8), the counts whose process grid differs from a slab. Co-authored-by: Cursor <cursoragent@cursor.com>
…8 / pencil 4,8 / brick 8 GPUs NCCL halos with --hp-halo off and on, --overlap standard, 400 warmup + 5 x 1000 timed steps, 8x A100-SXM4-40GB. Efficiency vs the lbm-dgx-sweep 1-GPU dense-intra runs. At 8 GPUs, hp-halo raises efficiency from 0.71/0.61/0.46 to 0.89/0.79/0.55 (slab/pencil/brick) at N=256 and from 0.91/0.86/0.65 to 0.96/0.95/0.73 at N=512. Co-authored-by: Cursor <cursoragent@cursor.com>
… launch-matrix DOT default - DenseDisgDistributed: disaggregated SoA grid on a ProcessGrid (slab, pencil, brick) with HaloDisgDistributed (single ncclGroup, zero-copy exchange), CUDA/SYCL launch + reduce backends, host and MPI tests. - Slab specialization: StorageKind + TypedSpan<Kind> compile-time span tag so Partition::read/write/read_pull/neighbour drop ghost_x/ghost_y branches; D3Q19 BGK fast kernel as a functor. 8-GPU slab N=256 standard overlap: 48.4k MLUPS vs 47.6k for DenseDisg (was 30.5k). - Skeleton: export_dot / --export-dot now write the launch-matrix format; stream-cluster view moves to the _streams.dot sidecar. - LBM disg-vs-dense sweep config, plotting script and results. Co-authored-by: Cursor <cursoragent@cursor.com>
… all four grids Benchmark: lbm_lid_driven_cavity_distributed is folded into lbm_lid_driven_cavity. One binary runs Dense, DenseDisg, DenseDistributed and DenseDisgDistributed (--decomposition slab|pencil|brick for the distributed grids), each in fp32 or fp64 (--precision), with --hp-halo and a MOMENTUM_X checksum next to the mass. Scripts: lbm-dgx-sweep-run.sh runs every DGX matrix from a validated YAML (lbm_sweep_config.py; new keys decompositions, gpus_pencil/brick, hp_halo, overlap, reference_*, mpi_single_gpu, plots). The fixed DGX run scripts, their plot wrappers, the distributed sweep scripts and plot_neon_fig7.py are gone. Plotters take the same YAML: plot_scaling.py (MLUPS per GPU vs GPUs / vs N, hp-halo speedup, and the new all-grids comparison), plot_disg_vs_dense.py and plot_best_family.py (formerly the A100 colormap script). Quick-start README added next to the detailed scripts/README.md. Data: three result sets, each with a frozen YAML and reproduce.sh, all re-run with the merged benchmark on 8x A100-SXM4-40GB (1152 runs, none failed): - lbm-dgx-sweep: all four grids, N=256..512, NCCL / MPI (P2P) for all, Peeraccess for the single-process grids, slab/pencil/brick, hp-halo off/on (replaces lbm-dist-sweep and lbm-disg-vs-dense) - lbm-dgx-a100-40gb: Dense / DenseDisg, N=128..608, plus the best-family map - lbm-n512-gpu-scaling: Dense / DenseDisg, N=512, 1/2/4/8 GPUs Co-authored-by: Cursor <cursoragent@cursor.com>
One YAML lists experiments (strong_scaling, domain_size, best_family), each with its own run matrix, under global timing / overlap / runner / data_dir keys. lbm-sweep-run.sh (renamed from lbm-dgx-sweep-run.sh) runs every distinct run once into data/json/<lattice>-<collision>-<precision>-<label>- n<N>-g<G>.json, reuses a report only if its timing and overlap match, and supports --only, runner: local (no Docker) and a data/trace.log with a per-run completion bar and ETA. The plotters take --config/--data-dir/--only and write plots/<experiment>/. data/ is git-ignored; reference/ holds the committed copy: its YAML, the 1050 distinct reports converted from the three old result sets (1152 runs) without re-running, and the figures. sweep_and_plot.py, the run_local_*.sh wrappers and the per-set reproduce.sh are gone (examples/local-quick.yml replaces the local wrappers). Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
benchmarks/lbm_lid_driven_cavity/ becomes benchmarks/lbm_ldc/ (source lbm_ldc.cu, target and binary carbon_benchmark_lbm_ldc); the log tag and the JSON report's benchmark field follow. Scripts, YAMLs, docs and the examples' include path are updated; lbm_ldc.cu is re-run through clang-format. The committed reference reports keep the benchmark value they were written with. Co-authored-by: Cursor <cursoragent@cursor.com>
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
No description provided.