diff --git a/cpp/bench/ann/src/common/benchmark.hpp b/cpp/bench/ann/src/common/benchmark.hpp index 1cbd54cb7b..7db5eab194 100644 --- a/cpp/bench/ann/src/common/benchmark.hpp +++ b/cpp/bench/ann/src/common/benchmark.hpp @@ -287,8 +287,8 @@ void bench_search(::benchmark::State& state, std::shared_ptr> neighbors = std::make_shared>(algo_property.query_memory_type, k * query_set_size); - auto start = std::chrono::high_resolution_clock::now(); cuda_timer gpu_timer; + auto start = std::chrono::high_resolution_clock::now(); { nvtx_case nvtx{state.name()};