Skip to content

Enable backend test suite + x86 CI#19957

Closed
JulianCloudNTH wants to merge 1 commit into
gh/JulianCloudNTH/3/basefrom
gh/JulianCloudNTH/3/head
Closed

Enable backend test suite + x86 CI#19957
JulianCloudNTH wants to merge 1 commit into
gh/JulianCloudNTH/3/basefrom
gh/JulianCloudNTH/3/head

Conversation

@JulianCloudNTH

@JulianCloudNTH JulianCloudNTH commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

Wires the WebGPU backend into the standard ExecuTorch backend test suite and adds an x86 Linux CI job, mirroring the Vulkan delegate: backends/test/suite/flows/webgpu.py plus a WebGPUTester, run by oss/.github/workflows/test-backend-webgpu.yml on SwiftShader (a software Vulkan adapter, via wgpu-native, minimal dependencies, no GPU).

Two fixes were needed for SwiftShader's downlevel limits: request the adapter's full requiredLimits at device creation (software adapters default storage-buffer limits to 0), and make the add op's workgroup size dynamic instead of a hardcoded constant. The WGSL now declares a pipeline-overridable override wg_size: u32 = 256 and the host clamps it to the device's maxComputeInvocationsPerWorkgroup (256 on real GPUs and lavapipe, 128 on SwiftShader), so SwiftShader's 128-invocation cap no longer forces a smaller workgroup size on real hardware. This mirrors the dynamic-workgroup-sizing approach in D107259348 and opens the door to selecting device/algorithm-optimal sizes later. The add op also validates its 1D dispatch count (capped at 65535) before allocating any GPU objects. The editable CMake build additionally marks the vulkan_schema subdirectory EXCLUDE_FROM_ALL so the WebGPU ALL build does not pull in targets that need glslc.

Differential Revision: D107288999

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Jun 2, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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

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

@linux-foundation-easycla

Copy link
Copy Markdown

CLA Missing ID

  • ❌ The email address for the commit (7af5f9d) is not linked to the GitHub account, preventing the EasyCLA check. Consult this Help Article and GitHub Help to resolve. (To view the commit's email address, add .patch at the end of this PR page's URL.) For further assistance with EasyCLA, please visit our EasyCLA portal and chat with our support bot.

@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 Jun 2, 2026
@JulianCloudNTH JulianCloudNTH changed the title [ExecuTorch][WebGPU] Enable backend test suite + x86 CI Enable backend test suite + x86 CI Jun 2, 2026
@github-actions

github-actions Bot commented Jun 2, 2026

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.

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant