]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/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:42:50 +0000 (13:42 +0300)
commitcda7d4e5acfb1697edaf6e035baf9271f384c452
tree2957236164f2ac7095c965eef4c67cac32897c7e
parentcd70d896285be4653bf0bf474625158c6439bae7
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.
ggml/src/ggml-webgpu/ggml-webgpu.cpp