NUMERICAL CORRECTNESS

Measuring the tolerance in a kernel check

Kernelwitness compares output against a reference and records the evidence behind its tolerance.

108Worst correct order in ULP
MeasuredBound in ULP, from the run
4,092Wrong bins outside the bound

Numerical correctness

Numerical correctnessPROCESSOR EXAMPLE

Wrong bins accepted

One percent tolerance1,091 bins
Measured rule4 bins
4,096 wrong bins · Measured bound

Recorded results. Select a series to inspect it.

Reproducible processor example

A one percent relative tolerance accepted 1,091 wrong bins. The measured rule accepted four wrong bins in this example.

The example uses a 4,096 bin histogram and three stated summation orders. The bound belongs to those calibration conditions.

The problem

Parallel floating point sums can run in different orders, causing numerical drift. A loose tolerance can also accept incorrect output.

The method

Three correct summation orders were compared with a float64 reference. Four times the worst observed distance set the bound.

Validation

The report records the comparison, calibration and environment.

Recorded measurements

MethodRecorded result
Wrong bins accepted by one percent tolerance1,091 of 4,096
Wrong bins accepted by measured rule4 of 4,096
Measured boundSet by measurement

Example data

The downloadable /evidence-example.json file is the published website transcription of this 4,096-bin calibration experiment (seed 7) and its comparison rules.

Start with an operating problem

What needs to work better?