---
name: ics-reproducibility
description: Use when logging ICS performance runs so each bar can be regenerated and defended in a 3-day rebuttal. Captures environment, counters, and placement. Does not assemble a release.
---

# ICS reproducibility

Use this from the first number you might publish.

Call: https://dipsa-qub.github.io/ICS2026-webpage/for-authors/information.html

## A run writes its own record

Wrap the binary. Humans forget the governor.

```bash
#!/usr/bin/env bash
# usage: ./rec.sh <name> <command...>
set -eu
name=$1; shift; d=records/$(date +%s)-$name; mkdir -p "$d"
{ echo "cmd: $*"; date -u; hostname; } > "$d/what"
git rev-parse HEAD > "$d/commit" 2>/dev/null || true; git diff > "$d/dirty.patch" 2>/dev/null || true
lscpu > "$d/cpu" 2>/dev/null || true; numactl --show > "$d/numa" 2>/dev/null || true
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor > "$d/governor" 2>/dev/null || true
cat /sys/kernel/mm/transparent_hugepage/enabled > "$d/thp" 2>/dev/null || true
env | grep -E '^(OMP|KMP|GOMP|MKL|OPENBLAS|MPI|UCX|CUDA|HIP|LD_)' > "$d/env" || true
ldd "$1" > "$d/libs" 2>/dev/null || true; uptime > "$d/load"
set +e; "$@" > "$d/out" 2> "$d/err"; echo $? > "$d/status"
cat "$d/status"
```

Add compiler version and full flags at build time, embedded in the binary if possible. For GPUs: driver, clocks, persistence, ECC. For MPI: binding report and node list.

## What distinguishes two runs

Keep one table with one line per run and one column per thing that could matter: commit, compiler, flags, input, size, threads, binding, nodes, frequency, seed, result, counters. Then ask the table: for each figure, do the runs differ only in the thing plotted? A query answers it. Memory does not.

## Inputs

Matrices by collection and id, with reorderings applied. Meshes and particle sets by generator and seed. Problem size in bytes as well as elements. Convergence criteria, and check that faster versions reached the same residual. A solver that stops early is fast.

## Correctness

Every performance run verifies its answer. Report the tolerance. For reductions in changed order, state the difference. A fast wrong answer gets into papers more often than people think.

## Rebuttal drill

Two weeks before submission pick three plausible reviewer questions, hand them to a co-author, and time how long until a trustworthy number exists. Above one day, automate. The rebuttal window was three days in both 2026 cycles.

## Frozen environment

Container or module file by full version, plus compilers stored. Note the maintenance calendar of the machine. A reference benchmark run weekly shows drift.

## Output

```text
[ICS record] runs <n>, with record <n>
[Figures] differ only in the plotted variable: <n of n checked by query>
[Answers verified] tolerance <x>, same residual: yes/no
[Environment] compiler, flags, libs, governor, binding: saved
[Drill] questions <3>, hours <x, y, z>
[Reference] drift <x> over <weeks>
```

## Reverify each cycle

- The rebuttal window, which sets how fast you must be.
