diff --git a/ggml/include/ggml.h b/ggml/include/ggml.h index eeeff0715903f4..2e534f3f871102 100644 --- a/ggml/include/ggml.h +++ b/ggml/include/ggml.h @@ -2425,21 +2425,6 @@ extern "C" { GGML_API ggml_type_traits_t ggml_internal_get_type_traits(enum ggml_type type); - struct ggml_compute_params { - // ith = thread index, nth = number of threads - int ith, nth; - - // work buffer for all threads - size_t wsize; - void * wdata; - - struct ggml_compute_state_shared * shared; - }; - - void ggml_compute_forward_rope( - const struct ggml_compute_params * params, - struct ggml_tensor * dst); - #ifdef __cplusplus } #endif diff --git a/ggml/src/ggml.c b/ggml/src/ggml.c index 3190b44b040d8a..929b153b85b10d 100644 --- a/ggml/src/ggml.c +++ b/ggml/src/ggml.c @@ -1754,8 +1754,18 @@ struct ggml_compute_state { struct ggml_compute_state_shared * shared; }; +struct ggml_compute_params { + // ith = thread index, nth = number of threads + int ith, nth; + // work buffer for all threads + size_t wsize; + void * wdata; + + struct ggml_compute_state_shared * shared; +}; + // // fundamental operations // @@ -14046,7 +14056,7 @@ static void ggml_compute_forward_rope_f16( } } -void ggml_compute_forward_rope( +static void ggml_compute_forward_rope( const struct ggml_compute_params * params, struct ggml_tensor * dst) {