diff --git a/cpp/bench/ann/src/common/ann_types.hpp b/cpp/bench/ann/src/common/ann_types.hpp index ee336c606..c2f85e539 100644 --- a/cpp/bench/ann/src/common/ann_types.hpp +++ b/cpp/bench/ann/src/common/ann_types.hpp @@ -153,7 +153,7 @@ class algo : public algo_base { // and set_search_dataset() should save the passed-in pointer somewhere. // The client code should call set_search_dataset() before searching, // and should not release dataset before searching is finished. - virtual void set_search_dataset(const T* /*dataset*/, size_t /*nrow*/) {}; + virtual void set_search_dataset(const T* /*dataset*/, size_t /*nrow*/){}; /** * Make a shallow copy of the algo wrapper that shares the resources and ensures thread-safe @@ -163,12 +163,9 @@ class algo : public algo_base { } // namespace cuvs::bench -#define REGISTER_ALGO_INSTANCE(DataT) \ - template auto cuvs::bench::create_algo( \ - const std::string&, \ - const std::string&, \ - int, \ - const nlohmann::json&) -> std::unique_ptr>; \ - template auto cuvs::bench::create_search_param( \ - const std::string&, \ - const nlohmann::json&) -> std::unique_ptr::search_param>; +#define REGISTER_ALGO_INSTANCE(DataT) \ + template auto cuvs::bench::create_algo( \ + const std::string&, const std::string&, int, const nlohmann::json&) \ + ->std::unique_ptr>; \ + template auto cuvs::bench::create_search_param(const std::string&, const nlohmann::json&) \ + ->std::unique_ptr::search_param>; diff --git a/cpp/src/neighbors/detail/cagra/search_plan.cuh b/cpp/src/neighbors/detail/cagra/search_plan.cuh index 0ee97e3b5..d61e9cd94 100644 --- a/cpp/src/neighbors/detail/cagra/search_plan.cuh +++ b/cpp/src/neighbors/detail/cagra/search_plan.cuh @@ -206,7 +206,7 @@ struct search_plan_impl : public search_plan_impl_base { const INDEX_T* dev_seed_ptr, // [num_queries, num_seeds] std::uint32_t* const num_executed_iterations, // [num_queries] uint32_t topk, - SAMPLE_FILTER_T sample_filter) {}; + SAMPLE_FILTER_T sample_filter){}; void adjust_search_params() {