Skip to content

Commit

Permalink
Enable subgroup cache
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangzhaoming committed Nov 7, 2024
1 parent 5c5495d commit 08d98ee
Show file tree
Hide file tree
Showing 3 changed files with 669 additions and 228 deletions.
3 changes: 3 additions & 0 deletions js/web/lib/wasm/jsep/backend-webgpu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@ export class WebGpuBackend {
if (adapter.features.has('shader-f16')) {
requiredFeatures.push('shader-f16');
}
if (adapter.features.has('chromium-experimental-subgroups')) {
requiredFeatures.push('chromium-experimental-subgroups' as GPUFeatureName);
}

this.device = await adapter.requestDevice(deviceDescriptor);
this.adapterInfo = new AdapterInfoImpl(adapter.info || (await adapter.requestAdapterInfo()));
Expand Down
Loading

0 comments on commit 08d98ee

Please sign in to comment.