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 {