modified multithreading threshold

This commit is contained in:
wernsaar 2014-09-08 12:27:32 +02:00
parent c4d9d4e5f8
commit f511807fc0
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ void CNAME(enum CBLAS_ORDER order,
int nthreads_avail = nthreads_max;
double MNK = (double) m * (double) n;
if ( MNK <= (96.0 * 24.0 * (double) GEMM_MULTITHREAD_THRESHOLD) )
if ( MNK <= (24.0 * 24.0 * (double) (GEMM_MULTITHREAD_THRESHOLD*GEMM_MULTITHREAD_THRESHOLD) ) )
nthreads_max = 1;
if ( nthreads_max > nthreads_avail )