Skip to content

Commit 96f8bb1

Browse files
authored
Merge pull request #4272 from RajalakshmiSR/AIX_AS
POWER: AIX: Make use of power10 optimization
2 parents 68906a9 + 980f702 commit 96f8bb1

File tree

3 files changed

+4
-13
lines changed

3 files changed

+4
-13
lines changed

Makefile.system

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,6 @@ endif
277277
ifndef GOTOBLAS_MAKEFILE
278278
export GOTOBLAS_MAKEFILE = 1
279279

280-
# Determine if the assembler is GNU Assembler
281-
HAVE_GAS := $(shell $(AS) -v < /dev/null 2>&1 | grep GNU 2>&1 >/dev/null ; echo $$?)
282-
GETARCH_FLAGS += -DHAVE_GAS=$(HAVE_GAS)
283-
284280
# Generating Makefile.conf and config.h
285281
DUMMY := $(shell $(MAKE) -C $(TOPDIR) -f Makefile.prebuild CC="$(CC)" FC="$(FC)" HOSTCC="$(HOSTCC)" HOST_CFLAGS="$(GETARCH_FLAGS)" CFLAGS="$(CFLAGS)" BINARY=$(BINARY) USE_OPENMP=$(USE_OPENMP) DYNAMIC_ARCH=$(DYNAMIC_ARCH) TARGET_CORE=$(TARGET_CORE) ONLY_CBLAS=$(ONLY_CBLAS) TARGET=$(TARGET) all)
286282

@@ -760,7 +756,11 @@ DYNAMIC_CORE += POWER9
760756
else
761757
$(info, OpenBLAS: Your gcc version is too old to build the POWER9 kernels.)
762758
endif
759+
ifeq ($(OSNAME), AIX)
760+
LDVERSIONGTEQ35 := 1
761+
else
763762
LDVERSIONGTEQ35 := $(shell expr `$(CC) -Wl,--version 2> /dev/null | head -1 | cut -f2 -d "." | cut -f1 -d "-"` \>= 35)
763+
endif
764764
ifeq ($(GCCVERSIONGTEQ11)$(LDVERSIONGTEQ35), 11)
765765
DYNAMIC_CORE += POWER10
766766
CCOMMON_OPT += -DHAVE_P10_SUPPORT

kernel/power/KERNEL.POWER10

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
ifeq ($(HAVE_GAS), 1)
2-
include $(KERNELDIR)/KERNEL.POWER8
3-
else
41
#SGEMM_BETA = ../generic/gemm_beta.c
52
#DGEMM_BETA = ../generic/gemm_beta.c
63
#CGEMM_BETA = ../generic/zgemm_beta.c
@@ -265,4 +262,3 @@ QCABS_KERNEL = ../generic/cabs.c
265262
#Dump kernel
266263
CGEMM3MKERNEL = ../generic/zgemm3mkernel_dump.c
267264
ZGEMM3MKERNEL = ../generic/zgemm3mkernel_dump.c
268-
endif

param.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2600,13 +2600,8 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26002600

26012601
#define SGEMM_DEFAULT_UNROLL_M 16
26022602
#define SGEMM_DEFAULT_UNROLL_N 8
2603-
#if defined(HAVE_GAS) && (HAVE_GAS == 1)
2604-
#define DGEMM_DEFAULT_UNROLL_M 16
2605-
#define DGEMM_DEFAULT_UNROLL_N 4
2606-
#else
26072603
#define DGEMM_DEFAULT_UNROLL_M 8
26082604
#define DGEMM_DEFAULT_UNROLL_N 8
2609-
#endif
26102605
#define CGEMM_DEFAULT_UNROLL_M 8
26112606
#define CGEMM_DEFAULT_UNROLL_N 4
26122607
#define ZGEMM_DEFAULT_UNROLL_M 8

0 commit comments

Comments
 (0)