We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc6286b commit 59b1838Copy full SHA for 59b1838
ggml_extend.hpp
@@ -1041,7 +1041,7 @@ struct GGMLRunner {
1041
}
1042
1043
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));
+ struct ggml_gallocr * galloc = (struct ggml_gallocr *)calloc(1, sizeof(void *) * 8 + sizeof(int) * 4 + 256);
1045
GGML_ASSERT(galloc != NULL);
1046
1047
galloc->bufts = calloc(n_bufs, sizeof(ggml_backend_buffer_type_t));
0 commit comments