Skip to content

Commit 32621c0

Browse files
threadpool: move typedef into ggml.h
1 parent 0d34b7b commit 32621c0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ggml/include/ggml-alloc.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ extern "C" {
99
typedef struct ggml_backend_buffer_type * ggml_backend_buffer_type_t;
1010
typedef struct ggml_backend_buffer * ggml_backend_buffer_t;
1111
typedef struct ggml_backend * ggml_backend_t;
12-
typedef struct ggml_compute_threadpool * ggml_compute_threadpool_t;
1312

1413
// Tensor allocator
1514
struct ggml_tallocr {

ggml/include/ggml.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,8 @@ extern "C" {
639639

640640
struct ggml_compute_threadpool; // forward declaration, see ggml.c
641641

642+
typedef struct ggml_compute_threadpool * ggml_compute_threadpool_t;
643+
642644
// the compute plan that needs to be prepared for ggml_graph_compute()
643645
// since https://github.com/ggerganov/ggml/issues/287
644646
struct ggml_cplan {

0 commit comments

Comments
 (0)