]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
ggml WebGPU: remove userdata from request adapter callback (llama/15527)
authorDaniel Bevenius <redacted>
Sun, 7 Sep 2025 08:19:45 +0000 (10:19 +0200)
committerGeorgi Gerganov <redacted>
Sat, 20 Sep 2025 10:33:50 +0000 (13:33 +0300)
commitfee0ce78e412655b771b2867e25e92397810806b
tree1b5bdbf78ce41fc61d4951424bd4113bcb9e2f7a
parentec7bd5c950b34e47df2b52d901fc283d81b95679
ggml WebGPU: remove userdata from request adapter callback (llama/15527)

* ggml WebGPU: remove userdata from request adapter callback

This commit removes the `userdata` parameter from the WebGPU request
adapter callback in `ggml-webgpu.cpp`. Instead, the lambda function
captures the `webgpu_context` directly.

The motivation for this change is to simplify the code and improve
readability.

* inline the callback lambda into the RequestAdapter call

This commit removes the callback lambda variable and inlines it directly
into the RequestAdapter call.
src/ggml-webgpu/ggml-webgpu.cpp