--- OpenBLAS-0.3.7-tmp/Makefile.power 2019-08-11 21:23:27.000000000 +0000 +++ OpenBLAS-0.3.7/Makefile.power 2019-10-13 13:23:50.390000000 +0000 @@ -29,6 +29,16 @@ endif endif +ifeq ($(CORE), PPC970) +ifeq ($(USE_OPENMP), 1) +COMMON_OPT += -Ofast -mcpu=power4 -mtune=power4 -malign-power -DUSE_OPENMP -fno-fast-math -fopenmp +FCOMMON_OPT += -O2 -frecursive -mcpu=power4 -mtune=power4 -malign-power -DUSE_OPENMP -fno-fast-math -fopenmp +else +COMMON_OPT += -Ofast -mcpu=power4 -mtune=power4 -malign-power -fno-fast-math +FCOMMON_OPT += -O2 -frecursive -mcpu=power4 -mtune=power4 -malign-power -fno-fast-math +endif +endif + # workaround for C->FORTRAN ABI violation in LAPACKE ifeq ($(F_COMPILER), GFORTRAN) FCOMMON_OPT += -fno-optimize-sibling-calls --- OpenBLAS-0.3.7-tmp/kernel/power/KERNEL.PPC970 2019-08-11 21:23:27.000000000 +0000 +++ OpenBLAS-0.3.7/kernel/power/KERNEL.PPC970 2019-10-13 15:05:55.010000000 +0000 @@ -54,3 +54,6 @@ ZTRSMKERNEL_LT = ztrsm_kernel_LT.S ZTRSMKERNEL_RN = ztrsm_kernel_LT.S ZTRSMKERNEL_RT = ztrsm_kernel_RT.S + +CROTKERNEL = ../arm/zrot.c +ZROTKERNEL = ../arm/zrot.c