Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
achirkin committed Jul 8, 2024
1 parent 8b76ff7 commit 80ba46e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
17 changes: 7 additions & 10 deletions cpp/bench/ann/src/common/ann_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -163,12 +163,9 @@ class algo : public algo_base {

} // namespace cuvs::bench

#define REGISTER_ALGO_INSTANCE(DataT) \
template auto cuvs::bench::create_algo<DataT>( \
const std::string&, \
const std::string&, \
int, \
const nlohmann::json&) -> std::unique_ptr<cuvs::bench::algo<DataT>>; \
template auto cuvs::bench::create_search_param<DataT>( \
const std::string&, \
const nlohmann::json&) -> std::unique_ptr<typename cuvs::bench::algo<DataT>::search_param>;
#define REGISTER_ALGO_INSTANCE(DataT) \
template auto cuvs::bench::create_algo<DataT>( \
const std::string&, const std::string&, int, const nlohmann::json&) \
->std::unique_ptr<cuvs::bench::algo<DataT>>; \
template auto cuvs::bench::create_search_param<DataT>(const std::string&, const nlohmann::json&) \
->std::unique_ptr<typename cuvs::bench::algo<DataT>::search_param>;
2 changes: 1 addition & 1 deletion cpp/src/neighbors/detail/cagra/search_plan.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down

0 comments on commit 80ba46e

Please sign in to comment.