Skip to content

[WebGPU EP] Reduce duplicated code in MatMulReadFnSource() - #27151

Merged
Guenther Schmuelling (guschmue) merged 5 commits into
microsoft:mainfrom
Jiawei-Shao:refactor-writemm
Jan 28, 2026
Merged

[WebGPU EP] Reduce duplicated code in MatMulReadFnSource()#27151
Guenther Schmuelling (guschmue) merged 5 commits into
microsoft:mainfrom
Jiawei-Shao:refactor-writemm

Conversation

@Jiawei-Shao

Copy link
Copy Markdown
Contributor

Description

Previously in MatMulReadFnSource() we use duplicated code to read data from two inputs a and b. This patch implements another overload of MatMulReadFnSource() to only read data from one input to reduce duplicated code and get ready for further use.

Previously in `MatMulReadFnSource()` we use duplicated code to read
data from two inputs `a` and `b`. This patch implements another
overload of `MatMulReadFnSource()` to only read data from one input
to reduce duplicated code and get ready for further use.
@Jiawei-Shao

Copy link
Copy Markdown
Contributor Author

Comment thread onnxruntime/core/providers/webgpu/math/gemm_utils.cc Outdated
@guschmue Guenther Schmuelling (guschmue) added the ep:WebGPU ort-web webgpu provider label Jan 26, 2026
@guschmue

Copy link
Copy Markdown
Contributor

/azp run Linux QNN CI Pipeline,Win_TRT_Minimal_CUDA_Test_CI,Windows ARM64 QNN CI Pipeline,Windows GPU Doc Gen CI Pipeline

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 4 pipeline(s).

@guschmue
Guenther Schmuelling (guschmue) merged commit db383a9 into microsoft:main Jan 28, 2026
87 of 88 checks passed
Milos Puzovic (milpuz01) pushed a commit to milpuz01/onnxruntime that referenced this pull request Feb 4, 2026
…ft#27151)

### Description
Previously in `MatMulReadFnSource()` we use duplicated code to read data
from two inputs `a` and `b`. This patch implements another overload of
`MatMulReadFnSource()` to only read data from one input to reduce
duplicated code and get ready for further use.
Milos Puzovic (milpuz01) pushed a commit to milpuz01/onnxruntime that referenced this pull request Feb 12, 2026
…ft#27151)

Previously in `MatMulReadFnSource()` we use duplicated code to read data
from two inputs `a` and `b`. This patch implements another overload of
`MatMulReadFnSource()` to only read data from one input to reduce
duplicated code and get ready for further use.
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.

3 participants