Same source, two machines

Proof your code runs identically on every machine.

The same program runs twice here: once on your CPU, once on your GPU, both built from one source. They agree to single-precision, measured live below. That sounds obvious until you have been burned by "it worked on my machine." For science, finance, and anything that has to be reproducible, a guarantee like this is rare and genuinely valuable.

running...

CPU - WASM (f64)

GPU - WGSL (f32)

the difference (rounding only)

measuring...

Both from field.cl: the CPU kernel tau_cell_step() compiled to WASM sha256 de8da74182e0…, and the GPU shader compiled to WGSL by the Coherence compiler sha256 322f6213fbf2… (only the stencil-gather @compute wrapper is hand-written). WebGPU is f32-only, so the GPU is the single-precision twin of the f64 CPU kernel; the report measures the gap.

Coherence Energy Labs™
Get in touch →