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

Static library libfaiss_gpu.a not installed #3375

Open
3 of 4 tasks
Di-Is opened this issue Apr 19, 2024 · 1 comment
Open
3 of 4 tasks

Static library libfaiss_gpu.a not installed #3375

Di-Is opened this issue Apr 19, 2024 · 1 comment
Labels

Comments

@Di-Is
Copy link

Di-Is commented Apr 19, 2024

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:

  • CPU
  • GPU

Interface:

  • 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
@algoriddle
Copy link
Contributor

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

@Di-Is Di-Is reopened this Apr 25, 2024
@mdouze mdouze added the install label Apr 26, 2024
@Di-Is Di-Is closed this as completed May 7, 2024
@Di-Is Di-Is reopened this May 7, 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