Faiss: Illegal instruction (core dumped) - in new version of FAISS

Created on 6 Jul 2019  路  7Comments  路  Source: facebookresearch/faiss

Summary

I was following Install via Conda section of current install.md file. I already had FAISS installed in my system installed the same way. So I decided to update it. When I run conda install faiss-cpu -c pytorch as mentioned in documentation, I get this conformation:

The following packages will be UPDATED:

  ca-certificates                               2019.1.23-0 --> 2019.5.15-0
  certifi                                   2019.3.9-py37_0 --> 2019.6.16-py37_0
  conda                                       4.6.14-py37_0 --> 4.7.5-py37_0
  faiss-cpu                            1.5.1-py37h6bb024c_1 --> 1.5.3-py37h6bb024c_0
  openssl                                 1.1.1b-h7b6447c_1 --> 1.1.1c-h7b6447c_1

And when installation is complete and I try to import faiss in python,

import faiss

I get an immdiate crash saying Illegal instruction (core dumped)

OS: Ubuntu 18.04.1 LTS

Faiss version: 1.5.3-py37h6bb024c_0

Faiss compilation options: NA

Running on:

  • [*] CPU
  • [ ] GPU

Interface:

  • [ ] C++
  • [*] Python

Reproduction instructions

Install latest CPU version of faiss for conda

# CPU version only
conda install faiss-cpu -c pytorch

then import faiss in code

enhancement install

Most helpful comment

The latest version is compiled with avx2 instructions, which your CPU probably does not support. I'll look into making a non-optimized package available.

All 7 comments

If anyone else is struggling and wanna go back to previous working version, use: conda install faiss-cpu=1.5.1 -c pytorch -y

The latest version is compiled with avx2 instructions, which your CPU probably does not support. I'll look into making a non-optimized package available.

My processor is Intel Pentium G4400 Skylake Dual-Core 3.3GHz Desktop Processor.

Same issue here.
BTW: 1.5.2 works fine.

no activity, closing.

Sorry ! I have a same trouble but when i install version 1.5.1 or 1.5.2, they not found on pip, i try install via git-tag not success. Setup.py not found.
How can i fix it ???

@khs123 by anaconda or compiling source yourself.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

linghuang picture linghuang  路  3Comments

zoe-cheung picture zoe-cheung  路  3Comments

xxllp picture xxllp  路  3Comments

hipitt picture hipitt  路  3Comments

mylyu picture mylyu  路  3Comments