![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Sort by keys algorithms. More...
#include "shambackends/DeviceBuffer.hpp"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, class Tval> | |
| void | shamalgs::primitives::sort_by_keys (sham::DeviceBuffer< Tkey > &buf_key, sham::DeviceBuffer< Tval > &buf_values, u32 len) |
| Sort key-value pairs using USM buffers (general length). | |
Sort by keys algorithms.
This header provides a parallel sorting algorithm that sorts key-value pairs based on the key values.
sort_by_keys supports any buffer length and selects its implementation through the generic implementation selector mechanism (see ImplVariant.hpp).
Definition in file sort_by_keys.hpp.