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

MB-63430: Add jemalloc option #45

Open
wants to merge 7 commits into
base: bleve
Choose a base branch
from
Open

MB-63430: Add jemalloc option #45

wants to merge 7 commits into from

Conversation

CascadingRadium
Copy link
Member

@CascadingRadium CascadingRadium commented Feb 3, 2025

  • Add support for a new CMake option to enable FAISS to use the jemalloc memory allocator.
  • Setting -DFAISS_USE_JEMALLOC=ON during the Faiss build enables this feature
    (disabled by default).
  • Jemalloc is detected in the build system either via pkg-config or by specifying
    -DJemalloc_Root=<path> as a CMake option. The <path> must point to a
    JemallocConfig.cmake file.
  • Jemalloc must be built with the je_ prefix; otherwise, the build will fail.
  • When this feature is enabled, the faiss_c and faiss libraries will be linked to the
    jemalloc library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do not merge Not ready to go in just yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants