Skip to content

Commit 749741e

Browse files
jiangzhaomingankitm3k
authored andcommitted
[JS/WebGPU] Creating devices with subgroup features enabled if possible (microsoft#21833)
This CL make WebGPU backend support subgroup features and thus allow using subgroup optimizations in the future. ### Description With this CL WebGPU backends will create devices with subgroups and subgroups-f16 features (both are under origin trial in Chrome) or chromium-experimental-subgroups feature enabled whenever available. ### Motivation and Context This CL would allow WebGPU operator shaders to use subgroup optimizations in the future, and might get some significant speedup with these optimization.
1 parent df189c9 commit 749741e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

js/web/lib/wasm/jsep/init.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ class ComputeContextImpl implements ComputeContext {
9494
contextDataOffset: number,
9595
) {
9696
this.adapterInfo = backend.adapterInfo;
97+
this.deviceInfo = backend.deviceInfo;
9798

9899
// extract context data
99100
const ptrSize = module.PTR_SIZE;

0 commit comments

Comments
 (0)