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