Skip to content

Commit

Permalink
Fix IVF-Flat filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
lowener committed Oct 16, 2023
1 parent 81dad56 commit 57d3b12
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -737,10 +737,11 @@ RAFT_KERNEL __launch_bounds__(kThreadsPerBlock)

// This is the vector a given lane/thread handles
const uint32_t vec_id = group_id * WarpSize + lane_id;
const bool valid = vec_id < list_length;
const bool valid =
vec_id < list_length && sample_filter(queries_offset + blockIdx.y, list_id, vec_id);

// Process first shm_assisted_dim dimensions (always using shared memory)
if (valid && sample_filter(queries_offset + blockIdx.y, list_id, vec_id)) {
if (valid) {
loadAndComputeDist<kUnroll, decltype(compute_dist), Veclen, T, AccT> lc(dist,
compute_dist);
for (int pos = 0; pos < shm_assisted_dim;
Expand Down

0 comments on commit 57d3b12

Please sign in to comment.