Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
digit_histogram.hpp
Go to the documentation of this file.
1// -------------------------------------------------------//
2//
3// SHAMROCK code for hydrodynamics
4// Copyright (c) 2021-2026 Timothée David--Cléris <tim.shamrock@proton.me>
5// SPDX-License-Identifier: CeCILL Free Software License Agreement v2.1
6// Shamrock is licensed under the CeCILL 2.1 License, see LICENSE for more information
7//
8// -------------------------------------------------------//
9
10#pragma once
11
17
21
22namespace shamalgs::primitives {
23
64 template<class Tkey, u32 radix_bits>
65 void digit_histogram(
66 const sham::DeviceScheduler_ptr &sched,
67 const sham::DeviceBuffer<Tkey> &buf_key,
68 sham::DeviceBuffer<u32> &buf_hist,
69 u32 len);
70
77 template<class Tkey, u32 radix_bits>
78 void digit_histogram(
79 const sham::DeviceScheduler_ptr &sched,
80 const sham::DeviceBuffer<Tkey> &buf_key,
81 sham::DeviceBuffer<u32> &buf_hist);
82
83} // namespace shamalgs::primitives
std::uint32_t u32
32 bit unsigned integer
namespace for primitive algorithm (e.g. sort, scan, reductions, ...)
void digit_histogram(const sham::DeviceScheduler_ptr &sched, const sham::DeviceBuffer< Tkey > &buf_key, sham::DeviceBuffer< u32 > &buf_hist, u32 len)
Compute the histograms of all the digit places of the first len keys.