Introduce a lower limit for multithreading
This commit is contained in:
parent
5fd871d7ea
commit
2957281275
|
@ -251,6 +251,9 @@ void CNAME(enum CBLAS_ORDER order,
|
|||
buffer = (FLOAT *)blas_memory_alloc(1);
|
||||
|
||||
#ifdef SMP
|
||||
if (m * n < 125000 || ku + kl < 15)
|
||||
nthreads = 1;
|
||||
else
|
||||
nthreads = num_cpu_avail(2);
|
||||
|
||||
if (nthreads == 1) {
|
||||
|
|
Loading…
Reference in New Issue