376 Commits

Author SHA1 Message Date
Lucas Hosseini
c689bd010c Update conda packaging. (#1363)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1363

Test Plan: Imported from OSS

Reviewed By: mdouze

Differential Revision: D23314731

Pulled By: beauby

fbshipit-source-id: b57a66cf5c44788837ee379fbb7f73adbdbf1274
2020-08-25 16:58:24 -07:00
Matthijs Douze
24d00ccc5b Change throw error to warning
Summary:
Precomputing code does not make sense for IP search (it is useful only for L2). Previously, this throwed an exception. This diff just prints a warning.
Another error showed up that I am not sure how to fix:
https://www.internalfb.com/intern/testinfra/testconsole/testrun/1407375052636748/

Reviewed By: wickedfoo

Differential Revision: D23314697

fbshipit-source-id: e11b2ded43f9579d637963a142499693f5c15b71
2020-08-25 13:23:26 -07:00
Lucas Hosseini
2434e91ef7 Fix leaking fd in test_io. (#1362)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1362

Test Plan: Imported from OSS

Reviewed By: mdouze

Differential Revision: D23311998

Pulled By: beauby

fbshipit-source-id: 9de47f9650eee2a07d302ac1753d60d0d00c2f0f
2020-08-24 23:53:27 -07:00
Lucas Hosseini
00dfdd3085 Fix format specifier in python_callbacks. (#1361)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1361

Test Plan: Imported from OSS

Reviewed By: mdouze

Differential Revision: D23312001

Pulled By: beauby

fbshipit-source-id: 006536827463e14eb5747cb464e41163c0cf6490
2020-08-24 23:53:27 -07:00
Lucas Hosseini
ef28350b4b Move definition of inner_product_to_L2sqr() to distances.cpp. (#1359)
Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1359

The declaration is in distances.h, which utils.cpp does not include,
confusing the linker on Windows.

Test Plan: Imported from OSS

Reviewed By: mdouze

Differential Revision: D23311999

Pulled By: beauby

fbshipit-source-id: 6ebf26248a4376abc9dd90996e5dc43fa343e0b4
2020-08-24 23:53:27 -07:00
Lucas Hosseini
b23b2f66df Fix VectorDistance initialization. (#1358)
Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1358

The MSVC compiler gets confused by aggregate initialization with parentheses.

Test Plan: Imported from OSS

Reviewed By: mdouze

Differential Revision: D23312003

Pulled By: beauby

fbshipit-source-id: 9ceb10ac84fd4aee19bf6352298b24def95f1493
2020-08-24 23:53:27 -07:00
Lucas Hosseini
1cc5c6d095 Remove extraneous unix header include. (#1356)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1356

Test Plan: Imported from OSS

Reviewed By: mdouze

Differential Revision: D23312000

Pulled By: beauby

fbshipit-source-id: b54250df7f5a8b69f707546649024d82adefd745
2020-08-24 23:53:27 -07:00
Lucas Hosseini
39d7a33840 Make OOMException test Linux-only. (#1354)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1354

Test Plan: Imported from OSS

Reviewed By: mdouze

Differential Revision: D23292455

Pulled By: beauby

fbshipit-source-id: 50b096fd869724ef8e87f697887e8617522324e3
2020-08-24 06:46:52 -07:00
Lucas Hosseini
24c4460dd2 Avoid leaking file descriptors in python tests. (#1353)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1353

Test Plan: Imported from OSS

Reviewed By: mdouze

Differential Revision: D23292456

Pulled By: beauby

fbshipit-source-id: 44458eb16d037883ff39827accf5edddb1b1bb89
2020-08-24 06:46:52 -07:00
Lucas Hosseini
e0423f7fcd Fix long used as uint64_t in lattice_Zn. (#1352)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1352

Test Plan: Imported from OSS

Reviewed By: mdouze

Differential Revision: D23292457

Pulled By: beauby

fbshipit-source-id: 58720b750ec6c06068be5fb0844aa581725efc4a
2020-08-24 06:46:52 -07:00
Lucas Hosseini
10bddff11c Fix unclosed thread pool. (#1351)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1351

Test Plan: Imported from OSS

Reviewed By: mdouze

Differential Revision: D23292458

Pulled By: beauby

fbshipit-source-id: 5f134178d2991d90bb5bbd50414af6febafb141d
2020-08-24 06:46:52 -07:00
Lucas Hosseini
c37e71456b Get rid of non-portable drand48. (#1349)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1349

Reviewed By: mdouze

Differential Revision: D23289393

Pulled By: beauby

fbshipit-source-id: a626bbf252ced4ae01abbc3dce4be50d9e628728
2020-08-24 00:42:21 -07:00
Lucas Hosseini
1d4b1571e9 Update INSTALL.md (#1346)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1346

Reviewed By: mdouze

Differential Revision: D23246125

Pulled By: beauby

fbshipit-source-id: 3bc3da50e26226e6010af8a6f7db23111d922a50
2020-08-22 22:32:18 -07:00
Lucas Hosseini
9a7f2b9bd0 Avoid OpenMP 4.0 custom reduction. (#1344)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1344

Test Plan: Imported from OSS

Reviewed By: mdouze

Differential Revision: D23234970

Pulled By: beauby

fbshipit-source-id: 38aad08c0c856be425cea163bef7d29715a4cd39
2020-08-20 10:45:28 -07:00
Lucas Hosseini
b35dec740d Fix unsigned OpenMP loop indices (disallowed in OpenMP 2). (#1343)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1343

Test Plan: Imported from OSS

Reviewed By: mdouze

Differential Revision: D23234967

Pulled By: beauby

fbshipit-source-id: e4f1541c4460052a9cbccc3a9365206bfa330694
2020-08-20 10:45:28 -07:00
Lucas Hosseini
91ab745da8 Fix long literals used as 64 bit. (#1342)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1342

Test Plan: Imported from OSS

Reviewed By: mdouze

Differential Revision: D23234963

Pulled By: beauby

fbshipit-source-id: 1c28f9c88777b31c1e2f432966c51f2986746965
2020-08-20 10:45:28 -07:00
Lucas Hosseini
7cc320e438 Replace finite() with std::isfinite(). (#1341)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1341

Test Plan: Imported from OSS

Reviewed By: mdouze

Differential Revision: D23234968

Pulled By: beauby

fbshipit-source-id: f7ba7bd473e05f2ba4d0ca555bc78965f5aa3fd1
2020-08-20 10:45:27 -07:00
Lucas Hosseini
7b615ed5d9 Replace bzero (deprecated in POSIX 2001) with memset. (#1340)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1340

Test Plan: Imported from OSS

Reviewed By: mdouze

Differential Revision: D23234969

Pulled By: beauby

fbshipit-source-id: 0e016c3502cd2e97eae2c2a010525e08f32ec5e2
2020-08-20 10:45:27 -07:00
Lucas Hosseini
7c1c7f81d2 Fix division by zero. (#1339)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1339

Test Plan: Imported from OSS

Reviewed By: mdouze

Differential Revision: D23234966

Pulled By: beauby

fbshipit-source-id: 43142bbf2e30ce69dd15dfc1818d3e3079c7ec48
2020-08-20 10:45:27 -07:00
Lucas Hosseini
a97ebeeabd Fix format specifiers for size_t/idx_t. (#1338)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1338

Test Plan: Imported from OSS

Reviewed By: mdouze

Differential Revision: D23234964

Pulled By: beauby

fbshipit-source-id: 2222d90d8ca3f9a6ac3a9e624e7ec87072da3a25
2020-08-20 10:45:27 -07:00
Lucas Hosseini
8438062b88 Add missing algorithm header. (#1337)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1337

Test Plan: Imported from OSS

Reviewed By: mdouze

Differential Revision: D23234965

Pulled By: beauby

fbshipit-source-id: 1b4af90fdda37d4554f9f8774ac4559f481197a0
2020-08-20 10:45:27 -07:00
Lucas Hosseini
f3727a62f5 Remove python shebangs in tests.
Reviewed By: mdouze

Differential Revision: D23167048

fbshipit-source-id: 98196f489461bc922e6124e88e0bfb32dfe507ca
2020-08-17 11:46:26 -07:00
Lucas Hosseini
b539a73e58 Linter auto-fix.
Summary: `arc lint faiss/**/*`

Reviewed By: LowikC

Differential Revision: D22891305

fbshipit-source-id: 45bab7294ccccf70898b4967b03683894b6ae4c4
2020-08-16 19:52:27 -07:00
psj8252
e1985c3005 Remove wrong assertion (#1327)
Summary:
https://github.com/facebookresearch/faiss/issues/1316
Maybe when updating metrics inner product for hnsw, this should be removed.
removed wrong throw line.

Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1327

Reviewed By: beauby

Differential Revision: D23105148

Pulled By: mdouze

fbshipit-source-id: 1dabcafd1fc9d766722b82b002d398954bd59397
2020-08-15 16:09:24 -07:00
Lucas Hosseini
b7b261cad1 Move from TravisCI to CircleCI (#1315)
Summary:
Depends on https://github.com/facebookresearch/faiss/issues/1313.

Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1315

Reviewed By: mdouze

Differential Revision: D23148557

Pulled By: beauby

fbshipit-source-id: 0a35f17d22aa04db6bd1c16cfc5ff8eee28f1f74
2020-08-15 04:00:51 -07:00
Lucas Hosseini
a8e4c5e2d5 Move build to CMake (#1313)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1313

Reviewed By: mdouze

Differential Revision: D22948267

Pulled By: beauby

fbshipit-source-id: ec16fa0342f37672d46fb7886ecc55c7996011c4
2020-08-14 15:03:10 -07:00
Matthijs Douze
4c3b5ad156 Add missing downcast (#1330)
Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1330

add missing downcast for Index (and test for github sync)

See github issue https://github.com/facebookresearch/faiss/issues/1278

Reviewed By: beauby

Differential Revision: D23053182

fbshipit-source-id: 1ce4c248342332ce632ecfd5074affa3ddf55b66
2020-08-13 16:37:58 -07:00
Lucas Hosseini
569c855ed0 Fix guard clauses for SSE3. (#1325)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1325

Reviewed By: mdouze

Differential Revision: D23104964

Pulled By: beauby

fbshipit-source-id: 04705f1695e65682748b6308fd5d3e217a4af75a
2020-08-13 10:10:19 -07:00
kfoldcrossvalidator
13a2d4ef8f Update INSTALL.md (#1222)
Summary:
Added a quotation mark here, so copy and pasting works.

Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1222

Reviewed By: patricklabatut

Differential Revision: D23002083

Pulled By: beauby

fbshipit-source-id: e92b07a5326b3b79f035e8869937d853bec1df69
2020-08-07 11:10:59 -07:00
imlidian
bc52661468 fixed. wrong python path on install doc (#1321)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1321

Reviewed By: patricklabatut

Differential Revision: D22999873

Pulled By: beauby

fbshipit-source-id: 28696e8f7bb9e2bf6a8092b19853ac331415f810
2020-08-07 08:46:52 -07:00
Lucas Hosseini
b23cb289d3 Fix AVX2 preprocessor guard. (#1317)
Summary:
Some avx2 function calls were guarded with `__AVX__` instead of `__AVX2__`.

Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1317

Reviewed By: patricklabatut

Differential Revision: D22981635

Pulled By: beauby

fbshipit-source-id: 79ac3184bd32c94bc75a4c3118ae8cd2ea187fe3
2020-08-06 13:41:38 -07:00
Lucas Hosseini
ac74f576f7 fbshipit-source-id: 4f3cfa59471d548af93fe118d1b73d45bc648edf 2020-08-04 12:00:38 -07:00
Lucas Hosseini
31f27bd15a ShipIt sync.
fbshipit-source-id: f8ed169dc1d95b3364f4a158efb9fae531a5901d
2020-08-04 09:57:43 -07:00
Lucas Hosseini
750d43f7f1
Move source code to faiss/ subdirectory. (#1312)
* Move source code to faiss/ subdirectory.

* Remove stale files.
2020-08-04 17:16:58 +02:00
Lucas Hosseini
cd38e82f0c
Facebook sync 2020-07-31 (#1308) 2020-08-03 22:15:02 +02:00
Yurij Mikhalevich
a93a4b3957
python: fix faiss.ResultHeap (#1287)
Fixes typos in `faiss.ResultHeap`.
2020-07-27 17:27:07 +02:00
Eduardo Pinho
bf593c0fae
[c_api] Fix GPU library build (#1296)
- depend on libfaiss.so instead of libgpufaiss.so
- update include directives in gpu C wrapper impl
- fix implicit call warning in C examples
2020-07-27 17:26:17 +02:00
glutamatt
9e5d5b722e
fix free parameterspace (#1243) 2020-07-09 09:32:03 +02:00
Wenhao Liu
d76d26964c
Add missing header include (#1245)
Add missing header include for index_gpu_to_cpu function
2020-07-09 09:30:44 +02:00
Matthijs Douze
9258a9535e
fix datatypes for mac (#1270) 2020-06-28 13:00:44 +02:00
Matthijs Douze
e8c8db85ae fix #1213 2020-06-02 13:59:39 -07:00
Nackel
833d417db1
Correct a spelling mistake (#1190)
thanks
2020-05-05 12:18:10 +02:00
Matthijs Douze
c6bc8c46f1
Update README.md 2020-03-30 09:20:19 +02:00
Matthijs Douze
a5b850dec6
Update README.md 2020-03-30 09:19:07 +02:00
Jeff Johnson
f1fe029e0b Merge branch 'master' of https://github.com/facebookresearch/faiss 2020-03-29 20:07:03 -07:00
Jeff Johnson
e05f773f3f CUDA 8 fixes 2020-03-29 20:07:01 -07:00
Jeff Johnson
ba061ff82c CUDA 10 fixes 2020-03-30 03:01:56 +00:00
Matthijs Douze
817a3ac77d
Update INSTALL.md 2020-03-29 12:43:10 +02:00
Matthijs Douze
a489faf7c6
Update README.md 2020-03-29 08:46:18 +02:00
Jeff Johnson
2a36d4d8c7 fix gpu/test Makefile 2020-03-26 21:56:32 +00:00