From 743ae5ab18477913b4c4bedf649cd85dbb2ea5a2 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Tue, 21 Mar 2023 21:07:37 +0100 Subject: [PATCH] move declaration of openmp_nthreads under the related ifdef --- common_thread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common_thread.h b/common_thread.h index 9de901826..05e1d5489 100644 --- a/common_thread.h +++ b/common_thread.h @@ -138,9 +138,9 @@ typedef struct blas_queue { extern int blas_server_avail; static __inline int num_cpu_avail(int level) { -int openmp_nthreads; #ifdef USE_OPENMP +int openmp_nthreads; if (blas_num_threads_set == 0) openmp_nthreads=omp_get_max_threads(); else