Skip to content

Commit

Permalink
Added windows support
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah Czaplewski authored and Noah Czaplewski committed Dec 10, 2024
1 parent bdb77b1 commit 1a712b1
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 0 deletions.
Binary file added FaissMask/runtimes/win-x64/native/faiss.dll
Binary file not shown.
Binary file added FaissMask/runtimes/win-x64/native/faiss_c.dll
Binary file not shown.
Binary file added FaissMask/runtimes/win-x64/native/libiomp5md.dll
Binary file not shown.
Binary file added FaissMask/runtimes/win-x64/native/mkl_core.2.dll
Binary file not shown.
Binary file added FaissMask/runtimes/win-x64/native/mkl_def.2.dll
Binary file not shown.
Binary file not shown.
12 changes: 12 additions & 0 deletions build-faiss-windows.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
# Execute in git bash
# Please make sure you installed intel mkl (https://www.intel.com/content/www/us/en/developer/tools/oneapi/onemkl-download.html?operatingsystem=windows&windows-install=offline)
# and cmake (https://cmake.org/download/)
BRANCH=main
GITHUB_ACCOUNT=facebookresearch
MKL_ROOT="C:\Program Files (x86)\Intel\oneAPI\mkl\latest"

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=$MKL_ROOT/lib/mkl_intel_lp64_dll.lib;$MKL_ROOT/lib/mkl_intel_thread_dll.lib;$MKL_ROOT/lib/mkl_core_dll.lib" -B build -S .
cmake --build build --config Release --target faiss faiss_c

0 comments on commit 1a712b1

Please sign in to comment.