diff --git a/INSTALL.md b/INSTALL.md index 62ab8fa4c9..b8c7e1ee6e 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -167,6 +167,22 @@ The `-j` option enables parallel compilation of multiple units, leading to a faster build, but increasing the chances of running out of memory, in which case it is recommended to set the `-j` option to a fixed value (such as `-j4`). +If making use of optimization options, build the correct target before swigfaiss. + +For AVX2: + +``` shell +$ make -C build -j faiss_avx2 +``` + +For AVX512: + +``` shell +$ make -C build -j faiss_avx512 +``` + +This will ensure the creation of neccesary files when building and installing the python package. + ## Step 3: Building the python bindings (optional) ``` shell @@ -177,6 +193,7 @@ $ (cd build/faiss/python && python setup.py install) The first command builds the python bindings for Faiss, while the second one generates and installs the python package. + ## Step 4: Installing the C++ library and headers (optional) ``` shell