From 8204ab4aa80046c52552e420b409d49a5668ba02 Mon Sep 17 00:00:00 2001 From: wernsaar Date: Sun, 11 May 2014 08:35:34 +0200 Subject: [PATCH] checked, that tpmv is OK --- interface/tpmv.c | 10 +++++----- interface/ztpmv.c | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/interface/tpmv.c b/interface/tpmv.c index fde5abb4d..f0fc4f71c 100644 --- a/interface/tpmv.c +++ b/interface/tpmv.c @@ -64,7 +64,7 @@ static int (*tpmv[])(BLASLONG, FLOAT *, FLOAT *, BLASLONG, void *) = { #endif }; -#ifdef SMPTEST +#ifdef SMP static int (*tpmv_thread[])(BLASLONG, FLOAT *, FLOAT *, BLASLONG, FLOAT *, int) = { #ifdef XDOUBLE qtpmv_thread_NUU, qtpmv_thread_NUN, qtpmv_thread_NLU, qtpmv_thread_NLN, @@ -96,7 +96,7 @@ void NAME(char *UPLO, char *TRANS, char *DIAG, int unit; int trans; FLOAT *buffer; -#ifdef SMPTEST +#ifdef SMP int nthreads; #endif @@ -143,7 +143,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 @@ -213,7 +213,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) { @@ -221,7 +221,7 @@ void CNAME(enum CBLAS_ORDER order, enum CBLAS_UPLO Uplo, (tpmv[(trans<<2) | (uplo<<1) | unit])(n, a, x, incx, buffer); -#ifdef SMPTEST +#ifdef SMP } else { (tpmv_thread[(trans<<2) | (uplo<<1) | unit])(n, a, x, incx, buffer, nthreads); diff --git a/interface/ztpmv.c b/interface/ztpmv.c index 2f7fe3b63..2f9c48f5a 100644 --- a/interface/ztpmv.c +++ b/interface/ztpmv.c @@ -70,7 +70,7 @@ static int (*tpmv[])(BLASLONG, FLOAT *, FLOAT *, BLASLONG, void *) = { #endif }; -#ifdef SMPTEST +#ifdef SMP static int (*tpmv_thread[])(BLASLONG, FLOAT *, FLOAT *, BLASLONG, FLOAT *, int) = { #ifdef XDOUBLE xtpmv_thread_NUU, xtpmv_thread_NUN, xtpmv_thread_NLU, xtpmv_thread_NLN, @@ -108,7 +108,7 @@ void NAME(char *UPLO, char *TRANS, char *DIAG, int unit; int trans; FLOAT *buffer; -#ifdef SMPTEST +#ifdef SMP int nthreads; #endif @@ -162,7 +162,7 @@ void CNAME(enum CBLAS_ORDER order, enum CBLAS_UPLO Uplo, uplo = -1; trans = -1; info = 0; -#ifdef SMPTEST +#ifdef SMP int nthreads; #endif @@ -225,7 +225,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) { @@ -233,7 +233,7 @@ void CNAME(enum CBLAS_ORDER order, enum CBLAS_UPLO Uplo, (tpmv[(trans<<2) | (uplo<<1) | unit])(n, a, x, incx, buffer); -#ifdef SMPTEST +#ifdef SMP } else {