gridwise-webgpu / gridwise-webgpu/gridwise

CPU timing measurement

Open
#9 6 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/primitive.mjs#L881

  if (args?.enableCPUTiming) {
    const t0 = performance.now();                     // start after submission
    await this.device.queue.onSubmittedWorkDone();    // wait for GPU
    const t1 = performance.now();                     // end after GPU finishes
    this.cpuStartTime = t0;
    this.cpuEndTime = t1;
  }
}

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 in primitive.mjs around line 881 and inspect the existing enableCPUTiming path, including its callers and any related tests. Clarify the intended CPU timing behavior and add coverage showing the measurements are recorded correctly; the issue text does not define the expected result.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics, performance
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.