We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c148ae commit d56ff50Copy full SHA for d56ff50
cpp/bench/ann/src/common/benchmark.hpp
@@ -381,7 +381,8 @@ void bench_search(::benchmark::State& state,
381
auto recall_calculation = [&](int start, int end, int tid) -> void {
382
for (int i = start; i < end; ++i) {
383
size_t i_orig_idx = batch_offset + i;
384
- size_t i_out_idx = out_offset + i;
+ if (i_orig_idx >= gt_maps.size()) { break; }
385
+ size_t i_out_idx = out_offset + i;
386
if (i_out_idx < rows) {
387
local_total_count[tid] += filter_pass_counts[i_orig_idx];
388
0 commit comments