Skip to content

Commit

Permalink
Begin migrate ScalarQuantizer to simdlib (facebookresearch#3613)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebookresearch#3613

As a demo for Mengdi.

The steps to fully migrate to simdlib are:

1. change all function interfaces to use the generic simd8float32 and friends prototypes -- make sure it compiles on fbcode.

2. make sure it also compiles on ARM

3. see which functions can be mirgrated to only use the generic codepath

4. benchmark if the simd emulated path is competitve with the scalar (for platforms without specific SIMD support)

Differential Revision: D59395882
  • Loading branch information
mdouze authored and facebook-github-bot committed Jul 5, 2024
1 parent 3fe0b93 commit 8e2068a
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 272 deletions.
1 change: 1 addition & 0 deletions faiss/impl/AdditiveQuantizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <faiss/utils/Heap.h>
#include <faiss/utils/distances.h>
#include <faiss/utils/hamming.h>
#include <faiss/utils/simdlib.h>
#include <faiss/utils/utils.h>

extern "C" {
Expand Down
Loading

0 comments on commit 8e2068a

Please sign in to comment.