Skip to content

Commit

Permalink
Merge pull request OpenMathLib#4831 from martin-frbg/gemmforward
Browse files Browse the repository at this point in the history
Enable forwarding from GEMM to GEMV for RISCV and PPC in addition to ARM64
  • Loading branch information
martin-frbg authored Aug 3, 2024
2 parents 9afd0c8 + 42d8865 commit 2c2b6bc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Makefile.system
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,12 @@ endif
ifeq ($(ARCH), arm64)
GEMM_GEMV_FORWARD = 1
endif
ifeq ($(ARCH), riscv)
GEMM_GEMV_FORWARD = 1
endif
ifeq ($(ARCH), power)
GEMM_GEMV_FORWARD = 1
endif

ifeq ($(SMALL_MATRIX_OPT), 1)
CCOMMON_OPT += -DSMALL_MATRIX_OPT
Expand Down
2 changes: 1 addition & 1 deletion cmake/system.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ endif ()
if (X86_64 OR ${CORE} STREQUAL POWER10)
set(SMALL_MATRIX_OPT TRUE)
endif ()
if (ARM64)
if (ARM64 OR RISCV64 OR POWER)
set(GEMM_GEMV_FORWARD TRUE)
endif ()

Expand Down

0 comments on commit 2c2b6bc

Please sign in to comment.