Browse Source

ggml-zdnn : mark zDNN buffers as non-host (#18967)

While buffers reside in host memory,
additional transformation is needed to use buffers with zDNN.

Fixes #18848
Aleksei Nikiforov 1 week ago
parent
commit
94242a62c0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      ggml/src/ggml-zdnn/ggml-zdnn.cpp

+ 2 - 1
ggml/src/ggml-zdnn/ggml-zdnn.cpp

@@ -372,7 +372,8 @@ static size_t ggml_backend_zdnn_buffer_type_get_alignment(ggml_backend_buffer_ty
 }
 
 static bool ggml_backend_zdnn_buffer_type_is_host(ggml_backend_buffer_type_t buft) {
-    return true;
+    /* while it resides in host memory, additional transformation is needed */
+    return false;
 
     GGML_UNUSED(buft);
 }