Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local build is 4x slower than faiss release #3306

Open
2 of 4 tasks
b8188495 opened this issue Mar 21, 2024 · 1 comment
Open
2 of 4 tasks

Local build is 4x slower than faiss release #3306

b8188495 opened this issue Mar 21, 2024 · 1 comment
Labels

Comments

@b8188495
Copy link

Summary

I'm running the same benchmark on the same machine with a local build and the 1.8.0 release build. The local build is about 4x slower than the release. Can you share the build flags for a release so I can try it out with a local build?

My local build was created with the following commands on an AWS Graviton box (aarch64):

cmake -B build . -DFAISS_ENABLE_GPU=OFF -DFAISS_ENABLE_PYTHON=ON
make -C build -j faiss
make -C build -j swigfaiss
(cd build/faiss/python && python setup.py install)
(cd build/faiss/python && python setup.py build)

Platform

OS: Ubuntu 20

Faiss version: dafdff1

Installed from: compiled locally

Faiss compilation options:
cmake -B build . -DFAISS_ENABLE_GPU=OFF -DFAISS_ENABLE_PYTHON=ON

Running on:

  • CPU
  • GPU

Interface:

  • C++
  • Python

Reproduction instructions

@alexanderguzhva
Copy link
Contributor

alexanderguzhva commented Mar 21, 2024

-DCMAKE_BUILD_TYPE=Release is missing in cmake command line.
Faiss builds the debug build by default

@mdouze mdouze added the install label Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants