Skip to content

feat(ohos): add OpenHarmony (musl) cross-compile support and CI release#16

Merged
alex-spacemit merged 1 commit into
spacemit-com:spacemit-mtmdfrom
co-seven:feat/ohos-compile
Jul 4, 2026
Merged

feat(ohos): add OpenHarmony (musl) cross-compile support and CI release#16
alex-spacemit merged 1 commit into
spacemit-com:spacemit-mtmdfrom
co-seven:feat/ohos-compile

Conversation

@co-seven

@co-seven co-seven commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Add OHOS/OpenHarmony RISC-V (musl) build support for llama.cpp:

  • cmake/riscv64-spacemit-ohos.cmake: musl clang OHOS cross toolchain file
  • ggml-cpu: enable ohos platform; fix xsmtvdotii detection for clang (previously gcc-only, leaving IME kernels undefined) and make div_round_up C++17-compatible (auto params are invalid pre-C++20 on clang)
  • .github/workflows/build-spacemit-mtmd.yml: add build-ohos job that runs alongside the glibc build on push/PR, depends on it, and attaches the OHOS package to the same release tag so a release carries both glibc and ohos tarballs
  • .github/variables.env: OHOS toolchain / ORT download URLs; bump linux ORT 2.0.2 -> 2.0.5
  • VERSION_NUMBER: 0.1.4 -> 0.1.5

Add OHOS/OpenHarmony RISC-V (musl) build support for llama.cpp:

- cmake/riscv64-spacemit-ohos.cmake: musl clang OHOS cross toolchain file
- ggml-cpu: enable ohos platform; fix xsmtvdotii detection for clang
  (previously gcc-only, leaving IME kernels undefined) and make
  div_round_up C++17-compatible (auto params are invalid pre-C++20 on clang)
- .github/workflows/build-spacemit-mtmd.yml: add build-ohos job that runs
  alongside the glibc build on push/PR, depends on it, and attaches the OHOS
  package to the same release tag so a release carries both glibc and ohos
  tarballs
- .github/variables.env: OHOS toolchain / ORT download URLs; bump linux ORT
  2.0.2 -> 2.0.5
- VERSION_NUMBER: 0.1.4 -> 0.1.5
@co-seven co-seven force-pushed the feat/ohos-compile branch from 531b6fa to 680a685 Compare July 4, 2026 04:51
@alex-spacemit alex-spacemit merged commit 86d4ff2 into spacemit-com:spacemit-mtmd Jul 4, 2026
10 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants