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

how to build gpufaiss_c correctly? #88

Open
152334H opened this issue Nov 2, 2024 · 1 comment
Open

how to build gpufaiss_c correctly? #88

152334H opened this issue Nov 2, 2024 · 1 comment

Comments

@152334H
Copy link

152334H commented Nov 2, 2024

Sorry for dumb question. When I follow the instructions here with -DFAISS_ENABLE_C_API=ON, I obtain libfaiss_c.so with no apparent GPU equivalent in the build/c_api/gpu folder. The suggestion to run make in the GPU subfolder does not help.

I have checked the pypi/conda packages for gpu faiss and they do not contain the C API shared object either.

@Enet4
Copy link
Owner

Enet4 commented Nov 2, 2024

You also need to set -DFAISS_ENABLE_GPU=ON, plus any other GPU related option for your environment. When coupled with FAISS_ENABLE_C_API, this should automatically produce the gpufaiss_c library.

The suggestion to run make in the GPU subfolder does not help.

Oops, that suggestion is outdated. The official building process is no longer directly through GNU Makefiles but through CMake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants