Skip to content

[ExecuTorch][WebGPU] Select emdawnwebgpu for Emscripten builds#21133

Open
JCNTH wants to merge 4 commits into
gh/JCNTH/109/basefrom
gh/JCNTH/109/head
Open

[ExecuTorch][WebGPU] Select emdawnwebgpu for Emscripten builds#21133
JCNTH wants to merge 4 commits into
gh/JCNTH/109/basefrom
gh/JCNTH/109/head

Conversation

@JCNTH

@JCNTH JCNTH commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

Building the WebGPU backend for the browser previously required a manual
source-tree patch to pick the right WebGPU implementation. This makes the CMake
configuration select the emdawnwebgpu port for Emscripten builds while native
builds keep Dawn and their platform libraries, so the production kernel stack
builds for the browser unpatched. Build-system integration only; no model or
kernel behavior changes.

Key changes:

  • CMakeLists.txt: choose emdawnwebgpu under Emscripten, Dawn otherwise.
  • test/test_cmake_configuration.py: contract test asserting the selection.
    @exported-using-ghexport

Differential Revision: D113171750

Differential Revision: D113171750

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Jul 22, 2026

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/21133

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

❌ 1 Cancelled Job

As of commit 7759884 with merge base 86c3470 (image):

CANCELLED JOB - The following job was cancelled. Please retry:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@github-actions

Copy link
Copy Markdown

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 22, 2026
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]

@SS-JIA SS-JIA left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants