facebookresearch / faiss

A library for efficient similarity search and clustering of dense vectors.
https://faiss.ai
MIT License
30.49k stars 3.56k forks source link

Static library libfaiss_gpu.a not installed #3375

Open Di-Is opened 4 months ago

Di-Is commented 4 months ago

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:

Running on:

Interface:

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
algoriddle commented 4 months ago

The objective was to merge the object files from libfaiss_gpu.a entirely into libfaiss*