Skip to content

Remove the dynamic WGSL generator (duktape/Node) path#29141

Merged
guschmue merged 1 commit into
microsoft:mainfrom
danielsongmicrosoft:removedynamicwgslgenerator
Jun 22, 2026
Merged

Remove the dynamic WGSL generator (duktape/Node) path#29141
guschmue merged 1 commit into
microsoft:mainfrom
danielsongmicrosoft:removedynamicwgslgenerator

Conversation

@danielsongmicrosoft

@danielsongmicrosoft danielsongmicrosoft commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Description

The static Python WGSL generator (tools/python/wgsl_gen.py) is now the only
supported mode. The dynamic generator was removed from the build surface, but
its code and dependency declarations were left in tree. This change now deletes the unreachable
remnants.

Motivation and Context

This code is unreachable and unused.
Tracking issue: #28826

@danielsongmicrosoft
danielsongmicrosoft marked this pull request as ready for review June 17, 2026 19:28
@tianleiwu

tianleiwu commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

It is still referenced in

#include "core/providers/webgpu/wgsl_templates/wgsl_gen.h"

The EP includes these generated headers via [`wgsl_gen.h`](wgsl_gen.h) /

@guschmue guschmue added the ep:WebGPU ort-web webgpu provider label Jun 22, 2026
@guschmue
guschmue merged commit 50f0314 into microsoft:main Jun 22, 2026
85 checks passed
@guschmue
guschmue requested a review from Copilot June 22, 2026 16:42

Copilot AI 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.

Pull request overview

This PR removes the remaining dead code and dependency declarations for the deprecated dynamic WGSL template generator (duktape/Node-based), leaving the static Python-generated WGSL path as the only supported mechanism in the WebGPU EP.

Changes:

  • Deletes the unreachable ORT_WGSL_TEMPLATE_DYNAMIC branch from wgsl_gen.h / wgsl_gen.cc.
  • Removes the unused duktape dependency plumbing from CMake external deps and the pinned deps list.
  • Drops the vcpkg feature/override entries that existed solely to support the removed dynamic generator.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
onnxruntime/core/providers/webgpu/wgsl_templates/wgsl_gen.h Removes the dynamic-generator macro/API branch; header now only exposes the static template macros and generated index includes.
onnxruntime/core/providers/webgpu/wgsl_templates/wgsl_gen.cc Deletes the duktape-based implementation and associated includes/comments; keeps only the static generated implementation include.
cmake/vcpkg.json Removes the webgpu-ep-wgsl-template-dynamic feature and the duktape override.
cmake/external/onnxruntime_external_deps.cmake Removes the dead duktape FetchContent/vcpkg block gated on the old dynamic WGSL template mode.
cmake/deps.txt Removes the pinned duktape URL/hash entry that is no longer referenced anywhere.

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

Labels

ep:WebGPU ort-web webgpu provider

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants