mirror of
https://github.com/ggml-org/whisper.cpp.git
synced 2026-07-23 11:10:57 -05:00
abort if we see a multi buffer (llama/25276)
This commit is contained in:
@@ -1144,6 +1144,11 @@ static enum ggml_status ggml_backend_meta_buffer_init_tensor_impl(ggml_backend_m
|
|||||||
ggml_context * simple_ctx = stc.ctxs[j].get();
|
ggml_context * simple_ctx = stc.ctxs[j].get();
|
||||||
ggml_backend_buffer_t simple_buf = buf_ctx->bufs[j].get();
|
ggml_backend_buffer_t simple_buf = buf_ctx->bufs[j].get();
|
||||||
|
|
||||||
|
if ((simple_buf != nullptr) && ggml_backend_buffer_is_multi_buffer(simple_buf)) {
|
||||||
|
// see https://github.com/ggml-org/llama.cpp/issues/22197
|
||||||
|
GGML_ABORT("multi buffers are not supported by the meta backend");
|
||||||
|
}
|
||||||
|
|
||||||
if (split_dim >= 0 && split_dim < GGML_MAX_DIMS) {
|
if (split_dim >= 0 && split_dim < GGML_MAX_DIMS) {
|
||||||
// TODO: the following assert fails for llama-parallel even though the results are correct:
|
// TODO: the following assert fails for llama-parallel even though the results are correct:
|
||||||
// GGML_ASSERT(ggml_is_contiguously_allocated(tensor));
|
// GGML_ASSERT(ggml_is_contiguously_allocated(tensor));
|
||||||
|
|||||||
Reference in New Issue
Block a user