From 8917203ebd7efd7564674459738b0b875a3004a7 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Tue, 17 Nov 2020 20:57:16 +0100 Subject: [PATCH] Update common_thread.h --- common_thread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common_thread.h b/common_thread.h index 18ddcf6a7..cced7a4ed 100644 --- a/common_thread.h +++ b/common_thread.h @@ -159,7 +159,7 @@ static __inline int num_cpu_avail(int level) { goto_set_num_threads(openmp_nthreads); } #endif - +if (blas_cpu_number > MAX_CPU_NUMBER) blas_cpu_number=MAX_CPU_NUMBER; return blas_cpu_number; }