Multi-core simulation: grain movement and heat across a worker pool (t88 phase 3)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-28 03:23:43 -04:00
co-authored by Claude Opus 5.5
parent 20963c776e
commit 7468d00efb
35 changed files with 578 additions and 113 deletions
+6
View File
@@ -52,4 +52,10 @@ for (const scale of [1, 4]) {
run(`for (let c = 1; c < NCH; c++) heatChunk(c, ${scale});`);
check('heat matches original bytes and random state at scale ' + scale, snapshot() === expected);
}
setup();
run('const optimizedHeatChunk=heatChunk;heatChunk=referenceHeatChunk;heatPass();');
const passExpected=snapshot();
run('heatChunk=optimizedHeatChunk;');
setup();run('heatPass();');
check('four-pass heat matches the unoptimized oracle byte for byte',snapshot()===passExpected);
done();