mirror of
https://github.com/neuml/txtai.git
synced 2026-10-12 02:19:52 +00:00
Update notes on KMP_DUPLICATE_LIB_OK, closes #1009
This commit is contained in:
+2
-2
@@ -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).
|
||||
|
||||
----------
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user