76 Commits

Author SHA1 Message Date
Ramil Bakhshyiev
eec4cba025 Disable CircleCI builds (#3477)
Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/3477

AVX-512 must remain on CircleCI until GitHub provides runners with AVX-512 support (ETA: Q1 2025).

Reviewed By: algoriddle

Differential Revision: D57707621

fbshipit-source-id: e8a0885f8363cf8f20854cccca3ec0adc946362b
2024-05-23 06:42:48 -07:00
Junjie Qi
3677ab5021 Switch clang-format-11 to clang-format-18 (#3372)
Summary:
In this commit ab2b7f5093, they changed format based on clang-format-18. However, we still use clang-format-11 in our circle ci job which caused the failure. In this PR, we are going to switch to clang-format-18

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

Reviewed By: kuarora

Differential Revision: D56280363

Pulled By: junjieqi

fbshipit-source-id: f832ab2112f762e6000b55a155e3e43fe99071d7
2024-04-19 13:55:15 -07:00
Junjie Qi
d6854136af Fix faiss swig build with version > 4.2.x (#3315)
Summary:
Currently, faiss can't build with swig version > 4.2.x. As the https://github.com/facebookresearch/faiss/issues/3239 mentioned.  Swig removed the support for 32bit 9fb3a4939e. So SWIGTYPE_p_unsigned_long_long isn't supported any more. In this diff, we are going to remove the unsupported type from Faiss swig.

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

Test Plan:
STEP 1: create a new conda env
```
conda create --name faiss_swig
conda activate faiss_swig
```

STEP 2: install dependecies from conda-forge
```
conda install -y -q python=3.11 cmake make swig mkl=2023 mkl-devel=2023 numpy scipy pytest gxx_linux-64 sysroot_linux-64=2.28 -c conda-forge
```

STEP 3: CMAKE

```
cmake -B build \
      -DBUILD_TESTING=ON \
      -DBUILD_SHARED_LIBS=ON \
      -DFAISS_ENABLE_GPU=OFF \
      -DFAISS_ENABLE_RAFT=OFF \
      -DFAISS_OPT_LEVEL=avx512 \
      -DFAISS_ENABLE_C_API=ON \
      -DPYTHON_EXECUTABLE=$(which python) \
      -DCMAKE_BUILD_TYPE=Release \
      -DBLA_VENDOR=Intel10_64_dyn \
      -DCMAKE_CUDA_FLAGS="-gencode arch=compute_75,code=sm_75" \
      .
```

STEP 4: build
```
make -C build -j faiss && make -C build -j swigfaiss
```
<img width="876" alt="Screenshot 2024-03-25 at 12 24 16 AM" src="https://github.com/facebookresearch/faiss/assets/8333898/918f0caf-398a-4361-989f-93ff547cf2b2">

Reviewed By: algoriddle

Differential Revision: D55304004

Pulled By: junjieqi

fbshipit-source-id: e958009dc637aa33b0e1a574a16a846a4abb1525
2024-03-28 22:54:51 -07:00
Gergely Szilvasy
0c96b0d7e0 enable rapidsai-nightly channel for libraft (#3317)
Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/3317

libraft packages are first published in rapidsai-nightly and moved to rapidsai after release, at which point they're removed from rapidsai-nightly

In this diff we enable both channels with a preference to rapidsai (since it's before rapidsai-nightly on the command line).

Reviewed By: mlomeli1

Differential Revision: D55310143

fbshipit-source-id: b85e0fda86a442f435d985ace1d7eb37209c74e1
2024-03-25 04:02:23 -07:00
Junjie Qi
6f3843e14f Back out "Remove swig version and always rely on the latest version" (#3297)
Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/3297

Original commit changeset: 7ca59fb58390

Original Phabricator Diff: D54975271

Differential Revision: D55102226

fbshipit-source-id: 2a2828b4e74b16ee25b090ae4b844dab4f1d72a6
2024-03-19 16:31:48 -07:00
Junjie Qi
f7fe62e801 Remove swig version and always rely on the latest version (#3295)
Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/3295

In the past, we had build failure due to the latest swig version in conda-forge so we had to specify the version of swig. In this diff, we are going to change it to be the latest version always because the issue has gone.

Reviewed By: algoriddle

Differential Revision: D54975271

fbshipit-source-id: 7ca59fb58390edb0cc5ed52f6fd416f633dd7938
2024-03-19 10:46:30 -07:00
Gergely Szilvasy
a187394a8a libraft 24.02 is released, switching channel
Summary:
libraft 24.02 is now in the main channel of rapidsai (and no longer in the nightly), switching channel we build against to prepare for the release of faiss-gpu-raft

cmake build will continue to use the nightly, but the conda packages will be built against the release

Reviewed By: mlomeli1

Differential Revision: D53712646

fbshipit-source-id: de60c3336e6a199b496fc3829d71a778e5ea8cbd
2024-02-14 04:38:45 -08:00
Gergely Szilvasy
bfa46a3a59 pin circleci windows image (#3248)
Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/3248

Build scripts can't find conda in the 'stable' image, trying to pin to a specific version.

Reviewed By: mlomeli1

Differential Revision: D53608347

fbshipit-source-id: 3f7c350608afc9c253cf0153e37ceeb4fceca92c
2024-02-09 03:26:44 -08:00
Gergely Szilvasy
ed3f6e5fdf faiss-gpu to use 11.4.4 and be the only one supporting P100 (#3237)
Summary:
Considering that only GPU classic works on Pascal and only if compiled with cuda 11.4, this sets up the conda builds as follows.

tl;dr: Pascal will only be supported by faiss-gpu on cuda 11.

## faiss-gpu
1. build on cuda 11.4.4, supports Pascal, works with pytorch-cuda=11 (including hosts with cuda 12 drivers)
2. build on cuda 12.1.1, does NOT support Pascal, works with pytorch-cuda=12

## faiss-gpu-raft
1. build on cuda 11.8.0, does NOT support Pascal, works with pytorch-cuda=11.8
2. build on cuda 12.1.1, does NOT support Pascal, works with pytorch-cuda=12

The reason faiss-gpu-raft is built with and supports only 11.8 is due to the risk of clobbering otherwise between libraft and pytorch-cuda dependencies.

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

Reviewed By: mdouze

Differential Revision: D53354121

Pulled By: algoriddle

fbshipit-source-id: 86108e975168759572f84922bf0ccef55ae75ef8
2024-02-02 09:01:10 -08:00
Gergely Szilvasy
c1822a81b2 cuda dependencies (#3230)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/3230

Reviewed By: mlomeli1

Differential Revision: D53271742

Pulled By: algoriddle

fbshipit-source-id: b0f09e26ab0b4cfcbdb10528b2f57e15c10f4265
2024-01-31 14:25:13 -08:00
Gergely Szilvasy
31bddeb0cf add faiss_gpu lib (#3222)
Summary:
1. Split the GPU code into a separate static library to reduce build times.
2. faiss-gpu now depends on pytorch-cuda to stop clobbering of CUDA libraries when Faiss and Pytorch installed in the same environment
3. Add CUDA 12 (we support both 11.8 and 12.1)
4. Add Python 3.12

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

Reviewed By: mlomeli1

Differential Revision: D53215033

Pulled By: algoriddle

fbshipit-source-id: d48c5707af20b7e5ff72c3aa27b0e677259f22f8
2024-01-30 01:44:50 -08:00
Gergely Szilvasy
0013c702f4 avx512 CI + conda packages (#3197)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/3197

Reviewed By: mlomeli1

Differential Revision: D52689379

Pulled By: algoriddle

fbshipit-source-id: 54e27c6d310d6da14777ae10ae62f46e7076cacf
2024-01-11 08:26:33 -08:00
Gergely Szilvasy
0c07a114ad fix raft contbuild and switch to libraft 23.12 (#3116)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/3116

Test Plan: https://app.circleci.com/pipelines/github/facebookresearch/faiss/4839/workflows/cfd84a94-ca60-4128-96e6-db0f5afc69c4

Reviewed By: mdouze

Differential Revision: D50897934

Pulled By: algoriddle

fbshipit-source-id: 1422be39d640a2aec3ab6b4c68d3ef54900b5ba2
2023-11-01 14:37:21 -07:00
Robert Maynard
458633c203 Remove uneeded PTX code generation from libfaiss builds (#3083)
Summary:
The CMake CUDA Architecture value of `60` means to generate both PTX and SASS for that arch. We only need SASS for the architectures we support, and one PTX version for future hardware versions.

So now we build on SASS for everything ( `60-real` ) and use 80 as the baseline for newer archs likes 90

By removing this unneeded PTX code we can reduce the libfaiss.a binary to 305MB from the current 484MB.

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

Reviewed By: wickedfoo

Differential Revision: D49901896

Pulled By: algoriddle

fbshipit-source-id: 15e98f81e191a565319cf855debad33b24ebf10b
2023-10-04 12:11:47 -07:00
Gergely Szilvasy
e3731f7886 faiss-gpu-raft, the missing bits (#3009)
Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/3009

1. Added the nightly build trigger, duh!
2. Run test_partitioning in fbcode

Reviewed By: mdouze

Differential Revision: D48425784

fbshipit-source-id: 58db0bd86d2673507b5d5ce2cb8b890713f9d919
2023-08-17 03:05:03 -07:00
Gergely Szilvasy
2768fb38b2 faiss-gpu-raft package (#2992)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/2992

Reviewed By: mdouze

Differential Revision: D48391366

Pulled By: algoriddle

fbshipit-source-id: 94b7f62afc8a09a9feaea47bf60e5358d89fcde5
2023-08-16 09:30:41 -07:00
Gergely Szilvasy
ef7e945b4d remove avx2 from raft cmake contbuild
Summary: Unnecessary for contbuild and doubles the build time.

Reviewed By: mlomeli1

Differential Revision: D48148734

fbshipit-source-id: ca44a1e328ce6980c8a867a33ce311fe6eeb90e0
2023-08-08 11:44:14 -07:00
Gergely Szilvasy
da16d9d3ca simplify raft build (#2983)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/2983

Reviewed By: mdouze

Differential Revision: D48063550

Pulled By: algoriddle

fbshipit-source-id: c67e13cec97f4de8cc30cae47186593dbe0bdadb
2023-08-04 06:52:07 -07:00
Gergely Szilvasy
726143d056 install libraft for cmake build (#2968)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/2968

Reviewed By: mlomeli1, mdouze

Differential Revision: D47677660

Pulled By: algoriddle

fbshipit-source-id: 8fad8323ea3c0a264149c76fc9519d9c63346d00
2023-07-31 07:37:27 -07:00
Gergely Szilvasy
1d7c05de5f raft nightly (#2926)
Summary:
Moving the raft build to a nightly, to remove the noise from the PR contbuilds.

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

Reviewed By: mlomeli1

Differential Revision: D47016318

Pulled By: algoriddle

fbshipit-source-id: 3c60aa382b9aa68dcadb929e0e4afade13c9123e
2023-06-26 03:10:05 -07:00
Gergely Szilvasy
e0741ca5d7 fix for lib/jvm/languages/python/bin/conda no such file (#2917)
Summary:
environment: line 9: /opt/conda/lib/jvm/languages/python/bin/conda: No such file or directory

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

Reviewed By: mdouze

Differential Revision: D46841321

Pulled By: algoriddle

fbshipit-source-id: bdfbc16fbf422406c5195293dd4730f71a261e40
2023-06-21 00:29:51 -07:00
Gergely Szilvasy
6951466b43 raft enabled cmake build (#2898)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/2898

Reviewed By: mdouze

Differential Revision: D46561295

Pulled By: algoriddle

fbshipit-source-id: b9806c0c52acf82124c3b2e0095b1c1979318dcd
2023-06-13 08:43:18 -07:00
Gergely Szilvasy
eea4a48b97 pin mkl to 2023 (#2856)
Summary:
This fixes the build, except for MacOS, where there's a problem with cmake + OpenMP. We can fix it separately.

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

Reviewed By: mlomeli1

Differential Revision: D45704458

Pulled By: algoriddle

fbshipit-source-id: 0c09036ae5fa34ab114b857f407a35603986613a
2023-05-09 12:20:54 -07:00
Gergely Szilvasy
155065c8c4 stop expensive osx arm64 builds on every diff (#2835)
Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/2835

I don't think this provides much extra signal on top of Linux arm64, and we will still have the nightly. It's by far the most expensive to run, so let's save the $$$ and the planet.

Reviewed By: mlomeli1

Differential Revision: D45389825

fbshipit-source-id: 63fa6b37f3f7505f118c75f03605c065f1ad51f1
2023-04-28 03:53:20 -07:00
Gergely Szilvasy
a3d6212983 upgrade cmake to 3.23.1 (#2808)
Summary:
RAFT requires cmake 3.23.1, pulling it from conda-forge. We continue to keep the dependency on conda-forge minimal, hence the ordering of the channels and the pinning of sysroot to a specific version.

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

Test Plan:
contbuild

Imported from GitHub, without a `Test Plan:` line.

Reviewed By: mlomeli1

Differential Revision: D44746827

Pulled By: algoriddle

fbshipit-source-id: ad576b11b257203bd0cafd57c2c2e7fd8d10ca98
2023-04-06 06:25:51 -07:00
Gergely Szilvasy
7bf645e344 GPU builds without Docker (#2803)
Summary:
1. GPU builds use CircleCI base image, no docker
2. Switched to CUDA 11.4 (used to be 11.3)
3. Merged all build jobs into two parameterized targets: `build_cmake` and `build_conda`.
4. Cleaned up test execution, fixed bug of Python GPU tests not running on PRs

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

Reviewed By: mlomeli1

Differential Revision: D44541714

Pulled By: algoriddle

fbshipit-source-id: aa09ae638ecb6ef556d42f27a4bfaddad7355e50
2023-03-30 10:45:54 -07:00
Gergely Szilvasy
2686183ee5 refactor contbuild, add new GPU targets, support Linux arm64 conda packages (#2798)
Summary:
# Refactor
- Extract executors and merge all conda builds (that run on diffs) and conda package builds (that run nightly and on release) into two parameterized targets (`build_conda`, `deploy_conda`), except for GPU builds (at least for now)
- Similarly, introduce a `build_cmake` target that can be parameterized with executor, although run it for Linux x86_64 only (for now)
- Keep GPU targets separate (both conda package build and cmake) for now. Introduce "v2" targets that will eventually replace the current GPU build targets (we need to resolve GPU test failures).
- Removed `beauby/faiss-circleci:cpu` docker container, use the miniconda docker for Linux and machine images everywhere else. v2 GPU targets use the latest circleci images (see https://discuss.circleci.com/t/cuda-11-8-gpu-cuda-image-any-plans/47240/3)

# New/changed functionality
- Dropped CUDA 10
- Support for Linux arm64 conda packages
- Workflows have a consistent naming scheme, `OSX arm64 (conda)`,  `Linux x86_64 (cmake)` etc.
- No cmake build for Linux or OSX arm64, replaced both with a conda build target only. We can reintroduce arm64 cmake workflows for both if needed (via additional parameterized build_cmake workflows), but it seemed unnecessary to me.

# Next steps
- Make v2 GPU builds work, deprecate v1, get rid of all docker stuff
- Merge GPU builds into cmake/conda build targets
- Possibly further unify package build and conda build targets

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

Test Plan: contbuild

Reviewed By: mlomeli1

Differential Revision: D44469783

Pulled By: algoriddle

fbshipit-source-id: 8489942fb7a4e4de1dd2d4466790e550191d15a1
2023-03-29 06:56:27 -07:00
Gergely Szilvasy
766f9c8e93 add python 3.10 (#2791)
Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/2791

Removed building for 3.7 (D44373285 - not supported for M1), adding 3.10 with this diff.

The only change that matters is in `conda_build_config.yaml`, the others are about making the configs consistent between CPU and GPU.

Reviewed By: mlomeli1

Differential Revision: D44405573

fbshipit-source-id: ad933e08834593e55a35075c602e5f509a813e73
2023-03-27 04:41:14 -07:00
Gergely Szilvasy
770250b68d add m1 conda support (#2780)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/2780

Reviewed By: mlomeli1

Differential Revision: D44373285

Pulled By: algoriddle

fbshipit-source-id: 91f22b6e92f9ef0e72e0b8a7c892566f12d0d48c
2023-03-24 13:41:44 -07:00
Matthijs Douze
547fe78c68 Support M1 in circleCI (#2774)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/2774

Reviewed By: algoriddle

Differential Revision: D44215129

Pulled By: mdouze

fbshipit-source-id: 62266b214186684eaf49ab1b9a39971b324fd52b
2023-03-23 15:09:32 -07:00
Gergely Szilvasy
05a9d52833 increase circleci no_output_timeout (#2644)
Summary:
Linux builds are regularly failing with “Too long with no output (exceeded 10m0s): context deadline exceeded”

https://app.circleci.com/pipelines/github/facebookresearch/faiss/3343/workflows/a6357953-bbaa-438c-acfa-2507ceb008e8/jobs/16680?invite=true#step-103-467

Applying the fix suggested in https://support.circleci.com/hc/en-us/articles/360045268074-Build-Fails-with-Too-long-with-no-output-exceeded-10m0s-context-deadline-exceeded-

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

Reviewed By: alexanderguzhva

Differential Revision: D42313426

Pulled By: algoriddle

fbshipit-source-id: 8e56c23f5f600974820c198d50562e043c909ce1
2023-01-03 13:22:30 -08:00
Maria
f81097c6e6 Fix osx nightly (#2559)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/2559

Reviewed By: algoriddle

Differential Revision: D40943198

Pulled By: mlomeli1

fbshipit-source-id: 9339d3211fcfa37674a35d52b9678c2d912f2529
2022-11-03 01:57:23 -07:00
Lucas Hosseini
19147f241e Fix OSX CI. (#2482)
Summary:
Fixes OSX CI by pinning pytorch version for interop tests. The "real" fix is already landed in pytorch but has not been released yet.

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

Reviewed By: alexanderguzhva

Differential Revision: D39891113

Pulled By: beauby

fbshipit-source-id: fa79bf9de1c93e056260ea64613e37625edfecc3
2022-09-28 11:22:43 -07:00
Lucas Hosseini
384dc32031 Fix Windows packages. (#2496)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/2496

Reviewed By: alexanderguzhva

Differential Revision: D39859408

Pulled By: beauby

fbshipit-source-id: b3bd06374bc0a815d297d972e0277d56c5789a66
2022-09-28 07:05:09 -07:00
1091761+wx257osn2@users.noreply.github.com
c3974f4973 Update macOS CI Image Tag (#2442)
Summary:
It seems that [`xcode:12.4.0` has been retired from CircleCI](https://circleci.com/docs/en/using-macos#supported-xcode-versions), so this PR updates the image version and fixes stopping the pipeline at the spin-up stage.

This PR changes only `.circleci/config.yml` , and doesn't affect the software behavior.

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

Reviewed By: beauby

Differential Revision: D39259341

Pulled By: mdouze

fbshipit-source-id: 8c7b0f8eb6f6f951329b4e2a2964672d0ee75ceb
2022-09-27 11:41:10 -07:00
Check Deng
a03a1eba8b Add IndexNSGPQ and IndexNSGSQ (#2218)
Summary:
This diff added IndexNSGPQ and IndexNSGSQ, including index factory and I/O. And also fixed the ARM CI.

Fixed https://github.com/facebookresearch/faiss/issues/2128

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

Reviewed By: beauby

Differential Revision: D34276313

Pulled By: mdouze

fbshipit-source-id: a5014af8447800ad15bd89b4f87204b4b36866d2
2022-02-18 04:51:15 -08:00
Lucas Hosseini
a0de37bd18 Update CUDA driver on CircleCI. (#2146)
Summary:
A recent CUDA driver is required for building packages for CUDA 11.3.

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

Reviewed By: wickedfoo

Differential Revision: D33020204

Pulled By: beauby

fbshipit-source-id: 01257b1dcb4987f4866cc058c22d1dd5977d76ce
2021-12-10 10:14:28 -08:00
Lucas Hosseini
7492d23354 Fix packaging (#2121)
Summary:
- Disable problematic tests on OSX.
- Ensure compiler compatibility with CUDA builds.
- Fix path for Python extension libraries.
- Use CentOS for CUDA packaging.
- Update CUDA versions in CI (10.2 and 11.3).

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

Reviewed By: mdouze

Differential Revision: D32921117

Pulled By: beauby

fbshipit-source-id: 588c18add8084b8228ff5abc651eaa4567919cc6
2021-12-07 13:12:30 -08:00
Lucas Hosseini
b4eb51dae8 Change default branch references from master to main. (#2029)
Summary:
This is required for the renaming of the default branch from `master` to `main`, in accordance with the new Facebook OSS guidelines.

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

Reviewed By: mdouze

Differential Revision: D30672862

Pulled By: beauby

fbshipit-source-id: 0b6458a4ff02a12aae14cf94057e85fdcbcbff96
2021-09-01 09:26:20 -07:00
Matthijs Douze
760cce7f3a Support for additive quantizer search (#1961)
Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1961

This diff implements LUT-based search for additive quantizers.
It also further merges code for LSQ and the RedisualQuantizer.

The documentation + evaluation is on github:

https://github.com/facebookresearch/faiss/wiki/Additive-quantizers

Reviewed By: wickedfoo

Differential Revision: D29395079

fbshipit-source-id: b8a24a647bbdc4cda2a699e791ffdb2a12bfa9c6
2021-08-20 01:00:10 -07:00
Chengqi Deng
fed61e6d95 Add ARM to CI (#1914)
Summary:
This PR added a CI job for ARM.

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

Reviewed By: beauby

Differential Revision: D28833987

Pulled By: mdouze

fbshipit-source-id: 4977585ea1a0715547ed34f400cf0a3646fca667
2021-06-08 14:53:02 -07:00
Lucas Hosseini
b2b129980e Fix release packages being overwritten by nightlies. (#1935)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1935

Reviewed By: mdouze

Differential Revision: D28932003

Pulled By: beauby

fbshipit-source-id: f6149697a270c07cfef789e7e7f22ba58cb9627c
2021-06-07 09:24:10 -07:00
Y.Imaizumi
e5fa6cf58b Fix Conda CI (#1884)
Summary:
Currently CI jobs using conda are failed due to conflict packages.
This PR fixes this.

- use newer `numpy` to build `faiss-cpu`
- install `pytorch` when testing `faiss-cpu`
    - to find correct `pytorch` package, `pytorch` channel is set at `conda build`

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

Reviewed By: mdouze

Differential Revision: D28777447

Pulled By: beauby

fbshipit-source-id: 82a1ce076abe6bbbba9415e8935ed57b6104b6c3
2021-05-31 00:04:42 -07:00
Lucas Hosseini
cd6909004f Add packages for CUDA 11.3. (#1902)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1902

Reviewed By: mdouze

Differential Revision: D28566993

Pulled By: beauby

fbshipit-source-id: f560130c874bad355377b88b4519519af1e5d9f1
2021-05-21 07:47:37 -07:00
Lucas Hosseini
ef33daae92 Add CUDA compute capability 8.6 for CUDA 11 packages. (#1899)
Summary:
Also remove support for deprecated compute capabilities 3.5 and 5.2 in
CUDA 11.

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

Reviewed By: mdouze

Differential Revision: D28539826

Pulled By: beauby

fbshipit-source-id: 6e8265f2bfd991ff3d14a6a5f76f9087271f3f75
2021-05-19 12:58:50 -07:00
Lucas Hosseini
1223e68688 Avoid OOM in Linux CPU CI jobs. (#1900)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1900

Reviewed By: mdouze

Differential Revision: D28539987

Pulled By: beauby

fbshipit-source-id: 2e44755e48bd45233578ce0ba75836fc533afe35
2021-05-19 12:36:05 -07:00
Matthijs Douze
2d380e992b Add manifold check for size 0 (#1867)
Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1867

Merging code for the 1T photodna index seems to fail at

https://www.internalfb.com/phabricator/paste/view/P412975011?lines=174

with
```
terminate called after throwing an instance of 'facebook::manifold::blobstore::StorageException'
  what():  [400] Begin offset and/or length were invalid -- Begin offset must be positive and length must be non-negative. Received: offset = 2642410612, length = 0
Aborted (core dumped)
```
traces back to

https://www.internalfb.com/intern/diffusion/FBS/browsefile/master/fbcode/manifold/blobstore/BlobstoreThriftHandler.cpp?lines=671%2C700%2C732

There is a single case where we don't check if the read or write size is 0. So let's try this fix.

In the process I realized that the Manifold tests were non functional due to a name collision on common.py. Also fix this in all dependent files.

Differential Revision: D28231710

fbshipit-source-id: 700ffa6ca0c82c49e7d1eae9e76549ec5ff16332
2021-05-09 22:30:31 -07:00
Lucas Hosseini
31bd194e2e Fix GPU nightly builds. (#1837)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1837

Reviewed By: mdouze

Differential Revision: D27965420

Pulled By: beauby

fbshipit-source-id: 9500253ef00b2fe43c987c6069ceabcbffd26b74
2021-04-23 05:47:53 -07:00
Lucas Hosseini
bde7c00271 Update OSX version in CircleCI. (#1833)
Summary:
This should fix the HomeBrew failures we see.

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

Reviewed By: mdouze

Differential Revision: D27880386

Pulled By: beauby

fbshipit-source-id: 5895dfc79a9c66c88283fd5170d2827f63bdd224
2021-04-20 05:50:52 -07:00
Lucas Hosseini
267edb120b Increase timeout for conda packages jobs. (#1801)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1801

Reviewed By: mdouze

Differential Revision: D27536458

Pulled By: beauby

fbshipit-source-id: ca2e693a7ac98d543fe1fe2ee2031389244e3c84
2021-04-02 09:43:50 -07:00