Skip to content

Commit

Permalink
set g_state.log_callback for metal logging
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys committed Sep 28, 2023
1 parent 3a5f945 commit 6ed7dce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llama.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6749,7 +6749,7 @@ struct llama_context * llama_new_context_with_model(
llama_free(ctx);
return NULL;
}
ggml_metal_log_set_callback(llama_log_callback_default, NULL);
ggml_metal_log_set_callback(g_state.log_callback, g_state.log_callback_user_data);
//ggml_metal_graph_find_concurrency(ctx->ctx_metal, gf, false);
//ggml_allocr_set_parse_seq(ctx->alloc, ggml_metal_get_concur_list(ctx->ctx_metal), ggml_metal_if_optimized(ctx->ctx_metal));
}
Expand Down

0 comments on commit 6ed7dce

Please sign in to comment.