Commit f026f81
authored
metal : use autoreleasepool to avoid memory leaks (ggml-org#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 ggml-org#54361 parent cd9aea6 commit f026f81
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
687 | 687 | | |
688 | 688 | | |
689 | 689 | | |
| 690 | + | |
690 | 691 | | |
691 | 692 | | |
692 | 693 | | |
| |||
2272 | 2273 | | |
2273 | 2274 | | |
2274 | 2275 | | |
| 2276 | + | |
2275 | 2277 | | |
2276 | 2278 | | |
2277 | 2279 | | |
| |||
0 commit comments