Skip to content

x86_64 AVX2 scoring path (parity with NEON, bit-identity tested) #11

Closed

Description

@ajianaz

Context

From an integration audit of vecq v0.1.1 (considering it as the vector backend for cora-code's Brain Mode). The asymmetric scoring currently has an explicit NEON path on aarch64 and a portable scalar path elsewhere. On x86_64 — the majority of CI runners, dev machines, and homelab boxes — everything falls back to scalar.

Proposal

  • Add an AVX2 (optionally AVX-512 later) scoring path with the same fixed association order and no FMA contraction, gated by target_feature/runtime detection like the NEON path
  • Extend the existing bit-identity test to enforce AVX2 == scalar == NEON on overlapping inputs
  • Document expected speedups in docs/BENCHMARK.md per architecture

Why it matters

The scalar path makes cross-platform determinism easy but leaves a large performance gap on x86_64. Bench parity would also strengthen the vs-usearch story on CI hardware, not just on Apple Silicon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions