Skip to content

Commit 55298d2

Browse files
committed
fix: move const outside of #ifndef
1 parent c2259e3 commit 55298d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ggml/src/ggml.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19554,9 +19554,10 @@ static void ggml_thread_cpumask_next(const bool * global_mask, bool * local_mask
1955419554
void ggml_threadpool_free(struct ggml_threadpool* threadpool) {
1955519555
if (!threadpool) return;
1955619556

19557+
const int n_threads = threadpool->n_threads_max;
19558+
1955719559
#ifndef GGML_USE_OPENMP
1955819560
struct ggml_compute_state* workers = threadpool->workers;
19559-
const int n_threads = threadpool->n_threads_max;
1956019561

1956119562
ggml_mutex_lock(&threadpool->mutex);
1956219563

0 commit comments

Comments
 (0)