Skip to content

update onnxruntime package name and hash for riscv64-spacemit#3481

Merged
csukuangfj merged 2 commits into
k2-fsa:masterfrom
spacemit-com:spacemit-ort-to-2.0.2+rc1
Apr 8, 2026
Merged

update onnxruntime package name and hash for riscv64-spacemit#3481
csukuangfj merged 2 commits into
k2-fsa:masterfrom
spacemit-com:spacemit-ort-to-2.0.2+rc1

Conversation

@alex-spacemit

@alex-spacemit alex-spacemit commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Documentation

    • Added SpacemiT-K1 and SpacemiT-K3 to supported platforms list
  • Chores

    • Updated SpacemiT ONNX Runtime package to version 2.0.2+rc1
    • Updated test workflow configurations for SpacemiT platform

Copilot AI review requested due to automatic review settings April 8, 2026 06:56
@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Apr 8, 2026
@coderabbitai

coderabbitai Bot commented Apr 8, 2026

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 96aeecd2-6dbc-49c0-a5f6-67c6f81cdc5a

📥 Commits

Reviewing files that changed from the base of the PR and between 625f63a and 40b0792.

📒 Files selected for processing (3)
  • .github/workflows/riscv64-spacemit-linux.yaml
  • README.md
  • cmake/onnxruntime-linux-riscv64-spacemit.cmake
💤 Files with no reviewable changes (1)
  • .github/workflows/riscv64-spacemit-linux.yaml

📝 Walkthrough

Walkthrough

Removes op type filtering from SpacemiT CI workflow steps, adds documentation for SpacemiT NPU platforms (K1 and K3), and updates Spacemit ONNX Runtime package to version 2.0.2+rc1 with corresponding hash verification.

Changes

Cohort / File(s) Summary
CI Workflow
.github/workflows/riscv64-spacemit-linux.yaml
Removed environment variable setup (SPACEMIT_EP_DISABLE_OP_TYPE_FILTER) and status message output from streaming speech recognition and offline TTS test steps.
Documentation
README.md
Added SpacemiT-K1 and SpacemiT-K3 NPU platforms to the "Supported platforms" list with corresponding markdown link references.
Build Configuration
cmake/onnxruntime-linux-riscv64-spacemit.cmake
Updated Spacemit ONNX Runtime package version from 2.0.1 to 2.0.2+rc1 and refreshed corresponding SHA256 hash for archive verification.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested labels

size:S

Suggested reviewers

  • csukuangfj

Poem

🐰 A spacemit update hops our way,
K1 and K3 NPUs saved the day!
No ops to filter, versions bump clean,
The smoothest CI you've ever seen!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects the main change: updating the ONNX Runtime package name and hash in the CMake configuration file for riscv64-spacemit.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@csukuangfj csukuangfj left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution!

@csukuangfj csukuangfj merged commit 27c8da5 into k2-fsa:master Apr 8, 2026
2 of 28 checks passed

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the onnxruntime package version for SpacemiT RISC-V platforms to 2.0.2+rc1 and updates the corresponding SHA256 hash. It also updates the README.md to include SpacemiT-K1 and SpacemiT-K3 as supported platforms with relevant documentation links. I have no feedback to provide.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the SpacemiT RISC-V64 ONNX Runtime artifact reference and cleans up related CI/runtime documentation to reflect current platform support.

Changes:

  • Bumped the SpacemiT riscv64 onnxruntime tarball name and updated its SHA256 hash.
  • Added SpacemiT-K1 and SpacemiT-K3 to the README platform list with reference links.
  • Removed the temporary CI workaround that disabled specific ops in the SpacemiT EP.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
cmake/onnxruntime-linux-riscv64-spacemit.cmake Points downloads to the new onnxruntime tarball and updates checksum accordingly.
README.md Documents additional SpacemiT hardware targets and adds their reference links.
.github/workflows/riscv64-spacemit-linux.yaml Drops the prior EP op-disable workaround from the riscv64-spacemit CI job steps.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


set(onnxruntime_pkg_name "spacemit-ort.riscv64.2.0.1.tar.gz")
set(onnxruntime_pkg_name "spacemit-ort.riscv64.2.0.2+rc1.tar.gz")
set(onnxruntime_URL "https://archive.spacemit.com/spacemit-ai/onnxruntime/${onnxruntime_pkg_name}")

Copilot AI Apr 8, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+ in the tarball filename can be mishandled by some URL/HTTP tooling (it is sometimes decoded as a space by non-compliant components). To make downloads more robust, consider either (a) URL-encoding the + in the URL (use %2B in the computed download URL) or (b) publishing/using an equivalent filename without + (e.g., -rc1) and referencing that instead.

