From e5f32193f31d601f0a23f38534419b9f9c30258c Mon Sep 17 00:00:00 2001 From: Mickael Ide Date: Sat, 26 Aug 2023 18:09:48 +0200 Subject: [PATCH] Fix grouping in C++ doxygen Signed-off-by: Mickael Ide --- cpp/doxygen/Doxyfile | 2 +- cpp/include/raft/neighbors/cagra_types.hpp | 22 +++++++++++-------- cpp/include/raft/neighbors/ivf_flat_types.hpp | 2 +- cpp/include/raft/neighbors/ivf_pq_types.hpp | 2 +- docs/source/cpp_api/neighbors_ivf_flat.rst | 11 ++++++++++ docs/source/cpp_api/neighbors_ivf_pq.rst | 11 ++++++++++ 6 files changed, 38 insertions(+), 12 deletions(-) diff --git a/cpp/doxygen/Doxyfile b/cpp/doxygen/Doxyfile index be8a087e2b..cb990d668e 100644 --- a/cpp/doxygen/Doxyfile +++ b/cpp/doxygen/Doxyfile @@ -893,7 +893,7 @@ EXCLUDE = ../include/raft/sparse/linalg/symmetrize.hpp \ ../include/raft/util/device_utils.cuh \ ../include/raft/core/error.hpp \ ../include/raft/core/handle.hpp \ - ../include/raft/util/integer_utils.hpp + ../include/raft/util/integer_utils.hpp \ ../include/raft/util/pow2_utils.cuh \ ../include/raft/util/vectorized.cuh \ ../include/raft/raft.hpp \ diff --git a/cpp/include/raft/neighbors/cagra_types.hpp b/cpp/include/raft/neighbors/cagra_types.hpp index 01d6a92235..02e3f5338e 100644 --- a/cpp/include/raft/neighbors/cagra_types.hpp +++ b/cpp/include/raft/neighbors/cagra_types.hpp @@ -36,18 +36,22 @@ #include namespace raft::neighbors::cagra { /** - * @ingroup cagra + * @addtogroup cagra * @{ */ struct index_params : ann::index_params { - size_t intermediate_graph_degree = 128; // Degree of input graph for pruning. - size_t graph_degree = 64; // Degree of output graph. + /** Degree of input graph for pruning. */ + size_t intermediate_graph_degree = 128; + /** Degree of output graph. */ + size_t graph_degree = 64; }; enum class search_algo { - SINGLE_CTA, // for large batch - MULTI_CTA, // for small batch + /** For large batch sizes. */ + SINGLE_CTA, + /** For small batch sizes. */ + MULTI_CTA, MULTI_KERNEL, AUTO }; @@ -77,7 +81,7 @@ struct search_params : ann::search_params { /** Number of threads used to calculate a single distance. 4, 8, 16, or 32. */ size_t team_size = 0; - /*/ Number of graph nodes to select as the starting point for the search in each iteration. aka + /** Number of graph nodes to select as the starting point for the search in each iteration. aka * search width?*/ size_t search_width = 1; /** Lower limit of search iterations. */ @@ -92,9 +96,9 @@ struct search_params : ann::search_params { /** Upper limit of hashmap fill rate. More than 0.1, less than 0.9.*/ float hashmap_max_fill_rate = 0.5; - /* Number of iterations of initial random seed node selection. 1 or more. */ + /** Number of iterations of initial random seed node selection. 1 or more. */ uint32_t num_random_samplings = 1; - // Bit mask used for initial random seed node selection. */ + /** Bit mask used for initial random seed node selection. */ uint64_t rand_xor_mask = 0x128394; }; @@ -122,7 +126,7 @@ struct index : ann::index { return metric_; } - // /** Total length of the index (number of vectors). */ + /** Total length of the index (number of vectors). */ [[nodiscard]] constexpr inline auto size() const noexcept -> IdxT { return dataset_view_.extent(0); diff --git a/cpp/include/raft/neighbors/ivf_flat_types.hpp b/cpp/include/raft/neighbors/ivf_flat_types.hpp index 2e2e49cdbc..180fe2e21b 100644 --- a/cpp/include/raft/neighbors/ivf_flat_types.hpp +++ b/cpp/include/raft/neighbors/ivf_flat_types.hpp @@ -39,7 +39,7 @@ namespace raft::neighbors::ivf_flat { /** - * @ingroup ivf_flat + * @addtogroup ivf_flat * @{ */ diff --git a/cpp/include/raft/neighbors/ivf_pq_types.hpp b/cpp/include/raft/neighbors/ivf_pq_types.hpp index 0899a60d88..24df77b35a 100644 --- a/cpp/include/raft/neighbors/ivf_pq_types.hpp +++ b/cpp/include/raft/neighbors/ivf_pq_types.hpp @@ -35,7 +35,7 @@ namespace raft::neighbors::ivf_pq { /** - * @ingroup ivf_pq + * @addtogroup ivf_pq * @{ */ diff --git a/docs/source/cpp_api/neighbors_ivf_flat.rst b/docs/source/cpp_api/neighbors_ivf_flat.rst index 4200802bdc..aa03fa8a80 100644 --- a/docs/source/cpp_api/neighbors_ivf_flat.rst +++ b/docs/source/cpp_api/neighbors_ivf_flat.rst @@ -21,6 +21,17 @@ Serializer Methods namespace *raft::neighbors::ivf_flat* .. doxygengroup:: ivf_flat_serialize + :project: RAFT + :members: + :content-only: + +Helper Methods +-------------- +``#include `` + +namespace *raft::neighbors::ivf_flat::helpers* + +.. doxygengroup:: ivf_flat_helpers :project: RAFT :members: :content-only: \ No newline at end of file diff --git a/docs/source/cpp_api/neighbors_ivf_pq.rst b/docs/source/cpp_api/neighbors_ivf_pq.rst index 17948a37fe..5301105c56 100644 --- a/docs/source/cpp_api/neighbors_ivf_pq.rst +++ b/docs/source/cpp_api/neighbors_ivf_pq.rst @@ -32,6 +32,17 @@ Candidate Refinement namespace *raft::neighbors* .. doxygengroup:: ann_refine + :project: RAFT + :members: + :content-only: + +Helper Methods +-------------- +``#include `` + +namespace *raft::neighbors::ivf_pq::helpers* + +.. doxygengroup:: ivf_pq_helpers :project: RAFT :members: :content-only: \ No newline at end of file