Open Randl opened 1 year ago
I changed the conda package to require mkl =2023 going forward both at build and runtime. Previously it was built with 2021, but defined mkl >= 2021 as its runtime requirement. I'm crossing fingers this fixes the problem. You can try this with the nightly build conda install faiss-gpu -c pytorch/label/nightly
.
with faiss-gpu
version pytorch/label/nightly/linux-64::faiss-gpu-1.7.4-py3.10_hc0239a3_12_cuda11.4_nightly
I get the same error
I had the same issue with faiss-cpu=1.7.4
. I was able to import faiss
after symlinking the three libraries.
libmkl_core.so.1
libmkl_gnu_thread.so.1
libmkl_intel_lp64.so.1
Summary
faiss searches for the following libraries
but in fact the ones installed by conda have names ending in
.2
. It leads to crashes with errors likesymlinking them like
for all three fixes the problem
Platform
OS: Ubuntu 20.04.5 LTS
Faiss version: faiss-gpu 1.7.4 (py3.10_hc0239a3_0_cuda11.4, pytorch)
Installed from: pytorch channel of conda
Faiss compilation options:
Running on:
Interface:
Reproduction instructions
Run
conda env create -n tmp -f conda-req.txt
with the followingconda-req.txt
:In python, try, for example,
from faiss import _swigfaiss_gpu
.