224 Commits

Author SHA1 Message Date
Lucas Hosseini
76bec0b500
Facebook sync (#573)
Features:

- automatic tracking of C++ references in Python
- non-intel platforms supported -- some functions optimized for ARM
- override nprobe for concurrent searches
- support for floating-point quantizers in binary indexes
Bug fixes:

- no more segfaults in python (I know it's the same as the first feature but it's important!)
- fix GpuIndexIVFFlat issues for float32 with 64 / 128 dims
- fix sharding of flat indexes on GPU with index_cpu_to_gpu_multiple
2018-08-30 19:38:50 +02:00
Ailing
19cea3d2f4 update conda install info for release 1.3.0 (#516) 2018-07-24 13:24:25 +02:00
Yohei Kikuta
67c6506bcc Replace os.tempnam with tempfile for python3 (#537)
os.tempnam is eliminated in python3.
Used tempfile.NamedTemporaryFile().name instead.
This is also valid for python2.7.
2018-07-24 10:25:40 +02:00
Lucas Hosseini
2dc30e14cf
Add support for Volta GPUs. (#517) v1.3.0 2018-07-10 19:37:57 +02:00
Lucas Hosseini
a90c36a323
Update INSTALL.md 2018-07-06 20:23:25 +02:00
Lucas Hosseini
3c70207da5
Fix linking of python GPU faiss. (#510) 2018-07-06 17:31:25 +02:00
Lucas Hosseini
5d29b3624c
Use multi-threaded MKL by default (#509)
* Configure script use threaded MKL instead of sequential.

* Do not link against GNU OpenMP when linking against Intel OpenMP.
2018-07-06 17:26:37 +02:00
Lucas Hosseini
6880286ea0
Facebook sync (#504)
* Facebook sync

* Update swig wrappers.

* Fix comment.
2018-07-06 14:12:11 +02:00
Evgeny Savinov
98b23c87f3 Use madvice instead of iteration over data (#503) 2018-07-03 07:30:40 +02:00
Matthijs Douze
e4ef2eff82 make bench work with 1 GPU 2018-06-26 09:05:42 -06:00
Matthijs Douze
15ebfcd4c7
Update ISSUE_TEMPLATE.md 2018-06-25 16:18:50 -07:00
Matthijs Douze
15c990ddb6
Update ISSUE_TEMPLATE.md 2018-06-25 16:11:47 -07:00
Matthijs Douze
223d4e32d8
Update ISSUE_TEMPLATE.md 2018-06-25 16:11:30 -07:00
Eduardo Pinho
dd6c9ebf2d [c_api] Rearrange lib linking in Makefiles (#490) 2018-06-13 13:40:04 +02:00
Lucas Hosseini
f841bbab09 Fix linking order for misc/test_blas in Makefile. (#489) 2018-06-13 11:49:02 +02:00
Lucas Hosseini
1fe2872013 Rename gpu/tests to gpu/test (#481)
thanks.
2018-06-06 14:08:49 +02:00
Lucas Hosseini
21fbc56dfd Python install (#469)
* add a working setup.py

* Rename setup.py to python/setup.py

* Fix paths in setup.py

* Use relative imports for python3 compatibility.

* Add python/install Makefile target.

* Fix test target in Makefile.
2018-06-06 14:06:24 +02:00
Lucas Hosseini
6e40d6689f
Move python tests back together with C++ tests. (#479) 2018-06-04 12:20:44 +02:00
Eduardo Pinho
fd63f06e97 Make c_api compatible with configure'd makefile (#477) 2018-06-04 11:58:23 +02:00
Lucas Hosseini
57e973eae9
Fix GPU tests Makefile. (#473) 2018-06-03 20:43:02 +02:00
Lucas Hosseini
7f996bd9df
Fix failing tests on OSX (#467) 2018-06-02 13:48:11 +02:00
Lucas Hosseini
d1bbee28d7
Add TravisCI config. (#457)
* Add TravisCI config.
2018-06-02 13:15:18 +02:00
Lucas Hosseini
cf18101f6d Refactor makefiles and add configure script (#466)
* Refactors Makefiles and add configure script.

* Give MKL higher priority in configure script.

* Clean up Linux example makefile.inc.

* Cleanup makefile.inc examples.

* Fix python clean Makefile target.

* Regen swig wrappers.

* Remove useless CUDAFLAGS variable.

* Fix python linking flags.

* Separate compile and link phase in python makefile.

* Add macro to look for swig.

* Add CUDA check in configure script.

* Cleanup make depend targets.

* Cleanup CUDA flags.

* Fix linking flags.

* Fix python GPU linking.

* Remove useless flags from python gpu module linking.

* Add check for cuda libs.

* Cleanup GPU targets.

* Clean up test target.

* Add cpu/gpu targets to python makefile.

* Clean up tutorial Makefile.

* Remove stale OS var from example makefiles.

* Clean up cuda example flags.
2018-06-02 08:35:30 +02:00
Lucas Hosseini
dcd83f95b9 Fix race condition in OnDiskInvertedlists. (#464) 2018-05-30 16:25:24 +02:00
Matthijs Douze
28e9f74511
Update ISSUE_TEMPLATE.md 2018-05-29 15:39:32 +02:00
Eduardo Pinho
cece342410 Support for index.assign in Python (#453)
- replace `assign` method with a high-level API
2018-05-28 17:01:30 +02:00
Matthijs Douze
f87349b6e7
remove redundant flag 2018-05-25 10:10:06 +02:00
dengos
abe2b0fd19 read/write index with std::function wrapper (#427)
* add access function to IndexIVF;

* - access for IndexIVF;
- write_index/read_index with std::function<...>;

* - fix test compile on mac;
- adjust write/read with std::function;

* replace std::function with IOReader/IOWriter;

* remove IndexIVF::access // tmp

* PFN_WRITE/READ => WRITE;

* revert mac compile fix;

* rename;

* fix compile;

* reset CMakeList;

* format; remove unused function/header;
2018-05-24 10:45:42 +02:00
Eduardo Pinho
433f5c0fa5 [C API] Fix libgpufaiss_c with extended API (#448)
- change libfaiss_c.a libgpufaiss_c.a targets to only include wrapper
impl
- include libfaiss_c.a on c_api `make all`
- build libgpufaiss_c.so with libfaiss_c.a instead of faiss_c .o file list
2018-05-15 10:26:40 +02:00
mohnishkodnani
30a362a649 - Add install target for the faiss library and headers to the (#443)
CMakeLists.txt, so we can install the libs and headers with make
install.
2018-05-15 10:18:16 +02:00
Matthijs Douze
431545ee2b
delete faiss.h
leftover include file
2018-05-03 13:45:22 +02:00
pigghost
53876970f0 Update IndexIDMap reset (#401) 2018-05-02 13:40:58 +02:00
Eduardo Pinho
9efdd8d427 [C API] Additional API coverage: IndexLSH, I/O, meta-indexes (#425)
* [c_api] leverage index downcast

- make index downcast declaration+definition possible with macros
- use macros on existing index types

* [c_api] Add IndexLSH to C API

* [c_api] Add Index IO interface

- new header index_io_c.h for access to the index_io.h API
- function`faiss_write_index` and overloads for dumping index to a file
- function`faiss_read_index` and overloads for reading index from a file
- function`faiss_clone_index` for cloning an index
- update C example to save index to a file

* [c_api] Add IndexIDMap and IndexShards API
2018-05-02 13:39:59 +02:00
Matthijs Douze
ca582907ae
Update README.md 2018-04-27 12:13:38 +02:00
Matthijs Douze
b95027adb4
Update README.md 2018-04-27 11:48:13 +02:00
matthijs
a8199f068c added link&code reference code 2018-04-27 02:43:14 -07:00
Lizz
ed809ce183 Implement remove_ids in IndexPQ (#407)
* Implement remove_ids in IndexPQ

* Update IndexPQ.cpp
2018-04-20 17:36:21 +02:00
Lucas Hosseini
1ae7494491 Add (un)install Makefile targets for CPU version. (#344)
* Remove useless LIBNAME macro in Makefile.

* Add installdirs, install, and uninstall Makefile targets.

* Fix merge.
2018-04-05 11:45:33 +02:00
Ailing
111546927f Update faiss.py (#387)
update faiss.py to enforce less strict check of error message
2018-04-05 10:13:35 +02:00
Ailing
17cc899b85 update conda install info (#395)
thanks. Also addresses #392
2018-04-05 10:12:32 +02:00
Matthijs Douze
3b56a79f45 fix mmap error in OSX 2018-04-04 15:18:42 +02:00
Lizz
3bdc5abeaf Fix compile error in cpp tutorial (#380)
Not tested but looks legitimate + better than previous state in any case ;-)
2018-03-28 09:15:18 -04:00
Ailing
8428f91548 update Readme to include conda install info (#363)
* :update Readme to include conda install info

* move to INSTALL.md
2018-03-13 18:10:44 +01:00
Matthijs Douze
0b1f5004ec removed malloc 2018-03-05 06:57:44 +01:00
matthijs
4d440b6698 fix Makefile flags v1.2.1 2018-02-28 01:03:20 -08:00
Nathan Douglas
a280791c83 updating dockerfile after PR #347. Added PYTHONPATH env var (#349) 2018-02-27 10:39:23 +01:00
Matthijs Douze
4328b93360
Update README.md 2018-02-26 11:55:54 +01:00
Matthijs Douze
75d27a7b73
Update README.md 2018-02-26 11:55:07 +01:00
Matthijs Douze
4d8e3a2b8c
Update README.md 2018-02-26 11:54:36 +01:00
Eduardo Pinho
de0541c365 Add C API (#317)
* Add C API

* Add installation instructions for the C API
2018-02-26 11:23:17 +01:00