macOS 10.14
Faiss version: 87721af1294c0dc2008d0537d9082198a477ac3a
Faiss compilation options: --with-python-config=python3.6-config --disable-openmp
Running on:
Interface:
./configure --with-python-config=python3.6-config --disable-openmp
make -j7
./IndexHNSW.h:14:10: fatal error: 'omp.h' file not found
#include <omp.h>
yep you still need a dummy openmp lib. You can provide it in a few functions:
omp_get_num_threads -> should return 1
omp_get_max_threads -> 1
omp_get_thread_num -> 0
then I think it should work
no activity, closing.
Worth to mention openmp as a prerequisite. For MacOS the simplest way to fix it: brew install libomp
More on this: https://iscinumpy.gitlab.io/post/omp-on-high-sierra/
Most helpful comment
Worth to mention
openmpas a prerequisite. For MacOS the simplest way to fix it:brew install libompMore on this: https://iscinumpy.gitlab.io/post/omp-on-high-sierra/