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 @@ -140,9 +140,6 @@ @implementation GGMLMetalClass
140
140
141
141
ctx->d_queue = dispatch_queue_create (" llama.cpp" , DISPATCH_QUEUE_CONCURRENT);
142
142
143
- MTLCompileOptions * options = [MTLCompileOptions new ];
144
- options.preprocessorMacros = @{ @" QK_K" : @(64 ) };
145
-
146
143
#ifdef GGML_SWIFT
147
144
// load the default.metallib file
148
145
{
@@ -180,6 +177,8 @@ @implementation GGMLMetalClass
180
177
}
181
178
182
179
#ifdef GGML_QKK_64
180
+ MTLCompileOptions * options = [MTLCompileOptions new ];
181
+ options.preprocessorMacros = @{ @" QK_K" : @(64 ) };
183
182
ctx->library = [ctx->device newLibraryWithSource: src options: options error: &error];
184
183
#else
185
184
ctx->library = [ctx->device newLibraryWithSource: src options: nil error: &error];
You can’t perform that action at this time.
0 commit comments