156 Commits

Author SHA1 Message Date
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
Ailing
cd884114d0 Make tests compatible with py3 (#348) 2018-02-24 00:38:45 +01:00
Matthijs Douze
0c482e54eb sync with FB version 2018-02-23 (#347)
- support on-disk IVF
v20180223
2018-02-23 07:49:45 -08:00
Lucas Hosseini
db855a2146
Add Makefile for tests. (#345) 2018-02-23 16:08:40 +01:00
Lucas Hosseini
16aed09c0f
Make tutorial examples use dynamic linkage. (#343)
* Add shared lib target for GPU version.

* Dynamically link tutorial examples.

* Add shared lib to clean target in GPU Makefile.

* Add clean target to tutorial examples Makefile.

* Minor modifications to tutorial GPU examples.
2018-02-21 15:36:29 +01:00
Lucas Hosseini
97eba20218
Update README.md
Update Getting started tutorial link.
2018-02-21 14:06:46 +01:00
Lucas Hosseini
2c9aea24e7
[WIP] Update tutorial examples (#342)
* Remove transitional print import.

* Add example for multiple GPUs in python.

* Add example on GPU in C++.

* Add example on multiple GPUs in C++.

* Add IVFFlat example on GPU in python.

* Add Makefile for C++ tutorial examples.

* Add IVF index on GPU example in C++.
2018-02-20 15:53:56 +01:00
Lucas Hosseini
d970473dd8
Merge pull request #341 from beauby/issue-template
Add template for issues.
2018-02-16 13:47:02 +01:00
Lucas Hosseini
5d94d1f4c8 Add template for issues. 2018-02-16 11:57:20 +01:00
Matthijs Douze
56383610bc
Update INSTALL.md 2018-02-14 10:05:08 +01:00
Vincent Smith
2b7d2a1090 updates to INSTALL.md (#333) 2018-02-08 07:35:21 +01:00
Matthijs Douze
df2edbe3ab fix issue 320 2018-01-31 07:00:24 -07:00
alexandresablayrolles
4fe9204683 Update INSTALL.md (#319) 2018-01-26 10:35:49 +01:00
Tom Dyson
7cc879c70c fixes typo in installation docs (#310) 2018-01-22 16:31:26 +01:00
Israel Zalmanov
f1e4110684 use brew to install OpenBLAS rather than port (#316) 2018-01-18 07:18:03 +01:00
Kaiyu Shi
270e501a1f Add missing cd command for cmake bulid (#305)
ok
2018-01-11 09:21:48 +01:00
Matthijs Douze
762ab7333b
Update README.md 2018-01-09 15:49:58 +01:00
matthijs
187222cfe2 Merge branch 'master' of https://github.com/facebookresearch/faiss 2018-01-09 06:47:19 -08:00
matthijs
4248309914 sync with FB version 2018-01-09
- adding HNSW indexing method

- simultaneous search and reconstruction for IndexIVFPQ
2018-01-09 06:47:03 -08:00