Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
digit_histogram.hpp File Reference

Histograms of every radix digit place of a key buffer, in a single read of the keys. More...

Include dependency graph for digit_histogram.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  shamalgs
 namespace to contain everything implemented by shamalgs
namespace  shamalgs::primitives
 namespace for primitive algorithm (e.g. sort, scan, reductions, ...)

Functions

template<class Tkey, u32 radix_bits>
void shamalgs::primitives::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.
template<class Tkey, u32 radix_bits>
void shamalgs::primitives::digit_histogram (const sham::DeviceScheduler_ptr &sched, const sham::DeviceBuffer< Tkey > &buf_key, sham::DeviceBuffer< u32 > &buf_hist)
 Compute the histograms of all the digit places of every key of buf_key.

Detailed Description

Histograms of every radix digit place of a key buffer, in a single read of the keys.

Author
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)

Definition in file digit_histogram.hpp.