Merge pull request #5403 from martin-frbg/issue5402

Introduce a (crude) threshold to multithreading in STRMV/DTRMV
This commit is contained in:
Martin Kroeker
2025-07-25 20:10:47 +02:00
committed by GitHub

View File

@@ -219,7 +219,10 @@ void CNAME(enum CBLAS_ORDER order, enum CBLAS_UPLO Uplo,
#ifdef SMP
nthreads = num_cpu_avail(2);
if (n < 50 ) nthreads = 1;
if (nthreads > 2 && n < 500) nthreads = 2;
if (nthreads == 1) {
#endif