NUMERICAL CORRECTNESS
Measuring the tolerance in a kernel check
Kernelwitness compares output against a reference and records the evidence behind its tolerance.
Numerical correctness
Wrong bins accepted
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
| Method | Recorded result |
|---|---|
| Wrong bins accepted by one percent tolerance | 1,091 of 4,096 |
| Wrong bins accepted by measured rule | 4 of 4,096 |
| Measured bound | Set 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