From 48d132578456aacc715ab2c40e62c0963b12309d Mon Sep 17 00:00:00 2001 From: wernsaar Date: Sun, 11 May 2014 08:22:00 +0200 Subject: [PATCH] checked, that tbmv is OK --- interface/tbmv.c | 10 +++++----- interface/ztbmv.c | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/interface/tbmv.c b/interface/tbmv.c index 8d08c0e..cec2be4 100644 --- a/interface/tbmv.c +++ b/interface/tbmv.c @@ -64,7 +64,7 @@ static int (*tbmv[])(BLASLONG, BLASLONG, FLOAT *, BLASLONG, FLOAT *, BLASLONG, v #endif }; -#ifdef SMPTEST +#ifdef SMP static int (*tbmv_thread[])(BLASLONG, BLASLONG, FLOAT *, BLASLONG, FLOAT *, BLASLONG, FLOAT *, int) = { #ifdef XDOUBLE qtbmv_thread_NUU, qtbmv_thread_NUN, qtbmv_thread_NLU, qtbmv_thread_NLN, @@ -99,7 +99,7 @@ void NAME(char *UPLO, char *TRANS, char *DIAG, int unit; int trans; FLOAT *buffer; -#ifdef SMPTEST +#ifdef SMP int nthreads; #endif @@ -148,7 +148,7 @@ void CNAME(enum CBLAS_ORDER order, enum CBLAS_UPLO Uplo, int trans, uplo, unit; blasint info; FLOAT *buffer; -#ifdef SMPTEST +#ifdef SMP int nthreads; #endif @@ -222,7 +222,7 @@ void CNAME(enum CBLAS_ORDER order, enum CBLAS_UPLO Uplo, buffer = (FLOAT *)blas_memory_alloc(1); -#ifdef SMPTEST +#ifdef SMP nthreads = num_cpu_avail(2); if (nthreads == 1) { @@ -230,7 +230,7 @@ void CNAME(enum CBLAS_ORDER order, enum CBLAS_UPLO Uplo, (tbmv[(trans<<2) | (uplo<<1) | unit])(n, k, a, lda, x, incx, buffer); -#ifdef SMPTEST +#ifdef SMP } else { (tbmv_thread[(trans<<2) | (uplo<<1) | unit])(n, k, a, lda, x, incx, buffer, nthreads); diff --git a/interface/ztbmv.c b/interface/ztbmv.c index fb8873b..85f53c4 100644 --- a/interface/ztbmv.c +++ b/interface/ztbmv.c @@ -70,7 +70,7 @@ static int (*tbmv[])(BLASLONG, BLASLONG, FLOAT *, BLASLONG, FLOAT *, BLASLONG, v #endif }; -#ifdef SMPTEST +#ifdef SMP static int (*tbmv_thread[])(BLASLONG, BLASLONG, FLOAT *, BLASLONG, FLOAT *, BLASLONG, FLOAT *, int) = { #ifdef XDOUBLE xtbmv_thread_NUU, xtbmv_thread_NUN, xtbmv_thread_NLU, xtbmv_thread_NLN, @@ -111,7 +111,7 @@ void NAME(char *UPLO, char *TRANS, char *DIAG, int unit; int trans; FLOAT *buffer; -#ifdef SMPTEST +#ifdef SMP int nthreads; #endif @@ -160,7 +160,7 @@ void CNAME(enum CBLAS_ORDER order, enum CBLAS_UPLO Uplo, int trans, uplo, unit; blasint info; FLOAT *buffer; -#ifdef SMPTEST +#ifdef SMP int nthreads; #endif @@ -234,7 +234,7 @@ void CNAME(enum CBLAS_ORDER order, enum CBLAS_UPLO Uplo, buffer = (FLOAT *)blas_memory_alloc(1); -#ifdef SMPTEST +#ifdef SMP nthreads = num_cpu_avail(2); if (nthreads == 1) { @@ -242,7 +242,7 @@ void CNAME(enum CBLAS_ORDER order, enum CBLAS_UPLO Uplo, (tbmv[(trans<<2) | (uplo<<1) | unit])(n, k, a, lda, x, incx, buffer); -#ifdef SMPTEST +#ifdef SMP } else { (tbmv_thread[(trans<<2) | (uplo<<1) | unit])(n, k, a, lda, x, incx, buffer, nthreads); -- 2.7.4