Open kyamagu opened 1 year ago
Describe the bug faiss may crash when there is another imported package that depends on libomp.
libomp
To Reproduce Import a package that depends on OpenMP on macOS, then import faiss-cpu package. Use faiss as usual.
faiss-cpu
Expected behavior Should not segfault.
Desktop (please complete the following information):
Additional context https://github.com/facebookresearch/faiss/issues/2463 https://github.com/benfred/implicit/issues/613#issuecomment-1242566564 https://github.com/dmlc/xgboost/issues/7039#issuecomment-860932242 https://bugs.llvm.org/show_bug.cgi?id=50579
https://github.com/pytorch/pytorch/issues/44282
A dangerous workaround is to set the following environment variable.
export KMP_DUPLICATE_LIB_OK=TRUE
https://pypackaging-native.github.io/key-issues/native-dependencies/blas_openmp/
Describe the bug faiss may crash when there is another imported package that depends on
libomp
.To Reproduce Import a package that depends on OpenMP on macOS, then import
faiss-cpu
package. Use faiss as usual.Expected behavior Should not segfault.
Desktop (please complete the following information):
Additional context https://github.com/facebookresearch/faiss/issues/2463 https://github.com/benfred/implicit/issues/613#issuecomment-1242566564 https://github.com/dmlc/xgboost/issues/7039#issuecomment-860932242 https://bugs.llvm.org/show_bug.cgi?id=50579