Skip to content

Commit a293bdc

Browse files
committed
re-arrange new code for readability
1 parent c7bbf9c commit a293bdc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

interface/zhemv.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@
4343
#include "functable.h"
4444
#endif
4545

46+
// this is smallest dimension N of square input a to permit threading
47+
// see graph in issue #1820 for explanation
48+
#define MULTI_THREAD_MINIMAL 362
49+
4650
#ifdef XDOUBLE
4751
#define ERROR_NAME "XHEMV "
4852
#elif defined(DOUBLE)
@@ -195,8 +199,7 @@ void CNAME(enum CBLAS_ORDER order, enum CBLAS_UPLO Uplo, blasint n, void *VALPHA
195199
buffer = (FLOAT *)blas_memory_alloc(1);
196200

197201
#ifdef SMP
198-
// see graph in issue #1820 for explanation and room for improvement
199-
if (n<362) {
202+
if (n<MULTI_THREAD_MINIMAL) {
200203
nthreads = 1 ;
201204
} else {
202205
nthreads = num_cpu_avail(2);

0 commit comments

Comments
 (0)