From 31541d74272d6e49bfff24544605c3de8466684d Mon Sep 17 00:00:00 2001 From: Max Krasnyansky Date: Sat, 24 Aug 2024 13:55:58 -0700 Subject: [PATCH] threadpool: move typedef into ggml.h --- ggml/include/ggml-alloc.h | 1 - ggml/include/ggml.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ggml/include/ggml-alloc.h b/ggml/include/ggml-alloc.h index cd85b6ee7..0dff47d65 100644 --- a/ggml/include/ggml-alloc.h +++ b/ggml/include/ggml-alloc.h @@ -9,7 +9,6 @@ extern "C" { typedef struct ggml_backend_buffer_type * ggml_backend_buffer_type_t; typedef struct ggml_backend_buffer * ggml_backend_buffer_t; typedef struct ggml_backend * ggml_backend_t; -typedef struct ggml_compute_threadpool * ggml_compute_threadpool_t; // Tensor allocator struct ggml_tallocr { diff --git a/ggml/include/ggml.h b/ggml/include/ggml.h index 0accc3908..1df73d328 100644 --- a/ggml/include/ggml.h +++ b/ggml/include/ggml.h @@ -639,6 +639,8 @@ extern "C" { struct ggml_compute_threadpool; // forward declaration, see ggml.c + typedef struct ggml_compute_threadpool * ggml_compute_threadpool_t; + // the compute plan that needs to be prepared for ggml_graph_compute() // since https://github.com/ggerganov/ggml/issues/287 struct ggml_cplan {