Skip to content

Commit

Permalink
remove comments and nvtx
Browse files Browse the repository at this point in the history
  • Loading branch information
jinsolp committed Jul 12, 2024
1 parent a6ffd57 commit b592964
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions cpp/include/raft/neighbors/detail/nn_descent.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -1375,7 +1375,6 @@ void GNND<Data_t, Index_t, epilogue_op>::build(Data_t* data,
// Reuse graph_.h_dists as the buffer for shrink the lists in graph
static_assert(sizeof(decltype(*(graph_.h_dists.data_handle()))) >= sizeof(Index_t));
nvtxRangePushA("copying distances inside build");
if (return_distances) {
auto graph_d_dists = raft::make_device_matrix<DistData_t, size_t, raft::row_major>(
res, nrow_, build_config_.node_degree);
Expand All @@ -1392,15 +1391,7 @@ void GNND<Data_t, Index_t, epilogue_op>::build(Data_t* data,
build_config_.output_graph_degree,
build_config_.node_degree,
nrow_);
// for (size_t i = 0; i < (size_t)nrow_; i++) {
// raft::copy(output_distances + i * build_config_.output_graph_degree,
// graph_.h_dists.data_handle() + i * build_config_.node_degree,
// build_config_.output_graph_degree,
// raft::resource::get_cuda_stream(res));
// }
}
nvtxRangePop();
Index_t* graph_shrink_buffer = (Index_t*)graph_.h_dists.data_handle();
Expand Down

0 comments on commit b592964

Please sign in to comment.