How waiOS gets the same answer from different silicon
One program in exact integer arithmetic has a form written for each fabric. waiOS runs each form, holds every answer to one reference digest, and seals a run that agrees in a signed receipt.
One program, in each fabric's own form
The program waiOS checks fabrics with is a ternary matrix-vector product: 256 rows of 128 weights, each −1, 0 or +1, times 128 signed bytes, summed in 32-bit integers. Its input comes from a fixed-seed generator, so every machine builds the same input whatever its word size or byte order. Its output, 256 integers, is hashed with BLAKE3 to a digest.
One program
Integer arithmetic only, on one fixed input.
- CPU, plain loop · table lookups, no multiplications a541323b…46f0
- CPU, SIMD · the same lookups, many at once a541323b…46f0
- GPU · an integer shader, one thread per row a541323b…46f0
- FPGA · partial dot products in logic, added up by the host a541323b…46f0
- Microcontroller · the CPU loop's source, compiled for the chip a541323b…46f0
Compare the digests
All equal: seal the run in a signed receipt. Any differs: stop, and seal nothing.
| Fabric | How the program runs there | What comes back |
|---|---|---|
| CPU, plain loop | For each pair of columns, a 16-entry table of every possible sum is built once; each row then looks its sum up. No multiplication runs in the loop. | 256 sums |
| CPU, SIMD | The same table lookups, many rows at once, with the processor's vector table-lookup instructions. | 256 sums |
| GPU | An integer compute shader, one thread per row, in 32-bit integers. The shader is below. | 256 sums |
| FPGA | A coprocessor in the board's logic takes 64 weights and 64 inputs, returns their dot product and its own cycle count; the host adds each row's two halves. | 256 sums, cycle counts |
| Microcontroller | Firmware compiled from the CPU loop's own source computes the whole product on the chip and times it with the chip's cycle counter. | the digest, cycle count |
What each form returned in the audited baseline is on the measured page: the CPU, SIMD and GPU forms on general-purpose computers, the FPGA form on FPGA logic boards, and the firmware on bare-metal microcontrollers.
The GPU shader, as waiOS runs it
Integer arithmetic only, with no floating point. It is the same file this site's home page runs on your GPU.
@group(0) @binding(0) var<uniform> params: vec4<u32>;
@group(0) @binding(1) var<storage, read> packed_words: array<u32>;
@group(0) @binding(2) var<storage, read> act_words: array<u32>;
@group(0) @binding(3) var<storage, read_write> out_vec: array<i32>;
fn decode_crumb(c: u32) -> i32 {
let m = c & 3u;
return select(select(0, -1, m == 2u), 1, m == 1u);
}
fn to_i8_val(b: u32) -> i32 {
return select(i32(b), i32(b) - 256, b >= 128u);
}
@compute @workgroup_size(64)
fn tmac_matvec(@builtin(global_invocation_id) gid: vec3<u32>) {
let r = gid.x;
let rows = params.x;
let cols = params.y;
let num_pairs = params.z;
if (r >= rows) {
return;
}
var acc: i32 = 0;
for (var g: u32 = 0u; g < num_pairs; g = g + 1u) {
let p_idx = g * rows + r;
let p_word = packed_words[p_idx >> 2u];
let p_shift = (p_idx & 3u) * 8u;
let nib = (p_word >> p_shift) & 0x0Fu;
let w0 = decode_crumb(nib);
let w1 = decode_crumb(nib >> 2u);
let c0 = 2u * g;
let a0_word = act_words[c0 >> 2u];
let a0_shift = (c0 & 3u) * 8u;
let x0 = to_i8_val((a0_word >> a0_shift) & 0xFFu);
var x1: i32 = 0;
let c1 = c0 + 1u;
if (c1 < cols) {
let a1_word = act_words[c1 >> 2u];
let a1_shift = (c1 & 3u) * 8u;
x1 = to_i8_val((a1_word >> a1_shift) & 0xFFu);
}
acc = acc + w0 * x0 + w1 * x1;
}
out_vec[r] = acc;
}
Three rings of conformance across compute ecosystems
No lab can rack every processor generation, cloud accelerator, microcontroller and fieldbus node at once. waiOS checks equivalence across hardware ecosystems by pairing direct local runs with seeded remote challenges and cross-architecture logic checks.
-
Ring 1 · Direct silicon
Native integer forms across local processor, shader, logic and firmware classes
Each local fabric class runs a form of the integer specification written directly for its execution model and compares its output digest against the reference before sealing a receipt.
Catches: Driver translation bugs, software rasterizer fallbacks, vector lane shuffles that misalign columns, and off-by-one arithmetic differences.
-
Ring 2 · Seeded remote oracle
Stateless challenge-response for remote bare-metal and cloud accelerators
Where hardware sits behind a remote interface or an edge isolate, a fresh seed generates a brand-new integer problem on demand so an operator checks remote silicon without relying on a canned hash.
Catches: Replayed or cached digests, silent mixed-precision lowering on remote accelerators, and host-to-device byte-packing mismatches.
-
Ring 3 · Emulation and formal logic
Byte-order torture, word-width checks, sandboxes and boolean satisfiability
Cross-compiled probes and synthesizable hardware descriptions test architectural corners — big-endian memory, narrow pointer widths and gate-level logic — independent of which boards sit on a bench.
Catches: Native-endian slice casts that invert bytes on big-endian hosts, pointer-width truncation, unbounded sandbox loops, and logic-synthesis mismatches.
A fabric is checked before its answer counts
Two checks stand between a fabric and a sealed result.
-
When a GPU is opened
It is qualified against the CPU
waiOS refuses a software renderer, then runs a small set of reference computations, one of them an odd-sized product, on the GPU and on the CPU. A GPU whose answers differ from the CPU's in any place is refused.
-
In every run
Every fabric's digest is compared
The run computes the program on each fabric present and hashes each output. If any digest differs, the run stops with an error and seals nothing.
-
Shown by a fault
A one-unit error is caught
With the shader changed so that one of its 256 outputs was off by one, the run stopped and sealed nothing. The fault run
A run that agrees is sealed in a receipt
The receipt's body names what ran and what came out. Among its fields: the signer's public key, a label for the machine, its processor and operating system, the kind of work and the fabric, digests of the program bundle, the input and the output, the time window, and the energy reading with the meter it came from.
The body is hashed with BLAKE3, and the 32-byte hash is signed with Ed25519.
Checking one, offline
- 1
Hash the receipt's body with BLAKE3.
- 2
Take the public key from the body.
- 3
Check the Ed25519 signature over the hash with that key. A changed bit fails the check.
What a receipt shows: its body has not changed since it was signed, by whoever held the key. What it does not show: which device signed it. The key travels inside the receipt, and no registry ties a key to a machine. Nor does a signature vouch for the body: it covers the body as written, right or wrong.
The energy reading names its meter
A run reads its host's energy meter, and the receipt holds the reading with the name of the meter. Which meter depends on the machine:
- the operating system's energy figure for the process: a model estimate, not a hardware reading;
- the processor package's energy counter: a hardware counter, covering the whole package, other work on it included;
- a board's power rails, read once or a few times during the run, each reading multiplied by the time it covers: a model built on hardware readings;
- where no meter can be read, an estimator: the receipt then holds zero, which here means not measured, never zero energy.
None of these meters sees the GPU, the FPGA or the microcontroller alone, and each reading is one run. So this site shows no energy figure, and compares no fabric or machine by energy.