Skip to content

Commit 59b1838

Browse files
authored
Update ggml_extend.hpp
1 parent fc6286b commit 59b1838

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml_extend.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,7 @@ struct GGMLRunner {
10411041
}
10421042

10431043
struct ggml_gallocr * ggml_gallocr_new_n_multi(ggml_backend_buffer_type_t * bufts, int n_bufs) {
1044-
struct ggml_gallocr * galloc = (struct ggml_gallocr *)calloc(1, sizeof(struct ggml_gallocr));
1044+
struct ggml_gallocr * galloc = (struct ggml_gallocr *)calloc(1, sizeof(void *) * 8 + sizeof(int) * 4 + 256);
10451045
GGML_ASSERT(galloc != NULL);
10461046

10471047
galloc->bufts = calloc(n_bufs, sizeof(ggml_backend_buffer_type_t));

0 commit comments

Comments
 (0)