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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user