Skip to content

Commit

Permalink
Building faiss statically each time. Will slow down CI but alleviate …
Browse files Browse the repository at this point in the history
…some of the conda issues.
  • Loading branch information
cjnolet committed Sep 28, 2023
1 parent c430bb8 commit 30428fd
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 16 deletions.
3 changes: 1 addition & 2 deletions conda/environments/bench_ann_cuda-118_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ dependencies:
- cudatoolkit
- cxx-compiler
- cython>=3.0.0
- faiss-proc=*=cuda
- gcc_linux-64=11.*
- glog>=0.6.0
- h5py>=3.8.0
Expand All @@ -31,10 +30,10 @@ dependencies:
- libcusparse-dev=11.7.5.86
- libcusparse=11.7.5.86
- libfaiss-avx2=1.7.4
- libfaiss=1.7.4
- nccl>=2.9.9
- ninja
- nlohmann_json>=3.11.2
- rmm=23.10.*
- scikit-build>=0.13.1
- sysroot_linux-64==2.17
name: bench_ann_cuda-118_arch-x86_64
4 changes: 2 additions & 2 deletions conda/recipes/raft-ann-bench-cpu/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ requirements:
host:
- glog {{ glog_version }}
- matplotlib
- faiss-cpu {{ faiss_version }}
# - faiss-cpu {{ faiss_version }}
- nlohmann_json {{ nlohmann_json_version }}
- python
- pyyaml
Expand All @@ -56,7 +56,7 @@ requirements:
run:
- glog {{ glog_version }}
- h5py {{ h5py_version }}
- faiss-cpu {{ faiss_version }}
# - faiss-cpu {{ faiss_version }}
- matplotlib
- python
- pyyaml
Expand Down
16 changes: 8 additions & 8 deletions conda/recipes/raft-ann-bench/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ requirements:
- glog {{ glog_version }}
- nlohmann_json {{ nlohmann_json_version }}
# Temporarily ignore faiss benchmarks on CUDA 12 because packages do not exist yet
{% if cuda_major == "11" %}
- faiss-proc=*=cuda
- libfaiss {{ faiss_version }}
{% endif %}
# {% if cuda_major == "11" %}
# - faiss-proc=*=cuda
# - libfaiss {{ faiss_version }}
# {% endif %}
- h5py {{ h5py_version }}
- benchmark
- matplotlib
Expand All @@ -93,10 +93,10 @@ requirements:
{% endif %}
- glog {{ glog_version }}
# Temporarily ignore faiss benchmarks on CUDA 12 because packages do not exist yet
{% if cuda_major == "11" %}
- faiss-proc=*=cuda
- libfaiss {{ faiss_version }}
{% endif %}
# {% if cuda_major == "11" %}
# - faiss-proc=*=cuda
# - libfaiss {{ faiss_version }}
# {% endif %}
- h5py {{ h5py_version }}
- benchmark
- glog {{ glog_version }}
Expand Down
1 change: 1 addition & 0 deletions cpp/bench/ann/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ if(RAFT_ANN_BENCH_USE_FAISS_GPU_FLAT
OR RAFT_ANN_BENCH_USE_FAISS_CPU_IFFLAT
)
set(RAFT_ANN_BENCH_USE_FAISS ON)
set(RAFT_USE_FAISS_STATIC ON)
endif()

set(RAFT_ANN_BENCH_USE_RAFT OFF)
Expand Down
4 changes: 2 additions & 2 deletions cpp/cmake/thirdparty/get_faiss.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ function(find_and_configure_faiss)
endfunction()

find_and_configure_faiss(VERSION 1.7.4
REPOSITORY ${RAFT_FAISS_GIT_REPOSITORY}
PINNED_TAG ${RAFT_FAISS_GIT_TAG}
REPOSITORY [email protected]:facebookresearch/faiss.git
PINNED_TAG v1.7.4
BUILD_STATIC_LIBS ${RAFT_USE_FAISS_STATIC}
EXCLUDE_FROM_ALL ${RAFT_EXCLUDE_FAISS_FROM_ALL}
ENABLE_GPU ${RAFT_FAISS_ENABLE_GPU})
Expand Down
3 changes: 1 addition & 2 deletions dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,8 @@ dependencies:
- nlohmann_json>=3.11.2
- glog>=0.6.0
- h5py>=3.8.0
- libfaiss=1.7.4
- benchmark>=1.8.2
- faiss-proc=*=cuda
- rmm=23.10.*
specific:
- output_types: [conda, pyproject, requirements]
matrices:
Expand Down

0 comments on commit 30428fd

Please sign in to comment.