faiss
faiss copied to clipboard
Static library libfaiss_gpu.a not installed
Summary
When faiss is built as a static library for GPUs, a static library named libfaiss_gpu.a is generated. However, this library is not installed.
Platform
OS: Ubuntu 22.04/Centos7
Faiss version: v1.8.0
Installed from: source
Faiss compilation options:
- -DFAISS_ENABLE_GPU=ON
- -DFAISS_ENABLE_PYTHON=OFF
- -DBUILD_TESTING=OFF
- -DFAISS_OPT_LEVEL="generic"
- -DCMAKE_BUILD_TYPE=Release
Running on:
- [X] CPU
- [X] GPU
Interface:
- [X] C++
- [ ] Python
Reproduction instructions
The build and library installation commands are shown below.
# Install command
cmake . \
-B build \
-DFAISS_ENABLE_GPU=ON \
-DFAISS_ENABLE_PYTHON=OFF \
-DBUILD_TESTING=OFF \
-DFAISS_OPT_LEVEL="generic" \
-DCMAKE_BUILD_TYPE=Release && \
cmake --build build --config Release -j3 && \
cmake --install build
After executing the command, I check /usr/local/lib and /usr/local/lib64 and libfaiss_gpu.a is not copied.
ls /usr/local/lib | grep libfaiss_gpu.a
ls /usr/local/lib64 | grep libfaiss_gpu.a
The objective was to merge the object files from libfaiss_gpu.a entirely into libfaiss*