]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
[WebGPU] Plug memory leaks and free resources on shutdown (#19315)
authorNikhil Jain <redacted>
Tue, 10 Feb 2026 16:04:00 +0000 (08:04 -0800)
committerGitHub <redacted>
Tue, 10 Feb 2026 16:04:00 +0000 (08:04 -0800)
commit57487a64c88c152ac72f3aea09bd1cc491b2f61e
treee8bdad818be51fbfd588a8ec486af0b13427a4c4
parentfc0fe4004985d6749a7a05e250d161f9dbe41d65
[WebGPU] Plug memory leaks and free resources on shutdown (#19315)

* Fix memory leaks in shader lib, backend, backend_context, buffer_context, and webgpu_buf_pool

* Free pools

* Cleanup

* More cleanup

* Run clang-format

* Fix arg-parser and tokenizer test errors that free an unallocated buffer

* Fix device lost callback to not print on device teardown

* Fix include and run clang-format

* remove unused unused

* Update binary ops

---------

Co-authored-by: Reese Levine <redacted>
ggml/src/ggml-webgpu/ggml-webgpu-shader-lib.hpp
ggml/src/ggml-webgpu/ggml-webgpu.cpp