Commit Graph

291 Commits (a93a4b39571db0ab6ad0b4ef42a6b8734ca05135)
 

Author SHA1 Message Date
Eduardo Pinho 27a4ba0d93 [C API] Multi-GPU functions (#628)
* [c_api] minor tweak on Index_c header imports

* [c_api] Multi GPU constructs

- Add constructor & destructor for `FaissGpuMultipleClonerOptions`
- Add function `faiss_index_cpu_to_gpu_multiple`
- Add function `faiss_index_cpu_to_gpu_multiple_with_options`

* [c_api] fix doc comments in GpuClonerOptions

* [c_api] Improve cpu_to_gpu_multiple prototype

* [c_api] Improve cpu_to_gpu_multiple prototype

* [c_api] Add dtor definition for GpuMultipleClonerOptions
2018-12-23 18:46:07 +01:00
Lucas Hosseini ac7005b6ef Remove CMake. (#645) 2018-12-23 18:45:16 +01:00
Jeff Johnson aafc7b0457
Merge pull request #672 from irachex/patch-1
Add missing `\` in gpu Makefile
2018-12-22 19:36:05 -05:00
Huayi Zhang e23a80ebbf
Add missing `\` in gpu Makefile 2018-12-23 05:29:45 +08:00
Matthijs Douze 353b1967c2
Update README.md 2018-12-20 14:52:59 +01:00
Matthijs Douze 6a6bf40b2c
Create README.md 2018-12-20 14:45:46 +01:00
matthijs daf589d9d2 add bench_all_ivf 2018-12-20 05:43:36 -08:00
Lucas Hosseini 4bcb5b3fe0
Update README.md 2018-12-19 18:08:20 +01:00
Lucas Hosseini 323dbf3be3
Facebook sync (Dec 2018). (#660)
* Add GpuIndexBinaryFlat
* Add IndexBinaryHNSW
2018-12-19 17:48:35 +01:00
cyy 21475fb2f3 Use explicit numeric limits + add missing header (#644) 2018-11-23 14:29:58 +01:00
Ailing 7061699721 update INSTALL.md, added CUDA9.2, remove CUDA9.1 support (#583) 2018-11-23 14:23:17 +01:00
Alex Shen f56ea1c4de PYTHON executable location is missing in example makefile.inc (#626) 2018-11-23 14:18:33 +01:00
Matthijs Douze 87721af129
Update README.md 2018-10-03 14:09:51 +02:00
Tom Forbes a91a24e77a Fix #558 - Make `M` an integer (#589)
* Fix #558 - Make `d` an integer

* Use int()
2018-09-18 22:08:31 +02:00
Matthijs Douze e57270600a
Update README.md 2018-08-31 11:33:41 +02:00
Matthijs Douze cdc5a8b7b8
Update README.md 2018-08-30 21:15:45 +02:00
Matthijs Douze 6cd4cfde56
Update README.md 2018-08-30 21:15:14 +02:00
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) 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