Merge pull request #4388 from martin-frbg/issue4387

Add lower limit for multithreading in the reimplemented LAPACK ?GESV
This commit is contained in:
Martin Kroeker
2023-12-21 22:21:44 +01:00
committed by GitHub

View File

@@ -114,7 +114,14 @@ int NAME(blasint *N, blasint *NRHS, FLOAT *a, blasint *ldA, blasint *ipiv,
#ifdef SMP
args.common = NULL;
args.nthreads = num_cpu_avail(4);
#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);
if (args.nthreads == 1) {
#endif