diff --git a/.circleci/config.yml b/.circleci/config.yml index 5f6eac7e8..73d0ad839 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -28,6 +28,10 @@ jobs: fi build_linux: + parameters: + opt_level: + type: string + default: generic docker: - image: beauby/faiss-circleci:cpu environment: @@ -39,6 +43,7 @@ jobs: name: Build faiss library command: | cmake -B build -DBUILD_TESTING=ON -DFAISS_ENABLE_GPU=OFF \ + -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 @@ -252,6 +257,9 @@ workflows: name: Format - build_linux: name: Linux + - build_linux: + name: Linux (AVX2) + opt_level: "avx2" - build_linux_gpu: name: Linux GPU requires: