checked, that zher is OK
This commit is contained in:
parent
47e8950e77
commit
5e4b4f6712
|
@ -61,7 +61,7 @@ static int (*her[])(BLASLONG, FLOAT, FLOAT *, BLASLONG, FLOAT *, BLASLONG, FLOAT
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef SMPTEST
|
#ifdef SMP
|
||||||
static int (*her_thread[])(BLASLONG, FLOAT, FLOAT *, BLASLONG, FLOAT *, BLASLONG, FLOAT *, int) = {
|
static int (*her_thread[])(BLASLONG, FLOAT, FLOAT *, BLASLONG, FLOAT *, BLASLONG, FLOAT *, int) = {
|
||||||
#ifdef XDOUBLE
|
#ifdef XDOUBLE
|
||||||
xher_thread_U, xher_thread_L, xher_thread_V, xher_thread_M,
|
xher_thread_U, xher_thread_L, xher_thread_V, xher_thread_M,
|
||||||
|
@ -87,7 +87,7 @@ void NAME(char *UPLO, blasint *N, FLOAT *ALPHA,
|
||||||
blasint info;
|
blasint info;
|
||||||
int uplo;
|
int uplo;
|
||||||
FLOAT *buffer;
|
FLOAT *buffer;
|
||||||
#ifdef SMPTEST
|
#ifdef SMP
|
||||||
int nthreads;
|
int nthreads;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -118,7 +118,7 @@ void CNAME(enum CBLAS_ORDER order, enum CBLAS_UPLO Uplo, blasint n, FLOAT alpha,
|
||||||
FLOAT *buffer;
|
FLOAT *buffer;
|
||||||
int trans, uplo;
|
int trans, uplo;
|
||||||
blasint info;
|
blasint info;
|
||||||
#ifdef SMPTEST
|
#ifdef SMP
|
||||||
int nthreads;
|
int nthreads;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -174,7 +174,7 @@ void CNAME(enum CBLAS_ORDER order, enum CBLAS_UPLO Uplo, blasint n, FLOAT alpha,
|
||||||
|
|
||||||
buffer = (FLOAT *)blas_memory_alloc(1);
|
buffer = (FLOAT *)blas_memory_alloc(1);
|
||||||
|
|
||||||
#ifdef SMPTEST
|
#ifdef SMP
|
||||||
nthreads = num_cpu_avail(2);
|
nthreads = num_cpu_avail(2);
|
||||||
|
|
||||||
if (nthreads == 1) {
|
if (nthreads == 1) {
|
||||||
|
@ -182,7 +182,7 @@ void CNAME(enum CBLAS_ORDER order, enum CBLAS_UPLO Uplo, blasint n, FLOAT alpha,
|
||||||
|
|
||||||
(her[uplo])(n, alpha, x, incx, a, lda, buffer);
|
(her[uplo])(n, alpha, x, incx, a, lda, buffer);
|
||||||
|
|
||||||
#ifdef SMPTEST
|
#ifdef SMP
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
(her_thread[uplo])(n, alpha, x, incx, a, lda, buffer, nthreads);
|
(her_thread[uplo])(n, alpha, x, incx, a, lda, buffer, nthreads);
|
||||||
|
|
Loading…
Reference in New Issue