Skip to content

luojinlongjjj/android-faiss

Repository files navigation

android-faiss

facebook faiss for android

ndk: android-ndk-r19c

lapack: version 3.4.2

1.移除了未使用到的文件

faiss: version 1.5.3

  1. 移除了未使用的文件夹

  2. 重定义 FINTEGER

  3. 在FaissAssert.h 添加 android log.h 方便调试

  4. 64-bit(arm64-v8a x86-64) 是可以正常使用的 只要你的设备内存足够大

  5. 关于32位库警告:

faiss主要还是基于64位设计,32位并不能正常运行;

更改了部分源码使它能在32位(armeabi-v7a x86)上运行 但并不保证运行一定稳定。

相关更改可以比对faiss文件夹和faiss-32文件夹的不同

相关更改:

    a.  replace size_t with int64_t 
    
    b.  replace long  with int64_t
    
    c.  replace "1L << 40" with "1LL << 40" ("1L << 40" will overflow in 32-bit because of long is 32 bits);
    
        the same as "1L << 60";
  1. x86 x86_64 尚未经过测试

相关源码参考:

https://github.com/facebookresearch/faiss

https://github.com/weilaudm/nxgbcc-android-faiss

About

facebook faiss for android

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages