|
|
@@ -81,6 +81,11 @@ void CNAME(blasint n, FLOAT alpha, FLOAT *x, blasint incx, FLOAT *y, blasint inc |
|
|
|
#ifdef SMP |
|
|
|
nthreads = num_cpu_avail(1); |
|
|
|
|
|
|
|
//disable multi-thread when incx==0 or incy==0 |
|
|
|
//In that case, the threads would be dependent. |
|
|
|
if (incx == 0 || incy == 0) |
|
|
|
nthreads = 1; |
|
|
|
|
|
|
|
if (nthreads == 1) { |
|
|
|
#endif |
|
|
|
|
|
|
|