|
|
@@ -687,6 +687,7 @@ static bool ggml_metal_graph_compute(
|
|
|
struct ggml_metal_context * ctx,
|
|
|
struct ggml_cgraph * gf) {
|
|
|
|
|
|
+ @autoreleasepool {
|
|
|
MTLComputePassDescriptor * edesc = MTLComputePassDescriptor.computePassDescriptor;
|
|
|
edesc.dispatchType = MTLDispatchTypeSerial;
|
|
|
|
|
|
@@ -2272,6 +2273,7 @@ static bool ggml_metal_graph_compute(
|
|
|
[[MTLCaptureManager sharedCaptureManager] stopCapture];
|
|
|
}
|
|
|
|
|
|
+ }
|
|
|
return true;
|
|
|
}
|
|
|
|