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

Segfault in macOS in the presence of other OpenMP dependent packages #73

Open
kyamagu opened this issue Apr 21, 2023 · 2 comments
Open
Labels
bug Something isn't working

Comments

@kyamagu
Copy link
Owner

kyamagu commented Apr 21, 2023

Describe the bug
faiss may crash when there is another imported package that depends on libomp.

To Reproduce
Import a package that depends on OpenMP on macOS, then import faiss-cpu package. Use faiss as usual.

Expected behavior
Should not segfault.

Desktop (please complete the following information):

  • OS: macOS
  • Architecture: arm64
  • Python: any
  • Version: v1.7.3

Additional context
facebookresearch/faiss#2463
benfred/implicit#613 (comment)
dmlc/xgboost#7039 (comment)
https://bugs.llvm.org/show_bug.cgi?id=50579

@kyamagu kyamagu added the bug Something isn't working label Apr 21, 2023
@kyamagu
Copy link
Owner Author

kyamagu commented Apr 21, 2023

pytorch/pytorch#44282

@kyamagu
Copy link
Owner Author

kyamagu commented Jan 29, 2024

A dangerous workaround is to set the following environment variable.

export KMP_DUPLICATE_LIB_OK=TRUE

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

No branches or pull requests

1 participant