Suggested change
set(onnxruntime_URL "https://archive.spacemit.com/spacemit-ai/onnxruntime/${onnxruntime_pkg_name}")
string(REPLACE "+" "%2B" onnxruntime_pkg_name_url "${onnxruntime_pkg_name}")
set(onnxruntime_URL "https://archive.spacemit.com/spacemit-ai/onnxruntime/${onnxruntime_pkg_name_url}")

Copilot uses AI. Check for mistakes.
Comment thread README.md
Comment on lines +94 to +95
- [SpacemiT-K1][SpacemiT-K1]
- [SpacemiT-K3][SpacemiT-K3]

Copilot AI Apr 8, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The README uses SpacemiT casing here, while the rest of the repo (e.g., filenames like riscv64-spacemit) uses spacemit. It’d be clearer to standardize casing across documentation and build/CI terminology (either adopt the brand casing everywhere in docs or use the repo’s existing Spacemit/Spacemit convention consistently).

Suggested change
- [SpacemiT-K1][SpacemiT-K1]
- [SpacemiT-K3][SpacemiT-K3]
- [Spacemit-K1][SpacemiT-K1]
- [Spacemit-K3][SpacemiT-K3]

Copilot uses AI. Check for mistakes.
Comment thread README.md
Comment on lines +645 to +646
[SpacemiT-K1]: https://cdn-resource.spacemit.com/file/chip/K1/K1_brief_zh.pdf
[SpacemiT-K3]: https://cdn-resource.spacemit.com/file/chip/K3/K3_brief_zh.pdf

Copilot AI Apr 8, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The README uses SpacemiT casing here, while the rest of the repo (e.g., filenames like riscv64-spacemit) uses spacemit. It’d be clearer to standardize casing across documentation and build/CI terminology (either adopt the brand casing everywhere in docs or use the repo’s existing Spacemit/Spacemit convention consistently).

Suggested change
[SpacemiT-K1]: https://cdn-resource.spacemit.com/file/chip/K1/K1_brief_zh.pdf
[SpacemiT-K3]: https://cdn-resource.spacemit.com/file/chip/K3/K3_brief_zh.pdf
[Spacemit-K1]: https://cdn-resource.spacemit.com/file/chip/K1/K1_brief_zh.pdf
[Spacemit-K3]: https://cdn-resource.spacemit.com/file/chip/K3/K3_brief_zh.pdf

Copilot uses AI. Check for mistakes.
Comment on lines 256 to 258
export QEMU_LD_PREFIX=$GITHUB_WORKSPACE/toolchain/sysroot
export LD_LIBRARY_PATH=$GITHUB_WORKSPACE/toolchain/sysroot/lib
export QEMU_ARGS="-cpu max,vlen=256,elen=64,vext_spec=v1.0"

Copilot AI Apr 8, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This removes the previously documented workaround (SPACEMIT_EP_DISABLE_OP_TYPE_FILTER) without leaving any trace of why it’s no longer needed. To reduce future churn when regressions happen, consider adding a brief comment tying the removal to the onnxruntime/EP version bump (e.g., “fixed in spacemit-ort 2.0.2+rc1”), or keep an opt-in toggle (only set the env var when a workflow input/variable indicates it) so the workaround can be re-enabled quickly if needed.

Copilot uses AI. Check for mistakes.
Comment on lines 278 to 280
export QEMU_LD_PREFIX=$GITHUB_WORKSPACE/toolchain/sysroot
export LD_LIBRARY_PATH=$GITHUB_WORKSPACE/toolchain/sysroot/lib
export QEMU_ARGS="-cpu max,vlen=256,elen=64,vext_spec=v1.0"

Copilot AI Apr 8, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This removes the previously documented workaround (SPACEMIT_EP_DISABLE_OP_TYPE_FILTER) without leaving any trace of why it’s no longer needed. To reduce future churn when regressions happen, consider adding a brief comment tying the removal to the onnxruntime/EP version bump (e.g., “fixed in spacemit-ort 2.0.2+rc1”), or keep an opt-in toggle (only set the env var when a workflow input/variable indicates it) so the workaround can be re-enabled quickly if needed.

Copilot uses AI. Check for mistakes.
@csukuangfj

Copy link
Copy Markdown
Collaborator

@csukuangfj

Copy link
Copy Markdown
Collaborator

https://archive.spacemit.com/spacemit-ai/onnxruntime/spacemit-ort.riscv64.2.0.2+rc1.tar.gz

Please re-check the above link. If you click, it shows the following

Screenshot 2026-04-08 at 15 38 18

@alex-spacemit

Copy link
Copy Markdown
Contributor Author

There may be a delay in file synchronization. I'll check it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants