Browse Source

Adjust multithreading threshold and add an intermediate step

pull/5410/head
Martin Kroeker GitHub 2 months ago
parent
commit
30d11bc92c
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      interface/ger.c

+ 3
- 1
interface/ger.c View File

@@ -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;




Loading…
Cancel
Save