Skip to content

spacemit: add spert whole-graph kernel path - #31

Merged
alex-spacemit merged 1 commit into
spacemit-com:mtmd-backendfrom
co-seven:spert-migration
Aug 15, 2026
Merged

alex-spacemit merged 1 commit into
spacemit-com:mtmd-backendfrom
co-seven:spert-migration

Conversation

@co-seven

Copy link
Copy Markdown
Collaborator
  • ggml-cpu.c: bypass threadpool on RISCV64_SPACEMIT, run whole graph inside AI cores via spacemit_spert_launch_graph_kernel; redirect ggml_barrier to spert grid sync
  • spacemit_spert_adapter.{h,cpp}: C/C++ boundary for spine-runtime ABI (stream require/dispatch/release, grid sync via spine_ctx_sync C ABI, per-tile TCM buffer)
  • ime.cpp/ime.h: use spert shared buffer and grid sync
  • CMakeLists.txt: link spine-runtime (SPERT_DIR)
  • .github: fetch spine-runtime (spert) release for glibc and OHOS builds, pass SPERT_DIR to cmake

- ggml-cpu.c: bypass threadpool on RISCV64_SPACEMIT, run whole graph
  inside AI cores via spacemit_spert_launch_graph_kernel; redirect
  ggml_barrier to spert grid sync
- spacemit_spert_adapter.{h,cpp}: C/C++ boundary for spine-runtime ABI
  (stream require/dispatch/release, grid sync via spine_ctx_sync C ABI,
  per-tile TCM buffer)
- ime.cpp/ime.h: use spert shared buffer and grid sync
- CMakeLists.txt: link spine-runtime (SPERT_DIR)
- .github: fetch spine-runtime (spert) release for glibc and OHOS builds,
  pass SPERT_DIR to cmake
@alex-spacemit
alex-spacemit merged commit 754e371 into spacemit-com:mtmd-backend Aug 15, 2026
11 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