---
name: hpdc-reproducibility
description: Use when keeping the record behind HPDC numbers on shared clusters. Defines a run card per job and a check that the paper and logs agree. Does not prepare the public artifact.
---

# HPDC reproducibility

Use this from the first allocation. Clusters are upgraded, purged, and drained. What you did not record in the job cannot be recovered in April.

Call: https://hpdc.sci.utah.edu/2027/calls-cfp.html

## A run card, written by the job itself

Have the batch script save this before the workload starts. A card typed afterward is a memory, not a record.

```bash
mkdir -p "cards/$SLURM_JOB_ID" && cd "cards/$SLURM_JOB_ID" || exit 1
scontrol show job "$SLURM_JOB_ID" > job.txt          # nodes, shape, time
srun --ntasks-per-node=1 hostname | sort > nodes.txt
uname -r > kernel.txt; lscpu > cpu.txt
module list > modules.txt 2>&1
git -C "$CODE" rev-parse HEAD > commit.txt
git -C "$CODE" diff > dirty.patch                    # empty is what you want
env | grep -E '^(OMP|MPI|NCCL|UCX|FI|CUDA|ROCR)_' > env.txt
sha256sum "$INPUT" > input.sha256
```

Adapt it to your scheduler. Add driver and firmware versions from your accelerator's tool, and the clock settings.

## What goes in the results table

```text
run id | figure, series | commit | nodes, shape | input hash | trial | seed | start time | result | kept or dropped, why
```

"Dropped" rows stay. A reviewer who asks how outliers were handled needs the rule, and you need to show you did not write it after seeing the numbers.

## Purge and upgrade traps

- Scratch space is deleted on a schedule. Copy cards and raw output to a place that is not.
- A maintenance window can change the MPI, the driver, and the clocks together. Rerun one reference job after each and compare. If it moves more than your trial spread, all later runs form a new set.
- Modules with a default version change silently. Load by full version.
- Container images tagged `latest` are not a version. Store the digest.

## Agreement check

Every figure is produced by one command from the table. In the last week delete the figures directory and rebuild it. Then take ten numbers from the text at random and trace each to a run id. Any number that does not trace leaves the paper. There is no later stage at which to explain it.

## Restricted material

Some traces and codes cannot leave the site. State the restriction in the paper, and give what can be checked: a generator with fitted parameters, or a smaller public input where the same effect appears. Material under a non-disclosure agreement cannot be used at all, as the call refuses such papers.

## Output

```text
[HPDC record] jobs <n>, cards complete <n>
[Reference job] last run <date>, drift <x> vs spread <y>
[Figures] rebuilt from table: yes/no
[Traced] <n of 10> numbers
[Restricted] <item> -> <what a reader can check>
```

## Reverify each cycle

- Artifact availability wording expected in the introduction.
