Browse Source

modified multithreading threshold

tags/v0.2.12^2
wernsaar 11 years ago
parent
commit
f511807fc0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      interface/gemv.c

+ 1
- 1
interface/gemv.c 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 )


Loading…
Cancel
Save