Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions docs/benchx-saps-user-story.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# SAPS user stories

Project: [Sparse Array Programming Suite (SAPS)](https://github.com/SparseApplicationBenchmark/SparseApplicationBenchmark). We use realistic sparse array programs to compare frameworks on the same workloads.

Current benchmarking setup: SAPS uses ASV with a custom runner. It selects benchmarks, prepares inputs, checks correctness, measures time and peak memory, and divides large CPU and GPU runs across Slurm jobs. We combine the results into JSON.

Contact: Willow Ahrens.

## Who uses benchmarks here

- Benchmark contributors check that new programs and datasets run correctly across frameworks.
- Framework developers and researchers compare implementations on the same applications and inputs.
- SAPS maintainers prepare datasets, run the suite, and investigate failures.

## Story

> As a SAPS maintainer, I want BenchX to run and report on our suite, from a few local cases to a full cluster run, so that we can replace ASV and maintain less runner code ourselves.

Today: SAPS handles selection, input caching, run modes, Slurm chunking, and JSON output around ASV. Pain: We maintain a lot of code to run the suite and make sense of failures.

## What we need BenchX to support

- **Process isolation on Linux, macOS, and Windows.** A crash or hang in one case should not stop the run. SAPS currently relies on ASV worker processes and records which phase timed out.
- **Memory limits.** Large sparse inputs can exhaust a worker's memory. SAPS enforces a limit on Linux, but not macOS or Windows. We need a clear failure result when a case exceeds its limit.
- **Cached inputs.** SAPS prepares generated and downloaded datasets before timing runs and shares them across frameworks and Slurm tasks. Some inputs take hours to prepare. A timed run should use the cache rather than prepare them again.
- **Tagged suites and filtering.** We use `suite-test` for small checks and `suite-standard` for our main datasets. We also narrow a run by name, for example with `--re bfs`. BenchX should support suite selection and, ideally, regex filters.
- **Different run modes.** We need to run selected cases to see whether they work, or time them with repeated measurements. Today, `--quick` still makes a measured call through ASV. SAPS also prepares datasets and traces benchmark statistics in separate passes.
- **Slurm distribution.** SAPS splits a selected suite into numbered chunks for Slurm jobs, then merges the CPU and GPU results. We need to spread those chunks across allocated processors and rerun a failed chunk without starting over.
- **JSON results with errors.** SAPS's combined JSON includes measurements, statuses, samples, and diagnostics such as stderr and exit codes. Failed and timed-out cases should appear in the results with useful error messages.

## Wishes

- **Configurable aggregation.** In the future, we would like to choose an average or minimum for repeated measurements, while keeping the individual measurements and recording which summary was used.

## Scale and constraints

Full competitions cover many frameworks and datasets on CPU and GPU nodes. Our Slurm jobs use 128 CPU chunks and 32 GPU chunks by default. Local runs are much smaller. Some inputs take hours to prepare, and a single failed case should not discard a long run.

I would welcome comments from the BenchX team on which needs are already supported, how SAPS should use those features, and which gaps deserve separate issues.
Loading