Skip to content

Commit 693a13d

Browse files
hexagon: use cpy_tensor slow path for non-host buffers
1 parent 14b080f commit 693a13d

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

ggml/src/ggml-hexagon/ggml-hexagon.cpp

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1356,16 +1356,11 @@ static void ggml_backend_hexagon_buffer_get_tensor(ggml_backend_buffer_t buffer,
13561356
static bool ggml_backend_hexagon_buffer_cpy_tensor(ggml_backend_buffer_t buffer,
13571357
const struct ggml_tensor * src,
13581358
struct ggml_tensor * dst) {
1359-
auto ctx = (ggml_backend_hexagon_buffer_context *) buffer->context;
1360-
auto sess = ctx->sess;
1361-
1362-
GGML_LOG_DEBUG("ggml-hex: %s copy-tensor %s -> %s size %zu\n", sess->name.c_str(), src->name, dst->name,
1363-
ggml_nbytes(src));
1364-
1365-
memcpy(dst->data, src->data, ggml_nbytes(src));
1366-
return true;
1367-
13681359
GGML_UNUSED(buffer);
1360+
GGML_UNUSED(src);
1361+
GGML_UNUSED(dst);
1362+
// we might optimize this later, for now take the slow path (ie get/set_tensor)
1363+
return false;
13691364
}
13701365

13711366
static void ggml_backend_hexagon_buffer_clear(ggml_backend_buffer_t buffer, uint8_t value) {

0 commit comments

Comments
 (0)