File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -641,18 +641,22 @@ DYNAMIC_CORE += POWER8
641
641
ifneq ($(C_COMPILER), GCC)
642
642
DYNAMIC_CORE += POWER9
643
643
DYNAMIC_CORE += POWER10
644
+ CCOMMON_OPT += -DHAVE_P10_SUPPORT
644
645
endif
645
646
ifeq ($(C_COMPILER), GCC)
646
647
ifeq ($(GCCVERSIONGT5), 1)
647
648
DYNAMIC_CORE += POWER9
648
649
else
649
650
$(info, OpenBLAS: Your gcc version is too old to build the POWER9 kernels.)
650
651
endif
651
- ifeq ($(GCCVERSIONGTEQ11), 1)
652
+ LDVERSIONGTEQ35 := $(shell expr `ld --version | head -1 | cut -f2 -d "." | cut -f1 -d "-"` >= 35)
653
+ ifeq ($(GCCVERSIONGTEQ11)$(LDVERSIONGTEQ35), 11)
652
654
DYNAMIC_CORE += POWER10
655
+ CCOMMON_OPT += -DHAVE_P10_SUPPORT
653
656
else ifeq ($(GCCVERSIONGTEQ10), 1)
654
- ifeq ($(GCCMINORVERSIONGTEQ2), 1 )
657
+ ifeq ($(GCCMINORVERSIONGTEQ2)$(LDVERSIONGTEQ35), 11 )
655
658
DYNAMIC_CORE += POWER10
659
+ CCOMMON_OPT += -DHAVE_P10_SUPPORT
656
660
endif
657
661
else
658
662
$(info, OpenBLAS: Your gcc version is too old to build the POWER10 kernels.)
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ if (DYNAMIC_ARCH)
49
49
50
50
if (POWER )
51
51
set (DYNAMIC_CORE POWER6 POWER8 POWER9 POWER10 )
52
+ set (CCOMMON_OPT "${CCOMMON_OPT} -DHAVE_P10_SUPPORT" )
52
53
endif ()
53
54
54
55
if (X86 )
Original file line number Diff line number Diff line change @@ -6,10 +6,10 @@ extern gotoblas_t gotoblas_POWER8;
6
6
#if (!defined __GNUC__ ) || ( __GNUC__ >= 6 )
7
7
extern gotoblas_t gotoblas_POWER9 ;
8
8
#endif
9
- #if (!defined __GNUC__ ) || ( __GNUC__ >= 11 ) \
10
- || (__GNUC__ == 10 && __GNUC_MINOR__ >= 2 )
11
- #define HAVE_P10_SUPPORT 1
12
- #endif
9
+ // #if (!defined __GNUC__) || ( __GNUC__ >= 11) \
10
+ // || (__GNUC__ == 10 && __GNUC_MINOR__ >= 2)
11
+ // #define HAVE_P10_SUPPORT 1
12
+ // #endif
13
13
#ifdef HAVE_P10_SUPPORT
14
14
extern gotoblas_t gotoblas_POWER10 ;
15
15
#endif
You can’t perform that action at this time.
0 commit comments