Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Simplify NN-descent tile staging and phase synchronization
(cherry picked from commit 2a2b684)
  • Loading branch information
sherylll authored and maxwbuckley committed Nov 17, 2026
commit a6e32fcb702f80da30ec9b7ad4a3b8917a58cfa0
7 changes: 0 additions & 7 deletions cpp/src/neighbors/detail/nn_descent.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,6 @@ __launch_bounds__(BLOCK_SIZE)
int num_load_elems = (step == raft::ceildiv(data_dim, TILE_COL_WIDTH) - 1)
? data_dim - step * TILE_COL_WIDTH
: TILE_COL_WIDTH;
#pragma unroll
for (int i = 0; i < MAX_NUM_BI_SAMPLES / num_warps; i++) {
int idx = i * num_warps + warp_id;
if (idx < list_new_size) {
Expand All @@ -1003,10 +1002,6 @@ __launch_bounds__(BLOCK_SIZE)
TILE_COL_WIDTH,
lane_id);
}
}
#pragma unroll
for (int i = 0; i < MAX_NUM_BI_SAMPLES / num_warps; i++) {
int idx = i * num_warps + warp_id;
if (idx < list_old_size) {
size_t neighbor_id = old_neighbors[idx];
size_t idx_in_data = neighbor_id * data_dim;
Expand Down Expand Up @@ -1083,8 +1078,6 @@ __launch_bounds__(BLOCK_SIZE)

if (!has_old) return;

__syncthreads();

calculate_metric(s_distances_old,
new_neighbors,
list_new_size,
Expand Down