From 40648601f15ab4f2d84e9a20a35ef6bb432ecb58 Mon Sep 17 00:00:00 2001 From: Max Krasnyansky Date: Sat, 24 Aug 2024 14:15:22 -0700 Subject: [PATCH] threadpool: fix apply_priority() function name --- ggml/src/ggml.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ggml/src/ggml.c b/ggml/src/ggml.c index 0e46bcea9..839aa3f57 100644 --- a/ggml/src/ggml.c +++ b/ggml/src/ggml.c @@ -18736,7 +18736,7 @@ static bool ggml_thread_apply_affinity(const bool * mask) { return true; } -static bool ggml_thread_apply_process_prio(int32_t prio) { +static bool ggml_thread_apply_process_priority(int32_t prio) { int32_t p = 0; switch (prio) { @@ -18786,7 +18786,7 @@ static bool ggml_thread_apply_affinity(const bool * mask) { return true; } -static bool ggml_thread_apply_process_prio(int32_t prio) { +static bool ggml_thread_apply_process_priority(int32_t prio) { struct sched_param p; int32_t policy = SCHED_OTHER; @@ -19320,7 +19320,7 @@ static struct ggml_compute_threadpool * ggml_create_threadpool_impl( #else // Not using OPENMP int32_t cpumask_iter = 0; - ggml_thread_apply_process_prio(tpp->prio); + ggml_thread_apply_process_priority(tpp->prio); ggml_thread_apply_thread_priority(tpp->prio); for (int j = 0; j < tpp->n_threads; j++) {