From 27575d200a1b1efc7b30ea7eb7cbe80a32ae3cd4 Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 15 Nov 2017 15:32:38 +0100 Subject: [PATCH] Eliminate mode variable where not needed --- interface/syrk.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/interface/syrk.c b/interface/syrk.c index f8c6970..507bb44 100644 --- a/interface/syrk.c +++ b/interface/syrk.c @@ -101,6 +101,7 @@ void NAME(char *UPLO, char *TRANS, FLOAT *sa, *sb; #ifdef SMP +#ifdef USE_SIMPLE_THREADED_LEVEL3 #ifndef COMPLEX #ifdef XDOUBLE int mode = BLAS_XDOUBLE | BLAS_REAL; @@ -119,6 +120,7 @@ void NAME(char *UPLO, char *TRANS, #endif #endif #endif +#endif blasint info; int uplo; @@ -206,6 +208,7 @@ void CNAME(enum CBLAS_ORDER order, enum CBLAS_UPLO Uplo, enum CBLAS_TRANSPOSE Tr FLOAT *sa, *sb; #ifdef SMP +#ifdef USE_SIMPLE_THREADED_LEVEL3 #ifndef COMPLEX #ifdef XDOUBLE int mode = BLAS_XDOUBLE | BLAS_REAL; @@ -224,6 +227,7 @@ void CNAME(enum CBLAS_ORDER order, enum CBLAS_UPLO Uplo, enum CBLAS_TRANSPOSE Tr #endif #endif #endif +#endif PRINT_DEBUG_CNAME; @@ -323,13 +327,14 @@ void CNAME(enum CBLAS_ORDER order, enum CBLAS_UPLO Uplo, enum CBLAS_TRANSPOSE Tr sb = (FLOAT *)(((BLASLONG)sa + ((GEMM_P * GEMM_Q * COMPSIZE * SIZE + GEMM_ALIGN) & ~GEMM_ALIGN)) + GEMM_OFFSET_B); #ifdef SMP +#ifdef USE_SIMPLE_THREADED_LEVEL3 if (!trans){ mode |= (BLAS_TRANSA_N | BLAS_TRANSB_T); } else { mode |= (BLAS_TRANSA_T | BLAS_TRANSB_N); } - mode |= (uplo << BLAS_UPLO_SHIFT); +#endif args.common = NULL; args.nthreads = num_cpu_avail(3); -- 2.7.4