Browse Source

Introduce a lower limit for multithreading

pull/4710/head
Martin Kroeker gxw 2 years ago
parent
commit
775ab942dc
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      interface/zgbmv.c

+ 4
- 1
interface/zgbmv.c View File

@@ -251,7 +251,10 @@ void CNAME(enum CBLAS_ORDER order,
buffer = (FLOAT *)blas_memory_alloc(1);

#ifdef SMP
nthreads = num_cpu_avail(2);
if (m * n < 125000 || ku + kl < 15)
nthreads = 1;
else
nthreads = num_cpu_avail(2);

if (nthreads == 1) {
#endif


Loading…
Cancel
Save