-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Compile in aarch64/arm64 #567
Comments
The Faiss code will need some adaptation to run on a non-x64 platform, see #529. |
Here is a patch that makes it possible to compile on non x64 machines: https://gist.github.com/mdouze/a384a01d0e205bee6d39d52170fb3588 |
I have enabled for PowerPC by disabling Intel specific instructions. HNSW is not enabled. It should work for ARM too. (as PowerPC specific are guarded). Let me know if you see an issue. |
Updated the patch |
@mdouze How about the function of arm64 if compared with x86 ? Are they the same, or not ? Which part of source code has been modified if they not ? Thanks a lot ! |
In this patch, all the occurrences of SSE intrinsics are replaced with normal C code. |
How to compile this project on arm64 ? : ] @mdouze |
Please adjust the |
Compilation for arm is supported in 1.4.0 |
I met the same issue in 1.4.0. on tx2 g++ -std=c++11 -DFINTEGER=int -fPIC -fopenmp -m64 -Wno-sign-compare -g -O3 -Wall -Wextra -msse4 -mpopcnt -c IndexFlat.cpp -o IndexFlat.o |
Please remove those 3 flags from |
Does faiss support aarch64/arm64 ?
c++: error: unrecognized command line option '-m64'
c++: error: unrecognized command line option '-msse4'
c++: error: unrecognized command line option '-mpopcnt'
Platform
OS:
Faiss version:
Faiss compilation options:
Running on:
Interface:
The text was updated successfully, but these errors were encountered: