Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
reduction.cpp File Reference
Include dependency graph for reduction.cpp:

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, ...)

Enumerations

enum class  REDUCTION_IMPL : u32 { FALLBACK }

Functions

REDUCTION_IMPL shamalgs::primitives::get_default_reduction_impl ()
REDUCTION_IMPL shamalgs::primitives::reduction_impl_from_params (const std::string &impl)
shamalgs::impl_param shamalgs::primitives::reduction_impl_to_params (const REDUCTION_IMPL &impl)
template<class 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>
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>
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.

Variables

REDUCTION_IMPL shamalgs::primitives::reduction_impl = get_default_reduction_impl()

Detailed Description

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 reduction.cpp.