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

Add programmatic workaround for Faiss + macOS #818

Merged
merged 5 commits into from
Nov 22, 2024

Conversation

yukiman76
Copy link
Contributor

This patch addresses a known issue on macOS where FAISS can cause a segmentation fault due to a bug with OpenMP threading. Explicitly setting the number of threads to 1 is a pragmatic temporary fix while we wait for an upstream resolution.

docs/faq.md Outdated Show resolved Hide resolved
@davidmezzetti
Copy link
Member

Thank you for the PR! Just put a few comments. Some aren't that important but the TODO one is the only one that would cause the build scripts to fail.

@davidmezzetti davidmezzetti added this to the v8.1.0 milestone Nov 22, 2024
@davidmezzetti
Copy link
Member

This issue has been mentioned countless times. While the export OMP_NUM_THREADS=1 workaround solves it, many won't look past the error and move on.

Much appreciated!

References: #62 #300 #350 #463 #480 #498 #576 #685 #689 #717 #744 #813 #814

@davidmezzetti davidmezzetti merged commit dceb40c into neuml:master Nov 22, 2024
3 checks passed
@davidmezzetti davidmezzetti changed the title Macfaiss Add programmatic workaround for Faiss + macOS Nov 22, 2024
@yukiman76 yukiman76 deleted the macfaiss branch November 22, 2024 20:01
@davidmezzetti davidmezzetti added the bug Something isn't working label Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants