mirror of
https://github.com/ollama/ollama.git
synced 2025-09-28 22:33:37 +02:00
look for ggml-metal in the same directory as the binary
This commit is contained in:
1
ggml-metal.metal
Symbolic link
1
ggml-metal.metal
Symbolic link
@@ -0,0 +1 @@
|
||||
llama/ggml-metal.metal
|
@@ -152,7 +152,7 @@ struct ggml_metal_context * ggml_metal_init(int n_cb) {
|
||||
|
||||
//NSString * path = [[NSBundle mainBundle] pathForResource:@"../../examples/metal/metal" ofType:@"metal"];
|
||||
NSBundle * bundle = [NSBundle bundleForClass:[GGMLMetalClass class]];
|
||||
NSString * path = [bundle pathForResource:@"llama/ggml-metal" ofType:@"metal"];
|
||||
NSString * path = [bundle pathForResource:@"ggml-metal" ofType:@"metal"];
|
||||
fprintf(stderr, "%s: loading '%s'\n", __func__, [path UTF8String]);
|
||||
|
||||
NSString * src = [NSString stringWithContentsOfFile:path encoding:NSUTF8StringEncoding error:&error];
|
||||
|
Reference in New Issue
Block a user