summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorleejet <leejet714@gmail.com>2024-01-10 21:13:42 +0800
committerGeorgi Gerganov <ggerganov@gmail.com>2024-01-11 09:39:05 +0200
commite739de790921e6abbc8c70398303cacd74913f61 (patch)
treec800f92a5fe251b73276c671dc1c1a47f2cdc059
parentc910e3c28a1caee8cb1398143d582dd9ab697e68 (diff)
ggml : change GGML_MAX_NAME at compile time (ggml/682)
* change GGML_MAX_NAME to 128 * allow controlling the value of GGML_MAX_NAME through external macro definitions
-rw-r--r--ggml.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ggml.h b/ggml.h
index c55e598b..b6cc8595 100644
--- a/ggml.h
+++ b/ggml.h
@@ -218,7 +218,9 @@
#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