mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-06-27 23:50:20 -05:00
cont : fix cur_buf_size init after flushing a buffer
This commit is contained in:
parent
e0d7afdf74
commit
7c7be0fbc3
@ -115,7 +115,7 @@ static ggml_backend_buffer_t ggml_backend_buft_alloc_buffer_n_default(ggml_backe
|
||||
|
||||
buffers = (ggml_backend_buffer_t *) realloc(buffers, sizeof(ggml_backend_buffer_t) * (n_buffers + 1));
|
||||
buffers[n_buffers++] = buffer;
|
||||
cur_buf_size = 0;
|
||||
cur_buf_size = this_size;
|
||||
first = i;
|
||||
} else if (i < n_tensors) {
|
||||
cur_buf_size += this_size;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user