Browse Source

Merge pull request #5403 from martin-frbg/issue5402

Introduce a (crude) threshold to multithreading in STRMV/DTRMV
pull/5405/head
Martin Kroeker GitHub 2 months ago
parent
commit
33b50548eb
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      interface/trmv.c

+ 4
- 1
interface/trmv.c View File

@@ -219,7 +219,10 @@ void CNAME(enum CBLAS_ORDER order, enum CBLAS_UPLO Uplo,


#ifdef SMP #ifdef SMP
nthreads = num_cpu_avail(2); nthreads = num_cpu_avail(2);

if (n < 50 ) nthreads = 1;
if (nthreads > 2 && n < 500) nthreads = 2;
if (nthreads == 1) { if (nthreads == 1) {
#endif #endif




Loading…
Cancel
Save