Skip to content

Commit

Permalink
LoongArch: Small matrix opt
Browse files Browse the repository at this point in the history
  • Loading branch information
XiWeiGu committed May 21, 2024
1 parent 700ea74 commit ff1e7eb
Show file tree
Hide file tree
Showing 4 changed files with 593 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile.system
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ else ifeq ($(ARCH), power)
SMALL_MATRIX_OPT = 1
BUILD_BFLOAT16 = 1
endif
SMALL_MATRIX_OPT = 1
ifeq ($(SMALL_MATRIX_OPT), 1)
CCOMMON_OPT += -DSMALL_MATRIX_OPT
endif
Expand Down
4 changes: 4 additions & 0 deletions kernel/loongarch64/KERNEL.LOONGSON3R5
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,8 @@ STRSMKERNEL_LN = ../generic/trsm_kernel_LN.c
STRSMKERNEL_LT = ../generic/trsm_kernel_LT.c
STRSMKERNEL_RN = ../generic/trsm_kernel_RN.c
STRSMKERNEL_RT = ../generic/trsm_kernel_RT.c

DGEMM_SMALL_M_PERMIT = dgemm_small_matrix_permit.c
DGEMM_SMALL_K_NN = dgemm_small_kernel_nn_lasx.S
DGEMM_SMALL_K_B0_NN = dgemm_small_kernel_nn_lasx.S
endif
Loading

0 comments on commit ff1e7eb

Please sign in to comment.