Skip to content

Commit

Permalink
Fix duplication check
Browse files Browse the repository at this point in the history
  • Loading branch information
enp1s0 committed Jan 17, 2025
1 parent bd7de7f commit daa9807
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/neighbors/detail/cagra/graph_core.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -1365,7 +1365,7 @@ void optimize(
for (uint32_t pruned_i = 0;
(pruned_i < output_graph_degree) && (k + l < output_graph_degree);
pruned_i++) {
const auto v = output_graph_ptr[pruned_i];
const auto v = output_graph_ptr[output_graph_degree * i + pruned_i];

// duplication check
bool dup = false;
Expand All @@ -1377,7 +1377,7 @@ void optimize(
}

if (!dup) {
my_out_graph[k + l] = output_graph_ptr[(output_graph_degree * i) + pruned_i];
my_out_graph[k + l] = v;
l++;
}
}
Expand Down

0 comments on commit daa9807

Please sign in to comment.