Skip to content

Commit

Permalink
fix raft cpu search compile error (#876)
Browse files Browse the repository at this point in the history
Signed-off-by: yusheng.ma <[email protected]>
  • Loading branch information
Presburger authored Oct 1, 2024
1 parent fe0fb15 commit c880efb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index/gpu_raft/gpu_raft_cagra.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class GpuRaftCagraHybridIndexNode : public GpuRaftCagraIndexNode<DataType> {
auto p_id = std::make_unique<int64_t[]>(k * nq);
auto p_dist = std::make_unique<DistType[]>(k * nq);

hnswlib::SearchParam param{(size_t)cagra_cfg.ef.value(), false};
hnswlib::SearchParam param{(size_t)cagra_cfg.ef.value()};
bool transform = (hnsw_index_->metric_type_ == hnswlib::Metric::INNER_PRODUCT ||
hnsw_index_->metric_type_ == hnswlib::Metric::COSINE);

Expand Down

0 comments on commit c880efb

Please sign in to comment.