Add lower limit for multithreading
This commit is contained in:
parent
67779177b9
commit
a7ed60bfe9
|
@ -114,6 +114,13 @@ int NAME(blasint *N, blasint *NRHS, FLOAT *a, blasint *ldA, blasint *ipiv,
|
||||||
|
|
||||||
#ifdef SMP
|
#ifdef SMP
|
||||||
args.common = NULL;
|
args.common = NULL;
|
||||||
|
#ifndef DOUBLE
|
||||||
|
if (args.m*args.n < 40000)
|
||||||
|
#else
|
||||||
|
if (args.m*args.n < 10000)
|
||||||
|
#endif
|
||||||
|
args.nthreads=1;
|
||||||
|
else
|
||||||
args.nthreads = num_cpu_avail(4);
|
args.nthreads = num_cpu_avail(4);
|
||||||
|
|
||||||
if (args.nthreads == 1) {
|
if (args.nthreads == 1) {
|
||||||
|
|
Loading…
Reference in New Issue