fix: move const outside of #ifndef
This commit is contained in:
parent
c2259e3cd1
commit
55298d2530
1 changed files with 2 additions and 1 deletions
|
@ -19554,9 +19554,10 @@ static void ggml_thread_cpumask_next(const bool * global_mask, bool * local_mask
|
||||||
void ggml_threadpool_free(struct ggml_threadpool* threadpool) {
|
void ggml_threadpool_free(struct ggml_threadpool* threadpool) {
|
||||||
if (!threadpool) return;
|
if (!threadpool) return;
|
||||||
|
|
||||||
|
const int n_threads = threadpool->n_threads_max;
|
||||||
|
|
||||||
#ifndef GGML_USE_OPENMP
|
#ifndef GGML_USE_OPENMP
|
||||||
struct ggml_compute_state* workers = threadpool->workers;
|
struct ggml_compute_state* workers = threadpool->workers;
|
||||||
const int n_threads = threadpool->n_threads_max;
|
|
||||||
|
|
||||||
ggml_mutex_lock(&threadpool->mutex);
|
ggml_mutex_lock(&threadpool->mutex);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue