gridwise-webgpu / gridwise-webgpu/gridwise

Potential Issue: Atomic buffers not cleared between trials

Open Beginner friendly
#13 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
11
Forks
9
Avg merge
9m
Merged PRs (30d)
6

Description

https://github.com/gridwise-webgpu/gridwise/blob/d0ecc7f0a1cafcc8ff6062e4f58d3c462dfd012f/examples/scan_sort_perf.mjs#L289

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.

Image

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 :

Image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at examples/scan_sort_perf.mjs around line 289 and trace the repeated trial path when params.trials is greater than 1. Verify how spineBuffer and scanBump are used between trials, then confirm that repeated runs no longer accumulate atomic values and still produce correct results.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
performance
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.