![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Implements functions to check if all elements in a buffer are non-zero (true). More...
#include "shamalgs/primitives/is_all_true.hpp"#include "shambase/StlContainerConversion.hpp"#include "shambase/memory.hpp"#include "shambase/overloaded.hpp"#include "shamalgs/ImplVariant.hpp"#include "shamalgs/impl_registry.hpp"#include "shamalgs/primitives/reduction.hpp"#include "shambackends/group_op.hpp"#include "shambackends/kernel_call.hpp"#include "shambackends/make_ndrange.hpp"Go to the source code of this file.
Classes | |
| struct | shamalgs::primitives::impl::Host |
| Check all elements on host after copying the buffer back. More... | |
| struct | shamalgs::primitives::impl::SumReduction |
| Check all elements via a sum reduction on device. More... | |
| struct | shamalgs::primitives::impl::AtomicEarlyExit |
| Check all elements via a sum reduction on device. More... | |
| struct | shamalgs::ImplVariantParams< shamalgs::primitives::impl::AtomicEarlyExit > |
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 (is_all_true_impl_name, is_all_true_impl) | |
| template<class T> | |
| bool | shamalgs::primitives::is_all_true (sham::DeviceBuffer< T > &buf, u32 cnt) |
| Check if all elements in a sham::DeviceBuffer are non-zero. | |
| template bool | shamalgs::primitives::is_all_true (sham::DeviceBuffer< u8 > &buf, u32 cnt) |
Variables | |
| constexpr std::string_view | shamalgs::primitives::impl::is_all_true_impl_name = "is_all_true" |
| Registry name, shared by its registration and the dispatch site(s). | |
| shamalgs::ImplVariantGlobal< Host, SumReduction, AtomicEarlyExit > | shamalgs::primitives::impl::is_all_true_impl |
Implements functions to check if all elements in a buffer are non-zero (true).
Definition in file is_all_true.cpp.