Skip to content

Commit

Permalink
Removing all cuda includes from benchmark.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
cjnolet committed Oct 23, 2023
1 parent 89786ff commit 4573050
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cpp/bench/ann/src/common/benchmark.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@

#include <benchmark/benchmark.h>

#include <rmm/cuda_stream_pool.hpp>

#include "thread_pool.hpp"
#include <algorithm>
#include <chrono>
#include <cmath>
Expand Down Expand Up @@ -382,11 +379,14 @@ void register_search(std::shared_ptr<const Dataset<T>> dataset,
auto suf = static_cast<std::string>(index.search_params[i]["override_suffix"]);
index.search_params[i].erase("override_suffix");

int max_threads =
metric_objective == Objective::THROUGHPUT ? std::thread::hardware_concurrency() : 1;

auto* b = ::benchmark::RegisterBenchmark(
index.name + suf, bench_search<T>, index, i, dataset, metric_objective)
->Unit(benchmark::kMillisecond)
->ThreadRange(1, 32)
->UseManualTime();
->UseManualTime()
->ThreadRange(1, max_threads);
}
}
}
Expand Down

0 comments on commit 4573050

Please sign in to comment.