← Back to Pull requests

Enable native code on AARCH64 #723

Closed
unknown closed this pull request without merging on Oct 06, 2026 10:54 UTC
View on GitHub
unknown unknown commented on Aug 31, 2026 07:01 UTC
Author

This pull request adds full support for running and building jvector-native on 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 header jvector_arch.h and 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 (using sysctlbyname).
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.build to 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 NativeVectorizationProvider to allow native SIMD operations on both x86_64 and aarch64, not just x86_64.
Relaxed the Maven profile activation in pom.xml to allow non-amd64 Unix builds (enabling ARM64 builds).

Diff: 209 lines (+156 / -53) across 2 files Reviewer: r-devulap Review duration: 52073m
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
0.36
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 36.4% (MEDIUM) · Higher = larger blast radius
36.4%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 14.4% · Safe to merge
14.4%