mirror of
https://github.com/facebookresearch/faiss.git
synced 2025-06-03 21:54:02 +08:00
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
This commit is contained in:
parent
797bc88566
commit
1223e68688
@ -50,24 +50,24 @@ jobs:
|
||||
-DFAISS_OPT_LEVEL=<< parameters.opt_level >> \
|
||||
-DFAISS_ENABLE_C_API=ON \
|
||||
-DCMAKE_BUILD_TYPE=Release -DBLA_VENDOR=Intel10_64_dyn .
|
||||
make -C build -j faiss
|
||||
make -C build -j3 faiss
|
||||
- when:
|
||||
condition:
|
||||
equal: [ "avx2", << parameters.opt_level >> ]
|
||||
steps:
|
||||
- run:
|
||||
name: Build faiss_avx2 library
|
||||
command: make -C build -j faiss_avx2 swigfaiss_avx2
|
||||
command: make -C build -j3 faiss_avx2 swigfaiss_avx2
|
||||
- run:
|
||||
name: Test faiss library
|
||||
command: |
|
||||
make -C build -j faiss_test
|
||||
make -C build -j3 faiss_test
|
||||
export GTEST_OUTPUT="xml:$(realpath .)/test-results/googletest/"
|
||||
make -C build test
|
||||
- run:
|
||||
name: Build python extension
|
||||
command: |
|
||||
make -C build -j swigfaiss
|
||||
make -C build -j3 swigfaiss
|
||||
cd build/faiss/python
|
||||
python3 setup.py build
|
||||
- run:
|
||||
|
Loading…
x
Reference in New Issue
Block a user