Skip to content

Commit

Permalink
Fix bench-prims
Browse files Browse the repository at this point in the history
  • Loading branch information
lowener committed Nov 2, 2023
1 parent e2aebce commit f0d6ec6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cpp/bench/prims/neighbors/knn.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,7 @@ struct ivf_flat_filter_knn {
raft::make_device_matrix_view<const ValT, IdxT>(search_items, ps.n_queries, ps.n_dims);
auto neighbors_view = raft::make_device_matrix_view<IdxT, IdxT>(out_idxs, ps.n_queries, ps.k);
auto distance_view = raft::make_device_matrix_view<dist_t, IdxT>(out_dists, ps.n_queries, ps.k);
auto filter = raft::neighbors::filtering::ivf_to_sample_filter(
index->inds_ptrs().data_handle(),
raft::neighbors::filtering::bitset_filter(removed_indices_bitset_.view()));
auto filter = raft::neighbors::filtering::bitset_filter(removed_indices_bitset_.view());

if (ps.removed_ratio > 0) {
raft::neighbors::ivf_flat::search_with_filtering(
Expand Down Expand Up @@ -317,9 +315,7 @@ struct ivf_pq_filter_knn {
raft::make_device_matrix_view<IdxT, uint32_t>(out_idxs, ps.n_queries, ps.k);
auto distance_view =
raft::make_device_matrix_view<dist_t, uint32_t>(out_dists, ps.n_queries, ps.k);
auto filter = raft::neighbors::filtering::ivf_to_sample_filter(
index->inds_ptrs().data_handle(),
raft::neighbors::filtering::bitset_filter(removed_indices_bitset_.view()));
auto filter = raft::neighbors::filtering::bitset_filter(removed_indices_bitset_.view());

if (ps.removed_ratio > 0) {
raft::neighbors::ivf_pq::search_with_filtering(
Expand Down

0 comments on commit f0d6ec6

Please sign in to comment.