Ref #391: disabled SMP in ger.c and zger.c

This commit is contained in:
wernsaar 2014-06-22 12:01:24 +02:00
parent 316df0e821
commit 86d8c8978b
2 changed files with 7 additions and 6 deletions

View File

@ -167,15 +167,16 @@ void CNAME(enum CBLAS_ORDER order,
buffer = (FLOAT *)blas_memory_alloc(1); buffer = (FLOAT *)blas_memory_alloc(1);
#ifdef SMP #ifdef SMPBUG
nthreads = num_cpu_avail(2); nthreads = num_cpu_avail(2);
if (nthreads == 1) { if (nthreads == 1) {
#endif #endif
GER(m, n, 0, alpha, x, incx, y, incy, a, lda, buffer); GER(m, n, 0, alpha, x, incx, y, incy, a, lda, buffer);
#ifdef SMP #ifdef SMPBUG
} else { } else {
GER_THREAD(m, n, alpha, x, incx, y, incy, a, lda, buffer, nthreads); GER_THREAD(m, n, alpha, x, incx, y, incy, a, lda, buffer, nthreads);

View File

@ -109,7 +109,7 @@ void NAME(blasint *M, blasint *N, FLOAT *Alpha,
blasint incy = *INCY; blasint incy = *INCY;
blasint lda = *LDA; blasint lda = *LDA;
FLOAT *buffer; FLOAT *buffer;
#ifdef SMP #ifdef SMPBUG
int nthreads; int nthreads;
#endif #endif
@ -144,7 +144,7 @@ void CNAME(enum CBLAS_ORDER order,
FLOAT *buffer; FLOAT *buffer;
blasint info, t; blasint info, t;
#ifdef SMP #ifdef SMPBUG
int nthreads; int nthreads;
#endif #endif
@ -205,7 +205,7 @@ void CNAME(enum CBLAS_ORDER order,
buffer = (FLOAT *)blas_memory_alloc(1); buffer = (FLOAT *)blas_memory_alloc(1);
#ifdef SMP #ifdef SMPBUG
nthreads = num_cpu_avail(2); nthreads = num_cpu_avail(2);
if (nthreads == 1) { if (nthreads == 1) {
@ -221,7 +221,7 @@ void CNAME(enum CBLAS_ORDER order,
} }
#endif #endif
#ifdef SMP #ifdef SMPBUG
} else { } else {