Skip to content

Commit

Permalink
fix(ios): update patch
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Sep 4, 2023
1 parent 95a3751 commit 6f6eabd
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion scripts/ggml-metal.m.patch
Original file line number Diff line number Diff line change
@@ -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 <MTLDevice> 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
}
Expand Down

0 comments on commit 6f6eabd

Please sign in to comment.