From 39622ccb326a8c3923817fcfe146a47a7b98deb4 Mon Sep 17 00:00:00 2001 From: mfritsche Date: Wed, 8 Jul 2026 23:57:15 +0200 Subject: [PATCH] rknpu2: add 2d (a)sync backend iface NULL slots for newer ggml Pre-existing working-tree compat change carried from dspark, committed separately as the base for the perf-rknpu2 series. No behavior change. --- ggml/src/ggml-rknpu2/ggml-rknpu2.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ggml/src/ggml-rknpu2/ggml-rknpu2.cpp b/ggml/src/ggml-rknpu2/ggml-rknpu2.cpp index 55ae0ca36..67fa4562b 100644 --- a/ggml/src/ggml-rknpu2/ggml-rknpu2.cpp +++ b/ggml/src/ggml-rknpu2/ggml-rknpu2.cpp @@ -1209,6 +1209,8 @@ static ggml_backend_buffer_t ggml_backend_rknpu_buffer_type_alloc_buffer(ggml_ba /* .memset_tensor = */ NULL, /* .set_tensor = */ ggml_backend_rknpu_buffer_set_tensor, /* .get_tensor = */ ggml_backend_rknpu_buffer_get_tensor, + /* .set_tensor_2d = */ NULL, + /* .get_tensor_2d = */ NULL, /* .cpy_tensor = */ NULL, /* .clear = */ ggml_backend_rknpu_buffer_clear, /* .reset = */ NULL, @@ -1340,6 +1342,8 @@ static ggml_backend_t ggml_backend_rknpu_device_init_backend(ggml_backend_dev_t /* .free = */ ggml_backend_rknpu_free, /* .set_tensor_async = */ NULL, /* .get_tensor_async = */ NULL, + /* .set_tensor_2d_async= */ NULL, + /* .get_tensor_2d_async= */ NULL, /* .cpy_tensor_async = */ NULL, /* .synchronize = */ NULL, /* .graph_plan_create = */ NULL,