From 9a29e5f2ebf0ca92e87c5cd2064f25c51e79fd1b Mon Sep 17 00:00:00 2001 From: John Owens Date: Thu, 10 Oct 2024 11:47:40 -0700 Subject: [PATCH] oops let's call this what it is, workgroup count --- timing-mre.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/timing-mre.html b/timing-mre.html index 4080bfa..64562a3 100644 --- a/timing-mre.html +++ b/timing-mre.html @@ -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}`);