File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -99,12 +99,12 @@ cd k-NN
99
99
cd jni
100
100
101
101
// File changes required
102
- sed -i -e ' s/\/usr\/local\/opt\/libomp\//\/opt\/homebrew\/opt\/llvm\//g' CMakeLists.txt
103
- sed -i -e ' s/-march=native/-mcpu=apple-m1 /g' external/nmslib/similarity_search/CMakeLists.txt
102
+ sed -i -e ' s/\/usr\/local\/opt\/libomp\//\/opt\/homebrew\/opt\/llvm\//g' cmake/init-faiss.cmake
103
+ sed -i -e ' s/__aarch64__/__undefine_aarch64__ /g' external/faiss/faiss/utils/distances_simd.cpp
104
104
sed -i -e ' s/pragma message WARN/pragma message /g' external/nmslib/similarity_search/src/distcomp_scalar.cc
105
- // Change to apple-m1, apple-m2 and apple-m3 according to your mac chipset
105
+ // Change -mcpu value to use chip version according to your M series, for example, -mcpu=apple-m1
106
+ sed -i -e ' s/-march=native/-mcpu=apple-m1/g' external/nmslib/similarity_search/CMakeLists.txt
106
107
sed -i -e ' s/-mcpu=apple-a14/-mcpu=apple-m1/g' external/nmslib/python_bindings/setup.py
107
- sed -i -e ' s/__aarch64__/__undefine_aarch64__/g' external/faiss/faiss/utils/distances_simd.cpp
108
108
109
109
// Install llvm
110
110
brew install llvm
@@ -214,7 +214,7 @@ cmake .
214
214
make
215
215
216
216
# To just build the libraries
217
- make opensearchknn_nmslib opensearchknn_nmslib
217
+ make opensearchknn_faiss opensearchknn_nmslib
218
218
```
219
219
220
220
The libraries will be placed in the ` jni/release ` directory.
You can’t perform that action at this time.
0 commit comments