How it works

The intended workflow from end to end. Not every step has completed live qualification.

The ten steps

Optimization pipeline

Contract · step 1 of 10

Submit scientific source

A job names the program, how to build and run it, its inputs and the only files that may change.

Experimentally verified
Job settings · 2D Jacobi example
"editable_paths": ["src/jacobi2d.f90"]"build": ["make", "-s", "BUILD=cpu"]"run":   ["./jacobi2d", "{input}", "{output}"]

Contract · step 2 of 10

Establish the verification contract

Reference, tolerances, invariants and held-out inputs are fixed before any candidate exists.

Experimentally verified
comparator and invariants
absolute  1e-10relative  1e-9invariant converged         residual ≤ 1e-5invariant solution_bounded  0 ≤ max ≤ 1.0000001

Contract · step 3 of 10

Analyze the program

Regions, loops, arrays and the constructs that are not supported. Static estimates are labelled as estimates.

Implemented, restricted Fortran
illustrative analysis
loop           do j / do ireads          uwrites         unewevidence       estimate only

Experiment · step 4 of 10

Generate candidates

Scripted and rule-based today. Proposals from a live model are not yet demonstrated.

Model path pending
scripted proposals · recorded
cand-01  fuse residual into sweep, swap arrayscand-02  OpenACC data regioncand-03  edit the Makefilecand-04  injected coefficient error

Experiment · step 5 of 10

Compile and run controlled experiments

Verified on CPU. Execution on a real GPU awaits qualification.

GPU pending
build and run · recorded
compiler  GNU Fortran 16.2.0host      arm64, 8 logical CPUscpu       candidates built and rungpu       NOT_RUN

Experiment · step 6 of 10

Reject invalid transformations

Scope violations and scientific failures end a candidate, with the reason kept.

Experimentally verified
verdicts · recorded
cand-03  PATCH_REJECTED         'Makefile' is not an editable pathcand-04  REJECTED (SCIENTIFIC)         $.sum error 195.15, allowed 8.9e-7

Select · step 7 of 10

Measure against fair baselines

The strongest fair CPU reference, whole-process time and repeated samples.

Pending qualification
measurement · not yet run
baseline   strongest fair CPU varianttiming     whole process, repeateddevice     attested NVIDIA GPUresult     NOT_EVALUATED

Select · step 8 of 10

Select and freeze

The rule is declared in advance, and the choice is sealed before held-out access.

Experimentally verified
selection · recorded
rule     earliest candidate correct on tuningwinner   cand-01event    selection_frozen

Select · step 9 of 10

Evaluate held-out workloads

Checked once. Independent, external inputs are still needed.

Verified once on CPU, in-repository input
held-out · recorded
event   held_out_access_beginresult  PASSnote    input is versioned in the repository

Select · step 10 of 10

Deliver code and evidence

A reviewable patch with its record. Performance-qualified delivery is pending.

Implemented
evidence bundle
spec.json               result.jsonaudit.jsonl             evidence.manifest.jsoncandidates/cand-01/patch.diff

The contract comes first

The checker runs outside proposal generation, so whatever proposes a change cannot also decide that it is correct. CPU and NVIDIA execution carry separate evidence: a pass on one is not a pass on the other.

Before any candidate exists, a job declares the trusted reference, the output schema, tolerances, physical invariants and independent cases. It also declares which files may change and how much budget the experiment may use.

Missing checkpoints, non-finite values, invalid structure and scientific failures all prevent a candidate from being accepted for performance.

"comparator": {
  "kind": "json_numeric",
  "absolute": 1e-10,
  "relative": 1e-9
},
"invariants": [
  { "id": "solution_bounded",
    "kind": "leaf_bounds",
    "path": "$.max",
    "minimum": 0.0,
    "maximum": 1.0000001 }
]

Excerpt from the Jacobi 2D CPU job. Per-field tolerances are omitted.

Numerical correctness

Bitwise reproducibility compares the entire serialized output. Numerical equivalence compares values and invariants under the declared contract. When a test calls for exact output, an approximate match does not satisfy it.

Exactness is sensitive to compilation. In a controlled Heat 2D diagnostic, vectorization and floating-point contraction settings changed whether outputs matched bit for bit, so exact regression profiles fix those flags while benchmark builds keep their own and are judged by the independent acceptance policy.

Experiments are controlled

Each candidate is a separate version of the source. It is built, run on declared inputs and checked by a verifier that operates outside proposal generation. A patch that touches a protected file is rejected before anything is built.

Today the recorded experiments use scripted proposals on CPU. A model adapter is integrated, and a live model experiment has not yet been run as a demonstrated workflow.

Candidates are hypotheses

Each one states a mechanism, preconditions and correctness risks, and starts as not measured. A planner can reorder deterministic candidates using earlier evidence such as transfer or kernel launch costs; this behaviour is verified within tests.

Verdicts

Correct on tuning

The candidate met the contract on the tuning inputs. It is not yet accepted on held-out data and carries no performance claim.

Rejected

The reason is recorded, for example a patch outside the editable scope or a scientific failure.

Not evaluated

The stage did not run. Parakern reports this instead of filling in a value.

GPU optimization methodology

The first target is OpenACC on NVIDIA GPUs. For recognized sets of elementwise loops, a data residency rule can generate a shared data region, with the mapping derived from how each array is read and written. A transfer-inclusive candidate is always emitted first, so measurement rather than a heuristic decides whether residency helps.

The supported class is intentionally narrow. Pointers, aliasing features, unresolved calls and partial annotations cause the candidate to be declined. CPU and OpenACC host equivalence is a sanity check only; offload and speedup remain unverified until GPU evidence exists.

Fair CPU benchmarking

The draft qualification protocol compares the complete GPU process, including start-up and output, with the strongest stable CPU variant on the same host, multicore included. A legacy serial program is context, never the baseline.

If the GPU version uses an optimization such as temporal blocking, a corresponding CPU version must be implemented and verified before the comparison counts. Noisy or failed series withhold the ratio. This protocol is preregistered as a draft and has not been executed.

Selection and delivery

The selection rule is declared in advance. The chosen candidate is frozen on tuning evidence and only then checked against held-out inputs, which are never used for tuning or selection.

You receive a reviewable patch and the record behind it: provenance, configuration, proposals, verdicts, rejection reasons and any measurements. A hash-chained event log and an evidence manifest show that artifacts and event order are consistent. They do not by themselves make a verdict true.

Code and data handling

Repository content and outputs are treated as untrusted during experiments, and commands run under explicit limits. No security certification is claimed, and a formal data handling policy has not been published.