![]() |
Shamrock 2025.10.0
Astrophysical Code
|
#include "shamalgs/impl_utils.hpp"#include "shambackends/DeviceBuffer.hpp"#include "shambackends/DeviceScheduler.hpp"
Include dependency graph for reduction.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, ...) | |
| namespace | shamalgs::primitives::impl |
| namespace to control implementation behavior | |
Functions | |
| template<class T > | |
| T | shamalgs::primitives::sum (const sham::DeviceScheduler_ptr &sched, const sham::DeviceBuffer< T > &buf1, u32 start_id, u32 end_id) |
| Compute the sum of elements in a device buffer within a specified range. | |
| template<class T > | |
| T | shamalgs::primitives::min (const sham::DeviceScheduler_ptr &sched, const sham::DeviceBuffer< T > &buf1, u32 start_id, u32 end_id) |
| Find the minimum element in a device buffer within a specified range. | |
| template<class T > | |
| T | shamalgs::primitives::max (const sham::DeviceScheduler_ptr &sched, const sham::DeviceBuffer< T > &buf1, u32 start_id, u32 end_id) |
| Find the maximum element in a device buffer within a specified range. | |
| std::vector< shamalgs::impl_param > | shamalgs::primitives::impl::get_default_impl_list_reduction () |
| Get list of available reduction implementations. | |
| shamalgs::impl_param | shamalgs::primitives::impl::get_current_impl_reduction () |
| Get the current implementation for reduction. | |
| void | shamalgs::primitives::impl::set_impl_reduction (const std::string &impl, const std::string ¶m="") |
| Set the implementation for reduction. | |
Definition in file reduction.hpp.