feat: add foundational RISC-V and RVV support infrastructure - #311
Open
ihb2032 wants to merge 8 commits into
Open
feat: add foundational RISC-V and RVV support infrastructure#311ihb2032 wants to merge 8 commits into
ihb2032 wants to merge 8 commits into
Conversation
Contributor
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
ihb2032
requested review from
Cuiyus,
JalinWang,
feihongxu0824,
richyreachy and
zhourrr
as code owners
April 29, 2026 02:21
ihb2032
force-pushed
the
feat/riscv-platform-init
branch
from
April 30, 2026 06:40
3301f43 to
72b31fc
Compare
ihb2032
force-pushed
the
feat/riscv-platform-init
branch
from
May 13, 2026 00:32
72b31fc to
be471c0
Compare
ihb2032
force-pushed
the
feat/riscv-platform-init
branch
8 times, most recently
from
June 8, 2026 09:45
c5e8cc9 to
8a3c5f5
Compare
ihb2032
force-pushed
the
feat/riscv-platform-init
branch
from
June 9, 2026 06:46
8a3c5f5 to
4c7cb3d
Compare
ihb2032
force-pushed
the
feat/riscv-platform-init
branch
from
June 11, 2026 09:53
4c7cb3d to
08dc67a
Compare
ihb2032
force-pushed
the
feat/riscv-platform-init
branch
from
June 24, 2026 14:17
4f4daba to
36a392b
Compare
ihb2032
force-pushed
the
feat/riscv-platform-init
branch
3 times, most recently
from
July 7, 2026 23:50
fb38a6c to
a22b486
Compare
ihb2032
force-pushed
the
feat/riscv-platform-init
branch
from
July 17, 2026 00:47
a22b486 to
018112f
Compare
Signed-off-by: ihb2032 <hebome@foxmail.com>
Signed-off-by: ihb2032 <hebome@foxmail.com>
Signed-off-by: ihb2032 <hebome@foxmail.com>
Signed-off-by: ihb2032 <hebome@foxmail.com>
Signed-off-by: ihb2032 <hebome@foxmail.com>
Signed-off-by: ihb2032 <hebome@foxmail.com>
ihb2032
force-pushed
the
feat/riscv-platform-init
branch
from
August 17, 2026 05:48
018112f to
eec6056
Compare
Conflict resolution policy: keep upstream (main) for shared code, retain this branch's changes only for RISC-V/RVV-related parts. - src/ailego/CMakeLists.txt: keep upstream's restructured per-arch per-file march block (incl. MSVC ARM64 NEON comment); re-add the riscv64 *_rvv.cc glob with setup_compiler_march_for_riscv64_rvv(). - src/ailego/internal/cpu_features.cc: keep upstream's includes and simplified compiler guards; retain the riscv_hwprobe-based runtime detection (RISCV_VECTOR/RISCV_ZVFH) and the riscv CpuFlags ctor. - src/include/zvec/ailego/internal/platform.h: keep upstream's AILEGO_ARM64/AILEGO_HAVE_NEON structure; retain riscv64 in AILEGO_M64, riscv_vector.h include, zihintpause ailego_yield, and the __riscv_vector tier in ailego_malloc. - src/ailego/internal/cpu_features.h: drop stale conflict markers committed earlier; keep both NEON (upstream) and the new RISCV_VECTOR/RISCV_ZVFH static flags.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation & Context
This PR introduces the fundamental infrastructure required to support the RISC-V 64-bit architecture and the RISC-V Vector Extension.
Adding this underlying scaffolding paves the way for significant performance optimizations. Preliminary downstream testing with RVV intrinsics has already demonstrated massive potential, including nearly 9x QPS improvements in int8 workloads without any drop in recall. This PR is the necessary first step to upstream those gains safely and cleanly.
Performance Context:
What's Next?
This is part 1 of a planned series of PRs. Once this foundational PR is merged, follow-up PRs will introduce the actual algorithmic optimizations that utilize these new
cpu_featuresAPIs.Testing Performed