ruvector/crates/ruvector-postgres/src
rUv c039bf24b0 feat(simd): Add full AVX-512 SIMD support with ~2x speedup over AVX2
- Add SIMD feature detection functions (is_avx512_available, is_avx2_available, is_neon_available, simd_level)
- Implement AVX-512 distance functions processing 16 floats per iteration:
  - l2_distance_ptr_avx512: Euclidean distance with _mm512_fmadd_ps
  - cosine_distance_ptr_avx512: Cosine distance with full normalization
  - inner_product_ptr_avx512: Inner/dot product for normalized vectors
  - manhattan_distance_ptr_avx512: L1 distance with _mm512_abs_ps
  - cosine_distance_normalized_avx512: Optimized for pre-normalized vectors
- Add NEON Manhattan distance for ARM64 (manhattan_distance_ptr_neon)
- Update all dispatch functions to prefer AVX-512 > AVX2 > NEON > Scalar
- Add comprehensive AVX-512 test suite with remainder handling tests
- All functions use horizontal reduce (_mm512_reduce_add_ps) for efficient summation

Performance: AVX-512 processes 16 floats/iteration vs 8 for AVX2, yielding ~1.5-2x speedup on supported CPUs.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-03 04:46:19 +00:00
..
attention fix(postgres): Resolve compilation errors and Docker build issues 2025-12-03 01:17:50 +00:00
bin feat(postgres): Add ruvector-postgres extension with SIMD optimizations (#42) 2025-12-02 09:55:07 -05:00
distance feat(simd): Add full AVX-512 SIMD support with ~2x speedup over AVX2 2025-12-03 04:46:19 +00:00
gnn fix(postgres): Resolve compilation errors and Docker build issues 2025-12-03 01:17:50 +00:00
graph fix(postgres): Resolve compilation errors and Docker build issues 2025-12-03 01:17:50 +00:00
hyperbolic fix(postgres): Resolve compilation errors and Docker build issues 2025-12-03 01:17:50 +00:00
index feat(postgres): Add ruvector-postgres extension with SIMD optimizations (#42) 2025-12-02 09:55:07 -05:00
learning fix(postgres): Resolve compilation errors and Docker build issues 2025-12-03 01:17:50 +00:00
quantization feat(postgres): Add ruvector-postgres extension with SIMD optimizations (#42) 2025-12-02 09:55:07 -05:00
routing fix(postgres): Resolve compilation errors and Docker build issues 2025-12-03 01:17:50 +00:00
sparse fix(postgres): Resolve compilation errors and Docker build issues 2025-12-03 01:17:50 +00:00
types feat(postgres): Add ruvector-postgres extension with SIMD optimizations (#42) 2025-12-02 09:55:07 -05:00
lib.rs feat(postgres): Add 7 advanced AI modules to ruvector-postgres 2025-12-02 20:12:48 +00:00
operators.rs feat(postgres): Add ruvector-postgres extension with SIMD optimizations (#42) 2025-12-02 09:55:07 -05:00