![]() |
Shamrock 2025.10.0
Astrophysical Code
|
#include "shamalgs/primitives/reduction.hpp"#include "shambase/StlContainerConversion.hpp"#include "shambase/exception.hpp"#include "shambase/overloaded.hpp"#include "fmt/std.h"#include "shamalgs/ImplVariant.hpp"#include "shamalgs/details/reduction/fallbackReduction.hpp"#include "shamalgs/details/reduction/fallbackReduction_usm.hpp"#include "shamalgs/details/reduction/groupReduction.hpp"#include "shamalgs/details/reduction/groupReduction_usm.hpp"#include "shamalgs/details/reduction/reduction.hpp"#include "shamalgs/details/reduction/sycl2020reduction.hpp"#include "shamalgs/impl_registry.hpp"Go to the source code of this file.
Classes | |
| struct | shamalgs::primitives::impl::Fallback |
| Fallback USM reduction (portable, no group reduction support required). More... | |
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 | |
| shamalgs::primitives::impl::SHAMALGS_REGISTER_IMPL (reduction_impl_name, reduction_impl) | |
| 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. | |
Variables | |
| constexpr std::string_view | shamalgs::primitives::impl::reduction_impl_name = "reduction" |
| Registry name, shared by its registration and the dispatch site(s). | |
| shamalgs::ImplVariantGlobal< Fallback > | shamalgs::primitives::impl::reduction_impl |
Definition in file reduction.cpp.