Metal inference enhancement - put hard-wired relative path of ggml-model.model file due to lack of NSBundle environment
This commit is contained in:
parent
a6a0fa338a
commit
7f181600c7
1 changed files with 11 additions and 0 deletions
11
ggml-metal.m.diff
Normal file
11
ggml-metal.m.diff
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- ggml-metal.m 2023-06-09 00:52:44
|
||||
+++ ggml-metal.m 2023-06-09 00:52:31
|
||||
@@ -99,7 +99,7 @@
|
||||
NSError * error = nil;
|
||||
|
||||
//NSString * path = [[NSBundle mainBundle] pathForResource:@"../../examples/metal/metal" ofType:@"metal"];
|
||||
- NSString * path = [[NSBundle mainBundle] pathForResource:@"ggml-metal" ofType:@"metal"];
|
||||
+ NSString * path = @"./ggml-metal.metal";
|
||||
fprintf(stderr, "%s: loading '%s'\n", __func__, [path UTF8String]);
|
||||
|
||||
NSString * src = [NSString stringWithContentsOfFile:path encoding:NSUTF8StringEncoding error:&error];
|
Loading…
Add table
Add a link
Reference in a new issue