RAJA
RAJA provides a collection of platform portability abstractions for C++ HPC applications.
RAJA::MultiReduceBitOr< MULTI_REDUCE_POLICY_T, T > Struct Template Reference

Bitwise OR multi reducer class template. More...

Detailed Description

template<typename MULTI_REDUCE_POLICY_T, typename T>
struct RAJA::MultiReduceBitOr< MULTI_REDUCE_POLICY_T, T >

Bitwise OR multi reducer class template.

Usage example:

  Real_ptr data = ...;
  Index_ptr bins = ...;
  Real_ptr bit_vals = ...;

  MultiReduceBitOr<multi_reduce_policy, Real_type> my_bits(num_bins, init_val);

  forall<exec_policy>( ..., [=] (Index_type i) {
     my_bits[bins[i]] |= (data[i]);
  }

  for (size_t bin = 0; bin < num_bins; ++bin) {
     bit_vals[bin] = my_bits[bin].get();
  }

* 

The documentation for this struct was generated from the following file: