Skip to content

Commit

Permalink
Merge branch 'branch-23.12' into bug-2312-timer_start
Browse files Browse the repository at this point in the history
  • Loading branch information
cjnolet authored Nov 14, 2023
2 parents 7d4cbf8 + 9f84648 commit 88255e8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cpp/include/raft/neighbors/detail/cagra/graph_core.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,9 @@ void optimize(raft::resources const& res,
constexpr int _omp_chunk = 1024;
#pragma omp parallel for schedule(dynamic, _omp_chunk)
for (uint64_t j = 0; j < graph_size; j++) {
for (uint64_t _k = 0; _k < rev_graph_count.data_handle()[j]; _k++) {
uint64_t k = rev_graph_count.data_handle()[j] - 1 - _k;
uint64_t k = std::min(rev_graph_count.data_handle()[j], output_graph_degree);
while (k) {
k--;
uint64_t i = rev_graph.data_handle()[k + (output_graph_degree * j)];

uint64_t pos =
Expand Down

0 comments on commit 88255e8

Please sign in to comment.