]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
ggml : change GGML_MAX_NAME at compile time (ggml/682)
authorleejet <redacted>
Wed, 10 Jan 2024 13:13:42 +0000 (21:13 +0800)
committerGeorgi Gerganov <redacted>
Thu, 11 Jan 2024 19:50:00 +0000 (21:50 +0200)
* change GGML_MAX_NAME to 128

* allow controlling the value of GGML_MAX_NAME through external macro definitions

ggml.h

diff --git a/ggml.h b/ggml.h
index c55e598b4fea3339c2a48da1484862fd88a6c90a..b6cc85952ff8df987b8665686269229163085e12 100644 (file)
--- a/ggml.h
+++ b/ggml.h
 #define GGML_MAX_PARAMS         2048
 #define GGML_MAX_CONTEXTS       64
 #define GGML_MAX_SRC            10
+#ifndef GGML_MAX_NAME
 #define GGML_MAX_NAME           64
+#endif
 #define GGML_MAX_OP_PARAMS      64
 #define GGML_DEFAULT_N_THREADS  4
 #define GGML_DEFAULT_GRAPH_SIZE 2048