metal : use autoreleasepool to avoid memory leaks (#5437)
There appears to be a known memory leak when using the `MLTCommandBuffer`. It is suggested to use `@autoreleasepool` in [1,2] [1] https://developer.apple.com/forums/thread/662721 [2] https://forums.developer.apple.com/forums/thread/120931 This change-set wraps the `ggml_metal_graph_compute` in a `@autoreleasepool`. This commit addresses https://github.com/ggerganov/llama.cpp/issues/5436
I
Ian Bull committed
f026f8120f97090d34a52b3dc023c82e0ede3f7d
Parent: cd9aea6
Committed by GitHub <noreply@github.com>
on 2/10/2024, 10:53:28 AM