|
await primitive.execute({ |
This line is executed repeatedly when running multiple trials (params.trials > 1), but the underlying atomic buffers are not cleared. As a result, atomics may accumulate values, causing decreasing performance or incorrect results after several runs.
I’ve attached a screenshot showing the atomic values of spineBuffer and scanBump over multiple trials for reference.
Possible solution: Clear atomic buffers after each trial
After clearing it :

gridwise/examples/scan_sort_perf.mjs
Line 289 in d0ecc7f
This line is executed repeatedly when running multiple trials (params.trials > 1), but the underlying atomic buffers are not cleared. As a result, atomics may accumulate values, causing decreasing performance or incorrect results after several runs.
I’ve attached a screenshot showing the atomic values of spineBuffer and scanBump over multiple trials for reference.
Possible solution: Clear atomic buffers after each trial
After clearing it :