Skip to content

[ExecuTorch][WebGPU] Glob runtime/ops sources in CMakeLists#21005

Open
JCNTH wants to merge 6 commits into
gh/JCNTH/101/basefrom
gh/JCNTH/101/head
Open

[ExecuTorch][WebGPU] Glob runtime/ops sources in CMakeLists#21005
JCNTH wants to merge 6 commits into
gh/JCNTH/101/basefrom
gh/JCNTH/101/head

Conversation

@JCNTH

@JCNTH JCNTH commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

Replace the hand-maintained explicit WEBGPU_SRCS op-handler list with file(GLOB WEBGPU_OP_SRCS CONFIGURE_DEPENDS runtime/ops/*/*.cpp) so adding a new op no longer requires editing this file (addresses review feedback). The five runtime/*.cpp sources and runtime/ops/OperatorRegistry.cpp (which sits directly under ops/, not a per-op subdir) stay explicit. CONFIGURE_DEPENDS re-globs at build time when op sources are added or removed.

The glob resolves to exactly the 40 op handlers the explicit list enumerated (verified set-equal) — no op added or dropped, and static-init registration is order-independent under --whole-archive.

Co-authored-with: Claude Code.
@exported-using-ghexport

Differential Revision: D112482039

Differential Revision: D112482039

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Jul 17, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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.

@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 17, 2026
This was referenced Jul 17, 2026
[ghstack-poisoned]
JCNTH added a commit that referenced this pull request Jul 20, 2026
Pull Request resolved: #21005

Replace the hand-maintained explicit `WEBGPU_SRCS` op-handler list with `file(GLOB WEBGPU_OP_SRCS CONFIGURE_DEPENDS runtime/ops/*/*.cpp)` so adding a new op no longer requires editing this file (addresses review feedback). The five `runtime/*.cpp` sources and `runtime/ops/OperatorRegistry.cpp` (which sits directly under `ops/`, not a per-op subdir) stay explicit. `CONFIGURE_DEPENDS` re-globs at build time when op sources are added or removed.

The glob resolves to exactly the 40 op handlers the explicit list enumerated (verified set-equal) — no op added or dropped, and static-init registration is order-independent under `--whole-archive`.

Co-authored-with: Claude Code.
ghstack-source-id: 403987748
@exported-using-ghexport

Differential Revision: [D112482039](https://our.internmc.facebook.com/intern/diff/D112482039/)

@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.

[ghstack-poisoned]
JCNTH added a commit that referenced this pull request Jul 20, 2026
Pull Request resolved: #21005

Replace the hand-maintained explicit `WEBGPU_SRCS` op-handler list with `file(GLOB WEBGPU_OP_SRCS CONFIGURE_DEPENDS runtime/ops/*/*.cpp)` so adding a new op no longer requires editing this file (addresses review feedback). The five `runtime/*.cpp` sources and `runtime/ops/OperatorRegistry.cpp` (which sits directly under `ops/`, not a per-op subdir) stay explicit. `CONFIGURE_DEPENDS` re-globs at build time when op sources are added or removed.

The glob resolves to exactly the 40 op handlers the explicit list enumerated (verified set-equal) — no op added or dropped, and static-init registration is order-independent under `--whole-archive`.

Co-authored-with: Claude Code.
ghstack-source-id: 404859269
@exported-using-ghexport

Differential Revision: [D112482039](https://our.internmc.facebook.com/intern/diff/D112482039/)
[ghstack-poisoned]
JCNTH added a commit that referenced this pull request Jul 21, 2026
Pull Request resolved: #21005

Replace the hand-maintained explicit `WEBGPU_SRCS` op-handler list with `file(GLOB WEBGPU_OP_SRCS CONFIGURE_DEPENDS runtime/ops/*/*.cpp)` so adding a new op no longer requires editing this file (addresses review feedback). The five `runtime/*.cpp` sources and `runtime/ops/OperatorRegistry.cpp` (which sits directly under `ops/`, not a per-op subdir) stay explicit. `CONFIGURE_DEPENDS` re-globs at build time when op sources are added or removed.

The glob resolves to exactly the 40 op handlers the explicit list enumerated (verified set-equal) — no op added or dropped, and static-init registration is order-independent under `--whole-archive`.

Co-authored-with: Claude Code.
ghstack-source-id: 404859269
@exported-using-ghexport

Differential Revision: [D112482039](https://our.internmc.facebook.com/intern/diff/D112482039/)
[ghstack-poisoned]
JCNTH added a commit that referenced this pull request Jul 21, 2026
Pull Request resolved: #21005

Replace the hand-maintained explicit `WEBGPU_SRCS` op-handler list with `file(GLOB WEBGPU_OP_SRCS CONFIGURE_DEPENDS runtime/ops/*/*.cpp)` so adding a new op no longer requires editing this file (addresses review feedback). The five `runtime/*.cpp` sources and `runtime/ops/OperatorRegistry.cpp` (which sits directly under `ops/`, not a per-op subdir) stay explicit. `CONFIGURE_DEPENDS` re-globs at build time when op sources are added or removed.

The glob resolves to exactly the 40 op handlers the explicit list enumerated (verified set-equal) — no op added or dropped, and static-init registration is order-independent under `--whole-archive`.

Co-authored-with: Claude Code.
ghstack-source-id: 405012780
@exported-using-ghexport

Differential Revision: [D112482039](https://our.internmc.facebook.com/intern/diff/D112482039/)
[ghstack-poisoned]
JCNTH added a commit that referenced this pull request Jul 21, 2026
Pull Request resolved: #21005

Replace the hand-maintained explicit `WEBGPU_SRCS` op-handler list with `file(GLOB WEBGPU_OP_SRCS CONFIGURE_DEPENDS runtime/ops/*/*.cpp)` so adding a new op no longer requires editing this file (addresses review feedback). The five `runtime/*.cpp` sources and `runtime/ops/OperatorRegistry.cpp` (which sits directly under `ops/`, not a per-op subdir) stay explicit. `CONFIGURE_DEPENDS` re-globs at build time when op sources are added or removed.

The glob resolves to exactly the 40 op handlers the explicit list enumerated (verified set-equal) — no op added or dropped, and static-init registration is order-independent under `--whole-archive`.

Co-authored-with: Claude Code.
ghstack-source-id: 405026115
@exported-using-ghexport

Differential Revision: [D112482039](https://our.internmc.facebook.com/intern/diff/D112482039/)
JCNTH added a commit that referenced this pull request Jul 21, 2026
Pull Request resolved: #21005

Replace the hand-maintained explicit `WEBGPU_SRCS` op-handler list with `file(GLOB WEBGPU_OP_SRCS CONFIGURE_DEPENDS runtime/ops/*/*.cpp)` so adding a new op no longer requires editing this file (addresses review feedback). The five `runtime/*.cpp` sources and `runtime/ops/OperatorRegistry.cpp` (which sits directly under `ops/`, not a per-op subdir) stay explicit. `CONFIGURE_DEPENDS` re-globs at build time when op sources are added or removed.

The glob resolves to exactly the 40 op handlers the explicit list enumerated (verified set-equal) — no op added or dropped, and static-init registration is order-independent under `--whole-archive`.

Co-authored-with: Claude Code.
ghstack-source-id: 405026115
@exported-using-ghexport

Differential Revision: [D112482039](https://our.internmc.facebook.com/intern/diff/D112482039/)
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.

3 participants