if (block->size >= size) {
best_fit_block = alloc->n_free_blocks - 1;
} else {
- fprintf(stderr, "%s: not enough space in the buffer (needed %zu, largest block available %zu)\n",
- __func__, size, max_avail);
+ fprintf(stderr, "%s: not enough space in the buffer to allocate %s (needed %zu, largest block available %zu)\n",
+ __func__, tensor->name, size, max_avail);
GGML_ASSERT(!"not enough space in the buffer");
return;
}