Merge pull request #4388 from martin-frbg/issue4387
Add lower limit for multithreading in the reimplemented LAPACK ?GESV
This commit is contained in:
		
						commit
						68ef2328eb
					
				|  | @ -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