From 6f6eabd56c7c19da3a93bcaf2c42a15c27d917b7 Mon Sep 17 00:00:00 2001 From: Jhen Date: Mon, 4 Sep 2023 10:08:15 +0800 Subject: [PATCH] fix(ios): update patch --- scripts/ggml-metal.m.patch | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/scripts/ggml-metal.m.patch b/scripts/ggml-metal.m.patch index 27216a4..b878a89 100644 --- a/scripts/ggml-metal.m.patch +++ b/scripts/ggml-metal.m.patch @@ -1,5 +1,24 @@ --- ggml-metal-orig.m 2023-09-04 09:16:25 -+++ ggml-metal.m 2023-09-04 09:17:46 ++++ ggml-metal.m 2023-09-04 10:09:46 +@@ -118,13 +118,13 @@ + metal_printf("%s: allocating\n", __func__); + + // Show all the Metal device instances in the system +- NSArray * devices = MTLCopyAllDevices(); ++ // NSArray * devices = MTLCopyAllDevices(); + id device; + NSString * s; +- for (device in devices) { +- s = [device name]; +- metal_printf("%s: found device: %s\n", __func__, [s UTF8String]); +- } ++ // for (device in devices) { ++ // s = [device name]; ++ // metal_printf("%s: found device: %s\n", __func__, [s UTF8String]); ++ // } + + // Pick and show default Metal device + device = MTLCreateSystemDefaultDevice(); @@ -247,13 +247,13 @@ #undef LM_GGML_METAL_ADD_KERNEL }