This class encapsulates the reduction variable/accessor, the reduction operator and an optional operator identity.
More...
|
template<typename _self = self, enable_if_t< _self::is_known_identity > * = nullptr> |
| reduction_impl (RedOutVar Var, bool InitializeToIdentity=false) |
| Constructs reduction_impl when the identity value is statically known. More...
|
|
| reduction_impl (RedOutVar &Var, const T &Identity, BinaryOperation BOp, bool InitializeToIdentity) |
| Constructs reduction_impl when the identity value is unknown. More...
|
|
| reduction_impl_algo (const T &Identity, BinaryOperation BinaryOp, bool Init, RedOutVar RedOut) |
|
auto | getReadAccToPreviousPartialReds (handler &CGH) const |
|
template<bool IsOneWG> |
auto | getWriteMemForPartialReds (size_t Size, handler &CGH) |
|
template<class _T = T> |
auto & | getTempBuffer (size_t Size, handler &CGH) |
|
auto | getWriteAccForPartialReds (size_t Size, handler &CGH) |
| Returns an accessor accessing the memory that will hold the reduction partial sums. More...
|
|
template<typename KernelName , typename FuncTy > |
void | withInitializedMem (handler &CGH, FuncTy Func) |
| Provide Func with a properly initialized memory to write the reduction result to. More...
|
|
accessor< int, 1, access::mode::read_write, access::target::device, access::placeholder::false_t > | getReadWriteAccessorToInitializedGroupsCounter (handler &CGH) |
|
auto | getGroupsCounterAccDiscrete (handler &CGH) |
|
RedOutVar & | getUserRedVar () |
|
template<typename _T = T, class _BinaryOperation = BinaryOperation> |
constexpr enable_if_t< IsKnownIdentityOp< _T, _BinaryOperation >::value, _T > | getIdentity () |
| Returns the statically known identity value. More...
|
|
template<typename _T = T, class _BinaryOperation = BinaryOperation> |
enable_if_t<!IsKnownIdentityOp< _T, _BinaryOperation >::value, _T > | getIdentity () |
| Returns the identity value given by user. More...
|
|
BinaryOperation | getBinaryOperation () const |
| Returns the binary operation associated with the reduction. More...
|
|
bool | initializeToIdentity () const |
|
template<typename T, class BinaryOperation, int Dims, size_t Extent, typename RedOutVar>
class sycl::_V1::detail::reduction_impl< T, BinaryOperation, Dims, Extent, RedOutVar >
This class encapsulates the reduction variable/accessor, the reduction operator and an optional operator identity.
Definition at line 810 of file reduction.hpp.
template<typename T , class BinaryOperation , int Dims, size_t Extent, typename RedOutVar >
template<typename _self = self, enable_if_t< _self::is_known_identity > * = nullptr>