Skip to content

Commit a7556d2

Browse files
lshzh-wwakawrykow
authored andcommitted
ggml-alloc : enlarge size of parse_seq (ggml-org#2776)
Since we also store barriers in this array, we need to double its size.
1 parent 355c3b7 commit a7556d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ggml-alloc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#define UNUSED(x) (void)(x)
1010
#define MAX(a, b) ((a) > (b) ? (a) : (b))
11+
#define GGML_MAX_CONCUR (2*GGML_MAX_NODES)
1112

1213
//#define GGML_ALLOCATOR_DEBUG
1314

@@ -67,7 +68,7 @@ struct ggml_allocr {
6768
struct hash_node hash_table[GGML_GRAPH_HASHTABLE_SIZE];
6869
size_t max_size;
6970
bool measure;
70-
int parse_seq[GGML_MAX_NODES];
71+
int parse_seq[GGML_MAX_CONCUR];
7172
int parse_seq_len;
7273

7374
#ifdef GGML_ALLOCATOR_DEBUG

0 commit comments

Comments
 (0)