Skip to content

AVX-512 SIMD not fully implemented - falls back to AVX2 #47

@ruvnet

Description

@ruvnet

Priority: High

Current Behavior

AVX-512 distance calculations fall back to AVX2 implementation. The AVX-512 code paths exist but are not fully optimized.

Expected Behavior

Full AVX-512 implementation for maximum performance on supported hardware (2-3x speedup over AVX2).

Technical Details

  • Location: crates/ruvector-postgres/src/distance/simd.rs
  • Current state: AVX-512 feature flags exist but implementation uses AVX2 intrinsics
  • Affected operations: L2, cosine, inner product, Manhattan distance

Acceptance Criteria

  • Implement AVX-512 intrinsics for all distance functions
  • Add runtime detection for AVX-512 support
  • Benchmark AVX-512 vs AVX2 performance
  • Add CI tests on AVX-512 capable hardware

Impact

~2-3x potential performance improvement for distance calculations on modern Intel/AMD CPUs with AVX-512 support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestperformancePerformance optimization and benchmarks

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions