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
Summary:
Hey there 👋
currently I am working on a project using faiss using [FaissMask](https://github.com/andyalm/faissmask) (.NET Bindings).
As I am developing on a windows arm64 machine I needed a way to compile faiss for windows arm.
I ran the tests in FaissMask and my little hack seemed valid.
Here is a little script to compile it yourself:
```bash
#!/bin/bash
# Execute in git bash
# and cmake (https://cmake.org/download/)
BRANCH="feat/windows-arm64-support"
GITHUB_ACCOUNT=Binozo
git clone --depth=1 --recursive --branch $BRANCH https://github.com/$GITHUB_ACCOUNT/faiss.git
cd faiss
cmake -Wno-dev -DFAISS_ENABLE_GPU=OFF -DFAISS_ENABLE_PYTHON=OFF -DFAISS_ENABLE_C_API=ON -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=ON -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON -DBLA_VENDOR=Intel10_64_dyn "-DMKL_LIBRARIES=C:\Users\<USER>\CLionProjects\OpenBLAS\cmake-build-release\lib\Release\openblas.lib" -B build -S .
cmake --build build --config Release --target faiss faiss_c
```
(Make sure you compiled `OpenBLAS` for windows arm64 before and adjust `C:\Users\<USER>\CLionProjects\OpenBLAS\cmake-build-release\lib\Release\openblas.lib` if needed)
Pull Request resolved: #4087
Reviewed By: asadoughi
Differential Revision: D67297875
Pulled By: junjieqi
fbshipit-source-id: c00f70e5f7fedd5f9fb86fee9258e5ef53b59ce7
0 commit comments