From fbbee7d49ae0ca2336b457afaa5d83cde5593358 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20J=C3=BCnger?= Date: Thu, 17 Oct 2024 15:53:55 +0000 Subject: [PATCH] Update docs --- .../cuco/detail/open_addressing/kernels.cuh | 29 +++++++++++++- .../open_addressing/open_addressing_impl.cuh | 10 ++--- .../open_addressing_ref_impl.cuh | 39 +++++++++---------- include/cuco/static_multiset.cuh | 10 ++--- 4 files changed, 54 insertions(+), 34 deletions(-) diff --git a/include/cuco/detail/open_addressing/kernels.cuh b/include/cuco/detail/open_addressing/kernels.cuh index 5e0d49944..4726683a3 100644 --- a/include/cuco/detail/open_addressing/kernels.cuh +++ b/include/cuco/detail/open_addressing/kernels.cuh @@ -399,7 +399,34 @@ CUCO_KERNEL __launch_bounds__(BlockSize) void find(InputIt first, } } -// TODO docs +/** + * @brief Retrieves the equivalent container elements of all keys in the range `[input_probe, + * input_probe + n)`. + * + * If key `k = *(input_probe + i)` has one or more matches in the container, copies `k` to + * `output_probe` and associated slot contents to `output_match`, respectively. The output order is + * unspecified. + * + * @tparam IsOuter Flag indicating whether it's an outer count or not + * @tparam block_size The size of the thread block + * @tparam InputProbeIt Device accessible input iterator + * @tparam OutputProbeIt Device accessible input iterator whose `value_type` is + * convertible to the `InputProbeIt`'s `value_type` + * @tparam OutputMatchIt Device accessible input iterator whose `value_type` is + * convertible to the container's `value_type` + * @tparam AtomicCounter Integral atomic type that follows the same semantics as + * `cuda::(std::)atomic(_ref)` + * @tparam Ref Type of non-owning device ref allowing access to storage + * + * @param input_probe Beginning of the sequence of input keys + * @param n Number of the keys to query + * @param output_probe Beginning of the sequence of keys corresponding to matching elements in + * `output_match` + * @param output_match Beginning of the sequence of matching elements + * @param atomic_counter Pointer to an atomic object of integral type that is used to count the + * number of output elements + * @param ref Non-owning container device ref used to access the slot storage + */ template