From d5130ce7e35a96ef0fc2aa5c8a25d4dec269939b Mon Sep 17 00:00:00 2001 From: Werner Saar Date: Fri, 4 Mar 2016 12:53:31 +0100 Subject: [PATCH] enabled gemv assembly on power8 --- kernel/power/KERNEL.POWER8 | 19 ++++++++++--------- kernel/power/gemv_n.S | 6 ++++++ kernel/power/gemv_t.S | 5 +++++ kernel/power/zgemv_n.S | 5 +++++ kernel/power/zgemv_t.S | 6 ++++++ 5 files changed, 32 insertions(+), 9 deletions(-) diff --git a/kernel/power/KERNEL.POWER8 b/kernel/power/KERNEL.POWER8 index 5ec5e41..c2e965b 100644 --- a/kernel/power/KERNEL.POWER8 +++ b/kernel/power/KERNEL.POWER8 @@ -137,15 +137,16 @@ ZGEMM3MKERNEL = zgemm3m_kernel_4x4_sse3.S #CSWAPKERNEL = ../arm/zswap.c #ZSWAPKERNEL = ../arm/zswap.c # -SGEMVNKERNEL = ../arm/gemv_n.c -DGEMVNKERNEL = ../arm/gemv_n.c -CGEMVNKERNEL = ../arm/zgemv_n.c -ZGEMVNKERNEL = ../arm/zgemv_n.c - -SGEMVTKERNEL = ../arm/gemv_t.c -DGEMVTKERNEL = ../arm/gemv_t.c -CGEMVTKERNEL = ../arm/zgemv_t.c -ZGEMVTKERNEL = ../arm/zgemv_t.c + +#SGEMVNKERNEL = ../arm/gemv_n.c +#DGEMVNKERNEL = ../arm/gemv_n.c +#CGEMVNKERNEL = ../arm/zgemv_n.c +#ZGEMVNKERNEL = ../arm/zgemv_n.c +# +#SGEMVTKERNEL = ../arm/gemv_t.c +#DGEMVTKERNEL = ../arm/gemv_t.c +#CGEMVTKERNEL = ../arm/zgemv_t.c +#ZGEMVTKERNEL = ../arm/zgemv_t.c SSYMV_U_KERNEL = ../generic/symv_k.c SSYMV_L_KERNEL = ../generic/symv_k.c diff --git a/kernel/power/gemv_n.S b/kernel/power/gemv_n.S index 77587ec..02160bd 100644 --- a/kernel/power/gemv_n.S +++ b/kernel/power/gemv_n.S @@ -174,6 +174,12 @@ #define PREFETCHSIZE_C 40 #endif +#ifdef POWER8 +#define PREFETCHSIZE_A 96 +#define PREFETCHSIZE_C 40 +#endif + + #ifndef NEEDPARAM #ifndef __64BIT__ diff --git a/kernel/power/gemv_t.S b/kernel/power/gemv_t.S index 817a60b..4577530 100644 --- a/kernel/power/gemv_t.S +++ b/kernel/power/gemv_t.S @@ -139,6 +139,11 @@ #define PREFETCHSIZE_C 8 #endif +#ifdef POWER8 +#define PREFETCHSIZE_A 96 +#define PREFETCHSIZE_C 8 +#endif + #define y01 f0 #define y02 f1 #define y03 f2 diff --git a/kernel/power/zgemv_n.S b/kernel/power/zgemv_n.S index 23e0177..f934399 100644 --- a/kernel/power/zgemv_n.S +++ b/kernel/power/zgemv_n.S @@ -170,6 +170,11 @@ #define PREFETCHSIZE_C 24 #endif +#ifdef POWER8 +#define PREFETCHSIZE_A 24 +#define PREFETCHSIZE_C 24 +#endif + #ifndef XCONJ #define FMADDR FMADD #define FMSUBR FNMSUB diff --git a/kernel/power/zgemv_t.S b/kernel/power/zgemv_t.S index c0bad31..9c6f510 100644 --- a/kernel/power/zgemv_t.S +++ b/kernel/power/zgemv_t.S @@ -144,6 +144,12 @@ #define PREFETCHSIZE_C 8 #endif +#ifdef POWER8 +#define PREFETCHSIZE_A 24 +#define PREFETCHSIZE_C 8 +#endif + + #if !(defined(CONJ) && defined(XCONJ)) #define FMADDR FMADD #define FMSUBR FNMSUB -- 2.7.4