Change multi-threading logic for SBGEMV to be the same as SGEMV.
This commit is contained in:
parent
18a23c23f7
commit
1d51ca5798
|
@ -178,21 +178,10 @@ void CNAME(enum CBLAS_ORDER order, enum CBLAS_TRANSPOSE TransA, blasint m, blasi
|
||||||
if (incy < 0) {y -= (leny - 1) * incy;}
|
if (incy < 0) {y -= (leny - 1) * incy;}
|
||||||
|
|
||||||
#ifdef SMP
|
#ifdef SMP
|
||||||
int thread_thres_row = 20480;
|
if ( 1L * m * n < 115200L * GEMM_MULTITHREAD_THRESHOLD )
|
||||||
if (trans) {
|
nthreads = 1;
|
||||||
if (n <= thread_thres_row) {
|
else
|
||||||
nthreads = 1;
|
nthreads = num_cpu_avail(2);
|
||||||
} else {
|
|
||||||
nthreads = num_cpu_avail(1);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (m <= thread_thres_row) {
|
|
||||||
nthreads = 1;
|
|
||||||
} else {
|
|
||||||
nthreads = num_cpu_avail(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if (nthreads == 1) {
|
if (nthreads == 1) {
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue