faiss-wheels icon indicating copy to clipboard operation
faiss-wheels copied to clipboard

[WIP] Enable AVX2 instruction set, change dependencies to improve performance

Open Alexsandruss opened this issue 3 years ago • 3 comments

[Work in progress]

Proposed changes:

  • Enable AVX2 support for Linux and Mac OS X platforms.
  • Change build and runtime dependencies to MKL and Intel OpenMP to improve performance.

Alexsandruss avatar Feb 15 '21 09:02 Alexsandruss

if doing that, including a benchmark in the CI to check performance would make sense (do you know if AVX2 and MKL actually improve perf? I observed the opposite for MKL)

rom1504 avatar Feb 15 '21 09:02 rom1504

I will add run of some faiss benchmarks later. Can you provide details of case where MKL didn't improve performance?

Alexsandruss avatar Feb 15 '21 11:02 Alexsandruss

https://gist.github.com/rom1504/5a6a733dfd4772e497ea159e0395d0f9 can be a good starting point for a benchmark Using ivf index with train reconstruct and search

rom1504 avatar Feb 15 '21 15:02 rom1504