faiss icon indicating copy to clipboard operation
faiss copied to clipboard

Static library libfaiss_gpu.a not installed

Open Di-Is opened this issue 1 year ago • 1 comments

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

Di-Is avatar Apr 19 '24 12:04 Di-Is

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

algoriddle avatar Apr 25 '24 11:04 algoriddle