Skip to content

Commit

Permalink
enabled gemv assembly on power8
Browse files Browse the repository at this point in the history
  • Loading branch information
wernsaar committed Mar 4, 2016
1 parent 4824b88 commit d5130ce
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 9 deletions.
19 changes: 10 additions & 9 deletions kernel/power/KERNEL.POWER8
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions kernel/power/gemv_n.S
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@
#define PREFETCHSIZE_C 40
#endif

#ifdef POWER8
#define PREFETCHSIZE_A 96
#define PREFETCHSIZE_C 40
#endif


#ifndef NEEDPARAM

#ifndef __64BIT__
Expand Down
5 changes: 5 additions & 0 deletions kernel/power/gemv_t.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions kernel/power/zgemv_n.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions kernel/power/zgemv_t.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d5130ce

Please sign in to comment.