Bunker LabsResearch facility
- 11 divisions
- 55 experiments
- 8 working
- 0 validated
- 0 archived
BL-06-01 Research dossier · Division 06, Experimental Computing
WebGPU parallel processing
Open GPU vs CPU Lab Working, experimental, not validated.
Lifecycle: stage 3 of 6
- 1 Research concept (passed)
- 2 Proof of concept (passed)
- 3 Experimental implementation (current stage)
- 4 Public testing (not reached)
- 5 Validation and optimization (not reached)
- 6 Graduation or archival (not reached)
Dossier
- Purpose
- Move heavy jobs onto the GPU with WebGPU, and prove the GPU results match the CPU ones. It starts with two standard jobs side by side (the GPU vs CPU Lab); the site’s own jobs (image filters, FFTs, hashing) come next.
- Methodology
- Built (GPU vs CPU Lab): two jobs written twice, for the CPU in Web Workers and as WebGPU compute shaders. A matrix multiply (16 × 16 tiles in workgroup memory) and a prefix sum (a 256-wide scan in each workgroup, the block totals scanned recursively and added back).
- Both sides get identical input from the same seeded generator. The page times the CPU (one thread or all threads), the GPU with the data already on it, and the GPU including upload and read-back, and reports the largest difference between the two answers against a worst-case rounding bound.
- Check (built in): inputs whose answers are known exactly (a matrix product with a closed form that stays where 32-bit floats are exact, and the running total of 0, 1, 2, …), compared entry by entry on both sides.
- Planned: real site jobs (image filters, FFTs, hashing) on the GPU with the same side-by-side check, and a CPU fallback.
- Browser
- A browser with WebGPU for the GPU side (recent Chrome and Edge on desktop; others are adding it). Without it the CPU side still runs, and the page says so.
- Hardware
- A GPU the browser supports. A software (fallback) adapter works, slowly.
- Known limitations
- GPU floating-point results can differ slightly from the CPU and between GPUs; the page shows by how much, against a worst-case bound.
- Moving data to and from the GPU costs time; small jobs get slower, not faster. The prefix sum shows this on purpose.
- Times include the browser’s own overheads (submitting work, waiting for it to finish). They are not a GPU’s peak speed, and they change between runs.
- Only two jobs so far, chosen because their answers are easy to check. The site’s own jobs are the next step.
- Resource usage
- Measured on the developer’s PC in Microsoft Edge with a desktop NVIDIA GPU (2026-11-30): a 1024 × 1024 matrix multiply took 1.55 s on one CPU thread and 277 ms on 8, against 8 to 12 ms on the GPU including upload and read-back. A prefix sum of 4,194,304 numbers took 20.7 ms on the CPU and 32.6 ms on the GPU with the copying (6.0 ms without). GPU memory: at most 12 MB for the largest matrix job and about 16 MB plus small buffers for the largest prefix sum; each CPU Worker holds its own copy of the input.
- Validation
- Not validated yet. The built-in Check passed on 2026-11-30, in Microsoft Edge on the developer’s Windows PC (desktop NVIDIA GPU): with inputs whose answers are known exactly, the 256 × 256 matrix multiply matched the closed form in all 65,536 entries with zero error on both the CPU and the GPU, and the prefix sum of 1,048,576 numbers matched in every total on both sides. With random input, the largest GPU-to-CPU difference at 1024 × 1024 was 7.3 × 10⁻⁵, inside the worst-case rounding bound of 0.0625. One browser on one machine only.
- Where data is processed
- In your browser, on your CPU and GPU. Nothing is uploaded or stored.
Journal
GPU vs CPU Lab v0.1 built: a matrix multiply and a prefix sum on the CPU in Web Workers and on the GPU with WebGPU, timed side by side with the answers compared, and a built-in Check against exact answers.
Builds on
Existing tools this project starts from. They are foundations, not the experiment.
- Image CompressorTool on the site
- Fourier / Signal Math LabTool on the site
- Browser Limits LabHas a short WebGPU compute benchmark (BL-06-02). That measures raw speed only; this project checks real results.