[WebGPU] Preserve executable export names #25195
All Vouch review confidence checks passed
Residual risk 0.07 = Change Risk (0.30) × (1 − Review Confidence (0.76)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.30 · 52 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.52 · 5 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.238
Real PR Conversation Timeline
8 items
really time for CI tests :D
this and the line above looks a bit convoluted - think readability can be improved here with blocks
and looks like flatbuffers_string_len is used on the name even when it is not from the flatbuffer, and code is repeated below
Changes Requested
Requested changes.
Refactored some bits here in iree_hal_webgpu_executable_export_name
really time for CI tests :D
I know. I'll take care of this really soon 🙏
Approved
thanks, looks much better 🥳
Thanks a lot for the approval Tobias, I've made quite some prs last week that might need some reviews/help ;)
devtbi
anutosh491
WebGPU renames shader entry points to names like
d0, but also changes the original executable export names. This breaks runtime lookup by the original dispatch name.Keep the export name separate from the shader entry point, following the same approach as #24889 for CUDA by
weimin023.A simple add model compiles before the fix but fails to load with:
NOT_FOUND; no function named 'add_dispatch_0_elementwise_4_f32' in executableAfter the fix, it loads and returns the expected result.