summaryrefslogtreecommitdiff
path: root/interface/sbmv.c
diff options
context:
space:
mode:
Diffstat (limited to 'interface/sbmv.c')
-rw-r--r--interface/sbmv.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/interface/sbmv.c b/interface/sbmv.c
index 0dac736cb..761a9a0d0 100644
--- a/interface/sbmv.c
+++ b/interface/sbmv.c
@@ -43,6 +43,14 @@
#include "functable.h"
#endif
+/*
+#ifdef SMP
+#ifdef __64BIT__
+#define SMPTEST 1
+#endif
+#endif
+*/
+
#ifdef XDOUBLE
#define ERROR_NAME "QSBMV "
#elif defined(DOUBLE)
@@ -61,7 +69,7 @@ static int (*sbmv[])(BLASLONG, BLASLONG, FLOAT, FLOAT *, BLASLONG, FLOAT *, BLA
#endif
};
-#ifdef SMPBUG
+#ifdef SMPTEST
static int (*sbmv_thread[])(BLASLONG, BLASLONG, FLOAT, FLOAT *, BLASLONG, FLOAT *, BLASLONG, FLOAT *, BLASLONG, FLOAT *, int) = {
#ifdef XDOUBLE
qsbmv_thread_U, qsbmv_thread_L,
@@ -90,7 +98,7 @@ void NAME(char *UPLO, blasint *N, blasint *K, FLOAT *ALPHA, FLOAT *a, blasint *
blasint info;
int uplo;
FLOAT *buffer;
-#ifdef SMPBUG
+#ifdef SMPTEST
int nthreads;
#endif
@@ -130,7 +138,7 @@ void CNAME(enum CBLAS_ORDER order,
FLOAT *buffer;
int uplo;
blasint info;
-#ifdef SMPBUG
+#ifdef SMPTEST
int nthreads;
#endif
@@ -189,7 +197,7 @@ void CNAME(enum CBLAS_ORDER order,
buffer = (FLOAT *)blas_memory_alloc(1);
-#ifdef SMPBUG
+#ifdef SMPTEST
nthreads = num_cpu_avail(2);
if (nthreads == 1) {
@@ -197,7 +205,7 @@ void CNAME(enum CBLAS_ORDER order,
(sbmv[uplo])(n, k, alpha, a, lda, x, incx, y, incy, buffer);
-#ifdef SMPBUG
+#ifdef SMPTEST
} else {
(sbmv_thread[uplo])(n, k, alpha, a, lda, x, incx, y, incy, buffer, nthreads);