From a449358f8390da90372675611be5b87c15a86df1 Mon Sep 17 00:00:00 2001 From: DocShotgun <126566557+DocShotgun@users.noreply.github.com> Date: Fri, 2 Jan 2026 13:49:24 -0800 Subject: [PATCH] cann: forward declaration of device context struct --- ggml/src/ggml-cann/ggml-cann.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ggml/src/ggml-cann/ggml-cann.cpp b/ggml/src/ggml-cann/ggml-cann.cpp index c65d84b01f..275e2bd370 100644 --- a/ggml/src/ggml-cann/ggml-cann.cpp +++ b/ggml/src/ggml-cann/ggml-cann.cpp @@ -2511,6 +2511,7 @@ static bool ggml_backend_buft_is_cann(ggml_backend_buffer_type_t buft) { * @return bool Returns true if the operation should be offloaded, otherwise * false. */ +struct ggml_backend_cann_device_context; static bool ggml_backend_cann_offload_op(ggml_backend_dev_t dev, const ggml_tensor * op) { ggml_backend_cann_device_context * dev_ctx = (ggml_backend_cann_device_context *)dev->context;