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

Building faiss static and cpu-only for the ann-benchmarks #1820

Closed
wants to merge 1 commit into from

Conversation

achirkin
Copy link
Contributor

A suggestion for the #1814

This change builds FAISS the second time using the already downloaded sources - as a static library and without GPU components (target faiss::faiss_cpu). The build times are very short and the benchmark executables linked to this lib are still small, hence I think this is a reasonable approach to allow building GPU and CPU-only benchmarks at the same time.

The main benefit, especially useful for benchmarking-during-development, is that the resulting FAISS_CPU_* components do not depend on CUDA runtime and thus can be copied to a CPU-ONLY node.

@cjnolet cjnolet self-assigned this Sep 25, 2023
@cjnolet cjnolet added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change 0 - Blocked Unable to proceed until blocker is cleared and removed non-breaking Non-breaking change labels Sep 25, 2023
@cjnolet cjnolet assigned achirkin and unassigned cjnolet Oct 25, 2023
@achirkin achirkin closed this Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 - Blocked Unable to proceed until blocker is cleared CMake cpp improvement Improvement / enhancement to an existing function
Projects
Development

Successfully merging this pull request may close these issues.

2 participants