-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Support for mac m1? #74
Comments
I use + after run
|
I didn't build from the source like in INSTALL.MD, because the repo says mac m1 is not supported, so I followed the instructions at here which compiles faiss with brew. So I didn't run any |
You can build from source on an M1 mac. Give: git clone https://github.com/Enet4/faiss.git
cd faiss
cmake -B build -DFAISS_ENABLE_GPU=OFF -DFAISS_ENABLE_C_API=ON -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DFAISS_ENABLE_PYTHON=OFF
cmake --build build
make -C build -j8 faiss_c A try. cp /path/to/faiss/build/c_api/libfaiss_c.dylib /usr/local/bin |
@DevinLeamy The above doesn't work on M1 (at least, not on the stock faiss package) due to facebookresearch/faiss#2111 . According to that you need to install llvm from brew and then pass several additional arguments to the faiss build to make use of it. |
|
It is pretty much outside this crate's intention to run any tests. If you are saying that they are being run by CMake despite the |
@Enet4 Sorry for the fuss. I was trying to build faiss from source and I came to a wrong place. |
I successfully installed faiss via brew with command:
brew reinstall faiss --build-from-source
it runs
cmake -B build . -DFAISS_ENABLE_GPU=OFF -DFAISS_ENABLE_PYTHON=OFF -DFAISS_ENABLE_C_API=ON -DBUILD_SHARED_LIBS=ON
.I could add to my project
faiss = "0.12.1"
, but when I try to run it it saysnote: ld: library not found for -lfaiss_c
The text was updated successfully, but these errors were encountered: