You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@lg8080 Based on benfred/implicit#613 (comment), it seems that it should work correctly what faiss built with libomp.dylib from source, instead of faiss-cpu on PyPI which linked to libomp.a .
(Or, implicit built with libomp.a should also work together with faiss-cpu on PyPI.)
Would you try building faiss (or implicit) from source?
NOTE: faiss-{c,g}pu on PyPI are NOT official packages (that are maintained on kyamagu/faiss-wheels, NOT by faiss maintainers), and this problem is specific to faiss-wheels . So, this issue is difficult to deal with for faiss maintainers.
Summary
Importing faiss has some undocumented side effects that are indirectly causing a crash on Mac.
Platform
OS: macOS 11.6.4
Faiss version: 1.7.2
Installed from: pip
Running on:
Interface:
Reproduction instructions
This snippet results in a segmentation fault on the last line on Mac:
The code runs fine if I remove the first line.
System: macOS 11.6.4, 2.3 GHz Quad-Core Intel Core i7, CPython 3.10.2 (but the crash also happens on 3.8.12). Faiss installed from
faiss_cpu-1.7.2-cp310-cp310-macosx_10_9_x86_64.whl
withpip install faiss-cpu
.List of packages installed:
Questions
import faiss
?faiss-cpu
that doesn't have these side effects?The text was updated successfully, but these errors were encountered: