Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
is_all_true.cpp File Reference

Implements functions to check if all elements in a buffer are non-zero (true). More...

Include dependency graph for is_all_true.cpp:

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

std::vector< std::string > shamalgs::primitives::impl::get_default_impl_list_is_all_true ()
 Get list of available is_all_true implementations, as config json strings.
std::string shamalgs::primitives::impl::get_current_impl_is_all_true ()
 Get the current implementation for is_all_true, as a config json string.
bool shamalgs::primitives::impl::is_impl_set_is_all_true ()
 Check if an implementation has been selected for is_all_true.
void shamalgs::primitives::impl::set_impl_is_all_true (const std::string &impl)
 Set the implementation for is_all_true, from a config json string.
void shamalgs::primitives::impl::autoselect_impl_is_all_true (const sham::DeviceScheduler_ptr &dev_sched)
 Select the default implementation for is_all_true.
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

shamalgs::ImplVariantGlobal< Host, SumReduction, AtomicEarlyExit > shamalgs::primitives::impl::is_all_true_impl

Detailed Description

Implements functions to check if all elements in a buffer are non-zero (true).

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