File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -141,9 +141,6 @@ @implementation GGMLMetalClass
141
141
142
142
ctx->d_queue = dispatch_queue_create (" llama.cpp" , DISPATCH_QUEUE_CONCURRENT);
143
143
144
- MTLCompileOptions * options = [MTLCompileOptions new ];
145
- options.preprocessorMacros = @{ @" QK_K" : @(64 ) };
146
-
147
144
#ifdef GGML_SWIFT
148
145
// load the default.metallib file
149
146
{
@@ -181,6 +178,8 @@ @implementation GGMLMetalClass
181
178
}
182
179
183
180
#ifdef GGML_QKK_64
181
+ MTLCompileOptions * options = [MTLCompileOptions new ];
182
+ options.preprocessorMacros = @{ @" QK_K" : @(64 ) };
184
183
ctx->library = [ctx->device newLibraryWithSource: src options: options error: &error];
185
184
#else
186
185
ctx->library = [ctx->device newLibraryWithSource: src options: nil error: &error];
You can’t perform that action at this time.
0 commit comments