update onnxruntime package name and hash for riscv64-spacemit#3481
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughRemoves 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
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
csukuangfj
left a comment
There was a problem hiding this comment.
Thank you for your contribution!
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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}") |
There was a problem hiding this comment.
+ 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.
| 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}") |
| - [SpacemiT-K1][SpacemiT-K1] | ||
| - [SpacemiT-K3][SpacemiT-K3] |
There was a problem hiding this comment.
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).
| - [SpacemiT-K1][SpacemiT-K1] | |
| - [SpacemiT-K3][SpacemiT-K3] | |
| - [Spacemit-K1][SpacemiT-K1] | |
| - [Spacemit-K3][SpacemiT-K3] |
| [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 |
There was a problem hiding this comment.
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).
| [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 |
| 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" |
There was a problem hiding this comment.
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.
| 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" |
There was a problem hiding this comment.
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.
|
Can you have a look at https://github.com/k2-fsa/sherpa-onnx/actions/runs/24122441292/job/70382142458#step:11:850 |
|
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
|
|
There may be a delay in file synchronization. I'll check it. |

Summary by CodeRabbit
Documentation
Chores