summaryrefslogtreecommitdiff
path: root/interface/gemm.c
diff options
context:
space:
mode:
authorwernsaar <wernsaar@googlemail.com>2014-07-15 14:41:35 +0200
committerwernsaar <wernsaar@googlemail.com>2014-07-15 14:41:35 +0200
commitd286daa2ba4a6461b0e587592459db6765d3745b (patch)
tree4b07d5abde6e8cc56ca1cc6696cb9b3e15ec0273 /interface/gemm.c
parentbcb115b55b92b75d862d743629b29ac0b84d2fd0 (diff)
downloadopenblas-d286daa2ba4a6461b0e587592459db6765d3745b.tar.gz
openblas-d286daa2ba4a6461b0e587592459db6765d3745b.tar.bz2
openblas-d286daa2ba4a6461b0e587592459db6765d3745b.zip
adjusted number of threads for small size
Diffstat (limited to 'interface/gemm.c')
-rw-r--r--interface/gemm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/interface/gemm.c b/interface/gemm.c
index 07fea153c..74908e842 100644
--- a/interface/gemm.c
+++ b/interface/gemm.c
@@ -405,11 +405,11 @@ void CNAME(enum CBLAS_ORDER order, enum CBLAS_TRANSPOSE TransA, enum CBLAS_TRANS
#ifndef COMPLEX
double MNK = (double) args.m * (double) args.n * (double) args.k;
- if ( MNK <= (1024.0 * (double) GEMM_MULTITHREAD_THRESHOLD) )
+ if ( MNK <= (16.0 * 1024.0 * (double) GEMM_MULTITHREAD_THRESHOLD) )
nthreads_max = 1;
else
{
- if ( MNK <= (65536.0 * (double) GEMM_MULTITHREAD_THRESHOLD) )
+ if ( MNK <= (2.0 * 65536.0 * (double) GEMM_MULTITHREAD_THRESHOLD) )
{
nthreads_max = 4;
if ( args.m < 16 * GEMM_MULTITHREAD_THRESHOLD )