Repository navigation
Final 4-host benchmark: results pipeline, dashboard, and Pages deployment - #1
Merged
Merged
Conversation
- spla: track main branch (816e64f) - lagraph: v1.2.2 (requires GraphBLAS >= v9.0.0) - graphblas: v6.1.4 -> v9.4.5 (latest stable, needed by lagraph v1.2.2) - gunrock: v2.2.0 (latest stable; restructured as 'essentials') - graphblast: v0.1.0 (only stable tag) Build script updates to match new versions: - build_lagraph.py: GraphBLAS v6.1.4 -> v9.4.5 - build_gunrock.py: support essentials backends (nvidia/amd) + arch - driver_gunrock.py: new v2.x CLI (--market/--num_runs) and output
LaGraph v1.2.2's LAGraph.h enforces GraphBLAS v10.0.0+ (README's 'v9.0.0+' is stale). v9.4.5 fails to build. Use latest stable v10.5.3.
- --tests on|off controls ESSENTIALS_BUILD_TESTS (gunrock defaults: on for nvidia, off for amd) without fighting argparse over '-'-prefixed cmake values. - Document that --extra-cmake values starting with '-' need the '=' form.
graphblast v0.1.0 is a ~2016 research codebase whose spgemm.hpp relies on cusparseXcsrgemm2Nnz/cusparseScsrgemm2, APIs removed from cuSPARSE after CUDA 10. It cannot build against CUDA 12.8 without a port, so drop it from the benchmark set. - remove deps/graphblast submodule + .gitmodules entry - remove scripts/build_graphblast.py and scripts/driver_graphblast.py - drop graphblast from benchmark.py DRIVERS + --tool help - update figures.py to the new 3-tool CSV layout (gunrock, lagraph, spla) - update README.md (tools table, build section, --tool examples)
gunrock v2.2.0 'essentials' changed the device-atomic guard in include/gunrock/util/math.hxx from '#ifdef __CUDA_ARCH__' (v2.0/v2.1) to '#if __HIP_DEVICE_COMPILE__'. The latter is only defined by hipcc (AMD), so the NVIDIA/NVCC build compiles the host fallback into device code, where atomic::min/max return std::min/max(*addr, val) WITHOUT writing back to *addr. The update is a silent no-op, so BFS/SSSP never enqueue any neighbor and every node stays unreachable (INT_MAX/FLT_MAX). --validate also crashed. Add patches/gunrock-v2.2.0-atomic-fix.patch restoring the guard to 'defined(__HIP_DEVICE_COMPILE__) || defined(__CUDA_ARCH__)' (the pattern already used in util/load_store.hxx), which fixes BOTH the NVIDIA and AMD backends. build_gunrock.py now applies the patch idempotently before build. Verified on zhigul (V100, CUDA 12.8): BFS/SSSP/PR/TC produce correct results and --validate passes (GPU == CPU).
Introduce the multi-host results pipeline: a host/device registry (results/hosts.json) and an append-only results store (results/runs.jsonl), with the scripts to populate and validate them. - collect.py surveys a host (OS, CPU, OpenCL devices, tool versions) and merges the entry into the registry; re-runs are idempotent and curated values win. - benchmark.py drives the three tools per (device, tool, algo, graph) and appends one JSON record per run; failures are recorded as status:"error" records, not crashes. - validate.py checks the registry/records schema and consistency; it is the local pre-commit gate and later the CI gate. - Device ids are deterministic (alias table + slug fallback) so re-runs and new contributors get stable keys. OpenCL platform/device indices are taken from the spla binary itself (opencl_enum.py probes deps/spla/build/bfs and parses its env: line), not from clinfo: spla statically links its own ICD loader, which enumerates vendor .icd files in raw readdir() order, so clinfo's alphabetical numbering is not what spla sees. A stale mapping would silently run on the wrong device; benchmark.py re-checks the mapping against the live binary before any spla run.
Gunrock v2.x (the "essentials" restructure) changed the example CLIs and the market loader; the driver is adapted: - --market instead of --graph-file; the mm loader only accepts .mtx/.mmio extensions, so .conv input is converted to a temp MTX. - tc/mst require a symmetric-banner MTX (the loader mirrors the upper triangle); the conversion is a streaming two-pass so large graphs (mycielskian19: 451M tuples) do not OOM a Python list. - The tc example does not register --num_runs (cxxopts aborts), and v2.x prints only the last run's time, so the binary is invoked num_iterations+1 times (first = warmup). - tc needs --reduce or the triangle total stays 0.
Smoke-benchmark records (1 warmup + 10 timed iterations, small graphs) for all five campaign hosts, including the RISC-V milkv-jupiter board, validating the pipeline end-to-end on every tool/device combination.
Render a self-contained interactive dashboard (dashboard/index.html, ECharts from CDN, all data inlined as JSON) from results/hosts.json + runs.jsonl + metafiles/dataset.json. Every dimension (hosts, devices, tools, algorithms, graphs) is derived from the data, so new hardware needs no code changes. - Device attributes (form_factor integrated/discrete, mobile) are detected heuristically in collect.py (curated values win on merge) and shown as badges with per-attribute filter chips that match per (host, device) instance. - Five plot-group tabs, including the GPU-vs-CPU comparison view (single-select CPU + GPU baselines), per-bar colors, and physical-CPU filters. Bars are drawn as log10(value) on a linear axis (shifted so the floor is 0): ECharts anchors true-log bars at 1.0, which makes sub-1.0 values hang from the top of the chart.
Bump the spla pin to b7d2159 (an untagged main commit, gh-235): set_device now falls back to CPU devices on GPU-less platforms, so PoCL-as-CPU is a first-class benchmark device (id pocl-cpu) and a portability datapoint on every host. The pocl_cpu vendor token is recognized by opencl_enum.py, collect.py and benchmark.py. Includes the re-run of the spla smoke bench at the new pin.
Three small SuiteSparse graphs added to the per-algorithm graph lists (metafiles/dataset.json + scripts/dataset.py) and the README dataset table.
Add the campaign tooling: - prepare_dataset.py: extract .mtx from the canonical dataset.zip, convert, clean, status (per-host disk management). - survey_hw.sh: grep-friendly hardware survey for registering hosts. - verify.py: per-tool correctness self-checks (spla CHECK acc, gunrock --validate, LAGraph LG_CHECK_RESULT; PageRank checked sink-aware, since LAGraph's GAP method ignores sinks). - reference.py: pure-Python ground truth (bfs/sssp/pr/tc) for cross-tool answer comparison. - merge_final.py: merge per-host working files into the canonical runs.jsonl (local host ids remapped to publish-safe slugs). - summarize_results.py: markdown summary of the results (source of the report tables). - render_figures.py: static publication figures from the same data. - lagraph_verify.sh: apply the LAGraph check patch, rebuild, verify. Plus the answer-dump/answer-check instrumentation patches (patches/): pure post-timing instrumentation that dumps each tool's answers for cross-tool comparison against the reference.
On pull_request: run scripts/validate.py over results/. On push to main: validate, render dashboard/index.html and upload it as an Actions artifact. Both jobs are pure-stdlib Python; no pip installs.
dataset.zip is the large canonical archive (kept per-host, never committed); dataset-mock/ is regenerable via gen_smoke_graphs.py (SEED=42); results/runs_*_final.jsonl are per-host working files — the merged results/runs.jsonl is the canonical committed artifact.
runs.jsonl is append-only, so re-runs create duplicates. merge_final now keeps one record per (host, device, tool, algo, graph), preferring status:"ok" over a later error (a transient hardware failure never discards a good record), then the latest timestamp.
The final 4-host campaign: 1026 records (969 ok, 57 error) across 10 host:device:tool combinations. All 57 errors are honest hardware limits (twitter7 OOM, mycielskian19 RAM/VRAM, indochina-2004 on 15 GB hosts, one reproducible Vega 8 TC fault, PowerVR depth-bound BFS/SSSP), not software failures. Adds the three static publication figures (nvidia_comparison, gpu_scalability, igpu_comparison), all sharing the same 9-graph set (graphs with ok records on every platform of every figure).
Rename host ids to hardware slugs (i5-irisxe, ryzen-v100, i7-rx6750xt, milkv-jupiter): the local names contained personal info. The OS hostname field is dropped from the registry on merge, and absolute home paths in error strings are rewritten to ~/.... The local->published id remap happens at merge time (merge_final.py HOST_RENAME), so per-host working files keep their local names and re-merging stays consistent with the published file.
Record ram_gib/swap_gib in the registry (curated) and show a Hosts panel on the Data tab. Also fix chart label collisions (x labels, legend, baseline) and rotate the y-axis label to read top-to-bottom.
Render figures as PNG (default) and/or vector PDF for LaTeX.
Document the patches/ layout and on-demand application, the verification workflow (verify.py + reference.py), the registry field semantics (cores = smallest shader unit, label = display-only), and point the Results section at the dashboard as the live view of all results.
The i7-6700-gtx1070 host was surveyed but produced no benchmark records, so it has no place in the published registry.
Three-field device model: id (the stable, reproducible key all scripts use), label (human-readable display name for the dashboard and figures), name (raw vendor provenance). - label_devices.py sets/updates labels interactively (TTY-gated, non-interactive fallback); labels never affect results. - collect.py assigns deterministic ids (PoCL -> pocl-cpu, a small alias table, else a slug of the name) so re-runs and new contributors get the same ids without hand-editing. - The dashboard and figures read labels from the registry (single source); the iGPU legend is derived as "<cpu>, <label>".
Extend the dashboard workflow to deploy the rendered dashboard to GitHub Pages (configure-pages / upload-pages-artifact / deploy-pages), keeping the per-run Actions artifact. Adds workflow_dispatch for manual re-deploys, pages/id-token permissions, and a "pages" concurrency group. Requires Settings -> Pages -> Source = "GitHub Actions" to take effect.
A self-contained guide for AI agents working on this repo: project overview, repo layout, the golden-path pipeline, the data model (id/label/name, append-only semantics), conventions (Conventional Commits with the custom data type, publish-safe naming, validate-before-commit), the critical gotchas (pinned submodules / dirty-tree expectation, split patch application, unstable OpenCL indices, gunrock build-dir mismatch, .mtx vs .conv), and a CLI quick reference.
vkutuev
force-pushed
the
feat/final-benchmark
branch
from
December 3, 2026 12:40
005d9db to
790408d
Compare
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.
Summary
Delivers the final 4-host benchmark campaign: a reproducible multi-host
results pipeline, an interactive ECharts dashboard (deployed to GitHub
Pages), static publication figures, and the tooling for contributors to
add their own hardware.
What's in it
results/hosts.json(host/device registry) +results/runs.jsonl(append-only records: 1026 total, 969 ok, 57honest hardware-limit errors). Device
idis a deterministic,reproducible key; the display
labelis decoupled from it. OpenCLindices come from the spla binary's own ICD loader —
clinfo'sordering is not what spla sees.
dashboard/index.htmlderived entirelyfrom the data (new hardware needs no code changes). CI validates
results on PR and deploys the dashboard to GitHub Pages on push to
main.
(
verify.py+ pure-Pythonreference.py+ answer-dump patches),merge/summarize/figure scripts, and
AGENTS.mdfor AI agents.Post-merge
Set Settings → Pages → Build and deployment → Source → "GitHub
Actions" so the Pages deployment takes effect (the
github-pagesenvironment is created by the first deploy).