Enable native code on AARCH64 #723
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 209 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.320
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #723"
general
weight: 0.35
r-devulap
This pull request adds full support for running and building
jvector-nativeon AArch64 (ARM64) systems, including both NEON/SVE/SVE2 SIMD instruction sets. The changes introduce architecture detection macros, update build scripts and CI workflows for ARM64, and extend runtime detection and dispatch of SIMD capabilities to support ARM64 alongside x86_64. This enables native vectorization and testing on ARM64 platforms such as AWS Graviton and Apple Silicon.Key changes:
ARM64 (AArch64) support:
Added architecture detection macros (
JV_ARCH_X86_64,JV_ARCH_AARCH64) in new headerjvector_arch.hand refactored source code to use these macros for architecture-specific logic.Implemented runtime CPU feature detection for NEON, SVE, and SVE2 on ARM64, supporting both Linux (using
getauxval) and macOS (usingsysctlbyname).Updated the native dispatch logic to handle ARM64 SIMD tiers (NEON, SVE and SVE2), mirroring the x86_64 dispatch mechanism.
Kernels needed minor changes to adapt to vector length agnostic SIMD implementations (28d0a8400a562669d87952fbaf46a198f7316fbd)
Build system and CI improvements:
Modified
meson.buildto add ARM64 ISA variants, select appropriate test sources, and error on unsupported architectures.Added a new GitHub Actions workflow to run unit tests on ARM64 runners, building and testing all supported ISAs and JDK versions.
Java integration:
Updated
NativeVectorizationProviderto allow native SIMD operations on both x86_64 and aarch64, not just x86_64.Relaxed the Maven profile activation in
pom.xmlto allow non-amd64 Unix builds (enabling ARM64 builds).