You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 186c6d1
Browse filesBrowse the repository at this point in the historyBrowse files
[ExecuTorch][WebGPU] Use 2D-folded dispatch for cat and slice (pytorch#23900)
cat and slice dispatched a 1D grid with one invocation per element, so
any
input (cat) or output (slice) larger than 65535 workgroups failed to
load
even though the buffers fit comfortably within device limits.
Switch both to compute_2d_workgroup_count and the folded flat index the
other elementwise ops already use, including in the resize hooks.
This change was authored with Claude Code.
Test Plan:
- New heavy grid_limit op tests for cat and slice cross the 1D limit;
they
fail to load before this change and pass after, alongside the existing
cat/slice cases (native Dawn on Metal).
- gen_wgsl_headers.py --check, test_wgsl_codegen.py, lintrunner.
0 commit comments