Skip to content

Commit

Permalink
Seeing if this fixes the devcontainers
Browse files Browse the repository at this point in the history
  • Loading branch information
cjnolet committed Oct 6, 2023
1 parent 419d994 commit 1e7b5c8
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 32 deletions.
1 change: 0 additions & 1 deletion conda/environments/bench_ann_cuda-118_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ dependencies:
- libcusolver=11.4.1.48
- libcusparse-dev=11.7.5.86
- libcusparse=11.7.5.86
- libfaiss-avx2=1.7.4
- nccl>=2.9.9
- ninja
- nlohmann_json>=3.11.2
Expand Down
3 changes: 0 additions & 3 deletions conda/recipes/raft-ann-bench-cpu/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ sysroot_version:
cmake_version:
- ">=3.26.4"

faiss_version:
- "1.7.4"

glog_version:
- ">=0.6.0"

Expand Down
2 changes: 0 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,6 @@ requirements:
host:
- glog {{ glog_version }}
- matplotlib
# - faiss-cpu {{ faiss_version }}
- nlohmann_json {{ nlohmann_json_version }}
- python
- pyyaml
Expand All @@ -56,7 +55,6 @@ requirements:
run:
- glog {{ glog_version }}
- h5py {{ h5py_version }}
# - faiss-cpu {{ faiss_version }}
- matplotlib
- python
- pyyaml
Expand Down
3 changes: 0 additions & 3 deletions conda/recipes/raft-ann-bench/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ gtest_version:
glog_version:
- ">=0.6.0"

faiss_version:
- "1.7.4"

h5py_version:
- ">=3.8.0"

Expand Down
10 changes: 0 additions & 10 deletions conda/recipes/raft-ann-bench/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,6 @@ requirements:
{% endif %}
- 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 %}
- h5py {{ h5py_version }}
- benchmark
- matplotlib
Expand All @@ -92,11 +87,6 @@ requirements:
- cudatoolkit
{% 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 %}
- h5py {{ h5py_version }}
- benchmark
- glog {{ glog_version }}
Expand Down
12 changes: 6 additions & 6 deletions cpp/bench/ann/src/faiss/faiss_cpu_benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,13 @@ std::unique_ptr<raft::bench::ann::ANN<T>> create_algo(const std::string& algo,

if constexpr (std::is_same_v<T, float>) {
raft::bench::ann::Metric metric = parse_metric(distance);
if (algo == "faiss_gpu_ivf_flat") {
if (algo == "faiss_cpu_ivf_flat") {
ann = make_algo<T, raft::bench::ann::FaissCpuIVFFlat>(metric, dim, conf, dev_list);
} else if (algo == "faiss_gpu_ivf_pq") {
} else if (algo == "faiss_cpu_ivf_pq") {
ann = make_algo<T, raft::bench::ann::FaissCpuIVFPQ>(metric, dim, conf);
} else if (algo == "faiss_gpu_ivf_sq") {
} else if (algo == "faiss_cpu_ivf_sq") {
ann = make_algo<T, raft::bench::ann::FaissCpuIVFSQ>(metric, dim, conf);
} else if (algo == "faiss_gpu_flat") {
} else if (algo == "faiss_cpu_flat") {
ann = std::make_unique<raft::bench::ann::FaissCpuFlat<T>>(metric, dim);
}
}
Expand All @@ -138,11 +138,11 @@ template <typename T>
std::unique_ptr<typename raft::bench::ann::ANN<T>::AnnSearchParam> create_search_param(
const std::string& algo, const nlohmann::json& conf)
{
if (algo == "faiss_gpu_ivf_flat" || algo == "faiss_gpu_ivf_pq" || algo == "faiss_gpu_ivf_sq") {
if (algo == "faiss_cpu_ivf_flat" || algo == "faiss_cpu_ivf_pq" || algo == "faiss_cpu_ivf_sq") {
auto param = std::make_unique<typename raft::bench::ann::FaissCpu<T>::SearchParam>();
parse_search_param<T>(conf, *param);
return param;
} else if (algo == "faiss_gpu_flat") {
} else if (algo == "faiss_cpu_flat") {
auto param = std::make_unique<typename raft::bench::ann::ANN<T>::AnnSearchParam>();
return param;
}
Expand Down
2 changes: 2 additions & 0 deletions cpp/bench/ann/src/faiss/faiss_cpu_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,8 @@ class FaissCpuIVFPQ : public FaissCpu<T> {
void load(const std::string& file) override { this->template load_<faiss::IndexIVFPQ>(file); }
};

// TODO: Enable this in cmake
// ref: https://github.com/rapidsai/raft/issues/1876
template <typename T>
class FaissCpuIVFSQ : public FaissCpu<T> {
public:
Expand Down
2 changes: 2 additions & 0 deletions cpp/bench/ann/src/faiss/faiss_gpu_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,8 @@ class FaissGpuIVFPQ : public FaissGpu<T> {
}
};

// TODO: Enable this in cmake
// ref: https://github.com/rapidsai/raft/issues/1876
template <typename T>
class FaissGpuIVFSQ : public FaissGpu<T> {
public:
Expand Down
7 changes: 0 additions & 7 deletions dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,6 @@ dependencies:
- h5py>=3.8.0
- benchmark>=1.8.2
- rmm=23.10.*
specific:
- output_types: [conda, pyproject, requirements]
matrices:
- matrix:
arch: x86_64
packages:
- libfaiss-avx2=1.7.4
nn_bench_python:
common:
- output_types: [conda]
Expand Down

0 comments on commit 1e7b5c8

Please sign in to comment.