Skip to content

Commit

Permalink
oops let's call this what it is, workgroup count
Browse files Browse the repository at this point in the history
  • Loading branch information
jowens committed Oct 10, 2024
1 parent 41f5342 commit 9a29e5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions timing-mre.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,15 @@
const memsrcSize = 2 ** 24;
const timingHelper = new TimingHelper(device);

const itemsPerWorkgroup = memsrcSize / workgroupSize;
const dispatchGeometry = [itemsPerWorkgroup, 1];
const workgroupCount = memsrcSize / workgroupSize;
const dispatchGeometry = [workgroupCount, 1];
while (
dispatchGeometry[0] > adapter.limits.maxComputeWorkgroupsPerDimension
) {
dispatchGeometry[0] /= 2;
dispatchGeometry[1] *= 2;
}
console.log(`itemsPerWorkgroup: ${itemsPerWorkgroup}
console.log(`workgroup count: ${workgroupCount}
workgroup size: ${workgroupSize}
maxComputeWGPerDim: ${adapter.limits.maxComputeWorkgroupsPerDimension}
dispatchGeometry: ${dispatchGeometry}`);
Expand Down

0 comments on commit 9a29e5f

Please sign in to comment.