Update notes on KMP_DUPLICATE_LIB_OK, closes #1009

This commit is contained in:
davidmezzetti
2026-01-15 16:18:10 -05:00
parent ceb7a4a8f8
commit 846cf2ddc7
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -106,11 +106,11 @@ __Solution__
Set the following environment parameters.
- Disable OpenMP multithreading via `export OMP_NUM_THREADS=1`
- Workaround `OMP: Error #15` errors via `export KMP_DUPLICATE_LIB_OK=TRUE`
- Disable PyTorch MPS device via `export PYTORCH_MPS_DISABLE=1`
- Disable llama.cpp metal via `export LLAMA_NO_METAL=1`
- Workaround `OMP: Error #15` errors via `export KMP_DUPLICATE_LIB_OK=TRUE`
For more details, refer to [this issue on GitHub](https://github.com/kyamagu/faiss-wheels/issues/100).
For more details, refer to [this issue on GitHub](https://github.com/kyamagu/faiss-wheels/issues/73).
----------
+1 -1
View File
@@ -10,7 +10,7 @@ import numpy as np
# pylint: disable=C0413
if platform.system() == "Darwin" or os.name == "nt":
# Workaround for a Faiss issue with OMP: Error #15
# Workaround for a Faiss issue with OMP: Error #15. See txtai FAQ for more.
os.environ["KMP_DUPLICATE_LIB_OK"] = "TRUE"
from faiss import omp_set_num_threads