Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: libmkl_intel_lp64.so.1 #2890

Closed
adammz1 opened this issue Jun 1, 2023 · 2 comments
Closed

ImportError: libmkl_intel_lp64.so.1 #2890

adammz1 opened this issue Jun 1, 2023 · 2 comments
Labels

Comments

@adammz1
Copy link

adammz1 commented Jun 1, 2023

Faiss version: 1.7.4

Installed from: anaconda

Running on:

  • GPU

Interface:

  • Python

I followed the installation instructions in faiss/INSTALL.md:

conda create --name faiss_1.7.4 python=3.10
conda activate faiss_1.7.4
conda install faiss-gpu pytorch pytorch-cuda -c pytorch -c nvidia

Then I ran a python3.10 script containing "import faiss" and received error:

"from . import _swigfaiss
ImportError: libmkl_intel_lp64.so.1: cannot open shared object file: No such file or directory"

@adammz1 adammz1 closed this as completed Jun 1, 2023
@adammz1
Copy link
Author

adammz1 commented Jun 1, 2023

I built from source instead-
Faiss 1.7.4 did not work- extremely long delay when moving to device. I downgraded to Faiss 1.7.3 and it worked. System info:
OS: Ubuntu 22.04, CUDA 11.7.0, Python 3.10, NVDIA RTX 3080

@algoriddle
Copy link
Contributor

This is a bug in Faiss 1.7.4, that the conda package doesn't specify the dependencies correctly. The fix is to install mkl separately, conda install mkl=2021. This is already fixed in the nightly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants