Skip to content

Commit be5500e

Browse files
authored
Merge pull request #3669 from VFerrari/fix_small_matrix_kernel
POWER: fix issues with the small matrix kernel
2 parents 92275a7 + 2062280 commit be5500e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Makefile.system

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ endif
261261
#For small matrix optimization
262262
ifeq ($(ARCH), x86_64)
263263
SMALL_MATRIX_OPT = 1
264-
else ifeq ($(CORE), POWER10)
264+
else ifeq ($(ARCH), power)
265265
SMALL_MATRIX_OPT = 1
266266
endif
267267
ifeq ($(SMALL_MATRIX_OPT), 1)

kernel/power/gemm_small_kernel_permit_power10.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ int CNAME(int transa, int transb, BLASLONG M, BLASLONG N, BLASLONG K, FLOAT alph
6969

7070
#endif
7171

72+
#ifdef SMP
7273
// Multi-threading execution outperforms (or approaches) the execution of the
7374
// small kernel.
7475
if (num_cpu_avail(3) > 1) {
@@ -77,6 +78,9 @@ int CNAME(int transa, int transb, BLASLONG M, BLASLONG N, BLASLONG K, FLOAT alph
7778
} else {
7879
return 1;
7980
}
81+
#else
82+
return 1;
83+
#endif
8084

8185
#endif
8286

0 commit comments

Comments
 (0)