DPC++ Runtime
Runtime libraries for oneAPI DPC++
sycl::_V1::reducer< T, BinaryOperation, Dims, Extent, View, std::enable_if_t< Dims==0 &&View==true > > Class Template Reference

Component of 'reducer' class for array reductions, representing a single element of the span (as returned by the subscript operator). More...

#include <sycl/reduction.hpp>

Inheritance diagram for sycl::_V1::reducer< T, BinaryOperation, Dims, Extent, View, std::enable_if_t< Dims==0 &&View==true > >:
Collaboration diagram for sycl::_V1::reducer< T, BinaryOperation, Dims, Extent, View, std::enable_if_t< Dims==0 &&View==true > >:

Public Member Functions

 reducer (T &Ref, BinaryOperation BOp)
 
reducercombine (const T &Partial)
 
- Public Member Functions inherited from sycl::_V1::detail::combiner< reducer< T, BinaryOperation, Dims, Extent, View, std::enable_if_t< Dims==0 &&View==true > > >
enable_if_t<(_Dims==0) &&IsPlus< _T, BinaryOp >::value &&is_geninteger< _T >::value, reducer< T, BinaryOperation, Dims, Extent, View, std::enable_if_t< Dims==0 &&View==true > > & > operator++ ()
 
enable_if_t<(_Dims==0) &&IsPlus< _T, BinaryOp >::value &&is_geninteger< _T >::value, reducer< T, BinaryOperation, Dims, Extent, View, std::enable_if_t< Dims==0 &&View==true > > & > operator++ (int)
 
enable_if_t<(_Dims==0) &&IsPlus< _T, BinaryOp >::value, reducer< T, BinaryOperation, Dims, Extent, View, std::enable_if_t< Dims==0 &&View==true > > & > operator+= (const _T &Partial)
 
enable_if_t<(_Dims==0) &&IsMultiplies< _T, BinaryOp >::value, reducer< T, BinaryOperation, Dims, Extent, View, std::enable_if_t< Dims==0 &&View==true > > & > operator*= (const _T &Partial)
 
enable_if_t<(_Dims==0) &&IsBitOR< _T, BinaryOp >::value, reducer< T, BinaryOperation, Dims, Extent, View, std::enable_if_t< Dims==0 &&View==true > > & > operator|= (const _T &Partial)
 
enable_if_t<(_Dims==0) &&IsBitXOR< _T, BinaryOp >::value, reducer< T, BinaryOperation, Dims, Extent, View, std::enable_if_t< Dims==0 &&View==true > > & > operator^= (const _T &Partial)
 
enable_if_t<(_Dims==0) &&IsBitAND< _T, BinaryOp >::value, reducer< T, BinaryOperation, Dims, Extent, View, std::enable_if_t< Dims==0 &&View==true > > & > operator&= (const _T &Partial)
 
enable_if_t< BasicCheck< _T, Space, _BinaryOperation > &&(IsReduOptForFastAtomicFetch< _T, _BinaryOperation >::value||IsReduOptForAtomic64Op< _T, _BinaryOperation >::value) &&IsPlus< _T, _BinaryOperation >::value > atomic_combine (_T *ReduVarPtr) const
 Atomic ADD operation: *ReduVarPtr += MValue;. More...
 
enable_if_t< BasicCheck< _T, Space, _BinaryOperation > &&IsReduOptForFastAtomicFetch< _T, _BinaryOperation >::value &&IsBitOR< _T, _BinaryOperation >::value > atomic_combine (_T *ReduVarPtr) const
 Atomic BITWISE OR operation: *ReduVarPtr |= MValue;. More...
 
enable_if_t< BasicCheck< _T, Space, _BinaryOperation > &&IsReduOptForFastAtomicFetch< _T, _BinaryOperation >::value &&IsBitXOR< _T, _BinaryOperation >::value > atomic_combine (_T *ReduVarPtr) const
 Atomic BITWISE XOR operation: *ReduVarPtr ^= MValue;. More...
 
enable_if_t< std::is_same< remove_decoration_t< _T >, _T >::value &&IsReduOptForFastAtomicFetch< _T, _BinaryOperation >::value &&IsBitAND< _T, _BinaryOperation >::value &&(Space==access::address_space::global_space||Space==access::address_space::local_space)> atomic_combine (_T *ReduVarPtr) const
 Atomic BITWISE AND operation: *ReduVarPtr &= MValue;. More...
 
enable_if_t< BasicCheck< _T, Space, _BinaryOperation > &&(IsReduOptForFastAtomicFetch< _T, _BinaryOperation >::value||IsReduOptForAtomic64Op< _T, _BinaryOperation >::value) &&IsMinimum< _T, _BinaryOperation >::value > atomic_combine (_T *ReduVarPtr) const
 Atomic MIN operation: *ReduVarPtr = sycl::minimum(*ReduVarPtr, MValue);. More...
 
enable_if_t< BasicCheck< _T, Space, _BinaryOperation > &&(IsReduOptForFastAtomicFetch< _T, _BinaryOperation >::value||IsReduOptForAtomic64Op< _T, _BinaryOperation >::value) &&IsMaximum< _T, _BinaryOperation >::value > atomic_combine (_T *ReduVarPtr) const
 Atomic MAX operation: *ReduVarPtr = sycl::maximum(*ReduVarPtr, MValue);. More...
 

Friends

template<typename ReducerT >
class detail::ReducerAccess
 

Additional Inherited Members

- Public Types inherited from sycl::_V1::detail::reducer_common< T, BinaryOperation, Dims >
using value_type = T
 
using binary_operation = BinaryOperation
 
- Static Public Attributes inherited from sycl::_V1::detail::reducer_common< T, BinaryOperation, Dims >
static constexpr int dimensions = Dims
 

Detailed Description

template<typename T, class BinaryOperation, int Dims, size_t Extent, bool View>
class sycl::_V1::reducer< T, BinaryOperation, Dims, Extent, View, std::enable_if_t< Dims==0 &&View==true > >

Component of 'reducer' class for array reductions, representing a single element of the span (as returned by the subscript operator).

Definition at line 461 of file reduction.hpp.

Constructor & Destructor Documentation

◆ reducer()

template<typename T , class BinaryOperation , int Dims, size_t Extent, bool View>
sycl::_V1::reducer< T, BinaryOperation, Dims, Extent, View, std::enable_if_t< Dims==0 &&View==true > >::reducer ( T Ref,
BinaryOperation  BOp 
)
inline

Definition at line 468 of file reduction.hpp.

Member Function Documentation

◆ combine()

template<typename T , class BinaryOperation , int Dims, size_t Extent, bool View>
reducer& sycl::_V1::reducer< T, BinaryOperation, Dims, Extent, View, std::enable_if_t< Dims==0 &&View==true > >::combine ( const T Partial)
inline

Definition at line 470 of file reduction.hpp.

Friends And Related Function Documentation

◆ detail::ReducerAccess

template<typename T , class BinaryOperation , int Dims, size_t Extent, bool View>
template<typename ReducerT >
friend class detail::ReducerAccess
friend

Definition at line 476 of file reduction.hpp.


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