The Quantaiko CUDA Simulator is a single-header,
dual-target implementation of the CUDA execution model that runs GPU kernels on an
ordinary CPU — no NVIDIA hardware, no driver, and no vendor toolchain required.
One source file compiles two ways: under nvcc it is a thin pass-through to the real
CUDA runtime and the kernel runs on the GPU unchanged; under a plain host compiler the same
header becomes the device, and the kernel runs as ordinary C++.
Its purpose is to debug massively parallel code with the
determinism, tooling, and observability of single-threaded host development — and above
all, the simulator is designed to be driven by an AI agent that debugs
autonomously: every control is a plain API call, every observation is text, and every
run is exactly reproducible.
The guarantee is functional: results and ordering
semantics, not wall-clock behaviour. Stream ordering is modelled — asynchronous work is
queued per stream and replayed in a randomised, dependency-respecting order, so a missing
synchronisation becomes a reproducible failure — but true hardware concurrency, memory
timing, and performance are not; profiling remains the province of real hardware. Kernels
validated here are then compiled with nvcc and run unmodified on a GPU.