]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
ggml-cpu: cmake: append xsmtvdotii march for SpacemiT IME (llama/22317)
authorqiurui144 <redacted>
Wed, 29 Apr 2026 07:59:21 +0000 (15:59 +0800)
committerGeorgi Gerganov <redacted>
Thu, 30 Apr 2026 08:29:23 +0000 (11:29 +0300)
commit6119537e9aa65c4dc117c395c2d5acac07eb6b21
tree5dfeceac84cab0bee1e46d2898032587376e4c4d
parentfa20229eeb54ee219fe9f67782bbae799d953f2b
ggml-cpu: cmake: append xsmtvdotii march for SpacemiT IME (llama/22317)

* ggml-cpu: cmake: append xsmtvdotii march for SpacemiT IME

When GGML_CPU_RISCV64_SPACEMIT=ON is set, ime1_kernels.cpp contains
inline asm for the vmadot family which requires the xsmtvdotii custom
extension.(problem can see in some blogs and make sure in K3 platform)
The current CMakeLists does not include xsmtvdotii, so any toolchain
that honours the explicit -march (tested with SpacemiT GCC 15.2) fails
at the assembler stage:

  Error: unrecognized opcode `vmadot v16,v14,v0',
         extension `xsmtvdotii' required

Append _xsmtvdotii to MARCH_STR when GGML_CPU_RISCV64_SPACEMIT is
enabled so the IME path can actually build with a capable toolchain.
No effect on builds that leave GGML_CPU_RISCV64_SPACEMIT off.

toolchain from https://www.spacemit.com/community/resources-download/Tools

* Update ggml/src/ggml-cpu/CMakeLists.txt

Co-authored-by: alex-spacemit <redacted>
---------

Co-authored-by: alex-spacemit <redacted>
ggml/src/ggml-cpu/CMakeLists.txt