threadpool: move typedef into ggml.h

This commit is contained in:
Max Krasnyansky 2024-08-24 13:55:58 -07:00 committed by fmz
parent c4452edfea
commit 31541d7427
2 changed files with 2 additions and 1 deletions

View file

@ -9,7 +9,6 @@ extern "C" {
typedef struct ggml_backend_buffer_type * ggml_backend_buffer_type_t; typedef struct ggml_backend_buffer_type * ggml_backend_buffer_type_t;
typedef struct ggml_backend_buffer * ggml_backend_buffer_t; typedef struct ggml_backend_buffer * ggml_backend_buffer_t;
typedef struct ggml_backend * ggml_backend_t; typedef struct ggml_backend * ggml_backend_t;
typedef struct ggml_compute_threadpool * ggml_compute_threadpool_t;
// Tensor allocator // Tensor allocator
struct ggml_tallocr { struct ggml_tallocr {

View file

@ -639,6 +639,8 @@ extern "C" {
struct ggml_compute_threadpool; // forward declaration, see ggml.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() // the compute plan that needs to be prepared for ggml_graph_compute()
// since https://github.com/ggerganov/ggml/issues/287 // since https://github.com/ggerganov/ggml/issues/287
struct ggml_cplan { struct ggml_cplan {