summaryrefslogtreecommitdiff
path: root/ggml-metal.h
diff options
context:
space:
mode:
authorRickard Hallerbäck <rickard.hallerback@gmail.com>2023-09-27 17:48:33 +0200
committerGitHub <noreply@github.com>2023-09-27 18:48:33 +0300
commitdc6897404e141c74cbbf8030ecfebd74e1815411 (patch)
treec36354fd18ce45ff12fbf8b7ebfc5004834a40dc /ggml-metal.h
parent527e57cfd8a9a26bf622c0510c21c2508a24be26 (diff)
metal : reusing llama.cpp logging (#3152)
* metal : reusing llama.cpp logging * cmake : build fix * metal : logging callback * metal : logging va_args memory fix * metal : minor cleanup * metal : setting function like logging macro to capital letters * llama.cpp : trailing whitespace fix * ggml : log level enum used by llama * Makefile : cleanup ggml-metal recipe * ggml : ggml_log_callback typedef * ggml : minor --------- Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
Diffstat (limited to 'ggml-metal.h')
-rw-r--r--ggml-metal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ggml-metal.h b/ggml-metal.h
index fca28d37..790cf0bf 100644
--- a/ggml-metal.h
+++ b/ggml-metal.h
@@ -19,6 +19,8 @@
#pragma once
+#include "ggml.h"
+
#include <stddef.h>
#include <stdbool.h>
@@ -33,6 +35,8 @@ struct ggml_cgraph;
extern "C" {
#endif
+void ggml_metal_log_set_callback(ggml_log_callback log_callback, void * user_data);
+
struct ggml_metal_context;
// number of command buffers to use