]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
metal: fix memory unwire if model is freed without any GPU operations (#26082)
authorNiklas Wenzel <redacted>
Thu, 30 Jul 2026 08:11:27 +0000 (10:11 +0200)
committerGitHub <redacted>
Thu, 30 Jul 2026 08:11:27 +0000 (11:11 +0300)
commitd0bfb1981266c271cd0536a8aa7c5e863e7cdf61
treea05e5cdfbf4169c07d3a58a56395a7a8ca4892c9
parent21a5f5b7f919834e37fd492158aa24dc2f5e3b26
metal: fix memory unwire if model is freed without any GPU operations (#26082)

* metal: fix memory leak if model is freed without any GPU operations

* metal: run dummy work only if residency sets are used

* metal: wrap function in #if defined

* metal: measure system-wide wired memory in test

* metal: always build regression test

Co-authored-by: YiChen Lv <redacted>
---------

Co-authored-by: YiChen Lv <redacted>
ggml/src/ggml-metal/ggml-metal-device.h
ggml/src/ggml-metal/ggml-metal-device.m
tests/CMakeLists.txt
tests/test-rset-release.cpp [new file with mode: 0644]