File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -6760,13 +6760,14 @@ struct llama_context * llama_new_context_with_model(
6760
6760
6761
6761
#ifdef GGML_USE_METAL
6762
6762
if (model->n_gpu_layers > 0 ) {
6763
+ ggml_metal_log_set_callback (llama_log_callback_default, NULL );
6764
+
6763
6765
ctx->ctx_metal = ggml_metal_init (1 );
6764
6766
if (!ctx->ctx_metal ) {
6765
6767
LLAMA_LOG_ERROR (" %s: ggml_metal_init() failed\n " , __func__);
6766
6768
llama_free (ctx);
6767
6769
return NULL ;
6768
6770
}
6769
- ggml_metal_log_set_callback (llama_log_callback_default, NULL );
6770
6771
// ggml_metal_graph_find_concurrency(ctx->ctx_metal, gf, false);
6771
6772
// ggml_allocr_set_parse_seq(ctx->alloc, ggml_metal_get_concur_list(ctx->ctx_metal), ggml_metal_if_optimized(ctx->ctx_metal));
6772
6773
}
You can’t perform that action at this time.
0 commit comments