Skip to content

Commit 743ae5a

Browse files
authored
move declaration of openmp_nthreads under the related ifdef
1 parent 2b77f28 commit 743ae5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common_thread.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ typedef struct blas_queue {
138138
extern int blas_server_avail;
139139

140140
static __inline int num_cpu_avail(int level) {
141-
int openmp_nthreads;
142141

143142
#ifdef USE_OPENMP
143+
int openmp_nthreads;
144144
if (blas_num_threads_set == 0)
145145
openmp_nthreads=omp_get_max_threads();
146146
else

0 commit comments

Comments
 (0)