Closed nkg114mc closed 3 months ago
I just realized that there is one line in the INSTALL.md Step 2 section:
" 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). "
After changing the make command to make -C build -j4 faiss
, there is no crash anymore.
Summary
I keep getting "Error 137" when trying to run make. Looks like it was caused by the process consumed too many resource (memory, etc.)? Is this an unique issue on my side, or a known issue that has been observed before?
I have no problem on building the faiss CPU version.
Platform
OS: Ubuntu 20.04.2 LTS
Faiss version: V1.8.0
Installed from: pip install faiss-gpu
Faiss compilation options:
-DFAISS_ENABLE_GPU=ON -DCUDAToolkit_ROOT="/usr/local/cuda" -DBLAS_ROOT="~/blas" -DMKL_LIBRARIES="~/mlk-libs" -DCMAKE_CUDA_ARCHITECTURES="60;60"
CUDA version: Cuda11.2
Running on:
Interface:
Reproduction instructions
make -C build -j faiss
The make will stuck at 65% and start crashing with "Error 137":