File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
ggml/src/ggml-cpu/onnxruntime_mlas Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,6 @@ elseif(NOT CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
59
59
set (ARM64 TRUE )
60
60
elseif (CMAKE_SYSTEM_PROCESSOR MATCHES "^riscv64.*" )
61
61
set (RISCV64 TRUE )
62
- set (RISCV64_SPACEMIT_IME_SPEC RISCV64_SPACEMIT_IME2 )
63
62
elseif (CMAKE_SYSTEM_PROCESSOR MATCHES "^(i.86|x86?)$" )
64
63
set (X86 TRUE )
65
64
elseif (CMAKE_SYSTEM_PROCESSOR MATCHES "^(x86_64|amd64)$" )
@@ -777,9 +776,7 @@ endif()
777
776
${MLAS_SRC_DIR} /sqnbitgemm_kernel_spacemit_ime_int8.cpp
778
777
${MLAS_SRC_DIR} /sqnbitgemm_kernel_spacemit_ime_fp32.cpp
779
778
)
780
- endif ()
781
-
782
- if (RISCV64_SPACEMIT_IME_SPEC STREQUAL "RISCV64_SPACEMIT_IME2" )
779
+ elseif (RISCV64_SPACEMIT_IME_SPEC STREQUAL "RISCV64_SPACEMIT_IME2" )
783
780
target_compile_definitions (onnxruntime_mlas PRIVATE ${RISCV64_SPACEMIT_IME_SPEC} )
784
781
set (mlas_platform_srcs
785
782
${mlas_platform_srcs}
Original file line number Diff line number Diff line change @@ -7,11 +7,12 @@ SCRIPTS_DIR=$(cd "$(dirname "$(readlink -f "$0")")" && pwd)
7
7
cmake -B build-riscv64-spacemit \
8
8
-DCMAKE_BUILD_TYPE=Release \
9
9
-DGGML_CPU_RISCV64_SPACEMIT=ON \
10
+ -DRISCV64_SPACEMIT_IME_SPEC=RISCV64_SPACEMIT_IME1 \
10
11
-DCMAKE_TOOLCHAIN_FILE=${SCRIPTS_DIR} /../cmake/riscv64-spacemit-linux-gnu-gcc.cmake \
11
12
-DCMAKE_INSTALL_PREFIX=build-riscv64-spacemit/installed
12
13
13
14
cmake --build build-riscv64-spacemit --parallel 10 --config Release
14
15
15
16
pushd build-riscv64-spacemit
16
17
make install
17
- popd
18
+ popd
You can’t perform that action at this time.
0 commit comments