Skip to content

Commit

Permalink
fix: [cp] DiskANN Build Percentage (#392)
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Weizhi Xu <[email protected]>
  • Loading branch information
PwzXxm authored Feb 19, 2024
1 parent 3d7ac59 commit e3928b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion thirdparty/DiskANN/src/partition_and_pq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,8 @@ int generate_pq_pivots(const float *passed_train_data, size_t num_train,
chunk_size * sizeof(float));
}
uint32_t cur_chunk_done = num_chunk_done.fetch_add(1);
if (cur_chunk_done % num_chunk_step == 0 || cur_chunk_done == num_pq_chunks) {
if (num_chunk_step == 0 || cur_chunk_done % num_chunk_step == 0 ||
cur_chunk_done == num_pq_chunks) {
LOG_KNOWHERE_INFO_ << "Genereated pivots for " << cur_chunk_done
<< " chunks out of " << num_pq_chunks;
}
Expand Down

0 comments on commit e3928b7

Please sign in to comment.