Skip to content

Commit

Permalink
LoongArch: DGEMM small matrix opt
Browse files Browse the repository at this point in the history
  • Loading branch information
XiWeiGu committed Jun 4, 2024
1 parent 700ea74 commit e50b2ec
Show file tree
Hide file tree
Showing 7 changed files with 2,130 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile.system
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,9 @@ else ifeq ($(ARCH), power)
SMALL_MATRIX_OPT = 1
BUILD_BFLOAT16 = 1
endif
ifeq ($(ARCH), loongarch64)
SMALL_MATRIX_OPT = 1
endif
ifeq ($(SMALL_MATRIX_OPT), 1)
CCOMMON_OPT += -DSMALL_MATRIX_OPT
endif
Expand Down
10 changes: 10 additions & 0 deletions kernel/loongarch64/KERNEL.LOONGSON3R5
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,14 @@ 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
DGEMM_SMALL_K_NT = dgemm_small_kernel_nt_lasx.S
DGEMM_SMALL_K_B0_NT = dgemm_small_kernel_nt_lasx.S
DGEMM_SMALL_K_TN = dgemm_small_kernel_tn_lasx.S
DGEMM_SMALL_K_B0_TN = dgemm_small_kernel_tn_lasx.S
DGEMM_SMALL_K_TT = dgemm_small_kernel_tt_lasx.S
DGEMM_SMALL_K_B0_TT = dgemm_small_kernel_tt_lasx.S
endif
Loading

0 comments on commit e50b2ec

Please sign in to comment.