Skip to content

Commit 94242a6

Browse files
ggml-zdnn : mark zDNN buffers as non-host (ggml-org#18967)
While buffers reside in host memory, additional transformation is needed to use buffers with zDNN. Fixes ggml-org#18848
1 parent 6b99a22 commit 94242a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ggml/src/ggml-zdnn/ggml-zdnn.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,8 @@ static size_t ggml_backend_zdnn_buffer_type_get_alignment(ggml_backend_buffer_ty
372372
}
373373

374374
static bool ggml_backend_zdnn_buffer_type_is_host(ggml_backend_buffer_type_t buft) {
375-
return true;
375+
/* while it resides in host memory, additional transformation is needed */
376+
return false;
376377

377378
GGML_UNUSED(buft);
378379
}

0 commit comments

Comments
 (0)