File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
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.)
You can’t perform that action at this time.
0 commit comments