Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
e64ef69e
Commit
e64ef69e
authored
Jul 11, 2023
by
Jeffrey Morgan
Browse files
look for ggml-metal in the same directory as the binary
parent
3d0a9b47
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
ggml-metal.metal
ggml-metal.metal
+1
-0
llama/ggml-metal.m
llama/ggml-metal.m
+1
-1
No files found.
ggml-metal.metal
0 → 120000
View file @
e64ef69e
llama/ggml-metal.metal
\ No newline at end of file
llama/ggml-metal.m
View file @
e64ef69e
...
...
@@ -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
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment