summaryrefslogtreecommitdiff
path: root/ggml-alloc.c
diff options
context:
space:
mode:
authorShouzheng Liu <lshzh.hi@gmail.com>2023-08-25 01:58:00 -0400
committerGitHub <noreply@github.com>2023-08-25 08:58:00 +0300
commitb91ad7f46134d0d051dc516eb59a76f402de55c2 (patch)
tree2c9af713193e4ac89e75070580eb1e9c573c5ebe /ggml-alloc.c
parent2e5f70a25fc4576e9ed78603fe493eb7702c37a3 (diff)
ggml-alloc : enlarge size of parse_seq (#2776)
Since we also store barriers in this array, we need to double its size.
Diffstat (limited to 'ggml-alloc.c')
-rw-r--r--ggml-alloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ggml-alloc.c b/ggml-alloc.c
index af4affa4..1ef01165 100644
--- a/ggml-alloc.c
+++ b/ggml-alloc.c
@@ -8,6 +8,7 @@
#define UNUSED(x) (void)(x)
#define MAX(a, b) ((a) > (b) ? (a) : (b))
+#define GGML_MAX_CONCUR (2*GGML_MAX_NODES)
//#define GGML_ALLOCATOR_DEBUG
@@ -67,7 +68,7 @@ struct ggml_allocr {
struct hash_node hash_table[GGML_GRAPH_HASHTABLE_SIZE];
size_t max_size;
bool measure;
- int parse_seq[GGML_MAX_NODES];
+ int parse_seq[GGML_MAX_CONCUR];
int parse_seq_len;
#ifdef GGML_ALLOCATOR_DEBUG