onnxruntime
57f6079d - [WebGPU] Make max_num_pending_dispatches configurable (#28894)

Commit
87 days ago
[WebGPU] Make max_num_pending_dispatches configurable (#28894) ### Description Adds support for configuring the WebGPU execution provider's maximum number of pending dispatches via a provider option. Previously, `WebGpuContext::max_num_pending_dispatches_` was hardcoded to `16`. This change introduces a new WebGPU provider option: `ep.webgpuexecutionprovider.maxNumPendingDispatches` The value is parsed into `WebGpuContextConfig` and applied during `WebGpuContext` initialization, while preserving the existing default value of `16`. A WebGPU execution test was also added to verify that the new provider option can be supplied successfully and that execution proceeds correctly with a custom value. ### Testing * Built ONNX Runtime with WebGPU enabled. * Ran: * `ExpandOpTest.Expand_3x3_int64_webgpu_max_num_pending_dispatches` * `ExpandOpTest.*webgpu*` * All tests passed. ### Motivation and Context Fixes #28613. Some devices may achieve better inference performance with a different pending dispatch limit. This change makes the existing hardcoded value configurable without changing the default behavior.
Author
Parents
Loading