mirror of
https://github.com/OpenMathLib/OpenBLAS
synced 2026-05-31 00:45:48 +08:00
Adjust multithreading threshold and add an intermediate step
This commit is contained in:
@@ -180,8 +180,10 @@ void CNAME(enum CBLAS_ORDER order,
|
|||||||
|
|
||||||
#ifdef SMPTEST
|
#ifdef SMPTEST
|
||||||
// Threshold chosen so that speed-up is > 1 on a Xeon E5-2630
|
// Threshold chosen so that speed-up is > 1 on a Xeon E5-2630
|
||||||
if(1L * m * n > 2048L * GEMM_MULTITHREAD_THRESHOLD)
|
if(1L * m * n > 20480L * GEMM_MULTITHREAD_THRESHOLD)
|
||||||
nthreads = num_cpu_avail(2);
|
nthreads = num_cpu_avail(2);
|
||||||
|
else if(1L * m * n > 2048L * GEMM_MULTITHREAD_THRESHOLD)
|
||||||
|
nthreads = MIN(3,num_cpu_avail(2));
|
||||||
else
|
else
|
||||||
nthreads = 1;
|
nthreads = 1;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user